Trying to get deob running again. Somethings broken.

This commit is contained in:
Adam
2016-02-27 16:32:22 -05:00
parent 6eeeaf0716
commit 63272b915b

View File

@@ -24,7 +24,7 @@ public class Deob
{ {
public static void main(String[] args) throws IOException public static void main(String[] args) throws IOException
{ {
merge(); if(true) return; //merge(); if(true) return;
long start = System.currentTimeMillis(); long start = System.currentTimeMillis();
@@ -52,8 +52,8 @@ public class Deob
// // remove unused parameters // // remove unused parameters
// run(group, new UnusedParameters()); // run(group, new UnusedParameters());
// //
// remove unused fields // // remove unused fields
run(group, new UnusedFields()); // run(group, new UnusedFields());
// //
// // remove unused methods, again? // // remove unused methods, again?
// run(group, new UnusedMethods()); // run(group, new UnusedMethods());
@@ -71,30 +71,26 @@ public class Deob
//// //new FieldMover().run(group); //// //new FieldMover().run(group);
// //
// run(group, new UnusedClass()); // run(group, new UnusedClass());
//
// ModArith mod = new ModArith();
// mod.run(group);
//
// int last = -1, cur;
// while ((cur = mod.runOnce()) > 0)
// {
// new MultiplicationDeobfuscator().run(group);
//
// new MultiplyOneDeobfuscator().run(group);
//
// new MultiplyZeroDeobfuscator().run(group);
//
// if (last == cur)
// break;
//
// last = cur;
// }
//
// mod.annotateEncryption();
// eval constant fields (only set once to a constant in ctor) maybe just inline them ModArith mod = new ModArith();
mod.run(group);
// make fields private int last = -1, cur;
while ((cur = mod.runOnce()) > 0)
{
new MultiplicationDeobfuscator().run(group);
new MultiplyOneDeobfuscator().run(group);
new MultiplyZeroDeobfuscator().run(group);
if (last == cur)
break;
last = cur;
}
mod.annotateEncryption();
JarUtil.saveJar(group, new File(args[1])); JarUtil.saveJar(group, new File(args[1]));