Update EncryptedResource.cs

This commit is contained in:
XODE0 2016-03-19 16:26:05 +01:00
parent f6a107c9bf
commit 38cfc6507a

View File

@ -315,7 +315,7 @@ namespace de4dot.code.deobfuscators.dotNET_Reactor.v4 {
if (instrs[i + 3].OpCode.Code != Code.Add) if (instrs[i + 3].OpCode.Code != Code.Add)
continue; continue;
int newEndIndex = i + 3; int newEndIndex = i + 3;
int newStartIndex = 0; int newStartIndex = -1;
for (int x = newEndIndex; x > 0; x--) for (int x = newEndIndex; x > 0; x--)
if (instrs[x].OpCode.FlowControl != FlowControl.Next) { if (instrs[x].OpCode.FlowControl != FlowControl.Next) {
newStartIndex = x + 1; newStartIndex = x + 1;