FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   Unreal Engine 4 Decryption Tool (https://fileforums.com/showthread.php?t=103145)

Razor12911 07-11-2019 10:16

Unreal Engine 4 Decryption Tool
 
1 Attachment(s)
Usage:
Code:

ue4dt.exe e|d -m# -c# -b# -k# <stdin> <stdout>
Code:

-m = method (1 = games that use borderlands3, street figher v... format, 2 = games that use rune ii format)
-c = chunk size
-b = block count
-k = key in hexadecimal.

The key must be in hexadecimal format. Other key formats will not work because there is currently no parser for them yet.

I am not sure if this is universal, I don't have any unreal engine games and I was sent a small sample to work on. Borderlands 3 "pakchunk2-WindowsNoEditor_0_P.pak", seems like it works

Note: This only decrypts, you'll have to find other means of precompressing the data. The input/output size remains the same.

ShivShubh 07-11-2019 10:21

And the legend is back ... :)
Key for Borderlands 3:
Code:

0x115EE4F8C625C792F37A503308048E79726E512F0BF8D2AD7C4C87BC5947CBA7

ZAZA4EVER 07-11-2019 10:49

Welcome Back My Bro
You Do it
Thanks , i will test it

PSP17 07-11-2019 12:30

Awesome, hope we will see the same for RDR2 files :)

Razor12911 07-11-2019 15:21

Update available

Changes

- Replaced old SHA and AES functions for more optimized ones

Notes

- This is backwards compatible with first release, it's just faster

FitGirl 08-11-2019 11:01

Thanks for the tool, works OK for BL3. Is it possible to reduce the buffer size? Now it eats >256 MB of RAM on relatively small files? Combined with main algo, srep and xtool it can easily kill all the RAM :)

Razor12911 08-11-2019 15:06

Update available

Changes

- Fixed minor issues, thanks ShivShubh
- Added chunk size option as requested, its setting is optional

Notes

- This thing does not work like xtool where setting small/big chunk size has little to no difference, if an encrypted stream is truncated, it will not be decrypted
- Make sure the chunk size you use when encoding is the same as the one you set when decoding
- You may also have noticed, the key and chunk size are repeated when encoding and when decoding (the command line), that is because this tool does not store headers of its own to recall this information, which is why I did mention that the input/output size is always the same
- You can input a different key if you plan on reencrypting the data using another key, not sure why you would be doing that though but it is possible :)

Usage
Code:

ue4dt.exe e|d[chunksize] key <stdin> <stdout>
Quote:

Originally Posted by PSP17 (Post 483381)
Awesome, hope we will see the same for RDR2 files :)

I'm just waiting for the key, I already have plans on how to precompress that game.

darkwolves 14-11-2019 15:31

anyone have the decryption key for street fighter 5?
i have the aes_binary one but when i go to pack it back up it doesn't work right

dixen 14-11-2019 23:10

Quote:

Originally Posted by darkwolves (Post 483445)
anyone have the decryption key for street fighter 5?
i have the aes_binary one but when i go to pack it back up it doesn't work right

Same thing

darkwolves 14-11-2019 23:26

Quote:

Originally Posted by dixen (Post 483447)
Same thing

it crashes on use of aes key

DiCaPrIo 15-11-2019 00:42

should it work on t7

DiCaPrIo 15-11-2019 00:45

Quote:

Originally Posted by darkwolves (Post 483445)
anyone have the decryption key for street fighter 5?
i have the aes_binary one but when i go to pack it back up it doesn't work right

https://forum.xentax.com/viewtopic.php?t=13982

darkwolves 15-11-2019 04:17

Quote:

Originally Posted by DiCaPrIo (Post 483450)

that is the key i have and i have tried those tools

ShivShubh 15-11-2019 06:53

Quote:

Originally Posted by darkwolves (Post 483453)
that is the key i have and i have tried those tools

Use this:
Code:

0x5f6153346d665a4b384d3573354b5743324c7a325673466e474b4937617a676c
If it doesn't works then use in all caps.

darkwolves 15-11-2019 15:58

Quote:

Originally Posted by ShivShubh (Post 483457)
Use this:
Code:

0x5f6153346d665a4b384d3573354b5743324c7a325673466e474b4937617a676c
If it doesn't works then use in all caps.

trying that now

darkwolves 15-11-2019 16:49

hmmm caplitlized or not it had no effect

ShivShubh 15-11-2019 17:37

Quote:

Originally Posted by darkwolves (Post 483467)
hmmm caplitlized or not it had no effect

Razor's tool needs update for PAK files that are only encrypted but not compressed.

Razor12911 15-11-2019 18:05

Quote:

Originally Posted by ShivShubh (Post 483468)
Razor's tool needs update for PAK files that are only encrypted but not compressed.

actually that isn't the issue, the headers slightly differ in some of these games compared to what borderlands 3 had and I lack samples so... :rolleyes:

darkwolves 15-11-2019 18:17

Quote:

Originally Posted by Razor12911 (Post 483469)
actually that isn't the issue, the headers slightly differ in some of these games compared to what borderlands 3 had and I lack samples so... :rolleyes:

i'll give you a sample but your inbox is always full

Razor12911 15-11-2019 18:18

post it here

darkwolves 15-11-2019 18:22

Quote:

Originally Posted by Razor12911 (Post 483471)
post it here

i shall it will be a zippy share link none of the files are small enough to put here

darkwolves 15-11-2019 18:25

street fighter 5 tournament editon sample sample
 
https://www64.zippyshare.com/v/yssI0YkF/file.html

darkwolves 15-11-2019 18:33

Quote:

Originally Posted by ShivShubh (Post 483468)
Razor's tool needs update for PAK files that are only encrypted but not compressed.

street fighter 5 is compressed
tekken 7 isn't but that game is non issue for me i have no problems with it
but when i extract SF5 and pack it back up it.. i end up having only 1 stage and ryu and ken are the only selectable fighters...
it is the only ue4 game i have problems with..
recently i decrypted soul calibur 6 no problems on it either..
i have decrypted many games but this one for some reason does not act right packed back up...

ShivShubh 15-11-2019 18:52

Quote:

Originally Posted by darkwolves (Post 483474)
street fighter 5 is compressed
tekken 7 isn't but that game is non issue for me i have no problems with it
but when i extract SF5 and pack it back up it.. i end up having only 1 stage and ryu and ken are the only selectable fighters...
it is the only ue4 game i have problems with..
recently i decrypted soul calibur 6 no problems on it either..
i have decrypted many games but this one for some reason does not act right packed back up...

It does not act right after packing because of incorrect file paths or improper files similar to Borderlands 3. If the game can read a modified PAK file then it should have no problem at all unless you have wrong file paths or missing/corrupt files (often caused by BMS script).

darkwolves 15-11-2019 18:55

Quote:

Originally Posted by ShivShubh (Post 483475)
It does not act right after packing because of incorrect file paths or improper files similar to Borderlands 3. If the game can read a modified PAK file then it should have no problem at all unless you have wrong file paths or missing/corrupt files (often caused by BMS script).

indeed it was extracted by a bms script and packed pack up using unrealpack
i have done this with many games SF5 seemes temperamental with it though
i think some kind oc coding ties all the files together.. and when i extract them it messes them up

ShivShubh 15-11-2019 19:19

Quote:

Originally Posted by darkwolves (Post 483476)
indeed it was extracted by a bms script and packed pack up using unrealpack
i have done this with many games SF5 seemes temperamental with it though
i think some kind oc coding ties all the files together.. and when i extract them it messes them up

This is exactly why I use UnrealPak to extract PAK files because thats what its designed to do. BMS is a user-defined script and may go wrong anywhere possible. In one of the PAK files of Borderlands 3, QBMS and UnrealPak extract exactly same amount of files and they were almost exactly same in size (differing only in few bytes). Those few bytes were crashing the entire game.

This is just one reason, another reason is PAK files once extracted are sometimes not in their so called "Cooked" path folders so if you just pack them for use, game will not be able to read the files inside that new PAK file.

darkwolves 15-11-2019 19:50

Quote:

Originally Posted by ShivShubh (Post 483478)
This is exactly why I use UnrealPak to extract PAK files because thats what its designed to do. BMS is a user-defined script and may go wrong anywhere possible. In one of the PAK files of Borderlands 3, QBMS and UnrealPak extract exactly same amount of files and they were almost exactly same in size (differing only in few bytes). Those few bytes were crashing the entire game.

This is just one reason, another reason is PAK files once extracted are sometimes not in their so called "Cooked" path folders so if you just pack them for use, game will not be able to read the files inside that new PAK file.

i have the unpacker too used it on tekken 7 when i first did it and my fighters were showing up invisible so i used a bms and unreal to pack it and its fine..
i also tried it on street fighter 5.. and it had alot of problems as well although other games it worked perfect on

Razor12911 15-11-2019 20:22

Update available

Changes

- Fixed minor issues
- Added support for Street Fighter V type of headers

Notes

- The person who asked for Rune II support, well this has a similar format as the other games just minor differences in the header structure therefore a sample from another game which has something similar is required, better if that game also has compressed streams, not just encrypted
- Keys are in hexadecimal, they are not case-sensitive meaning letters can be upper case or lower case, it doesn't make a difference.
- I changed a few things in the source, but then this thing of changing keys for each sample has left not being sure whether the support for borderlands 3 was left unaffected, you may want to check that and compare it to last release

Useful links

Here's a link where you can get keys for some games:
https://www.zenhax.com/viewtopic.php...rt=1160#p51604

Razor12911 15-11-2019 20:23

Quote:

Originally Posted by darkwolves (Post 483445)
anyone have the decryption key for street fighter 5?
i have the aes_binary one but when i go to pack it back up it doesn't work right

Quote:

Originally Posted by darkwolves (Post 483473)

using ue4dt+pzlib:

Code:

Compressed 1 file, 56,672,272 => 161,948,344 bytes. Ratio 285.76%
Compression time: cpu 0.03 sec/real 10.25 sec = 0%. Speed 5.53 mB/s


darkwolves 15-11-2019 20:38

Quote:

Originally Posted by Razor12911 (Post 483481)
using ue4dt+pzlib:

Code:

Compressed 1 file, 56,672,272 => 161,948,344 bytes. Ratio 285.76%
Compression time: cpu 0.03 sec/real 10.25 sec = 0%. Speed 5.53 mB/s


TY Razor
i'm going to test on the entire .pak pak folder content and post inflation results

darkwolves 15-11-2019 20:42

C:\Users\Wolf\Desktop\ue4dt_R4>del /q data.arc
Could Not Find C:\Users\Wolf\Desktop\ue4dt_R4\data.arc

C:\Users\Wolf\Desktop\ue4dt_R4>arc.exe a -ep1 -r -ed -s; -w.\temp -mue4dt+deflate
data.arc "pack\*"
FreeArc 0.67 (March 15 2014) creating archive: data.arc
Compressing 70 files, 27,092,819,816 bytes. Processed 0.7%
ERROR: write error (disk full?) in compression algorithm ue4dt


C:\Users\Wolf\Desktop\ue4dt_R4>pause
Press any key to continue . . .

hmm..

Razor12911 15-11-2019 20:49

figure out which pak is causing this and upload it.
if the pak is massive, upload the chunk/section where the program fails.

darkwolves 15-11-2019 20:50

@razor12911 its probably the 5 gb file the first one

Razor12911 15-11-2019 20:53

Quote:

Originally Posted by darkwolves (Post 483485)
@razor12911 its probably the 5 gb file the first one

yes of course it is the first 5gb file, I wonder why did I ask for samples in the first place :rolleyes:

darkwolves 15-11-2019 20:53

i am going to split it into peices using 7 zip and send it

darkwolves 15-11-2019 20:54

Quote:

Originally Posted by Razor12911 (Post 483486)
yes of course it is the first 5gb file, I wonder why did I ask for samples in the first place :rolleyes:

well that folder has 69 individual .pak files in it lol

darkwolves 15-11-2019 21:17

Compressed 2 files, 2,845,529,487 => 8,213,974,533 bytes. Ratio 288.66%
Compression time: cpu 6.12 sec/real 211.28 sec = 3%. Speed 13.47 mB/s
All OK

this happend after removing 0x from the hexidecimal key

Razor12911 16-11-2019 05:34

Help a brother out and figure out which chunk is buggy, I couldn't care less about this tool because I don't have any unreal engine games and I wouldn't use it if I had any games that supported it... Too much work

ShivShubh 16-11-2019 05:44

Quote:

Originally Posted by darkwolves (Post 483490)
the 5 gb file broken into parts
[/URL]

Split the 5gb file into 256mb chunks or lower. Then process each chunks with the tool (ue4dt only) and see which chunk is failing. If multiple chunks are failing then no need to upload all of them. Just upload 1 chunk that fails and share the link here.

darkwolves 16-11-2019 06:10

Quote:

Originally Posted by ShivShubh (Post 483497)
Split the 5gb file into 256mb chunks or lower. Then process each chunks with the tool (ue4dt only) and see which chunk is failing. If multiple chunks are failing then no need to upload all of them. Just upload 1 chunk that fails and share the link here.

will do a little later i have to run errands


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

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