Support latest CryptoObfuscator
This commit is contained in:
parent
9b2ed7acca
commit
954f0af743
|
@ -70,7 +70,8 @@ namespace de4dot.code.deobfuscators.CryptoObfuscator {
|
|||
!ContainsString(method, "run under") &&
|
||||
!ContainsString(method, "run with") &&
|
||||
!ContainsString(method, "started under") &&
|
||||
!ContainsString(method, "{0} detected"))
|
||||
!ContainsString(method, "{0} detected") &&
|
||||
!ContainsString(method, "{0} found"))
|
||||
continue;
|
||||
|
||||
antiDebuggerType = type;
|
||||
|
|
|
@ -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 > 18)
|
||||
if (type.Fields.Count < 1 || type.Fields.Count > 20)
|
||||
return null;
|
||||
|
||||
MethodDef createMethod = null;
|
||||
|
|
|
@ -180,6 +180,7 @@ namespace de4dot.code.deobfuscators.CryptoObfuscator {
|
|||
}
|
||||
|
||||
static bool CheckFlipBits(MethodDef method) {
|
||||
int nots = 0;
|
||||
var instrs = method.Body.Instructions;
|
||||
for (int i = 0; i < instrs.Count - 1; i++) {
|
||||
var ldloc = instrs[i];
|
||||
|
@ -189,14 +190,11 @@ namespace de4dot.code.deobfuscators.CryptoObfuscator {
|
|||
if (local == null || local.Type.GetElementType().GetPrimitiveSize() < 0)
|
||||
continue;
|
||||
|
||||
var not = instrs[i + 1];
|
||||
if (not.OpCode.Code != Code.Not)
|
||||
continue;
|
||||
|
||||
return true;
|
||||
if (instrs[i + 1].OpCode.Code == Code.Not)
|
||||
nots++;
|
||||
}
|
||||
|
||||
return false;
|
||||
return (nots & 1) == 1;
|
||||
}
|
||||
|
||||
bool UpdateFlags(MethodDef method, ISimpleDeobfuscator simpleDeobfuscator) {
|
||||
|
|
|
@ -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 > 27)
|
||||
if (type.Methods.Count < 3 || type.Methods.Count > 31)
|
||||
return false;
|
||||
if (DotNetUtils.GetPInvokeMethod(type, "mscoree", "StrongNameSignatureVerificationEx") != null) {
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user