Support latest CryptoObfuscator

This commit is contained in:
de4dot 2013-12-04 15:37:02 +01:00
parent f173df9b09
commit b299257c26
4 changed files with 6 additions and 4 deletions

View File

@ -68,7 +68,9 @@ namespace de4dot.code.deobfuscators.CryptoObfuscator {
!ContainsString(method, "Debugger was detected") &&
!ContainsString(method, "{0} was detected") &&
!ContainsString(method, "run under") &&
!ContainsString(method, "run with"))
!ContainsString(method, "run with") &&
!ContainsString(method, "started under") &&
!ContainsString(method, "{0} detected"))
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 > 16)
if (type.Fields.Count < 1 || type.Fields.Count > 18)
return null;
MethodDef createMethod = null;

View File

@ -268,7 +268,7 @@ namespace de4dot.code.deobfuscators.CryptoObfuscator {
if (!ldci4.IsLdcI4())
continue;
int loopCount = ldci4.GetLdcI4Value();
if (loopCount < 2 || loopCount > 3)
if (loopCount < 2 || loopCount > 4)
continue;
var blt = instrs[i + 1];
if (blt.OpCode.Code != Code.Blt && blt.OpCode.Code != Code.Blt_S && blt.OpCode.Code != Code.Clt)

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