Don't load method bodies if --no-cflow-deob is used and no types removed

This commit is contained in:
de4dot 2011-12-26 20:30:30 +01:00
parent 0a4fb0619b
commit f88d57a206

View File

@ -516,6 +516,13 @@ namespace de4dot.code {
}
deob.DeobfuscatedFile = null;
if (!options.ControlFlowDeobfuscation) {
// If it's the unknown type, we don't remove any types that could cause Mono.Cecil
// to throw an exception.
if (deob.Type == "un" || options.KeepObfuscatorTypes)
return;
}
Log.v("Deobfuscating methods");
var methodPrinter = new MethodPrinter();
var cflowDeobfuscator = new BlocksCflowDeobfuscator { InlineMethods = deob.CanInlineMethods };