Important information: this site is currently scheduled to go offline indefinitely by end of the year.

PAC Obfuscated Archive Format - Bike Banditz (Japanese 2D SHMUP game from 2003)

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
Habanero
n00b
Posts: 19
Joined: Wed May 01, 2019 7:36 pm
Been thanked: 2 times

PAC Obfuscated Archive Format - Bike Banditz (Japanese 2D SHMUP game from 2003)

Post by Habanero »

Hello. I would like to extract the two PAC files present in this MEGA folder (mainly to get the audio). I've included the filecutter results as well. I don't recognize any headers in HxD (looks like gibberish). Just for the hell of it, I tried the scripts on the QuickBMS page that have "pac" in them (none worked, of course).

https://mega.nz/folder/I9QBkKrQ#W3rQGAyJ05_5cL7rVq4yDg

I originally asked on Zenhax, and aluigi replied:
aluigi wrote:There is some obfuscation in place.

32bit equal to one, followed by 0x40 bytes xored with 0x40 (example of GameData.pac):

Code: Select all

ba b1 8a 56 42 45 53 45 30 30 2e 49 4d 47 00 00   ...VBESE00.IMG..
7e e9 d1 77 00 00 40 00 60 90 39 01 f6 0c 10 00   ~..w..@.`.9.....
90 e9 d1 77 60 90 39 01 00 00 40 00 10 1f 54 00   ...w`[email protected].
00 00 40 00 00 00 00 00 c0 ff 12 00 43 b2 82 56   [email protected]
Followed by a 32bit offset field but not sure what's the content from 0x48 to that offset, it's for sure xored with the same 0xac since there are some readable strings there.
I suppose it's compressed with some lzss algorithm and this reminds me of some game that used that algorithm with the data of the copy opcode xored with some constant that (if I remember correctly) was just 0xac.

Unfortunately I don't remember what was the game or maybe I'm confusing it with the lzss used in Allegro which uses xor on the flag and repeated characters.
So I wanted to crosspost here for more exposure. The game is really fun, and there are only a few menu images that need to be translated, so I want to try and get that out to give this game more exposure. In the meantime I'll just write a chart with quick instructions. Thank you for any assistance.
Habanero
n00b
Posts: 19
Joined: Wed May 01, 2019 7:36 pm
Been thanked: 2 times

Re: PAC Obfuscated Archive Format - Bike Banditz (Japanese 2D SHMUP game from 2003)

Post by Habanero »

To update this, in case anyone was wondering: the audio is just a bunch of RIFF headers, easily extracted with VGM Toolbox. No luck on the texture/sprite extraction though.
Post Reply