Update CryptoObfuscator deobfuscator

This commit is contained in:
de4dot 2013-01-10 02:47:53 +01:00
parent 140d043844
commit 88571cbf8b
4 changed files with 6 additions and 5 deletions

View File

@ -64,11 +64,10 @@ 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 debugger") &&
!containsString(method, "Debugger detected") &&
!containsString(method, "Debugger was detected") &&
!containsString(method, "{0} was detected"))
!containsString(method, "{0} was detected") &&
!containsString(method, "run under"))
continue;
antiDebuggerType = type;

View File

@ -110,7 +110,7 @@ namespace de4dot.code.deobfuscators.CryptoObfuscator {
MethodDef getProxyCreateMethod(TypeDef type) {
if (DotNetUtils.findFieldType(type, "System.ModuleHandle", true) == null)
return null;
if (type.Fields.Count < 1 || type.Fields.Count > 12)
if (type.Fields.Count < 1 || type.Fields.Count > 14)
return null;
MethodDef createMethod = null;

View File

@ -312,6 +312,8 @@ namespace de4dot.code.deobfuscators.CryptoObfuscator {
yield return method;
else if (DotNetUtils.isMethod(method, "System.Byte[]", "(System.SByte,System.IO.Stream,System.UInt32)"))
yield return method;
else if (DotNetUtils.isMethod(method, "System.Byte[]", "(System.Char,System.IO.Stream)"))
yield return method;
}
}

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 > 16)
if (type.Methods.Count < 3 || type.Methods.Count > 20)
return false;
if (DotNetUtils.getPInvokeMethod(type, "mscoree", "StrongNameSignatureVerificationEx") != null) {
}