Dump embedded assemblies before decrypting methods

This commit is contained in:
de4dot 2012-01-18 07:53:06 +01:00
parent 49c06dec64
commit ff6a8d4b6f

View File

@ -190,9 +190,14 @@ namespace de4dot.code.deobfuscators.Babel_NET {
}
}
if (options.DumpEmbeddedAssemblies)
if (options.DumpEmbeddedAssemblies) {
assemblyResolver.initialize(DeobfuscatedFile, this);
// Need to dump the assemblies before decrypting methods in case there's a reference
// in the encrypted code to one of these assemblies.
dumpEmbeddedAssemblies();
}
if (options.DecryptMethods) {
methodsDecrypter.initialize(DeobfuscatedFile, this);
methodsDecrypter.decrypt();
@ -213,7 +218,6 @@ namespace de4dot.code.deobfuscators.Babel_NET {
doubleValueInliner.add(constantsDecrypter.DoubleDecrypter, (method, args) => constantsDecrypter.decryptDouble((int)args[0]));
}
dumpEmbeddedAssemblies();
proxyDelegateFinder.find();
}