Taikou Risshiden V (Data.bin)

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
sigroon365
Posts: 330
Joined: Fri Nov 21, 2014 4:03 am

Taikou Risshiden V (Data.bin)

Post by sigroon365 »

I wonder what is the comtype of this game.
PPHD, PPTN, PPVAH, KSEF0130,... - maybe uncompressed
TK5P, CMPS - some TK5P may uncompressed, but most of this type seems compressed

Data file https://drive.google.com/file/d/0B8iw-j0BGWKIRHU4RGN3YnFNVzQ/view?usp=sharing

Code: Select all

#Extract tk5 from Taikou_Risshiden_V DATA.BIN

endian little
math files += 6688

FindLoc OFFSET string "TK5P"

for i = 0 < files
goto OFFSET
getdstring SIGN 4
get UNK1 long
get UNK2 long
get UNK3 long - SIZE..?
get UNK4 long - SIZE..?

if UNK3 != UNK4
math SIZE = UNK3

log "" OFFSET SIZE
FindLoc NEXT_OFF binary "\x00\x00\x00\x00\x00\x00\x00\x00" 0 ""

else
FindLoc NEXT_OFF binary "\x00\x00\x00\x00\x00\x00\x00\x00" 0 ""
xmath ZSIZE "NEXT_OFF - OFFSET"
log "" OFFSET ZSIZE
endif

FindLoc OFFSET string "TK5P" 0 ""

next i
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Taikou Risshiden V (Data.bin)

Post by aluigi »

I suggest you to find the index file because it will make the whole work easier.
A scanner must be just the last hope.

The compression scanner works at 100% when you know the exact compressed size of the input file.
I tried it with a CMPS file but I had no good results.
sigroon365
Posts: 330
Joined: Fri Nov 21, 2014 4:03 am

Re: Taikou Risshiden V (Data.bin)

Post by sigroon365 »

aluigi wrote:I suggest you to find the index file because it will make the whole work easier.
A scanner must be just the last hope.

The compression scanner works at 100% when you know the exact compressed size of the input file.
I tried it with a CMPS file but I had no good results.

Image
Image
Unfortunately, in the USRDIR folder, there is only one file, Data.bin.

Are there any cases, eboot files hold index information?
Here is decrypted eboot file. https://www.sendspace.com/file/fcipw3
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Taikou Risshiden V (Data.bin)

Post by aluigi »

Code: Select all

open FDSE "data.bin"
open FDSE "boot.bin" 1
goto 0x3cb0b4 1
for OFFSET = 0
    get SIZE long 1
    if SIZE == 0
        break
    endif
    log "" OFFSET SIZE
    math OFFSET + SIZE
    math OFFSET x 0x800
next

Regarding the compression used by the CMPS files, I don't know what should be their content.
There is a certain huffman encoding (bcl_sf) that gives something like a bitmap, I mean just the output data in the hex editor and not a real image.
sigroon365
Posts: 330
Joined: Fri Nov 21, 2014 4:03 am

Re: Taikou Risshiden V (Data.bin)

Post by sigroon365 »

aluigi wrote:

Code: Select all

open FDSE "data.bin"
open FDSE "boot.bin" 1
goto 0x3cb0b4 1
for OFFSET = 0
    get SIZE long 1
    if SIZE == 0
        break
    endif
    log "" OFFSET SIZE
    math OFFSET + SIZE
    math OFFSET x 0x800
next

Regarding the compression used by the CMPS files, I don't know what should be their content.
There is a certain huffman encoding (bcl_sf) that gives something like a bitmap, I mean just the output data in the hex editor and not a real image.


Thanks a lot. :)