This commit is contained in:
Adam
2015-09-07 17:07:02 -04:00
parent f46e4dfdce
commit 2ea00d654f
2 changed files with 17 additions and 5 deletions

View File

@@ -90,7 +90,18 @@ public class PutStatic extends Instruction implements SetFieldInstruction
return true;
}
if (ctx.getInstruction() instanceof InvokeInstruction)
// if (ctx.getInstruction() instanceof InvokeInstruction)
// return false;
//
// if (ctx.getInstruction() instanceof IDiv)
// return false;
boolean ok = ctx.getInstruction() instanceof IAdd ||
ctx.getInstruction() instanceof ISub ||
ctx.getInstruction() instanceof IMul ||
ctx.getInstruction() instanceof SetFieldInstruction;
if (!ok)
return false;
boolean multipleBranches = ctx.getInstruction() instanceof IAdd || ctx.getInstruction() instanceof ISub;

View File

@@ -273,13 +273,14 @@ public class ModArith implements Deobfuscator
reduce();
int i = 0;
for (Pair pair : pairs)
int start = 0, end = 32; // 24 32 ok
for (int j = start; j < end; ++j)
//for (Pair pair : pairs)
{
Pair pair = pairs.get(j);
Field field = pair.field;
System.out.println("Processing " + field.getName() + " getter " + pair.getter + " setter " + pair.setter);
if (i > 0) // 2
break;
System.out.println("Processing " + field.getName() + " getter " + pair.getter + " setter " + pair.setter);
Encryption encr = new Encryption();
encr.addPair(pair);