From 8808c049f1aced1699ec1326b96d91d76358beab Mon Sep 17 00:00:00 2001 From: de4dot Date: Mon, 21 Oct 2013 07:19:39 +0200 Subject: [PATCH] Clear old data if we re-try decryption --- de4dot.code/deobfuscators/MaxtoCode/MethodsDecrypter.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/de4dot.code/deobfuscators/MaxtoCode/MethodsDecrypter.cs b/de4dot.code/deobfuscators/MaxtoCode/MethodsDecrypter.cs index 179aca66..ea296afc 100644 --- a/de4dot.code/deobfuscators/MaxtoCode/MethodsDecrypter.cs +++ b/de4dot.code/deobfuscators/MaxtoCode/MethodsDecrypter.cs @@ -284,6 +284,7 @@ namespace de4dot.code.deobfuscators.MaxtoCode { var encryptedDataInfos = new byte[numEncryptedDataInfos][]; uint offset = 8; + infos.Clear(); for (int i = 0; i < numMethods; i++, offset += structSize) { uint methodBodyRva = ReadEncryptedUInt32(offset); uint totalSize = ReadEncryptedUInt32(offset + 4);