AS1/2 better deobfuscation

This commit is contained in:
Jindra Petk
2013-03-23 22:58:54 +01:00
parent 74029e0915
commit d549856d49
9 changed files with 99 additions and 13 deletions

View File

@@ -291,6 +291,12 @@ public class ActionGraph extends Graph {
caseCommands.add(cc);
}
ret = new ArrayList<GraphTargetItem>();
if (!output.isEmpty()) {
if (output.get(output.size() - 1) instanceof StoreRegisterTreeItem) {
output.remove(output.size() - 1);
}
}
ret.addAll(output);
SwitchItem sti = new SwitchItem(null, currentLoop, switchedObject, caseValues, caseCommands, defaultCommands, valuesMapping);
ret.add(sti);