Remove method decrypter type and init method call

This commit is contained in:
de4dot 2012-07-27 08:23:55 +02:00
parent 74970e80ff
commit 38d94819ee
2 changed files with 13 additions and 0 deletions

View File

@ -151,6 +151,11 @@ namespace de4dot.code.deobfuscators.Confuser {
public override void deobfuscateBegin() {
base.deobfuscateBegin();
if (jitMethodsDecrypter != null) {
addModuleCctorInitCallToBeRemoved(jitMethodsDecrypter.InitMethod);
addTypeToBeRemoved(jitMethodsDecrypter.Type, "Method decrypter (JIT) type");
}
proxyCallFixer.find();
}

View File

@ -50,6 +50,14 @@ namespace de4dot.code.deobfuscators.Confuser {
public int options;
}
public MethodDefinition InitMethod {
get { return initMethod; }
}
public TypeDefinition Type {
get { return initMethod != null ? initMethod.DeclaringType : null; }
}
public bool Detected {
get { return initMethod != null; }
}