Decrypting Kamen Rider Battride War Sousei [.FPK] TOC

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
happydance
Posts: 81
Joined: Sun Jul 10, 2016 11:07 am

Decrypting Kamen Rider Battride War Sousei [.FPK] TOC

Post by happydance »

The File contains zlib but TOC that maybe contains the filename, offset, size is compressed or encrypted.

0x0 FPK2
0x4 unknown
0x8 unknown long
0xC Number of files in the archive
0x10 File size
0x14 unknown maybe key??
0x18 unknown maybe key??
0x1C NULL
0x30 encrypted TOC???

Can someone guide me on how to Decrypt/Encrypt back the TOC so I could edit the TOC to insert bigger files for localization?

Thanks in advance!
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Decrypting Kamen Rider Battride War Sousei [.FPK] TOC

Post by aluigi »

The data from offset 0x30 to 0x7390 is encrypted/obfuscated but without reverse engineering there is not much you can do (it's not a simple xor with a fixed key).
The good thing is that all the data is compressed with zlib and you can dump everything with offzip -a.