I have 2 .dat files that I'm not quite sure how to decompress. I tried scanning them with quickbms but haven't found anything, so I'm assuming its custom. I provided 2 samples of compressed and uncompressed files (I don't have access to whatever decompressed them heh).
Any help would really be appreciated!
Arcade game .dat decompression
-
- Posts: 5
- Joined: Sat Jun 10, 2017 7:11 am
Arcade game .dat decompression
Last edited by finalscream on Sat Jun 10, 2017 9:44 am, edited 1 time in total.
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: Arcade game .dat decompression
Name of the game?
I bet that *uncompressed.dat is a memory dump, the algorithm is 99% lzss with 0x00 initializer but then the data is garbage from a certain point.
I bet that *uncompressed.dat is a memory dump, the algorithm is 99% lzss with 0x00 initializer but then the data is garbage from a certain point.
-
- Posts: 5
- Joined: Sat Jun 10, 2017 7:11 am
Re: Arcade game .dat decompression
aluigi wrote:Name of the game?
I bet that *uncompressed.dat is a memory dump, the algorithm is 99% lzss with 0x00 initializer but then the data is garbage from a certain point.
It's a konami based arcade game. I'd rather not say for a multitude of reasons lol. I know for a fact that it isn't a memory dump though. Pretty sure the garbage data you're seeing is SSL certs (check it with binwalk)
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: Arcade game .dat decompression
I have tried various settings of lzss but the problem remains, the output is very similar to the *uncompressed.dat file but then the decompression starts to be wrong. That's clearly visible by using this script:
The differences start from offset 0xa9 and become worst
Code: Select all
comtype lzss "12 4 2 2 0"
get TYPE byte # 1
savepos OFFSET
get ZSIZE asize
math ZSIZE - OFFSET
xmath SIZE "ZSIZE * 2"
get NAME basename
clog NAME OFFSET ZSIZE SIZE
-
- Posts: 5
- Joined: Sat Jun 10, 2017 7:11 am
Re: Arcade game .dat decompression
aluigi wrote:I have tried various settings of lzss but the problem remains, the output is very similar to the *uncompressed.dat file but then the decompression starts to be wrong. That's clearly visible by using this script:The differences start from offset 0xa9 and become worstCode: Select all
comtype lzss "12 4 2 2 0"
get TYPE byte # 1
savepos OFFSET
get ZSIZE asize
math ZSIZE - OFFSET
xmath SIZE "ZSIZE * 2"
get NAME basename
clog NAME OFFSET ZSIZE SIZE
I see what you mean. Whats's weird is that there's big chunks with matching data farther down the file. No clue what the issue is.
-
- Posts: 5
- Joined: Sat Jun 10, 2017 7:11 am
Re: Arcade game .dat decompression
I only see one other konami AC game (Dancing Evolution Arcade), which also happens to use lzss0, but it seems like this might be something custom?
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: Arcade game .dat decompression
That's possible.
I can only suggest you to post on https://encode.ru and I'm quite sure someone can check it, after all it's a lzss derivate so there are better chances of success.
I can only suggest you to post on https://encode.ru and I'm quite sure someone can check it, after all it's a lzss derivate so there are better chances of success.
-
- Posts: 5
- Joined: Sat Jun 10, 2017 7:11 am
Re: Arcade game .dat decompression
aluigi wrote:That's possible.
I can only suggest you to post on https://encode.ru and I'm quite sure someone can check it, after all it's a lzss derivate so there are better chances of success.
I posted over there just in case. I have a DLL that im pretty sure has the decompression function in it, but I'm not sure where it's located.
-
- Site Admin
- Posts: 12984
- Joined: Wed Jul 30, 2014 9:32 pm
Re: Arcade game .dat decompression
Cool, I will add it to the next version of quickbms
https://encode.ru/threads/2772-Finding- ... #post52946
https://encode.ru/threads/2772-Finding- ... #post52946