Iron Saga - ENC and CET Help

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Leonhart Stratos
Posts: 4
Joined: Wed Apr 22, 2020 2:17 pm

Iron Saga - ENC and CET Help

Post by Leonhart Stratos »

Hello. I extracted the files in a game titled Iron Saga but all the assets (except the bgm and sound) were in .enc and .cet file extensions. I need help in converting them into regular image files. Thank you in advance.

Download the game here: http://ironsaga.co.jp/
Iron Saga Assets here: https://mega.nz/file/SmYFHYJL#Tq7Fl0rGT ... n3OEfz4j8E
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Iron Saga - ENC and CET Help

Post by aluigi »

1Gb zip?
Upload one ENC and CET file, if they are big upload the two files generated by the following script on them:
http://aluigi.org/bms/filecutter.bms
Leonhart Stratos
Posts: 4
Joined: Wed Apr 22, 2020 2:17 pm

Re: Iron Saga - ENC and CET Help

Post by Leonhart Stratos »

Ah sorry. I uploaded the entire asset bundle. Here's a sample for one of the game's .enc and .cet file.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Iron Saga - ENC and CET Help

Post by aluigi »

The two files are identical.
They are just zlib compressed and they look raw images (dds?) with the first 32 bytes that may be encrypted or just a 256bit hash.
You can use this script for decompression:

Code: Select all

comtype zlib_noerror
get SIZE asize
get NAME basename
clog NAME 0 SIZE SIZE
Leonhart Stratos
Posts: 4
Joined: Wed Apr 22, 2020 2:17 pm

Re: Iron Saga - ENC and CET Help

Post by Leonhart Stratos »

Thanks. I'm a little new to using quickbms so can you run me through with how to use this code in the program?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Iron Saga - ENC and CET Help

Post by aluigi »

Just copy those 4 lines I posted in a new text file, launch quickbms, select that txt file, select your cet/enc files and then an output folders where you want to decompress the files.