FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   Project CARS 2/3 Bff Decryption Tool (https://fileforums.com/showthread.php?t=102524)

Razor12911 06-01-2019 03:41

Project CARS 2/3 Bff Decryption Tool
 
1 Attachment(s)
Hello, here's the release of the decryption tool for this particular game.

At least the devs didn't use extreme compression settings like the FIFA 19 release even though they are called Slightly Mad Studio... :rolleyes:

Enjoy.

Shateiel 06-01-2019 12:13

Assuming you did your research, won't link zenhax/xentax, and if not, here you go:

https://forum.xentax.com/viewtopic.php?f=16&t=17057

Seems its using RC4, don't have bff file to test, any sample would be appreciated.

Razor12911 06-01-2019 14:07

Quote:

Originally Posted by Shateiel (Post 478477)
Assuming you did your research, won't link zenhax/xentax, and if not, here you go:

https://forum.xentax.com/viewtopic.php?f=16&t=17057

Seems its using RC4, don't have bff file to test, any sample would be appreciated.

I was rather expecting stuff like, don't waste your time on this because of slow recompression but I guess I shouldn't worry about that, and yes. I did a bit of research, for now. I figured out how to decrypt pretty much the entire game, all I need is a good strategy of detecting streams without reading the headers :) so I guess all is in good order.

yasitha 06-01-2019 18:34

Quote:

Originally Posted by Razor12911 (Post 478480)
:D

Who is This this Guy?
Where'd he from?
I think he's an aline :D

Tadaa.... Gotcha ;)

Hi bro what you need,
Just tell me what to do,
I want to help you.... You know like old days...

Shateiel 06-01-2019 20:47

Quote:

Originally Posted by Razor12911 (Post 478480)
I was rather expecting stuff like, don't waste your time on this because of slow recompression but I guess I shouldn't worry about that, and yes. I did a bit of research, for now. I figured out how to decrypt pretty much the entire game, all I need is a good strategy of detecting streams without reading the headers :) so I guess all is in good order.


Don't think there is any other way but to look for "PAK " and then parse and decrypt. You could've looked for encrypted headers as RC4 is simple, made a class reader to decrypt while reading to decompress, but thats out of option when recompressor and decyptor are two different exe.

Unless you got some some other brilliant idea which you can share (:

Razor12911 07-01-2019 14:55

Quote:

Originally Posted by Shateiel (Post 478484)
Don't think there is any other way but to look for "PAK " and then parse and decrypt. You could've looked for encrypted headers as RC4 is simple, made a class reader to decrypt while reading to decompress, but thats out of option when recompressor and decyptor are two different exe.

Unless you got some some other brilliant idea which you can share (:

Well I managed to do it without looking for "PAK " and parsing any of the headers :D

using bdt+oo2reck:
Code:

Compressed 1 file, 4,339,674 => 16,546,064 bytes. Ratio 381.27%
Compression time: cpu 0.03 sec/real 2.79 sec = 1%. Speed 1.56 mB/s

Extracted 1 file, 16,546,064 => 4,339,674 bytes. Ratio 381.27%
Extraction time: cpu 0.00 sec/real 0.77 sec = 0%. Speed 5.63 mB/s

4,13 MB (4 339 674 bytes) >> 15,7 MB (16 546 306 bytes)

using QuickBMS and nfsshift.bms:
Code:

4,13 MB (4 339 674 bytes) >> 15,7 MB (16 543 104 bytes)
Edit:

A bit bigger input this time and here are the results:
Code:

Compressed 1 file, 332,106,505 => 1,904,256,950 bytes. Ratio 573.39%
Compression time: cpu 0.70 sec/real 126.43 sec = 1%. Speed 2.63 mB/s

Tested 1 file, 1,904,256,950 => 332,106,505 bytes. Ratio 573.39%
Testing time: cpu 0.75 sec/real 27.13 sec = 3%. Speed 12.24 mB/s


yasitha 07-01-2019 19:56

Quote:

Originally Posted by Razor12911 (Post 478519)
Well I managed to do it without looking for "PAK " and parsing any of the headers :D

using bdt+oo2reck:
Code:

Compressed 1 file, 4,339,674 => 16,546,064 bytes. Ratio 381.27%
Compression time: cpu 0.03 sec/real 2.79 sec = 1%. Speed 1.56 mB/s

Extracted 1 file, 16,546,064 => 4,339,674 bytes. Ratio 381.27%
Extraction time: cpu 0.00 sec/real 0.77 sec = 0%. Speed 5.63 mB/s

4,13 MB (4 339 674 bytes) >> 15,7 MB (16 546 306 bytes)

using QuickBMS and nfsshift.bms:
Code:

4,13 MB (4 339 674 bytes) >> 15,7 MB (16 543 104 bytes)
Edit:

A bit bigger input this time and here are the results:
Code:

Compressed 1 file, 332,106,505 => 1,904,256,950 bytes. Ratio 573.39%
Compression time: cpu 0.70 sec/real 126.43 sec = 1%. Speed 2.63 mB/s

Tested 1 file, 1,904,256,950 => 332,106,505 bytes. Ratio 573.39%
Testing time: cpu 0.75 sec/real 27.13 sec = 3%. Speed 12.24 mB/s


Always the Smart One ;) Good Work :) Mate..

masen485 07-01-2019 20:58

Hi Razor12911
 
Hi Razor12911
Very nice development
Thank you
Project CARS 2 bff Decryptor (WIP)
Fit to try the application you're glued to?

Razor12911 08-01-2019 14:09

Initial release uploaded

Tested on:
Project CARS 2 - Spirit of Le Mans vers 7.1.0.1 (12/2018)

Pakfiles\Vehicles:
Code:

Compressed 703 files, 6,564,499,114 => 15,042,895,652 bytes. Ratio 229.16%
Compression time: cpu 41.98 sec/real 4437.19 sec = 1%. Speed 1.48 mB/s

Tested 703 files, 15,042,895,652 => 6,564,499,114 bytes. Ratio 229.16%
Testing time: cpu 15.78 sec/real 549.54 sec = 3%. Speed 11.95 mB/s

I wonder what game should be next to try and decrypt... :rolleyes:

doofoo24 08-01-2019 23:36

1 Attachment(s)
ok;
so done compressing with srep+lolz bff files 45.6gb > 95.6gb > 42.4gb > 18.9gb :D
bdt+oo2reck took around 3 hours...
edit : decompression it get to 4.7% remain stuck then data corrupt
it seem that bdt disappear in the processes but oo2reck continue to work for while then i get error

yasitha 08-01-2019 23:38

Quote:

Originally Posted by doofoo24 (Post 478601)
ok;
so done compressing with srep+lolz bff files 45.6gb > 95.6gb > 42.4gb > 18.9gb :D
bdt+oo2reck took around 3 hours

Nicely done... Numbers.... :D

KaktoR 09-01-2019 05:06

Quote:

Originally Posted by doofoo24 (Post 478601)
ok;
so done compressing with srep+lolz bff files 45.6gb > 95.6gb > 42.4gb > 18.9gb :D
bdt+oo2reck took around 3 hours...
edit : decompression it get to 4.7% remain stuck then data corrupt
it seem that bdt disappear in the processes but oo2reck continue to work for while then i get error

Have you tested with unpack.bat?

doofoo24 09-01-2019 07:14

ya the same thing :)
it manage to decompress 2.12gb then the bdt disappear :confused:

Razor12911 09-01-2019 15:21

could you run bdt by itself to see what happens when you unpack, since anyways it's fastest way I can think of to start debugging this thing

doofoo24 09-01-2019 15:57

ok so bdt alone decompress fine...

Razor12911 09-01-2019 16:03

that's interesting is it not? so is the issue bdt or?

doofoo24 09-01-2019 16:15

i did not tested on the whole game just on 3gb of bff
and did test bdt+oo2reck without srep+lolz.
it did decompress without error
edit : tested bdt alone on all bff files decompress without error...

Razor12911 09-01-2019 16:31

Quote:

Originally Posted by doofoo24 (Post 478642)
i did not tested on the whole game just on 3gb of bff
and did test bdt+oo2reck without srep+lolz.
it did decompress without error
edit : tested bdt alone on all bff files decompress without error...

Could you also try finding the bff that raises this issue if possible because I already uninstalled the game due it being boring af :(

doofoo24 09-01-2019 16:35

need to test bdt+oo2reck without srep+lolz on different folders...

doofoo24 09-01-2019 16:54

1 Attachment(s)
interesting oo2reck cpu usage most of the time stay at 11%...

Razor12911 09-01-2019 17:18

it has single threaded scanning and multi threaded processing, it's not like xtool where everything is multi threaded (scanning and processing), scanning takes time because it has to find out the decompressed size of specific streams and it has to decompress it several times until the size comes out.

edit: furthermore, the game has large streams with no uniform sizes which result in the process taking longer than it should

doofoo24 09-01-2019 17:53

edit : ok decompress without error...

Razor12911 27-08-2020 21:51

I just ran a test and the same tool works for Project Cars 3

You need to use oo2core_8_win64.dll from the game, rename it to oo2core_7_win64.dll so it can be used by oo2reck

Pakfiles\HRDFPERSISTENT.bff

-moo2reck:
Code:

Tested 1 file, 105,349,913 => 105,349,877 bytes. Ratio 100.00%
Testing time: cpu 0.09 sec/real 0.13 sec = 71%. Speed 792.55 mB/s

-mbdt+oo2reck:
Code:

Tested 1 file, 351,678,627 => 105,349,877 bytes. Ratio 333.82%
Testing time: cpu 0.13 sec/real 6.46 sec = 2%. Speed 16.30 mB/s

@moderator
please update title and thanks :)

L0v3craft 27-08-2020 22:51

Quote:

Originally Posted by Razor12911 (Post 487611)
I just ran a test and the same tool works for Project Cars 3

Try it on "VEHICLEUPGRADES.bff" and test the decompression.

dixen 28-08-2020 05:01

Little test P.C3

bdt+oo2reck
Quote:

Compressed 17 files, 287,031,418 => 1,801,889,432 bytes. Ratio 627.77%
Compression time: cpu 0.33 sec/real 129.51 sec = 0%. Speed 2.22 mB/s
All OK
Unpack
Quote:


Extracted 17 files, 1,801,889,432 => 287,031,418 bytes. Ratio 627.77%
Extraction time: cpu 0.69 sec/real 12.04 sec = 6%. Speed 23.85 mB/s
All OK

Grumpy 28-08-2020 06:07

Quote:

Originally Posted by Razor12911 (Post 487611)
@moderator
please update title and thanks :)

Done and you're welcome

Razor12911 28-08-2020 15:03

1 Attachment(s)
Quote:

Originally Posted by L0v3craft (Post 487612)
Try it on "VEHICLEUPGRADES.bff" and test the decompression.

I already uninstalled game as it ran away from the racing simulation roots while maintaining the same name. Very disappointing... :(

Edit:

I did something like what this person did (comments from IGN's review of the game on YouTube)

hwang4 29-08-2020 07:14

After testing on all "bff" files , only these two files caused problem with "bdt"

- VEHICLEUPGRADES.bff
- Shanghai[Group].bff

hope this will help!:)

dixen 18-09-2020 09:29

Razor12911
What about PC1 (2015)? BFF don't decompress with bdt or oo2reck(( But unpack with QuickBMS and reimport very slow
Sample here

Hexagon123 01-10-2020 16:48

Does this work with Fast & Furious Crossroads (2020) PC game, some files are encrypted?

Razor12911 01-10-2020 18:04

Quote:

Originally Posted by dixen (Post 487990)
Razor12911
What about PC1 (2015)? BFF don't decompress with bdt or oo2reck(( But unpack with QuickBMS and reimport very slow
Sample here

I wonder why didn't I see this but the reason PC1 I didn't add support for this game is because I didn't really have it :D

Quote:

Originally Posted by Hexagon123 (Post 488108)
Does this work with Fast & Furious Crossroads (2020) PC game, some files are encrypted?

You can always try and find out

valentim725 27-03-2022 18:11

someone can help me how to use this tool

Razor12911 28-03-2022 10:37

The attachment in the main post contains an example where you place files in the pack folder or edit pack.bat to set the path of the game then run the pack bat to both decrypt and decompress the streams of the game.


All times are GMT -7. The time now is 02:02.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com