The Fruit of Grisaia *.int

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

The Fruit of Grisaia *.int

Post by sigroon365 »

Hi, I found that 0x4 means Get files long. But I don't know how to unpack these files.
Samples https://www.sendspace.com/file/sj7mv9

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

Re: The Fruit of Grisaia *.int

Post by aluigi »

I guess the 8 bytes of information of the files (probably size or offset+size or zsize+size) and the files are encrypted with blowfish (ecb) but I have no idea about the key (it's not the bytes in key.dat).
sigroon365
Posts: 330
Joined: Fri Nov 21, 2014 4:03 am

Re: The Fruit of Grisaia *.int

Post by sigroon365 »

aluigi wrote:I guess the 8 bytes of information of the files (probably size or offset+size or zsize+size) and the files are encrypted with blowfish (ecb) but I have no idea about the key (it's not the bytes in key.dat).


I found how to unpack *.int files. http://asmodean.reverse.net/pages/exkifint.html
Could you make bms script?
Image

unpack sample https://www.sendspace.com/file/zkloia
*.int samples https://www.sendspace.com/file/48z1v4

exkifint_v3_unpack.bat will unpack *.int files. Unpacked files use zlib.
For example, ama_002b.cst file from scene.int...

Image

Code: Select all

idstring "CatScene"

for
get ZSIZE long
get SIZE long
savepos OFFSET

get packname filename
   string packname += _unpacked/

clog packname OFFSET ZSIZE SIZE

savepos OFFSET

if OFFSET == EOF
clenexit

next


Result
Image

exkifint_v3.exe will find <v-code> in Grisaia.exe.
All *.int files can be unpacked exkifint_v2.exe with <v-code> FW-XGHSGKCJ.
But it can't get name and extention, so exkifint_v3 is useful.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: The Fruit of Grisaia *.int

Post by aluigi »

http://aluigi.org/papers/bms/others/kif_int.bms

The files are dumped without filename because it's game specific, but now you can reimport them.
CatScene files are decompressed on-the-fly.
sigroon365
Posts: 330
Joined: Fri Nov 21, 2014 4:03 am

Re: The Fruit of Grisaia *.int

Post by sigroon365 »

aluigi wrote:http://aluigi.org/papers/bms/others/kif_int.bms

The files are dumped without filename because it's game specific, but now you can reimport them.
CatScene files are decompressed on-the-fly.


Thanks a lot!! :mrgreen: :mrgreen: