Unreal Engine 4 pak-file Unpacker / unreal_tournament_4.bms [UE4 global topic]

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Killnus
Posts: 13
Joined: Tue Jun 16, 2020 3:59 pm

Re: Unreal Engine 4 pak-file Unpacker / unreal_tournament_4.bms [UE4 global topic]

Post by Killnus »

how to edit sword art online texts? i open .pak but all files uasset
TNT
Posts: 5
Joined: Thu Aug 20, 2020 8:39 pm

THPS1+2 not extracting all data

Post by TNT »

I'm using the AES key and it appears to be working, but extracted is only coming out around 2 GB where the PAK is over 8 GB.

Also tried with UnrealPak.exe and it's getting more files, but the extras are all empty 0kb.

I tried to search, but I'm new to this. I am on Windows 10.
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

Re: Unreal Engine 4 pak-file Unpacker / unreal_tournament_4.bms [UE4 global topic]

Post by spiritovod »

@TNT: Not sure how you've managed to extract 2GB, since base script fails at first megabyte and umodel can extract almost 8GB of graphics out of it. Anyway, use corresponding specific script from this post to extract all assets from the pak.
TNT
Posts: 5
Joined: Thu Aug 20, 2020 8:39 pm

Re: Unreal Engine 4 pak-file Unpacker / unreal_tournament_4.bms [UE4 global topic]

Post by TNT »

I had already downloaded your script and was having problems, but I guess I've figured it out now. Did the pak need to be in the original location or something? That's about the only thing I've changed and it seems to be working fine now and had extracted over 11 GB before I ran out of space and had to move drives to try again.
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

Re: Unreal Engine 4 pak-file Unpacker / unreal_tournament_4.bms [UE4 global topic]

Post by spiritovod »

@TNT: If you mean that list of keys, embedded in the scripts, it's more like legacy of original script and more or less obsolete now, all differences are in the main part of scripts. Any UE4 script will ask you for a key anyway, if the pak you're trying to extract is encrypted. So in most cases you should just copy-paste required key upon request - unless you need some automatization, like in case with Sea of Thieves with a lot of paks. But I didn't test limitations and possible issues of the base script (like if you can input umodel formatted key as binary variable, etc), so can't say anything about that.

Back to THPS, I don't have any issues with the specific script and latest quickbms, it extracts the single game pak perfectly (~16GB totally). And I can't reproduce the issue either, maybe it's somehow related to the mentioned in the previous paragraph stuff. You can try what is considered as "normal" routine for UE4 scripts - point to specific script (don't modify it), point to pak, copy-paste key upon request (in 0x1111... format), wait until extraction is complete.

TNT wrote: Did the pak need to be in the original location or something?

Not really, it's only applied to Overhit and Gears of War 4 games, for the rest you should be able to extract paks from anywhere. But I'll check that, maybe it's a bug in the script.
pipoman
Posts: 5
Joined: Fri Aug 21, 2020 9:54 pm

Re: Unreal Engine 4 pak-file Unpacker / unreal_tournament_4.bms [UE4 global topic]

Post by pipoman »

Trying to deal with the "Pinball Wicked" encrypted .pak files. I found the AES key 0x6A974B57A0C650C359E4AC4DA952A49B244F7EF1C0A0C2919AAAA15E6CAC0FA3 but using the latest unreal_tournament_4_0.4.25 I get an error
Error: the requested amount of bytes to allocate is negative (0xfd95ef7f)
Last script line before the error or that produced the error: 246 clog NAME OFFSET ZSIZE SIZE 0 XSIZE

Is there something special with this game or I am doing something wrong?

=== EDIT

Seems like I missed two last instructions ror byte ptr ss:[esp+24],3 and ror byte ptr ss:[esp+11],4
and the AES key is 0x6A974B57A06C50C359E4AC4DA952A49B244F7EF1C0A0C29153AAA15E6CAC0FA3 instead

But still not working now the error is the following
KEY: j—KW lPÃYä¬M©R¤›$O~ñÀ Â‘Sª¡^l¬£

Error: incomplete input file -10:
Can't read 5 bytes from offset 0003c3e0.
Anyway don't worry, it's possible that the BMS script has been written
to exit in this way if it's reached the end of the archive so check it
or contact its author or verify that all the files have been extracted.
Please check the following coverage information to know if it's ok.

coverage file -10 100% 246752 246752 . offset 0003c3e0

Last script line before the error or that produced the error:
147 get CHUNK_END_OFFSET longlong TOC_FILE
huckleberrypie
Posts: 37
Joined: Sun Nov 11, 2018 2:27 am

Re: Unreal Engine 4 pak-file Unpacker / unreal_tournament_4.bms [UE4 global topic]

Post by huckleberrypie »

Anyone how to unpack the pak file off Samurai Jack: Battle Through Time? I tried umodel and it's asking me for an AES key.
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

Re: Unreal Engine 4 pak-file Unpacker / unreal_tournament_4.bms [UE4 global topic]

Post by spiritovod »

@pipoman: Basically this error means that index (TOC) was not decrypted properly, due to wrong key or additionally obfuscated index. But in this particular case I believe that game has non-standard encryption, so the key is useless as is. I've added more info in rin topic, but please reply either here or there, not in both topics simultaneously. It's very confusing.

@huckleberrypie: You can find the key in the list from my signature.

Update:
@TNT: I checked, but could not reproduce the issue you've talked about. Pak extraction doesn't depend on paths to the pak / script in this case. The only possible explanation is that you've encountered system path limit somehow (full path to a file can't be more than 248 characters by default).
sinnerclown380
Posts: 59
Joined: Tue Apr 07, 2020 10:34 am

Re: Unreal Engine 4 pak-file Unpacker / unreal_tournament_4.bms [UE4 global topic]

Post by sinnerclown380 »

Griefhelm AES key pls.
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

Re: Unreal Engine 4 pak-file Unpacker / unreal_tournament_4.bms [UE4 global topic]

Post by spiritovod »

@sinnerclown380: It's not encrypted, just use latest bms script from my signature.
sinnerclown380
Posts: 59
Joined: Tue Apr 07, 2020 10:34 am

Re: Unreal Engine 4 pak-file Unpacker / unreal_tournament_4.bms [UE4 global topic]

Post by sinnerclown380 »

spiritovod wrote:@sinnerclown380: It's not encrypted, just use latest bms script from my signature.

Thanks bro.
yusuf2020
Posts: 106
Joined: Wed Jun 17, 2020 1:12 pm

Re: Unreal Engine 4 pak-file Unpacker / unreal_tournament_4.bms [UE4 global topic]

Post by yusuf2020 »

huckleberrypie wrote:Anyone how to unpack the pak file off Samurai Jack: Battle Through Time? I tried umodel and it's asking me for an AES key.

i can unpack it and repack it AES KEY IS 0x8E0A631576F6CBE340BF039C7C5BB8632E6FDC1082E019B646B44B2846C96855 you can already repack it without encrypting
RegaFox
Posts: 2
Joined: Mon Aug 31, 2020 4:10 pm

Re: Unreal Engine 4 pak-file Unpacker / unreal_tournament_4.bms [UE4 global topic]

Post by RegaFox »

hello. i'm having little luck with the file LostEmber-WindowsNoEditor.pak

it gives me 15 options and none of them are valid.

Code: Select all

0: KIWIKIWIKIWIKIWIKIWIKIWIKIWIKIWI
1: _aS4mfZK8M5s5KWC2Lz2VsFnGKI7azgl
2: bR!@nbR0wnc@rychR!$d@nd@v3d3R3kj!mj0$hk3v!nm!ch@3lm!k3s3@nst3v3t!m
3: casd#55@#$%323!$^#b%05sa5W|hhaf4365s52ss51|55m!|{55s^@@36f233|-|0w@%3g8hssDk35/!Nm|_|%ds23%a32d5&23as3%12p|-|y$t3ds562d23fav3c@dyw38#49
4: C8C4847F3B4FA52D4AAD57A52358CDBC
5: k14z0ZLR8a7jNm49uyBzxXYY9LpTHcehLSNiC3jAkzBsffPuy8YsTa72RLD9KWIn
6: E7@[dZfoYCW;+YWR;0JK^{9tt:yU0_T&
7: E1A1F2E4AA066C54BD5090F463EDDF58D01684243672B3CE809FF47FF473B04A
8: I0vV6wr0TFbg3m23QuSIwnYC1sI0AIDq
9: y298qjSb115NqQ3Agad30DWn2QYrTI8CT6aP05l2PBV9Qe92S94PdoVCCy06A38L
10: b9uW0RKNY91be8HN3Lemi68j6Xsi2l7fQJYsp5oR4al4C4c9kY5E0l90411l9P3L
11: 45DD15D6DD2DA50AEB71CE7A5284CF8EA498B2EC3D52B7E336F3EA0071CE44B3
12: MRZpemumg6t2AXExrMQs6TSoZRG+YSABK338oc6F8kTXu4k6QffJgYAzKl65Tk2L
13: 0x9D8C9A4A4FA082F213EED604B6E756237181685EEDA82216437617D7AA5231AF
14: press RETURN for no encryption (Lineage 2 Revolution)
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

Re: Unreal Engine 4 pak-file Unpacker / unreal_tournament_4.bms [UE4 global topic]

Post by spiritovod »

@RegaFox: You can find the key in the list from my signature.

--------------------------------------------------------------

Conan Exiles specific script added to the scripts bundle. Required key is added to the list as well (only DLCs are encrypted though).
Update: After quick test it appeared that the script works fine will all game paks.
Last edited by spiritovod on Tue Sep 01, 2020 1:33 pm, edited 1 time in total.
RegaFox
Posts: 2
Joined: Mon Aug 31, 2020 4:10 pm

Re: Unreal Engine 4 pak-file Unpacker / unreal_tournament_4.bms [UE4 global topic]

Post by RegaFox »

spiritovod wrote:@RegaFox: You can find the key in the list from my signature.

--------------------------------------------------------------

Conan Exiles specific script (for DLCs extraction) added to the scripts bundle. Required key is added to the list as well.


oh. i got it working now. thanks :)
Mysticus
Posts: 182
Joined: Sat Mar 02, 2019 3:24 pm

Re: Unreal Engine 4 pak-file Unpacker / unreal_tournament_4.bms [UE4 global topic]

Post by Mysticus »

I need AES key to extract pak file from the game Night of the Dead.
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

Re: Unreal Engine 4 pak-file Unpacker / unreal_tournament_4.bms [UE4 global topic]

Post by spiritovod »

@Mysticus: Night of the Dead key added to the list. But next time please provide at least main exe to avoid full game download, it will save a lot of time.
TNT
Posts: 5
Joined: Thu Aug 20, 2020 8:39 pm

Re: Unreal Engine 4 pak-file Unpacker / unreal_tournament_4.bms [UE4 global topic]

Post by TNT »

Ok, back again, lol. Now I'm trying to decrypt the pakchunks from the full THPS1+2 release, getting an error.

For the record, I'm using this key: 0x94DEC78FBD9762E1674A3418BFE8637587659532C1C053D1F4AA650E2176286C

I've tried selecting only the first chunk, selecting all chunks, and selecting the entire folder.

I've tried using both the tony hawk specific script and the latest version script, both unaltered, from your other post @spiritovod

The error I am getting is:

Code: Select all

Error: incomplete input file -10:
       Can't read 8 bytes from offset 0000000000976190.
       Anyway don't worry, it's possible that the BMS script has been written
       to exit in this way if it's reached the end of the archive so check it
       or contact its author or verify that all the files have been extracted.
       Please check the following coverage information to know if it's ok.

  coverage file -10 100%   9920912    9920912    . offset 0000000000976190

Last script line before the error or that produced the error:
  152 get CHUNK_END_OFFSET longlong TOC_FILE

Press ENTER or close the window to quit
spiritovod
Posts: 719
Joined: Sat Sep 28, 2019 7:00 pm

Re: Unreal Engine 4 pak-file Unpacker / unreal_tournament_4.bms [UE4 global topic]

Post by spiritovod »

@TNT: It looks like the key has changed, that's all. If you want it updated, provide main game exe or find it by yourself with aes finder, available via my signature.

-----------------------------------------------------

Specific script for Tekken 7 added to the bundle in the base post. It allows you to extract all assets from game paks with proper decryption. Tested on outdated build though, but it should be compatible with the latest version as well.
Special thanks to Gneiss for the key.
TNT
Posts: 5
Joined: Thu Aug 20, 2020 8:39 pm

Re: Unreal Engine 4 pak-file Unpacker / unreal_tournament_4.bms [UE4 global topic]

Post by TNT »

That key is what AES finder spits out. It's different than the demo key was, if that's what you were thinking. Demo key was 0x3F892F69651245D4E11C053D6A9E079628F57237408B762054FBCEA071DBFECF.

I have uploaded the exe, and a rar version of the exe, if you wish to check it out.

Exe - https://mega.nz/file/dK5VhaKZ#L_2XX4lAb ... szDHQ9PoFE
Rar - https://mega.nz/file/sCISkAwR#NNWp-UMx3 ... W4Apj8vL44

There are multiple people I'm communicating with that seem to all be having issues with this title specifically.