Help With Decompressing .dat File.

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
MaxBOOST
Posts: 12
Joined: Sat Mar 19, 2022 3:31 am

Help With Decompressing .dat File.

Post by MaxBOOST »

Hello,

So, there's this game called Moorhuhn Adventure 2: Der Fluch des Goldes, and all its assets are in a .DAT file (moorhuhn games are known for storing their assets in .DAT files). Except, this file is unlike the other .DAT files that other moorhuhn games use, but i still tried to use all .DAT file scripts i can find, and all Moorhuhn scripts, too ! But none worked. Can someone please help me ? I would be grateful if someone did.

Thanks !
MaxBOOST.

P.S: Here's the .DAT file in case you wanna try something with it.

https://drive.google.com/file/d/1ch8aKisHSowof7J3ENcQ0sJNhv9UFjdA/view?usp=sharing
mrmemmo_
Posts: 46
Joined: Sat Mar 16, 2019 1:21 pm

Re: Help With Decompressing .dat File.

Post by mrmemmo_ »

it's zlib but more block compresses
MaxBOOST
Posts: 12
Joined: Sat Mar 19, 2022 3:31 am

Re: Help With Decompressing .dat File.

Post by MaxBOOST »

mrmemmo_ wrote:it's zlib but more block compresses


so, what should i do with it ?
mrmemmo_
Posts: 46
Joined: Sat Mar 16, 2019 1:21 pm

Re: Help With Decompressing .dat File.

Post by mrmemmo_ »

i don't know. decompress and compress level 9 to get compress file...bla bla. i think
rabatini
Posts: 179
Joined: Tue Jan 18, 2022 12:21 am

Re: Help With Decompressing .dat File.

Post by rabatini »

MaxBOOST wrote:
mrmemmo_ wrote:it's zlib but more block compresses


so, what should i do with it ?


Just use offzip from alluigi

http://aluigi.altervista.org/mytoolz/offzip.zip

create a text file and put this command

Code: Select all

offzip -s -a mha2.dat

pause


then rename the extensio .txt to .bat and run.
MaxBOOST
Posts: 12
Joined: Sat Mar 19, 2022 3:31 am

Re: Help With Decompressing .dat File.

Post by MaxBOOST »

rabatini wrote:
MaxBOOST wrote:
mrmemmo_ wrote:it's zlib but more block compresses


so, what should i do with it ?


Just use offzip from alluigi

http://aluigi.altervista.org/mytoolz/offzip.zip

create a text file and put this command

Code: Select all

offzip -s -a mha2.dat

pause


then rename the extensio .txt to .bat and run.



ok i did that, but then i got a bunch of dat files and vap files
mrmemmo_
Posts: 46
Joined: Sat Mar 16, 2019 1:21 pm

Re: Help With Decompressing .dat File.

Post by mrmemmo_ »

exam: file 000b4ba5.dat
delete 89 bytes first and change file extension to jpg and chill :D
some file vap is ogg sound
MaxBOOST
Posts: 12
Joined: Sat Mar 19, 2022 3:31 am

Re: Help With Decompressing .dat File.

Post by MaxBOOST »

mrmemmo_ wrote:exam: file 000b4ba5.dat
delete 89 bytes first and change file extension to jpg and chill :D
some file vap is ogg sound


so, do i open dat with notepad and delete the first 89 bytes and change the vap to ogg ?
rabatini
Posts: 179
Joined: Tue Jan 18, 2022 12:21 am

Re: Help With Decompressing .dat File.

Post by rabatini »

So, you did the decompress, now its up to you dig out the files, some are images and some other is songs and maybe your scripts is inside one of them.

to jpg you can use this script in quickbms.
if is jpg it will create a file with jpg image, if not will create no file.

Code: Select all

get file asize
get name basename
get id long
if id == 0x00000000
goto 0x59
savepos temp
xmath size "(file - temp)"
String FILENAME P "%name%.%jpg%"
log filename temp size
endif
MaxBOOST
Posts: 12
Joined: Sat Mar 19, 2022 3:31 am

Re: Help With Decompressing .dat File.

Post by MaxBOOST »

rabatini wrote:So, you did the decompress, now its up to you dig out the files, some are images and some other is songs and maybe your scripts is inside one of them.

to jpg you can use this script in quickbms.
if is jpg it will create a file with jpg image, if not will create no file.

Code: Select all

get file asize
get name basename
get id long
if id == 0x00000000
goto 0x59
savepos temp
xmath size "(file - temp)"
String FILENAME P "%name%.%jpg%"
log filename temp size
endif


ok, and for VAPs ?
rabatini
Posts: 179
Joined: Tue Jan 18, 2022 12:21 am

Re: Help With Decompressing .dat File.

Post by rabatini »

MaxBOOST wrote:
rabatini wrote:So, you did the decompress, now its up to you dig out the files, some are images and some other is songs and maybe your scripts is inside one of them.

to jpg you can use this script in quickbms.
if is jpg it will create a file with jpg image, if not will create no file.

Code: Select all

get file asize
get name basename
get id long
if id == 0x00000000
goto 0x59
savepos temp
xmath size "(file - temp)"
String FILENAME P "%name%.%jpg%"
log filename temp size
endif


ok, and for VAPs ?


dont know.
sound is not my field.
MaxBOOST
Posts: 12
Joined: Sat Mar 19, 2022 3:31 am

Re: Help With Decompressing .dat File.

Post by MaxBOOST »

rabatini wrote:
MaxBOOST wrote:
rabatini wrote:So, you did the decompress, now its up to you dig out the files, some are images and some other is songs and maybe your scripts is inside one of them.

to jpg you can use this script in quickbms.
if is jpg it will create a file with jpg image, if not will create no file.

Code: Select all

get file asize
get name basename
get id long
if id == 0x00000000
goto 0x59
savepos temp
xmath size "(file - temp)"
String FILENAME P "%name%.%jpg%"
log filename temp size
endif


ok, and for VAPs ?


dont know.
sound is not my field.


ok, so, most jpgs are fine, others are corrupted/don't open. is that normal ?
MaxBOOST
Posts: 12
Joined: Sat Mar 19, 2022 3:31 am

Re: Help With Decompressing .dat File.

Post by MaxBOOST »

MaxBOOST wrote:
rabatini wrote:
MaxBOOST wrote:
ok, and for VAPs ?


dont know.
sound is not my field.


ok, so, most jpgs are fine, others are corrupted/don't open. is that normal ?


and some .dat files gave this error out


offset filesize filename
--------------------------------------

- 0 files found in 0 seconds
coverage file 0 0% 4 2079 . offset 00000004
mrmemmo_
Posts: 46
Joined: Sat Mar 16, 2019 1:21 pm

Re: Help With Decompressing .dat File.

Post by mrmemmo_ »

some raw data, you have to know what it is to convert
MaxBOOST
Posts: 12
Joined: Sat Mar 19, 2022 3:31 am

Re: Help With Decompressing .dat File.

Post by MaxBOOST »

mrmemmo_ wrote:some raw data, you have to know what it is to convert


alright, so what do i do with the .vap files containing the sounds ?
mrmemmo_
Posts: 46
Joined: Sat Mar 16, 2019 1:21 pm

Re: Help With Decompressing .dat File.

Post by mrmemmo_ »

search google "ogg vorbis file structure"
MaxBOOST
Posts: 12
Joined: Sat Mar 19, 2022 3:31 am

Re: Help With Decompressing .dat File.

Post by MaxBOOST »

mrmemmo_ wrote:search google "ogg vorbis file structure"


ok, i managed to get everything out of the file, but there are some images that are missing, mostly because offzip doesn't detect them. What shall i do in that case ?
rabatini
Posts: 179
Joined: Tue Jan 18, 2022 12:21 am

Re: Help With Decompressing .dat File.

Post by rabatini »

MaxBOOST wrote:
mrmemmo_ wrote:search google "ogg vorbis file structure"


ok, i managed to get everything out of the file, but there are some images that are missing, mostly because offzip doesn't detect them. What shall i do in that case ?

Do you know where files the offzip did not detect?
MaxBOOST
Posts: 12
Joined: Sat Mar 19, 2022 3:31 am

Re: Help With Decompressing .dat File.

Post by MaxBOOST »

rabatini wrote:
MaxBOOST wrote:
mrmemmo_ wrote:search google "ogg vorbis file structure"


ok, i managed to get everything out of the file, but there are some images that are missing, mostly because offzip doesn't detect them. What shall i do in that case ?

Do you know where files the offzip did not detect?


the same .dat file, and while they are images for a fact, i don't know their formats. i tried using jaeder naub, but idk how to use it tbh..