AngeloD2022 / jsxer

Jsxer is a fast and accurate decompiler for Adobe ExtendScript Binary (JSXBIN) files, featuring JSXBlind deobfuscation.
GNU Affero General Public License v3.0
169 stars 29 forks source link

Decompiled Statements appear out of order. #86

Closed ycancook closed 1 year ago

ycancook commented 1 year ago

Thanks admin for sharing. Decompiles small files well, But jsxbin files over 100kb cannot be decompiled, the translated file is reversed with functions and variables

ycancook commented 1 year ago

https://drive.google.com/drive/folders/12Ixz6fcaqU8_EzQ-z1kQkkJ-RILi-jYD

AngeloD2022 commented 1 year ago

The statements appear out of order but not quite in reverse order. Thanks for letting me know about this.

psyirius commented 1 year ago

I don't think it is a big. It's how the js is compiled and read after. it's part of the EcmaScript(js) engine's parsing and execution flow.

Global objects like functions doesn't need to be in order to reference it in pre or post line. Unlike C, EcmaScript(js) doesn't need a forward declaration. the EcmaScript engine doesn't keep track of the function object's order when parsing from the source.