[PC] Disgaea 5 Complete Demo (.dat)

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
TheUkrainianBard
Posts: 121
Joined: Sun May 01, 2016 10:06 pm

[PC] Disgaea 5 Complete Demo (.dat)

Post by TheUkrainianBard »

A code for Time limited demo is available for a limited time here.
Full game will be/is available here.

Attached 2 filecutted files.
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: [PC] Disgaea 5 Complete Demo (.dat)

Post by Ekey »

Obfuscated. Here snipped code to deobfuscate

Code: Select all

   for (int i = 0; i < dwSize; i++)
   {
      lpBuffer[i] = 16 * lpBuffer[i] | ((uint8_t)~lpBuffer[i] >> 4);
   }
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: [PC] Disgaea 5 Complete Demo (.dat)

Post by Acewell »

here is my bms script attempt to deobfuscate file :D

Code: Select all

# script for QuickBMS http://aluigi.altervista.org/quickbms.htm

get SIZE asize
get NAME basename
string NAME + _fixed.dat
filexor "\xF0"
log memory_file1 0x0 SIZE
filexor ""
log memory_file2 0x0 SIZE
goto 0x0 -1
for i = 1 to SIZE
   get TMP byte -1
   math TMP z 4
   put TMP byte -2
next i
log NAME 0x0 SIZE -2
Last edited by Acewell on Tue May 08, 2018 8:29 pm, edited 1 time in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: [PC] Disgaea 5 Complete Demo (.dat)

Post by aluigi »

Script 0.1.1:
http://aluigi.org/bms/nispack.bms

The script automatically decompresses the lzs files too.
TheUkrainianBard
Posts: 121
Joined: Sun May 01, 2016 10:06 pm

Re: [PC] Disgaea 5 Complete Demo (.dat)

Post by TheUkrainianBard »

Thank you, everyone!
Ogoshi
Posts: 72
Joined: Fri Oct 09, 2015 1:41 am

Re: [PC] Disgaea 5 Complete Demo (.dat)

Post by Ogoshi »

aluigi wrote:Script 0.1.1:
http://aluigi.org/bms/nispack.bms

The script automatically decompresses the lzs files too.


Anyone know where the text files?
makc_ar
Posts: 1193
Joined: Sun Aug 17, 2014 7:27 pm

Re: [PC] Disgaea 5 Complete Demo (.dat)

Post by makc_ar »

Ogoshi wrote:Anyone know where the text files?

Here: https://www87.zippyshare.com/v/oEKKHnl6/file.html
Ogoshi
Posts: 72
Joined: Fri Oct 09, 2015 1:41 am

Re: [PC] Disgaea 5 Complete Demo (.dat)

Post by Ogoshi »

makc_ar wrote:
Ogoshi wrote:Anyone know where the text files?

Here: https://www87.zippyshare.com/v/oEKKHnl6/file.html


Hi Makc, thanks! How you get that? I'll try to use this script but it's not works in all the files on folder. Can you explain? If you want, send me one PM.

Regards.
ViniSD
Posts: 8
Joined: Sun Dec 03, 2017 5:21 am

Disgaea 5 (.dat)

Post by ViniSD »

I'm having trouble to extract the .dat files from the game. The script from the demo apparently don't work with the full game.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Disgaea 5 (.dat)

Post by aluigi »

It's different than viewtopic.php?f=9&t=7800

Basically here the obfuscation seems the same but there is NISPACK magic and the format doesn't have much sense, number of files followed by "FILES * 4 * 2" that don't match any offset or size.

*edit* moved the 2 posts in the original topic.
Rainx
Posts: 21
Joined: Sat Feb 24, 2018 7:24 am

Nis compression

Post by Rainx »

Hello.
Could anyone help me with unknown nis lzs compression?
There is no info about compressed/uncompressed size in the header.

Link: https://www81.zippyshare.com/v/yD1tQyut/file.html

I've tried unpacking this file with basic lzss algoritm, but no success.

Game: Disgaea.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: [PC] Disgaea 5 Complete Demo (.dat)

Post by aluigi »

@Rainx
I have moved your post in another topic for this game.

In the header I see "dat\0", a sort of size field that doesn't match a compressed or uncompressed size because it's shorter and then "UNMO".
Do you have other samples?
Rainx
Posts: 21
Joined: Sat Feb 24, 2018 7:24 am

Re: [PC] Disgaea 5 Complete Demo (.dat)

Post by Rainx »

aluigi wrote:Do you have other samples?

One more sample: https://www80.zippyshare.com/v/t2LgwJi0/file.html
And that's all. Because other files have normal lzs compression (I mean, dat\0, uncompressed size\0, compressed size-4\0).