[Help: Android]Pocket All Star/Chaos Fighters 2 .lua

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
craftersshaft
Posts: 3
Joined: Tue Jul 31, 2018 2:02 pm

[Help: Android]Pocket All Star/Chaos Fighters 2 .lua

Post by craftersshaft »

Hi everyone, I am wondering if it is possible to make a QuickBMS script for code from Pocket All Star/Chaos Fighters 2, and hopefully a way to re-encrypt it. There does exist some decompiled code (possibly source code from a version) that might be able to help: https://github.com/momoxiaoming/51_js/

Encrypted code should be attached, but is also found here: https://drive.google.com/file/d/1BIkpvG ... sp=sharing

Thanks!
craftersshaft
Posts: 3
Joined: Tue Jul 31, 2018 2:02 pm

Re: [Help: Android]Pocket All Star/Chaos Fighters 2 .lua

Post by craftersshaft »

Unsure if this needs to be moved to code talk, didn't post it there cause i wasnt sure if it was for decompiling code but if anyone knows how to help with this let me know.
lisomn
Posts: 40
Joined: Thu Jan 11, 2018 7:14 am

Re: [Help: Android]Pocket All Star/Chaos Fighters 2 .lua

Post by lisomn »

Code: Select all

idstring "abcd"
goto 0x4
endian big
get key long
math key - 0x800
filexor key
get out_name BASENAME
get out_ex EXTENSION
get out_size ASIZE
math out_size - 8
string out_name + ".dec."
string out_name + out_ex
log out_name 8 out_size

tada 8-)
craftersshaft
Posts: 3
Joined: Tue Jul 31, 2018 2:02 pm

Re: [Help: Android]Pocket All Star/Chaos Fighters 2 .lua

Post by craftersshaft »

I'm very late to reply, but thank you so much! Is there a way to use this to recompress files too? kinda struggling on figuring it out myself but it's fine if it can't be made immediately