The Forum is up for sale: XeNTaX Forum looking for new owner

[Request] God Man .PAK Files

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
User avatar
Rimbros
ultra-veteran
ultra-veteran
Posts: 495
Joined: Fri Jul 09, 2010 12:23 am
Has thanked: 41 times
Been thanked: 16 times

[Request] God Man .PAK Files

Post by Rimbros »

Hope somebody can give a hand with that file its .pak file from this game

Game: God Man
http://www.godman.com.tw/
Container: PAK

Sample in repository
http://www.mediafire.com/download.php?g5az21ij3qxvql5

This its small .PAK file other are something huge but if need i can upload in parts
Renders Art by Rimbros
http://s303.photobucket.com/albums/nn12 ... E/Renders/

Personal Game repository samples, send PM
User avatar
aluigi
VVIP member
VVIP member
Posts: 1916
Joined: Thu Dec 08, 2005 12:26 pm
Location: www.ZENHAX.com
Has thanked: 4 times
Been thanked: 661 times
Contact:

Re: [Request] God Man .PAK Files

Post by aluigi »

looks like they are zip files protected with password and probably using a sort of obfuscation on the filenames
User avatar
Rimbros
ultra-veteran
ultra-veteran
Posts: 495
Joined: Fri Jul 09, 2010 12:23 am
Has thanked: 41 times
Been thanked: 16 times

Re: [Request] God Man .PAK Files

Post by Rimbros »

Then we can do unpack?' :(
Renders Art by Rimbros
http://s303.photobucket.com/albums/nn12 ... E/Renders/

Personal Game repository samples, send PM
runaum
ultra-n00b
Posts: 1
Joined: Tue Jul 03, 2012 1:24 am

Re: [Request] God Man .PAK Files

Post by runaum »

Rimbros wrote:Then we can do unpack?' :(
I'll try to help you. It's a ZIP archive with replaced signs (504B -> 555A) and encrypted file names and content (it's not a classic ZIP password encryption, may be some byte modification like 'xor'). STUNS cannot extract anything from it, so we need to understand what algo used and decrypt this content.

UPD1
I found a key for name encryption: $B2, it's primitive xor'ing.

UPD2
Content compressed via Deflate, but encrypted w/ something different 'xor'. I'll try to brute xor-key (byte) - no results.

UPD3
To open this Archive w/ WinRAR (for example) we need to do few steps:
1. Replace $04035a55 -> $04034b50, $08075a55 -> $08074b50, $02015a55 -> $02014b50, $06055a55 -> $06054b50;
2. XOR all filenames in local file headers w/ $B2;
3. Delete four 'junky' bytes from the end of every central records (this 4 bytes is not extra field or file comment, all lengths are nulled. So, as i understand, there is a passwords for some encryption algo, not original PKWARE ofc);
4. Replace names in central records w/ names from local file headers;
5. Fix end record w/ correct central record offset;
6. Fix end record w/ correct central records size.
I analyze this file w/o executable before. At this moment I understand that it's really needed to complete this work :)

Guys, i'm sorry for my primitive English.
User avatar
Rimbros
ultra-veteran
ultra-veteran
Posts: 495
Joined: Fri Jul 09, 2010 12:23 am
Has thanked: 41 times
Been thanked: 16 times

Re: [Request] God Man .PAK Files

Post by Rimbros »

Thanks runaum its good advance. Hope aluigui can read this and made one .bms with this info u found.. :mrgreen:
Renders Art by Rimbros
http://s303.photobucket.com/albums/nn12 ... E/Renders/

Personal Game repository samples, send PM
finale00
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 2382
Joined: Sat Apr 09, 2011 1:22 am
Has thanked: 170 times
Been thanked: 307 times

Re: [Request] God Man .PAK Files

Post by finale00 »

I'm trying this script: viewtopic.php?p=67440#p67440

I modified it to use deflate (when the flag == 9), but it's just giving an error. Not sure if I am missing something.
Doesn't look wrong: the file entry starts with UZ\x03\x04, followed by some stuff and then the name.

Right after the name is the start of the data, and after the data is finished you would see UZ\x07\x08, followed by some integer and the compressed and uncompressed sizes.

Haven't tried to manual replacing and stuff cause it seems kind of tedious, but if that works and data is just normal zip compression not sure where I'm messing up.
User avatar
Rimbros
ultra-veteran
ultra-veteran
Posts: 495
Joined: Fri Jul 09, 2010 12:23 am
Has thanked: 41 times
Been thanked: 16 times

Re: [Request] God Man .PAK Files

Post by Rimbros »

Sounds complicate really, but its good advance finale. btw i dont think can be posible maybe, aluigui already see this format and i think he cant decompress too, then we need search another skills to decompress.
Renders Art by Rimbros
http://s303.photobucket.com/albums/nn12 ... E/Renders/

Personal Game repository samples, send PM
User avatar
Rimbros
ultra-veteran
ultra-veteran
Posts: 495
Joined: Fri Jul 09, 2010 12:23 am
Has thanked: 41 times
Been thanked: 16 times

Re: [Request] God Man .PAK Files

Post by Rimbros »

any news?
Renders Art by Rimbros
http://s303.photobucket.com/albums/nn12 ... E/Renders/

Personal Game repository samples, send PM
Post Reply