Remove metadata token obfuscator type

This commit is contained in:
de4dot 2011-11-08 10:39:35 +01:00
parent 4e8f8a295b
commit c381423c48

View File

@ -353,6 +353,9 @@ namespace de4dot.deobfuscators.dotNET_Reactor {
dumpEmbeddedAssemblies(); dumpEmbeddedAssemblies();
} }
if (options.InlineMethods)
addTypeToBeRemoved(metadataTokenObfuscator.Type, "Metadata token obfuscator");
startedDeobfuscating = true; startedDeobfuscating = true;
} }
@ -381,10 +384,8 @@ namespace de4dot.deobfuscators.dotNET_Reactor {
removeInlinedMethods(); removeInlinedMethods();
if (options.RestoreTypes) if (options.RestoreTypes)
new TypesRestorer(module).deobfuscate(); new TypesRestorer(module).deobfuscate();
if (canRemoveDecrypterType && methodsDecrypter.Method != null) { if (canRemoveDecrypterType && methodsDecrypter.Method != null)
addTypeToBeRemoved(methodsDecrypter.Method.DeclaringType, "Decrypter type"); addTypeToBeRemoved(methodsDecrypter.Method.DeclaringType, "Decrypter type");
addTypeToBeRemoved(metadataTokenObfuscator.Type, "Metadata token obfuscator");
}
base.deobfuscateEnd(); base.deobfuscateEnd();
} }