Need help.unpack this game.--PC--fengshen2

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
leotangbms
Posts: 9
Joined: Sat Dec 08, 2018 6:24 am

Need help.unpack this game.--PC--fengshen2

Post by leotangbms »

Hi every one~

who can help me unpack this PC 2D game?

Grateful!

All files is so big,this part of all assetFiles,runtime files all in.

*.db files need unpack
images , text ...

[url=This files download link 70M[/url]

Grateful!
Last edited by leotangbms on Sat Mar 09, 2019 3:58 am, edited 2 times in total.
leotangbms
Posts: 9
Joined: Sat Dec 08, 2018 6:24 am

Re: Need help.unpack this game.--PC--fengshen2

Post by leotangbms »

@EKEY
.
help me ~~
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Need help.unpack this game.--PC--fengshen2

Post by aluigi »

Remember to upload files on good file hosters like google drive, mediafire, sendspace, mega or dropbox.
leotangbms
Posts: 9
Joined: Sat Dec 08, 2018 6:24 am

Re: Need help.unpack this game.--PC--fengshen2

Post by leotangbms »

aluigi wrote:Remember to upload files on good file hosters like google drive, mediafire, sendspace, mega or dropbox.

[url]This files download link 70M[/url]
new links
please helpe me ~
Last edited by leotangbms on Fri May 03, 2019 10:41 am, edited 1 time in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Need help.unpack this game.--PC--fengshen2

Post by aluigi »

Try this script for decrypting the files and open them with an SQLite software:

Code: Select all

encryption xor "\x7e\x19\x6c\x71\x79\x7d\x10\x2e\x7b\x1d\x1b\x12\x7e\x7c\x00\x3f\x65\x0b\x6e\x76\x75\x75\x7e\x2e\x00\x00\x00\x00\x7c\x7b\x0c\x37\x0b\x0b\x15\x6b\x6e\x67\x7c\x29\x0c\x08\x6e\x00\x07\x66\x17\x25\x09\x0c\x19\x63\x00\x67\x07\x34\x17\x1a\x6c\x07\x0b\x6e\x79\x25\x72\x11\x02\x71\x02\x60\x0b\x3c\x79\x1a\x17\x1a\x10\x7c\x7b\x22"
get SIZE asize
get NAME basename
string NAME + ".sqlite3"
log NAME 0 SIZE
leotangbms
Posts: 9
Joined: Sat Dec 08, 2018 6:24 am

Re: Need help.unpack this game.--PC--fengshen2

Post by leotangbms »

aluigi wrote:Try this script for decrypting the files and open them with an SQLite software:

Code: Select all

encryption xor "\x7e\x19\x6c\x71\x79\x7d\x10\x2e\x7b\x1d\x1b\x12\x7e\x7c\x00\x3f\x65\x0b\x6e\x76\x75\x75\x7e\x2e\x00\x00\x00\x00\x7c\x7b\x0c\x37\x0b\x0b\x15\x6b\x6e\x67\x7c\x29\x0c\x08\x6e\x00\x07\x66\x17\x25\x09\x0c\x19\x63\x00\x67\x07\x34\x17\x1a\x6c\x07\x0b\x6e\x79\x25\x72\x11\x02\x71\x02\x60\x0b\x3c\x79\x1a\x17\x1a\x10\x7c\x7b\x22"
get SIZE asize
get NAME basename
string NAME + ".sqlite3"
log NAME 0 SIZE


Great! This can work,
However, I extracted the blob data in sqlite3, there are 2 kinds of files (fsi & fsb), it seems to use XOR encryption again?

This is newfiles download link
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Need help.unpack this game.--PC--fengshen2

Post by aluigi »

They are some custom containers/formats for textures in dds and jpeg format.

The FSB files start with the "GEPJ" magic + size + jpeg data + zlib compressed data (some sort of "mask"?).
You can extract the jpeg file with this script:

Code: Select all

idstring "GEPJ"
get SIZE long
savepos OFFSET
get NAME basename
string NAME + ".jpg"
log NAME OFFSET SIZE

The FSI files start with an "ISF" magic but can't help further on them.
leotangbms
Posts: 9
Joined: Sat Dec 08, 2018 6:24 am

Re: Need help.unpack this game.--PC--fengshen2

Post by leotangbms »

aluigi wrote:They are some custom containers/formats for textures in dds and jpeg format.

The FSB files start with the "GEPJ" magic + size + jpeg data + zlib compressed data (some sort of "mask"?).
You can extract the jpeg file with this script:

Code: Select all

idstring "GEPJ"
get SIZE long
savepos OFFSET
get NAME basename
string NAME + ".jpg"
log NAME OFFSET SIZE

The FSI files start with an "ISF" magic but can't help further on them.


tks,Great!
Fsi file seems to be compressed using nvtt, this is nvtt
https://code.google.com/archive/p/nvidia-texture-tools/downloads
There is a decompression library here.
Is this useful?