Commit Graph

1812 Commits

Author SHA1 Message Date
Jindra Petřík
bca83c3bb4 try..catch vs loops 2021-02-08 20:15:19 +01:00
Jindra Petřík
7644eddfd3 try to improve try..catch vs loops 2021-02-08 20:15:19 +01:00
Jindra Petřík
72f0c66aa7 ignoring && true, || false 2021-02-08 20:15:19 +01:00
Jindra Petřík
d1d1d7ba58 try..catch..finally: fix empty exception list 2021-02-08 20:15:19 +01:00
Jindra Petřík
32aa76f0f3 Fix try..catch..finally when there is no exit from try block. 2021-02-08 20:15:19 +01:00
Jindra Petřík
fa3b507a17 AS3 deobfuscator - use pop on simple values as deobfuscatepop 2021-02-08 20:15:19 +01:00
Jindra Petřík
930e956ad5 Fixed AS3 deobfuscator on &&, || operators 2021-02-08 20:15:19 +01:00
Jindra Petřík
9e07695427 Fixed AS3: try..catch in do..while vs do..while in try..catch 2021-02-08 20:15:19 +01:00
Jindra Petřík
2a3811cc30 Fixed #735 AS3 - index out of bounds in deobfuscator 2021-02-08 20:15:19 +01:00
Jindra Petřík
b8fbac7505 Do not pop stack in try 2021-02-08 20:15:19 +01:00
Jindra Petřík
0e813bd896 AS3 Fix and/or in try clause 2021-02-08 20:15:19 +01:00
Jindra Petřík
34b69e83c3 AS3 try..catch..finally fixes 2021-02-08 20:15:19 +01:00
Jindra Petřík
e37e6b7d9a AS3 deobfuscator - remove push simple, not, pop. 2021-02-08 20:15:19 +01:00
Jindra Petřík
b7bb8e9ff8 GraphViz graph diplay - exception ends marked on end of previous part.
Lines of exception edges are dashed.
2021-02-08 20:15:19 +01:00
Jindra Petřík
43885a1a40 #349 AS3 - better handling of declarations 2021-02-08 20:15:19 +01:00
Jindra Petřík
6f19d50572 added air as3 test
as3 decompile tests moved to special directory
2021-02-08 20:15:19 +01:00
Jindra Petřík
b966f9bee5 properly remove temp register of dot parent operator 2021-02-08 20:15:19 +01:00
Jindra Petřík
866c32be83 not inlining setlocal..getlocal, better increment/decrement property support 2021-02-08 20:15:19 +01:00
Jindra Petřík
e7e3ed3e5c fixed assembly generator 2021-02-08 20:15:19 +01:00
Jindra Petřík
18eb89dcad Fixed - AS3 deobfuscator in some cases - removing zerojumps and null pushes again
Improper try not using stack.
2021-02-08 20:15:19 +01:00
Jindra Petřík
a0022ff3b1 AS3 allow exception start/end to not match instruction boundary 2021-02-08 20:15:19 +01:00
Jindra Petřík
3df1ac57d8 AS3 deobfuscator of registers parsing of exception targets 2021-02-08 20:15:19 +01:00
Jindra Petřík
37376661f4 register usage detection - do not walk dead code 2021-02-08 20:15:19 +01:00
Jindra Petřík
ad1a0ccdc8 renamed new as3 test swfs to have as3 prefix and unique SWF name 2021-02-08 20:15:19 +01:00
Jindra Petřík
26b51d2e95 renamed new as3 test swfs to have as3 prefix and unique SWF name 2021-02-08 20:15:19 +01:00
Jindra Petřík
347648c77e improved local register usage detection / try..catch..finally 2021-02-08 20:15:19 +01:00
Jindra Petřík
55f0512761 Try..catch..finally in ASC2 - correct default branch detection 2021-02-08 20:15:19 +01:00
Jindra Petřík
411d8de772 Fixed: Incorrectly colliding class names detection on script private classes 2021-02-08 20:15:19 +01:00
Jindra Petřík
8d8c6cce05 Better namespace handling 2021-02-08 20:15:19 +01:00
Jindra Petřík
d7d6abb0c0 Fixed: Get property dups and register usage for namespaces 2021-02-08 20:15:19 +01:00
Jindra Petřík
f6744eafb9 Fixed: Try..catch.finally vs loops 2021-02-08 20:15:19 +01:00
Jindra Petřík
8878940754 Fixed: Dot parent operator not detected in some cases 2021-02-08 20:15:19 +01:00
Jindra Petřík
1a4013ef5f Postincrement/decrement property in ASC2 2021-02-08 20:15:19 +01:00
Jindra Petřík
eb37e6b0b4 Preincrement/decrement propety in ASC2 2021-02-08 20:15:19 +01:00
Jindra Petřík
8de1230bf9 Precontinue detector handles do..while properly. 2021-02-08 20:15:19 +01:00
Jindra Petřík
b432037bf8 Fixed diplicate refs on graph creation 2021-02-08 20:15:19 +01:00
Jindra Petřík
d03c64d43d Fixed and+dowhile on ASC2 - precontinue can use stack. 2021-02-08 20:15:19 +01:00
Jindra Petřík
d6cdd54a94 Fixed precontinue detector - incorrectly merged ifs 2021-02-08 20:15:19 +01:00
Jindra Petřík
16cceb3862 usage of exception in catch through register 2021-02-08 20:15:19 +01:00
Jindra Petřík
1a393854c0 try..catch..finally of SWFTools AS3Compile 2021-02-08 20:15:19 +01:00
Jindra Petřík
0a7f39b82c Improved tests.
Fixed try..catch..finally.
2021-02-08 20:15:19 +01:00
Jindra Petřík
dbe998cf8a push value in finally return fix 2021-02-08 20:15:19 +01:00
Jindra Petřík
63a7a1b049 try..catch..finally in ASC2 2021-02-08 20:15:19 +01:00
Jindra Petřík
420f84d155 better try..catch..finally detection 2021-02-08 20:15:19 +01:00
Jindra Petřík
861ad4dfad putting Jacoco code coverage back in 2021-02-08 20:15:19 +01:00
Jindra Petřík
f738e3b22b correct continue in if handling,
move continue down if possible (invert expression of if when needed)
2021-02-08 20:15:19 +01:00
Jindra Petřík
bc6e8770c1 Dup in call fix 2021-02-08 20:15:19 +01:00
Jindra Petřík
e68cf59d5f Fixed switch local reg not properly recognized in some cases 2021-02-08 20:15:19 +01:00
Jindra Petřík
ee47975c19 Fixed ASC2 §§push of function calls before returning from a method 2021-02-08 20:15:19 +01:00
Jindra Petřík
179f2a7602 add §§push if something left on stack before ExitItem (return, throw) 2021-02-08 20:15:19 +01:00