Hitman 6 (*.pc_rpkg)

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
happyend
Posts: 157
Joined: Sun Aug 24, 2014 8:54 am

Hitman 6 (*.pc_rpkg)

Post by happyend »

There are two files chunk1.pc_rpkg (4gb) and chunk0.pc_rpkg (3,4gb).
use filecutter script
Samples:

http://www60.zippyshare.com/v/9YFT3SGu/file.html
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Hitman 6 (*.pc_rpkg)

Post by aluigi »

Strange format but let me know if there is something interesting:
http://aluigi.org/papers/bms/others/pc_rpkg.bms
happyend
Posts: 157
Joined: Sun Aug 24, 2014 8:54 am

Re: Hitman 6 (*.pc_rpkg)

Post by happyend »

script is work,thx!!!
lllccc
Posts: 32
Joined: Thu Apr 02, 2015 3:07 pm

Re: Hitman 6 (*.pc_rpkg)

Post by lllccc »

lmao i was just about to post this thank you so much
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Hitman 6 (*.pc_rpkg)

Post by Ekey »

Code: Select all

get DUMMY longlong

It's simple 64bit hash of file name (MD5 + Custom).
Last edited by Ekey on Sat Jul 25, 2015 3:56 pm, edited 1 time in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Hitman 6 (*.pc_rpkg)

Post by aluigi »

MD5+custom looks like a salted hash rather than just a "simple" hash :)
Do you have the list of names and relative hashes?
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Hitman 6 (*.pc_rpkg)

Post by Ekey »

aluigi wrote:MD5+custom looks like a salted hash rather than just a "simple" hash :)

;)

aluigi wrote:Do you have the list of names and relative hashes?

You mean like?

Code: Select all

1122334455667788 - FILENAME 1
AABBCCDDEEFFAA - FILENAME 2
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Hitman 6 (*.pc_rpkg)

Post by Ekey »

Here base if you want :)

Edited: See below
Last edited by Ekey on Mon Jul 27, 2015 2:49 pm, edited 1 time in total.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Hitman 6 (*.pc_rpkg)

Post by aluigi »

Namecrc rocks :)
I have attached the modified script that loads the names.

Just a note for the future, the best format for the list is "0xhash filename", very simple.
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Hitman 6 (*.pc_rpkg)

Post by Ekey »

aluigi wrote:Namecrc rocks :)
I have attached the modified script that loads the names.

Good job :p

aluigi wrote:Just a note for the future, the best format for the list is "0xhash filename", very simple.

Opps. Ok. Just Dephi don't accept values with 0x :)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Hitman 6 (*.pc_rpkg)

Post by aluigi »

No problem I will try to make the Namecrc command a bit smarter to guess if the hash is decimal or hex
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Hitman 6 (*.pc_rpkg)

Post by Ekey »

I tested script and see some files can't be extracted with original name because they have a long path more than 255 characters and QuickBMS it offers to rename them.

Also some names can't be detected and set name like 0000000000000434.dat which should not be. Example :

Image
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Hitman 6 (*.pc_rpkg)

Post by aluigi »

Great job with the file "assembly\templates\aspectdummy.aspect\assembly\_pro\environment\geometry\props\sculptures\sculpture_palace_covered_a.wl2\sculpture_palace_covered_a_00.prim.entitytype\modules\runtime.physics.moduleinfo\zclothcustommeshentity.class.entitytype\modules\game.ui.moduleinfo\zworldmapmarkerentity.class.entitytype.pc_entitytype".

Quickbms already handles the long filenames (it's simply necessary to add the \\?\ prefix) but in this case the problem were the folders for which this method wasn't used. Going to fix it.

I'm investigating why the crc of that file is not found.
*edit* problem found and will be fixed in next version.

Thanks for both the findings.
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Hitman 6 (*.pc_rpkg)

Post by Ekey »

btw: first file - it's meta - contained additional headers for chunks like textures, objects etc.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Hitman 6 (*.pc_rpkg)

Post by aluigi »

I'm thinking about the NameCRC command.
Currently the problem is that it reads the crc/hash from the file as a number so decimal by default and considered as hex if it has the 0x prefix.

Personally I don't care about the decimal notation for crc but I don't know if other people will use it.

Now, "guessing" if it's decimal or hex without 0x is too complex and long so I need a solution.
I'm ready to remove the support for decimal notation (basically 1234 will be considered as 0x1234 and not 1234, both 32 and 64bit) but I would like to know your opinion, after all you, Ekey, are probably the only one who creates the list of hashed names so let me know what you think.
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Hitman 6 (*.pc_rpkg)

Post by Ekey »

Here solution. No unknown files now.

Note: Some files can be duplicated but it's not big problem, right? :)
michalss
Posts: 320
Joined: Sun Aug 10, 2014 12:49 pm

Re: Hitman 6 (*.pc_rpkg)

Post by michalss »

aluigi wrote:I'm thinking about the NameCRC command.
Currently the problem is that it reads the crc/hash from the file as a number so decimal by default and considered as hex if it has the 0x prefix.

Personally I don't care about the decimal notation for crc but I don't know if other people will use it.

Now, "guessing" if it's decimal or hex without 0x is too complex and long so I need a solution.
I'm ready to remove the support for decimal notation (basically 1234 will be considered as 0x1234 and not 1234, both 32 and 64bit) but I would like to know your opinion, after all you, Ekey, are probably the only one who creates the list of hashed names so let me know what you think.



Decimal is always better (i was always wonder why used hex on the first place)... thx all for research :)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Hitman 6 (*.pc_rpkg)

Post by aluigi »

That's a good point.
From the next version will be even possible to use memory files as list of hashes so it means it's possible to embed the whole list as a compressed variable... 23 megabytes of list is only 2 megabytes already embedded in the script :D
In that case the space occupied by the additional 0x prefix is irrelevant since it's all compressed.
MemeGang
Posts: 11
Joined: Sat Jul 25, 2015 9:51 am

Re: Hitman 6 (*.pc_rpkg)

Post by MemeGang »

Ekey wrote: :

Image


What is that second tool?
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Hitman 6 (*.pc_rpkg)

Post by Ekey »

MemeGang wrote:What is that second tool?

Use QuickBMS ;)