.fob help~~

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
pgw00k
Posts: 22
Joined: Sat Jun 20, 2015 3:38 pm

.fob help~~

Post by pgw00k »

There are some simple files from a game made by fancy3d engine ,a chinese web game engine ,would someone give me a hand?
https://yadi.sk/d/rw4ETmdnjX5wq
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: .fob help~~

Post by aluigi »

fancy3d.lod and fb.fobl executables, foben.foc is probably all encrypted and foben.fod has a "PSH" magic but no idea bout information table and content.

*edit* foben.fod is obtained from the lzma decompressed FANCYRES\NOTIFYMODULE resource of the executable, right?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: .fob help~~

Post by aluigi »

http://aluigi.org/bms/fancy3d.bms

Note that the files of this archive are "weird", probably a bit scrambled/obfuscated.
Rokki
Posts: 15
Joined: Mon Jul 04, 2016 8:37 am

Re: .fob help~~

Post by Rokki »

Hi,.

Is the .fob file using secondary compression?
This is part of the file data, it should be a single file
Image
But after decompression, I do not even know what this file is
I see this position is 5D000000, seems to be a type of compression
Image
How to extract?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: .fob help~~

Post by aluigi »

I have updated the script to version 0.1.2 so that you can unpack that specific fob you provided.
If it's part of an archive probably I need both the original foc and fob, but test the script on the archive first.
Rokki
Posts: 15
Joined: Mon Jul 04, 2016 8:37 am

Re: .fob help~~

Post by Rokki »

aluigi wrote:I have updated the script to version 0.1.2 so that you can unpack that specific fob you provided.
If it's part of an archive probably I need both the original foc and fob, but test the script on the archive first.


The file is too big, the game is only one foc and one fob, a total of 1.2G
So I only screenshot a part of the file, the analysis steps are in accordance with your 0.1.1 script
For example, the starting address of the data in 5224, every 6120*n is "USE" data...
But the number of files can not correspond to foc file.
I'll try again, thank you so much..
Rokki
Posts: 15
Joined: Mon Jul 04, 2016 8:37 am

Re: .fob help~~

Post by Rokki »

I uploaded both files, one fob and one foc.
https://mega.nz/#!OYwjTYwA!lwGxJXEVTzjC ... PBWbuRT3ik

By the way, I did not find the 0.1.2 script...
Thank You. .
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: .fob help~~

Post by aluigi »

Are you sure that ark.foc is relative to ark.fob?
Yeah I know that it seems a stupid question but foc says that the first files are PAK while they aren't, that's the reason behind the error "Error: the requested amount of bytes to allocate is negative (0x91c9e9ef)".

The only way to "fix" that is disabling the filenames but there is no reliable way to guess if it's a bad or good archive.
So, in the doubt, I have updated the script to version 0.1.2a (refresh your browser!) for skipping the names of the "ark" archive.
Rokki
Posts: 15
Joined: Mon Jul 04, 2016 8:37 am

Re: .fob help~~

Post by Rokki »

Hi,..

The game has only one foc and one fob.

I analyzed the result is this:
In foc there are six pak name (or 7?)
The last six files in fob are special because they do not point to the data with an offset
Fob inside the structure seems to be this:
5224: "USE" ......... (with offset address)
5224 + 6120 * n "USE" ......... (with offset address)
5224 + 6120 * n "USE" ......... (with offset address)
...
5224 + 6120 * n "USE" ......... (without offset address)
5224 + 6120 * n "USE" ......... (without offset address)
5224 + 6120 * n "USE" ......... (without offset address)
5224 + 6120 * n "USE" ......... (without offset address)
5224 + 6120 * n "USE" ......... (without offset address)
5224 + 6120 * n "USE" ......... (without offset address)
n is an integer

Excluding the last six, there are many consecutive "USE" data at offset addresses of other files.