At first, I did exactly what you said—I used regular expressions to identify patterns like _0x[0-9a-f]+ and tried to deobfuscate them. But this made the system unreadable and non-functional.
There are lines that could be part of a lookup table, so I attempted to replace function calls in the code with their real values and decode them using Base64. However, I didn’t get much success with Python.
Finally, in the extracted update files, I found a map file. Using the js.map file, I was able to access the core game files and extract all the fundamental
.js scripts. But since I haven’t worked with a game engine like Phaser before, I don’t fully understand how the system operates yet.
Right now, I’m trying to figure out how to reintegrate these extracted script files back into the game. At the same time, I’m analyzing obfuscated values, identifying what they represent, and writing code accordingly.
I have a basic understanding of coding and know how to approach things to some extent. But these are things I haven't encountered before, so I’m struggling a bit. Thanks for your information and help!