Commit Graph

65 Commits

Author SHA1 Message Date
Adam
57b9a45871 appears to work 2015-08-02 21:46:24 -04:00
Adam
1ac0cef696 these const push instructions are also push instructions. need to fix jumps to the logically dead conditionals. 2015-08-02 11:50:20 -04:00
Adam
516fa7805f I dont know if this works or is correct but it runs? 2015-08-01 21:35:02 -04:00
Adam
7ce6cca104 this doesn't work at all but looks bette 2015-07-31 23:48:35 -04:00
Adam
5478fc7385 Start of constant parameter stuff 2015-07-30 16:39:48 -04:00
Adam
f27e410f5b Fix rename unique, renaming fields depends on classgraph for searching deep for fields 2015-07-28 16:48:03 -04:00
Adam
fda37792ff Seeing something weird with invokestatic methods on non static methods? 2015-07-26 21:36:19 -04:00
Adam
30e29a52ab rename unique works 2015-07-26 14:15:52 -04:00
Adam
ba5ecc5c6c Fix multianewarray class renaming 2015-07-13 08:49:49 -04:00
Adam
b7d4d4981f Debugging stuff. 2015-07-12 21:43:40 -04:00
Adam
ec50303962 Fix up jump inlining, this causes linear scans of the instructions for a
lot of exceptions and is slow. Need to allow inlining in try blocks?
2015-07-12 00:15:45 -04:00
Adam
3fbb69e102 Fixes to unique rename, just use getMethods() instead of comparing names 2015-07-11 13:34:32 -04:00
Adam
e263694eac Rest of rename unique. Untested but asm looks ok. 2015-07-11 11:33:40 -04:00
Adam
b03a0e3181 Rename unique non overriden methods 2015-07-10 22:00:12 -04:00
Adam
df11cdaded Rename unique fields 2015-07-10 11:29:46 -04:00
Adam
5781f08152 Beginning work of rename unique, now renames classes 2015-07-09 20:56:44 -04:00
Adam
c92387e089 Remove pool entry pool reference 2015-07-07 12:49:37 -04:00
Adam
bfcfaa84e6 This doesn't really work but it's a start. 2015-07-05 17:10:44 -04:00
Adam
7b0776d1ec more arith deob 2015-07-02 17:07:57 -04:00
Adam
91f189add1 fix unused methods again 2015-06-28 20:45:01 -04:00
Adam
b0f5f33e89 Fixup rest of unused method stuff. It appears there are some garbage
fields too places.
2015-06-28 19:32:54 -04:00
Adam
d9f4d257a5 wip removal of unused methods based on execution from init. 2015-06-27 23:47:43 -04:00
Adam
dfcc41b41c I will need to actually perform method invocations during execution to
be able to pass/get the correct underlying types of variables for the
virtual method lookup.
2015-06-26 13:19:51 -04:00
Adam
0543950013 I think my invokevirtual execution is wrong because it doesn't actually
look for virtual methods on the type, which is why my unused method deob
does weird things. I am seeing methods that still exist after running it
that appear to be using non-inversible constants.
2015-06-25 19:07:46 -04:00
Adam
1eee5a48ae store pushes in instruction context too 2015-06-24 14:48:30 -04:00
Adam
85fc94dd57 Thinking on modinverse 2015-06-23 19:29:32 -04:00
Adam
815b2e2931 works. splitting blocks by instructions jumped to and not checking
whether inlinable blocks were terminal.
2015-06-20 18:39:40 -04:00
Adam
713db7777f remove stack of ifs in illegal state ex deob, get rid of using pcs in
frame to execute, need to remove more of this later, make jumps jump to
instructions, doesn't yet work
2015-06-20 17:56:46 -04:00
Adam
98d85c646b illegal state exception deob, ff doesnt fully like it yet though 2015-06-19 23:30:03 -04:00
Adam
d3142d83ce Simplify jump deob, just destroy and rebuld jump graph instead of trying
to update it which sucks.
2015-06-18 16:49:47 -04:00
Adam
cb172775d4 Don't try and move jumps around in exceptions 2015-06-17 19:03:00 -04:00
Adam
db6269ba7e debugging, idr, exception handler execution support 2015-06-13 21:51:06 -04:00
Adam
3140a51f3f Conflicts:
src/main/java/info/sigterm/deob/Deob.java
	src/main/java/info/sigterm/deob/attributes/code/Instructions.java
2015-06-13 11:09:34 -04:00
Adam
a677e64aac Remove unused parameters 2015-06-13 11:01:46 -04:00
Adam
eb986ba708 Eclipse code cleanup 2015-05-31 16:04:57 -04:00
Adam
0fcbcd262c new execute stuff 2015-05-31 16:03:37 -04:00
Adam
1e34e0ec66 Remove instructions correctly 2015-05-11 10:26:48 -04:00
Adam
64d41c6f92 Cleanup block removal 2015-05-11 10:25:00 -04:00
Adam
fa3e9c0262 Hard to follow, exception removal and unused block (only from the now
removed exceptions from what I can tell)
2015-05-10 16:42:47 -04:00
Adam
4af719032d Allow pool to be dynamically rebuilt 2015-05-09 17:00:30 -04:00
Adam
0d21d49d2d Can detect unused parameters 2015-05-05 13:36:54 -04:00
Adam
e70466fc0a Add local var table instruction type and make relevant instructions
implement it
2015-05-04 15:36:38 -04:00
Adam
a9f953b46a Class writing, call graph, eclipse project 2015-04-25 12:47:06 -04:00
Adam
4dc6bfc949 Doesn't execute all paths correctly 2015-02-08 16:35:58 -05:00
Adam
d00e5b03e1 Doesn't work and I don't know why 2015-02-01 22:19:28 -05:00
Adam
027dc6eff9 Some thinking about exceptions 2015-02-01 21:15:14 -05:00
Adam
e38b4c5212 More execution work 2015-02-01 17:49:33 -05:00
Adam
cec4f0ac59 getObject on String should really just return the string 2015-01-26 02:25:42 -05:00
Adam
55dca4fa9b Executor work 2015-01-26 00:40:54 -05:00
Adam
a998491133 Invokeinterface, among others 2014-12-09 02:00:19 -05:00