XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Tue Oct 24, 2017 1:45 am

All times are UTC + 1 hour


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 279 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 19  Next
Author Message
 Post subject: Re: watch dogs 2 .dat .fat archive?
PostPosted: Thu Dec 08, 2016 7:40 pm 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran

Joined: Wed Mar 31, 2010 6:54 am
Posts: 1593
Has thanked: 59 times
Have thanks: 748 times














You can make the ads go away by registering

Well, i found LZ4. Seems there changed only dec32_table :

Original

Code:
const unsigned dec32table[] = {0, 1, 2, 1, 4, 4, 4, 4};
const int dec64table[] = {0, 0, 0, -1, 0, 1, 2, 3};


UBI

//32 - {0, 3, 2, 3, 0, 0, 0, 0};
Code:
  v46 = 0i64;
  v47 = 3i64;
  v48 = 2i64;
  v49 = 3i64;
  v50 = 0i64;
  v51 = 0i64;
  v52 = 0i64;
  v53 = 0i64;


and

//64 - {0, 0, 0, -1, 0, 1, 2, 3};
Code:
  v54 = 0i64;
  v55 = 0i64;
  v56 = 0i64;
  v57 = -1i64;
  v58 = 0i64;
  v59 = 1i64;
  v60 = 2i64;
  v61 = 3i64;


Top
 Profile  
 
 Post subject: Re: watch dogs 2 .dat .fat archive?
PostPosted: Thu Dec 08, 2016 7:47 pm 
Offline
veteran

Joined: Mon Aug 06, 2012 4:14 am
Posts: 94
Has thanked: 0 time
Have thanks: 61 times
I already reverse engineered the LZ4 one, just need to get LZMA working.


Top
 Profile  
 
 Post subject: Re: watch dogs 2 .dat .fat archive?
PostPosted: Thu Dec 08, 2016 8:46 pm 
Offline
double-veteran
double-veteran

Joined: Tue Mar 24, 2015 8:12 pm
Posts: 1209
Has thanked: 20 times
Have thanks: 574 times
I don't see a single file in the whole 22GBs using lzma. I checked this specifically right now. How can you get it working when there's no files compressed with it?


Top
 Profile  
 
 Post subject: Re: watch dogs 2 .dat .fat archive?
PostPosted: Thu Dec 08, 2016 8:51 pm 
Offline
veteran

Joined: Mon Aug 06, 2012 4:14 am
Posts: 94
Has thanked: 0 time
Have thanks: 61 times
It's certainly being used.


Top
 Profile  
 
 Post subject: Re: watch dogs 2 .dat .fat archive?
PostPosted: Thu Dec 08, 2016 8:55 pm 
Offline
double-veteran
double-veteran

Joined: Tue Mar 24, 2015 8:12 pm
Posts: 1209
Has thanked: 20 times
Have thanks: 574 times
Ekey wrote:
Well, i found LZ4. Seems there changed only dec32_table :

//32 - {0, 3, 2, 3, 0, 0, 0, 0};
//64 - {0, 0, 0, -1, 0, 1, 2, 3};


This game only runs on 64 bit. Both these tables are for 64-bit LZ4:

Code:
        readonly sbyte[] m_DecArray = new sbyte[8] { 0, 3, 2, 3, 0, 0, 0, 0 };
        readonly sbyte[] m_Dec2table = new sbyte[8] { 0, 0, 0, -1, 0, 1, 2, 3 };


Top
 Profile  
 
 Post subject: Re: watch dogs 2 .dat .fat archive?
PostPosted: Thu Dec 08, 2016 8:57 pm 
Offline
double-veteran
double-veteran

Joined: Tue Mar 24, 2015 8:12 pm
Posts: 1209
Has thanked: 20 times
Have thanks: 574 times
Sir Kane wrote:
It's certainly being used.


Maybe, but NOT on the fat/dat files. Maybe on some savegame data? Anyway, its not needed for unpacking game files.


Top
 Profile  
 
 Post subject: Re: watch dogs 2 .dat .fat archive?
PostPosted: Thu Dec 08, 2016 9:04 pm 
Offline
veteran

Joined: Mon Aug 06, 2012 4:14 am
Posts: 94
Has thanked: 0 time
Have thanks: 61 times
Some of the data in the .dat files is compressed with the modified LZMA, and the rest is compressed with the modified LZ4.


Top
 Profile  
 
 Post subject: Re: watch dogs 2 .dat .fat archive?
PostPosted: Thu Dec 08, 2016 9:10 pm 
Offline
double-veteran
double-veteran

Joined: Tue Mar 24, 2015 8:12 pm
Posts: 1209
Has thanked: 20 times
Have thanks: 574 times
Sir Kane wrote:
Some of the data in the .dat files is compressed with the modified LZMA, and the rest is compressed with the modified LZ4.


ok if you say so, tell me at least one filename/offset compressed with lzma.

p.s. i'm talking about watch dogs 2, maybe you're looking into far cry?


Top
 Profile  
 
 Post subject: Re: watch dogs 2 .dat .fat archive?
PostPosted: Thu Dec 08, 2016 9:22 pm 
Offline
M-M-M-Monster veteran
M-M-M-Monster veteran

Joined: Wed Mar 31, 2010 6:54 am
Posts: 1593
Has thanked: 59 times
Have thanks: 748 times
Here one decompressed XML file. One strange thing: in the end of file can be some trash bytes. :constipated:


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.



Top
 Profile  
 
 Post subject: Re: watch dogs 2 .dat .fat archive?
PostPosted: Thu Dec 08, 2016 10:37 pm 
Offline
double-veteran
double-veteran

Joined: Tue Mar 24, 2015 8:12 pm
Posts: 1209
Has thanked: 20 times
Have thanks: 574 times
ok considering this all, it looks like we either have different versions of the game, or game protection makes some different obfuscation in different regions, or even every copy of the game. So it will be technically impossible to make a tool for this.


Top
 Profile  
 
 Post subject: Re: watch dogs 2 .dat .fat archive?
PostPosted: Thu Dec 08, 2016 10:53 pm 
Offline
double-veteran
double-veteran

Joined: Tue Mar 24, 2015 8:12 pm
Posts: 1209
Has thanked: 20 times
Have thanks: 574 times
if Sir Kane wants to prove its not true, I'm still waiting for a .dat file offset where lzma is used.


Top
 Profile  
 
 Post subject: Re: watch dogs 2 .dat .fat archive?
PostPosted: Thu Dec 08, 2016 11:07 pm 
Offline
double-veteran
double-veteran

Joined: Tue Mar 24, 2015 8:12 pm
Posts: 1209
Has thanked: 20 times
Have thanks: 574 times
nothing?


Top
 Profile  
 
 Post subject: Re: watch dogs 2 .dat .fat archive?
PostPosted: Fri Dec 09, 2016 4:11 am 
Offline
veteran

Joined: Mon Aug 06, 2012 4:14 am
Posts: 94
Has thanked: 0 time
Have thanks: 61 times
http://sktest.aruarose.com/WD2Extract.7z


Top
 Profile  
 
 Post subject: Re: watch dogs 2 .dat .fat archive?
PostPosted: Fri Dec 09, 2016 4:25 am 
Offline
ultra-n00b

Joined: Mon Sep 08, 2014 11:20 am
Posts: 7
Has thanked: 4 times
Have thanks: 0 time
Sir Kane wrote:
http://sktest.aruarose.com/WD2Extract.7z


Sir Kane, may I ask how did you extract the file names from the data?


Top
 Profile  
 
 Post subject: Re: watch dogs 2 .dat .fat archive?
PostPosted: Fri Dec 09, 2016 5:05 am 
Offline
veteran

Joined: Mon Aug 06, 2012 4:14 am
Posts: 94
Has thanked: 0 time
Have thanks: 61 times
There's a function pointer the game calls with the string to hash if it's non-null, so I just set the function pointer to a function that dumps the passed in string into a file.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 279 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 19  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: andree, Yahoo [Bot] and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group