Unpack .pak file for Touhou The Genius of Sappheiros: Weekend

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Ven
Posts: 1
Joined: Thu Oct 21, 2021 12:29 pm

Unpack .pak file for Touhou The Genius of Sappheiros: Weekend

Post by Ven »

Hello, I'm working on a translation for the PSVita version of The Genius of Sappherios, and since there's already a translation for the pc version I thought I might see those for ease of use.
Unfortunately the pc game (and translation) uses .pak files, and I can't figure out how to unpack them, can anyone help me? Thanks in advance.

Link for the translation .pak files: https://www.mediafire.com/file/l0jyl7e6 ... s.rar/file
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Unpack .pak file for Touhou The Genius of Sappheiros: Weekend

Post by aluigi »

The first 32bit number is the only thing in clear-text, everything else seem encrypted/obfuscated.
The only thing I noticed is the block of data starting from about offset 0x9ba1c0 of Game.pak which is a sequence of the same 64 bytes, but it's not a xor key and probably not related to any block cipher encryption.
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Unpack .pak file for Touhou The Genius of Sappheiros: Weekend

Post by Ekey »

Edited: I looked at my old source codes and found the Touhou Monsters Card game, I make tool for unpack files - 7 years ago. Format and encryption is absolutely identical

Image

Encryption: Mersenne Twister + Xor (64 bytes key) :)
Last edited by Ekey on Fri Dec 10, 2021 5:56 pm, edited 1 time in total.
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Unpack .pak file for Touhou The Genius of Sappheiros: Weekend

Post by Ekey »

Done! :)

Binaries: here
Sources: here
DJ Normality
Posts: 647
Joined: Tue Jul 24, 2018 8:52 am

Re: Unpack .pak file for Touhou The Genius of Sappheiros: Weekend

Post by DJ Normality »

:shock: yo thats crazy thanks Ekey have to check it out