public MethodsDecrypter(ModuleDef module, DecrypterInfo decrypterInfo) { this.module = module; this.decrypterInfo = decrypterInfo; }
public StringDecrypter(DecrypterInfo decrypterInfo) { this.decrypterInfo = decrypterInfo; }
void FreePEImage() { if (decrypterInfo != null) decrypterInfo.Dispose(); decrypterInfo = null; }
public override IDeobfuscator ModuleReloaded(ModuleDefMD module) { var newOne = new Deobfuscator(options); newOne.SetModule(module); newOne.mainType = new MainType(module, mainType); newOne.decrypterInfo = decrypterInfo; decrypterInfo = null; if (newOne.decrypterInfo != null) newOne.decrypterInfo.mainType = newOne.mainType; return newOne; }
public override bool GetDecryptedModule(int count, ref byte[] newFileData, ref DumpedMethods dumpedMethods) { if (count != 0 || !mainType.Detected) return false; var fileData = DeobUtils.ReadModule(module); decrypterInfo = new DecrypterInfo(mainType, fileData); var methodsDecrypter = new MethodsDecrypter(module, decrypterInfo); if (!methodsDecrypter.Decrypt(ref dumpedMethods)) return false; newFileData = fileData; return true; }
public MethodsDecrypter(DecrypterInfo decrypterInfo) { this.decrypterInfo = decrypterInfo; }