Help us keep the site up! Got some change to spare? Why not donate a few bits and buy us a coffee. Image

Touhou Card Monsters

Read or post about compression. And decompression. Or ask questions how to decompress your files.
Post Reply
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: 303 times

Touhou Card Monsters

Post by finale00 »

This engine seems to be used in several games.
I don't know what engine it is lol but they all had similar directory structure and configuration file.

I looked through the pak archive and it sort of looks like it is just XOR'd with a 64-byte key since some sections had repeating bytes, but running it through xor didn't produce anything nice. It might be different 64-byte keys for each file, I don't know.

Anyways here's the exe and some other stuff along with a sample archive
Hopefully the key isn't too hard to get and is the same for all of the files..

http://www.mediafire.com/?jt0fskfv18bri53

Here are the names of the other games that use the same engine if anyone is interested

東方蒼神縁起
東方百鬼合戦
Ekey
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1822
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 92 times
Been thanked: 1055 times

Re: Touhou Card Monsters

Post by Ekey »

First 4 bytes - Table Size. Algo in attach.

See also (very similar)

Code: Select all

http://en.wikipedia.org/wiki/Mersenne_twister
http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/VERSIONS/C-LANG/c-lang.html
http://www.stephencalenderblog.com/?p=181
http://www.cplusplus.com/forum/beginner/79754/

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37573
http://code.google.com/p/keel4all/source/browse/trunk/keel_grt/dllmain.cpp?spec=svn2&r=2
You do not have the required permissions to view the files attached to this post.
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: 303 times

Re: Touhou Card Monsters

Post by finale00 »

Thanks, the algorithm look too bad. And the C reference lol :)
Ekey
M-M-M-Monster veteran
M-M-M-Monster veteran
Posts: 1822
Joined: Wed Mar 31, 2010 6:54 am
Has thanked: 92 times
Been thanked: 1055 times

Re: Touhou Card Monsters

Post by Ekey »

Done. Tool for unpack here
Post Reply