Yokai Sangokushi Kunitori Wars Files

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
offering7866
Posts: 52
Joined: Sat Feb 25, 2017 4:13 am

Yokai Sangokushi Kunitori Wars Files

Post by offering7866 »

I need some help opening the BIN files found in Yokai Sangokushi Kunitori Wars, not to be mistaken with the 3DS title Yokai Sangokushi. Since it's a mobile game, Aluigi's Yokai Sangokushi BMS script doesn't work. If it's not too much to ask, would anyone tell me what kind of program can be used to open them so I can grab the artwork? Here's a sample: link
offering7866
Posts: 52
Joined: Sat Feb 25, 2017 4:13 am

Re: Yokai Sangokushi Kunitori Wars Files

Post by offering7866 »

Someone was able to help me decrypt the files with this BMS command.

Code: Select all

get Size asize
goto 0xC
get Key byte
filexor Key
get Name basename
string Name + ".dec"
log Name 0 Size


However, my current problem now is that we have no idea how to decompress the files. Any suggestions on how to identify the algorithm? Should I provide more samples?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Yokai Sangokushi Kunitori Wars Files

Post by aluigi »

There is a "CPBT" magic followed by what it looks like a decompressed size and the decompressed data should start from offset 0x10.
I didn't recognize a known algorithm, didn't try with the scanner.
offering7866
Posts: 52
Joined: Sat Feb 25, 2017 4:13 am

Re: Yokai Sangokushi Kunitori Wars Files

Post by offering7866 »

aluigi wrote:There is a "CPBT" magic followed by what it looks like a decompressed size and the decompressed data should start from offset 0x10.
I didn't recognize a known algorithm, didn't try with the scanner.

So basically, I should change goto 0xC to goto 0x10 then? To be honest, I don't know much about coding, but I do know I want to extract the contents of these files.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Yokai Sangokushi Kunitori Wars Files

Post by aluigi »

No, it's just that there is no solution so doesn't matter what you change :)