diff --git a/de4dot.code/deobfuscators/Confuser/AntiDebugger.cs b/de4dot.code/deobfuscators/Confuser/AntiDebugger.cs index b9662f9c..ce067efa 100644 --- a/de4dot.code/deobfuscators/Confuser/AntiDebugger.cs +++ b/de4dot.code/deobfuscators/Confuser/AntiDebugger.cs @@ -57,6 +57,8 @@ namespace de4dot.code.deobfuscators.Confuser { var calledMethod = instr.Operand as MethodDefinition; if (calledMethod == null) continue; + if (!DotNetUtils.isMethod(calledMethod, "System.Void", "()")) + continue; if (checkInitMethod(calledMethod)) { initMethod = calledMethod; diff --git a/de4dot.code/deobfuscators/Confuser/AntiDumping.cs b/de4dot.code/deobfuscators/Confuser/AntiDumping.cs index d75602cc..fcccf25f 100644 --- a/de4dot.code/deobfuscators/Confuser/AntiDumping.cs +++ b/de4dot.code/deobfuscators/Confuser/AntiDumping.cs @@ -57,6 +57,8 @@ namespace de4dot.code.deobfuscators.Confuser { var calledMethod = instr.Operand as MethodDefinition; if (calledMethod == null) continue; + if (!DotNetUtils.isMethod(calledMethod, "System.Void", "()")) + continue; simpleDeobfuscator.deobfuscate(calledMethod, true); if (checkInitMethod(calledMethod)) {