Please help! Trying to extract *.bin archive

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Rainbow-in-a-jar
Posts: 7
Joined: Tue May 21, 2019 11:29 am

Please help! Trying to extract *.bin archive

Post by Rainbow-in-a-jar »

Hello! I'm new here, so I don't know if this is the right place to ask, but I'll try.
I'm (desperately) trying to extract the main archive of the game Ray Gigant, it's a 3,99 GB .bin file. Besides this one there are 7 other .bin files which contain the movies, I was able to extract these with a random data extractor, which makes me think these .bin files are neither compressed nor encrypted, but I may be wrong about the big one. The sound is contained within *.xsb/*.xwb pairs of files, I was able to extract them using Luigi's unxwb tool. The game was ported from the PSVITA, if that helps.
I tried various bms scripts, and one of them seemed like it might work (south_park_letsgo_bin.bms), but it gave me a "memory allocation" error. I thought it might be because the file is too big, so I used quickbms_4gb_files.exe and tried disabling XDBG_ALLOC_ACTIVE, but to no avail. At this point I don't know if it is an issue with the size or the format of the file.
I've already tried everything I could think of, please help!
Thank you!

EDIT (More specific info): I don't know if it's relevant, but I guess I'll write some more, hoping someone will answer.
Besides the game .exe, in the same folder there's a cert.bin file, magic numer 4D 5A/"MZ" (DOS executable?).
The biggest archive is called data00.bin, and doesn't have a recognizable magic number (B8 A6 D6 D7 FE CB BC FD ...), but the other dataXX.bin files are Windows Media Audio|Video File (30 26 B2 75 ...). So, I wonder if data00.bin is either encrypted or raw/doesn't have "special numbers"?

Please help me, guys, I'm far from being an expert in this field >_<
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Please help! Trying to extract *.bin archive

Post by aluigi »

We need the archive for analysis.
Since it's very big, use the following script for generating the 2 files to upload:
http://aluigi.org/bms/filecutter.bms
Rainbow-in-a-jar
Posts: 7
Joined: Tue May 21, 2019 11:29 am

Re: Please help! Trying to extract *.bin archive

Post by Rainbow-in-a-jar »

Thank you! I'll send the link once I'm able to upload it!

EDIT: Hmm, I tried splitting the file, but it gives me two 2MB files (with both quickbms.exe and quickbms_4gb_files.exe). Are these files something like snippets, should I upload them?

EDITx2: Okay, sorry for being a noob... Here you go: https://www.dropbox.com/sh/i2mg0x9ejesw ... mXzRa?dl=0
Last edited by Rainbow-in-a-jar on Tue Jun 04, 2019 4:08 pm, edited 1 time in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Please help! Trying to extract *.bin archive

Post by aluigi »

I guess files are all obfuscated, not much to do
Rainbow-in-a-jar
Posts: 7
Joined: Tue May 21, 2019 11:29 am

Re: Please help! Trying to extract *.bin archive

Post by Rainbow-in-a-jar »

Thank you for taking the time to check it!
Hmm, that's weird, every other game file is not encrypted/obfuscated, so why only that one? I was hoping somebody could recognize the engine it was made with/ported to, since the sound is in a known format, and I could work something out starting from there.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Please help! Trying to extract *.bin archive

Post by aluigi »

Maybe the weird pattern I see is related to images.
For sure there are no tables with information about the archived files, maybe they are in an index file in the same folder?
Rainbow-in-a-jar
Posts: 7
Joined: Tue May 21, 2019 11:29 am

Re: Please help! Trying to extract *.bin archive

Post by Rainbow-in-a-jar »

What could be a likely file to be an index file? The game folder is structured like this: there's the game .exe, there's a cert.bin file which is actually a DOS executable, then cg.dll, cgGL.dll, steam_api.dll. Then there's the common redistributables folder and the data folder. Inside the data folder, there are dataXX.bin files (XX = 00-07), and a folder called sound, containing bgm.xsb, bgm.xwb, se.xsb, se.xwb, soung.xgs, voice.xsb, voice.xwb.
And that's everything. Is there a chance one of those files has info on what data00.bin contains? That cert.bin file has lots of readable information, actually, but I have no idea whether it is related.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Please help! Trying to extract *.bin archive

Post by aluigi »

Uhmm probably that cert.bin is unrelated but it's worth to try.
I don't see other interesting files in those you listed.
Rainbow-in-a-jar
Posts: 7
Joined: Tue May 21, 2019 11:29 am

Re: Please help! Trying to extract *.bin archive

Post by Rainbow-in-a-jar »

I know right? I've never messed with a game that has so few files and gave me so many problems before...
I've been going through that cert.bin file with HxD for a while now, but it doesn't seem like it has anything useful (but that may be me being a noob).
If you feel like taking a quick glance at it sometime, I'd be very grateful. I uploaded it here: https://www.dropbox.com/s/p6yb3iln91v10de/cert.bin?dl=0
Rainbow-in-a-jar
Posts: 7
Joined: Tue May 21, 2019 11:29 am

Re: Please help! Trying to extract *.bin archive

Post by Rainbow-in-a-jar »

Hmm, I just discovered that the game .exe also starts off with MZ
Rainbow-in-a-jar
Posts: 7
Joined: Tue May 21, 2019 11:29 am

Re: Please help! Trying to extract *.bin archive

Post by Rainbow-in-a-jar »

It looks like the game .exe has more information, and it actually seems relevant. It clearly refers to the various dataXX.bin files and such, so it might be it.
It seems to be referring to all sorts of files that seem like they could be inside data00.bin
I have no idea what the .exe does exactly, though, or how to use this information.
I don't think it's a good idea to share an .exe, but here it is anyway: https://www.dropbox.com/s/60bjossdstz3i ... t.exe?dl=0