Remove string decrypter type and allow static + dynamic decryption

This commit is contained in:
de4dot 2011-10-23 09:07:47 +02:00
parent 78397f9c4f
commit 9ad15e63e4
2 changed files with 6 additions and 0 deletions

View File

@ -82,6 +82,7 @@ namespace de4dot.deobfuscators.CryptoObfuscator {
public Deobfuscator(Options options)
: base(options) {
this.options = options;
StringFeatures = StringFeatures.AllowStaticDecryption | StringFeatures.AllowDynamicDecryption;
}
public override void init(ModuleDefinition module) {
@ -179,6 +180,7 @@ namespace de4dot.deobfuscators.CryptoObfuscator {
addTypeToBeRemoved(assemblyResolver.ResolverType, "Assembly resolver type");
addTypeToBeRemoved(tamperDetection.TamperType, "Tamper detection type");
addTypeToBeRemoved(antiDebugger.AntiDebuggerType, "Anti-debugger type");
addTypeToBeRemoved(stringDecrypter.StringDecrypterType, "String decrypter type");
dumpEmbeddedAssemblies();
}

View File

@ -33,6 +33,10 @@ namespace de4dot.deobfuscators.CryptoObfuscator {
get { return stringDecrypterType != null; }
}
public TypeDefinition StringDecrypterType {
get { return stringDecrypterType; }
}
public MethodDefinition StringDecrypterMethod {
get { return stringDecrypterMethod; }
}