Don't deobfuscate cflow unless the method sig is void name()
This commit is contained in:
parent
dc81e94d3e
commit
b33c2834df
|
@ -57,6 +57,8 @@ namespace de4dot.code.deobfuscators.Confuser {
|
||||||
var calledMethod = instr.Operand as MethodDefinition;
|
var calledMethod = instr.Operand as MethodDefinition;
|
||||||
if (calledMethod == null)
|
if (calledMethod == null)
|
||||||
continue;
|
continue;
|
||||||
|
if (!DotNetUtils.isMethod(calledMethod, "System.Void", "()"))
|
||||||
|
continue;
|
||||||
|
|
||||||
if (checkInitMethod(calledMethod)) {
|
if (checkInitMethod(calledMethod)) {
|
||||||
initMethod = calledMethod;
|
initMethod = calledMethod;
|
||||||
|
|
|
@ -57,6 +57,8 @@ namespace de4dot.code.deobfuscators.Confuser {
|
||||||
var calledMethod = instr.Operand as MethodDefinition;
|
var calledMethod = instr.Operand as MethodDefinition;
|
||||||
if (calledMethod == null)
|
if (calledMethod == null)
|
||||||
continue;
|
continue;
|
||||||
|
if (!DotNetUtils.isMethod(calledMethod, "System.Void", "()"))
|
||||||
|
continue;
|
||||||
|
|
||||||
simpleDeobfuscator.deobfuscate(calledMethod, true);
|
simpleDeobfuscator.deobfuscate(calledMethod, true);
|
||||||
if (checkInitMethod(calledMethod)) {
|
if (checkInitMethod(calledMethod)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user