webcrack
webcrack copied to clipboard
ReferenceError: <variable> is not defined
Describe the bug
webcrack crashes when deobfuscating this file (I haven't found a single js deobfuscator that is able to resolve all obfuscated function calls)
Expected Behaviour
Not crash
Code
Logs
Simpler example. Only works if we move the empty function and defineProperty variable into the inner deobfuscate function.
Will throw the same error if this is not done, so it's likely the same reason the larger codebase is also failing to deobfuscate.
The simpler script works fine in node.
Replacing __p_0675685366 with (() => {}) and __p_8649819683 with Object.defineProperty will prevent the errors but the resolving of obfuscation functions still doesn't really work.