Hitman (2016) *.RPKG files [REQUEST]

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Godxon 1
Posts: 37
Joined: Sat Feb 13, 2016 8:52 am

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by Godxon 1 »

Thank you very much, Aluigi :)
AnonBaiter
Posts: 1125
Joined: Tue Feb 02, 2016 2:35 am

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by AnonBaiter »

Wow aluigi. It's very unusual of you to post the script in its entirety instead of posting a link of the .bms file. I'll appreciate it either way,
MemeGang
Posts: 11
Joined: Sat Jul 25, 2015 9:51 am

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by MemeGang »

Just wanted to say huge thanks to Aluigi and Ekey for working on this! :D

How long could we be waiting for a hash list to be implemented in the script?

Obviously we don't have a plain text hash file to work from anymore. But it's probably still there somewhere obviously.
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by id-daemon »

Can anyone at least CONFIRM that the key that I've found is working for all game files?
MemeGang
Posts: 11
Joined: Sat Jul 25, 2015 9:51 am

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by MemeGang »

Yeah, id-deamon, it works for all the archives.

Not sure if it works for the thumbs.dat and packagedefinitions.txt
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by id-daemon »

Ok, good. Yet I have a feeling that files are still compressed by some simple algorithm. Because most of the text is readable, but it breaks with some strange bytes from time to time. Maybe it was the same in previous hitman games, I never worked with hitman before.

Also it seems the resource table files are not xored (as I can see by the final 16MB part provided), and Luigi's script xores them all for the moment.
Last edited by id-daemon on Sun Mar 20, 2016 8:10 am, edited 1 time in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by aluigi »

Script 0.2 with everything implemented :)
http://aluigi.org/bms/hitman_2016.bms
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by id-daemon »

aha! So it was lz4 indeed.
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by Ekey »

Here script for unpack with names. Lots of duplicates of files.
Last edited by Ekey on Sun Mar 20, 2016 10:58 am, edited 4 times in total.
MemeGang
Posts: 11
Joined: Sat Jul 25, 2015 9:51 am

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by MemeGang »

Man, I don't even know what to say.
Huge thanks to anyone working on this.

Ekey's script removed a whole bunch of PNG's and files. Script still may need work yet.
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by id-daemon »

aluigi wrote:Script 0.2 with everything implemented :)
http://aluigi.org/bms/hitman_2016.bms


I think these "type" names must be reversed. Like DXET = TEXD

Also some files that supposed to be not xored are xored now. Must be some flag for that.
Namely the types of:

TEXD (textures), WWEM (wwise), GFXV (video?)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by aluigi »

@MemeGang
remember to use quickbms_4gb_files.exe for the extraction because the hashes are 64bit (quickbms.exe is limited to 32bit integers).

@id-daemon2
Apparently those non-compressed (ZSIZE 0) may be non obfuscated, any confirmation?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by aluigi »

I have updated the script with the reversed TYPE and the obfuscation applied only to the compressed files.
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by id-daemon »

aluigi wrote:Apparently those non-compressed (ZSIZE 0) may be non obfuscated, any confirmation?


No.

It seems now TEXD & WWEM files are OK, but WWEV are not. WWEV were OK last time.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by aluigi »

Just to recap, "TEXD" and "WWEM" are the only non obfuscated types of files. Right?
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by id-daemon »

I'm not sure now. I didn't check them all.
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by id-daemon »

Ok, it seems that 0x80000000 flag in size is an obfuscation flag.

All WWEV files are obfuscated, but only some of them are compressed.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by aluigi »

Script 0.2.2 :)
id-daemon
Posts: 1040
Joined: Sun Mar 22, 2015 7:09 pm

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by id-daemon »

Looks all OK now ;)
MemeGang
Posts: 11
Joined: Sat Jul 25, 2015 9:51 am

Re: Hitman (2016) *.RPKG files [REQUEST]

Post by MemeGang »

Ekey wrote:Here script for unpack with names. Lots of duplicates of files.


Where did you get the hash list from? would it be possible to get the rest of the hashes?

Also Aluigi
All the WWEM files are Exporting as .wav, they should be .wem.
All the GFXV files are Exporting as .cri, they should be .usm.
Hopefully we can get the other hashes and that will fix the above.


Also, when using the 4gb executable & ekey's hash list, the script doesn't folder explore Unknown correctly or something because it misses the PNG files, and everything is not sorted by folders.

Script 0.3 when? ;)