Update detection of ASN code

This commit is contained in:
de4dot 2011-12-22 19:03:33 +01:00
parent 1a1350410a
commit 63648a9505

View File

@ -78,9 +78,9 @@ namespace de4dot.code.deobfuscators.dotNET_Reactor.v3 {
index = 0;
if (!instrs[index++].isLdcI4())
return false;
if (instrs[index].OpCode.Code != Code.Stloc_S)
if (!instrs[index].isStloc())
return false;
var local = instrs[index++].Operand as VariableDefinition;
var local = Instr.getLocalVar(blocks.Locals, instrs[index++]);
if (local == null)
return false;
if (!checkLdloc(blocks.Locals, instrs[index++], local))