Commit Graph
1719 Commits
Author SHA1 Message Date
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 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 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
Jindra Petřík c6b1e528df update license header year 2021-02-08 20:15:19 +01:00
Jindra Petřík ef143d8ede string concatenation in logger inspection 2021-02-08 20:15:19 +01:00
Jindra Petřík 2767f77a66 remove unused imports 2021-02-08 20:15:19 +01:00
Jindra Petřík 3f6fd5a3c0 removed old parts regarding for loops detection 2021-02-08 20:15:19 +01:00
Jindra Petřík 5cf8325911 fixed precontinue detector 2021-02-08 20:15:19 +01:00
Jindra Petřík bfe0fce888 new for loop continues detection 2021-02-08 20:15:19 +01:00
Jindra Petřík f8f7d00981 new for loop continues detection WIP 2021-02-08 20:15:19 +01:00
Jindra Petřík 97ee0d3433 new getmostcommon part stub 2021-02-08 20:15:19 +01:00
Jindra Petřík 47e6737422 AS3 instruction name padding is optional (can be enabled in settings/scripts)
as it may be hard to search an instruction with spaces behind it
2021-02-08 20:15:19 +01:00
Jindra Petřík 31d63eb2b3 Fixed #1206 Switch with multiple default clauses
Fixed switch(null) in some cases
2021-02-08 20:15:19 +01:00
Jindra Petřík 4fe793599c Properly escape backslash in Graphviz p-code export 2021-02-08 20:15:19 +01:00
Jindra Petřík 1c58f4cb69 Properly escape lookupswitch (brackets []) in Graphviz p-code export 2021-02-08 20:15:19 +01:00
Jindra Petřík 2bebbfad0b fixed some dup problems 2021-02-08 20:15:19 +01:00
Jindra Petřík 4dc28cdebe increments/decrements, chained assignments fixes 2021-02-08 20:15:19 +01:00
Jindra Petřík 98c2b1eba9 AS3 p-code more RAbcDasm like
- get/setlocal_x renamed to get/setlocalx
- QName casing changed from Qname

Better increment/decrement detection, chained assignments.
2021-02-08 20:15:19 +01:00
Jindra Petřík 90bf2057fe AS3 p-code more RAbcDasm like: lookupswitch caseoffsets in brackets 2021-02-08 20:15:19 +01:00
Jindra Petřík 286fb9d5e4 AS3 docs not correctly displayed under p-code when metadata present 2021-02-08 20:15:19 +01:00
Jindra Petřík 0588780b03 updated graphviz exporter 2021-02-08 20:15:19 +01:00
Jindra Petřík 4c4d173798 AS3 p-code more RAbcDasm like: commas in parameters list (WARNING: Breaks backward compatibility) 2021-02-08 20:15:19 +01:00
Jindra Petřík 7f6181360f AS3 p-code more RAbcDasm like (parenthesis after True/False/Undefined/Null trait kinds)
AS3 method trait p-code indentation
AS3 editation of body traits (slot/const only)
2021-02-08 20:15:19 +01:00
Jindra Petřík ddd2d5697b return in try 2021-02-08 20:15:19 +01:00
Jindra Petřík f4e4835f29 Fixed usages in try..finally 2021-02-08 20:15:19 +01:00
Jindra Petřík 79cf2324f9 Fixed - AS3: return in finally 2021-02-08 20:15:19 +01:00