From 4691c805d80086376648e950b94a74a9be20c69e Mon Sep 17 00:00:00 2001 From: de4dot Date: Sun, 12 Feb 2012 16:25:12 +0100 Subject: [PATCH] Ignore invalid methods --- de4dot.code/deobfuscators/CodeVeil/TamperDetection.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/de4dot.code/deobfuscators/CodeVeil/TamperDetection.cs b/de4dot.code/deobfuscators/CodeVeil/TamperDetection.cs index 36162e22..b9d8abfd 100644 --- a/de4dot.code/deobfuscators/CodeVeil/TamperDetection.cs +++ b/de4dot.code/deobfuscators/CodeVeil/TamperDetection.cs @@ -98,6 +98,8 @@ namespace de4dot.code.deobfuscators.CodeVeil { MethodDefinition cctor = null, initMethod = null; foreach (var method in type.Methods) { + if (InvalidMethodsFinder.isInvalidMethod(method)) + continue; if (!method.IsStatic || method.Body == null) return false; if (method.Name == ".cctor")