Disassemble/Decompile LuaJIT bytecodes?

kirorokun

New User
4
03/30/18
1
Thread Author
I've been poking around Law of Creation (https://play.google.com/store/apps/details?id=com.ubj.zwfzgp&hl=en) for a whie. I've got into the point where I could decypt all the encrypted asstes files, including luac files. Just when i thought i got all the things right, luac decryted files don't have printable characters as I'm expecting. All of them have this same headers, "\x1b\x4c\x4a\x01\x02". This turns out a LuaJIT bytecode header. After google-ing for a while, the one I found on google can't cover this type of LuaJIT files. I don't have time to analyze LuaJIT at the time, so anyone here have some clues about this?
 
On second thought, I didn't know LuaJIT has built-in disassembler. Using luajit -bl path/to/file.luac, Now, the only missing step is to modify the bytecodes, this could've been done if there's any encoder for LuaJIT bytecodes. Probably I'll just modify somethings to LuaJIT itself.
 
Back
Top Bottom