Support the latest CO build

This commit is contained in:
de4dot 2012-07-22 20:35:33 +02:00
parent 09d5bd40ea
commit 74aaf19257
4 changed files with 6 additions and 3 deletions

View File

@ -64,7 +64,8 @@ namespace de4dot.code.deobfuscators.CryptoObfuscator {
deobfuscate(method);
if (!containsString(method, "debugger is activ") &&
!containsString(method, "debugger is running") &&
!containsString(method, "run under a debugger"))
!containsString(method, "run under a debugger") &&
!containsString(method, "Debugger detected"))
continue;
antiDebuggerType = type;

View File

@ -129,7 +129,7 @@ namespace de4dot.code.deobfuscators.CryptoObfuscator {
MethodDefinition getProxyCreateMethod(TypeDefinition type) {
if (DotNetUtils.findFieldType(type, "System.ModuleHandle", true) == null)
return null;
if (type.Fields.Count < 1 || type.Fields.Count > 7)
if (type.Fields.Count < 1 || type.Fields.Count > 8)
return null;
MethodDefinition createMethod = null;

View File

@ -304,6 +304,8 @@ namespace de4dot.code.deobfuscators.CryptoObfuscator {
return method;
if (DotNetUtils.isMethod(method, "System.Byte[]", "(System.Byte,System.IO.Stream)"))
return method;
if (DotNetUtils.isMethod(method, "System.Byte[]", "(System.Byte,System.IO.Stream,System.Int32)"))
return method;
}
return null;
}

View File

@ -84,7 +84,7 @@ namespace de4dot.code.deobfuscators.CryptoObfuscator {
if (!method.IsStatic || !DotNetUtils.isMethod(method, "System.Void", "()"))
return false;
if (type.Methods.Count < 3 || type.Methods.Count > 9)
if (type.Methods.Count < 3 || type.Methods.Count > 10)
return false;
if (DotNetUtils.getPInvokeMethod(type, "mscoree", "StrongNameSignatureVerificationEx") != null) {
}