Hero Warz .Upk

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
godskin
Posts: 192
Joined: Sun Oct 04, 2015 2:27 am

Hero Warz .Upk

Post by godskin »

how to extracx ?
gildo tool don't work

file
https://drive.google.com/drive/u/0/fold ... XR3NkV0RVU

thx very much
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Hero Warz .Upk

Post by aluigi »

Use this script to decrypt the upk files and then try gildor's ueviewer with them:

Code: Select all

idstring "\xef\xef\xfe\xfe"
filexor 0xb6
savepos OFFSET
get SIZE asize
math SIZE - OFFSET
get NAME basename
get EXT extension
string NAME + "_decrypt."
string NAME + EXT
log NAME OFFSET SIZE
godskin
Posts: 192
Joined: Sun Oct 04, 2015 2:27 am

Re: Hero Warz .Upk

Post by godskin »

aluigi wrote:Use this script to decrypt the upk files and then try gildor's ueviewer with them:

Code: Select all

idstring "\xef\xef\xfe\xfe"
filexor 0xb6
savepos OFFSET
get SIZE asize
math SIZE - OFFSET
get NAME basename
get EXT extension
string NAME + "_decrypt."
string NAME + EXT
log NAME OFFSET SIZE


script work
Extracx don't work have error

here some knowlage http://forum.xentax.com/viewtopic.php?f=16&t=14852
godskin
Posts: 192
Joined: Sun Oct 04, 2015 2:27 am

Re: Hero Warz .Upk

Post by godskin »

All some File
1. UPK
2. BIN
3. fsbcache
http://www.mediafire.com/download/5lg81 ... okedPC.rar
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Hero Warz .Upk

Post by Ekey »

for BIN file

Code: Select all

# HeroWarz (USTs.bin format)
# Written by Ekey (h4x0r)
#
# script for QuickBMS http://quickbms.aluigi.org

comtype unzip_dynamic
filexor 0xb6
idstring "YYHH"
get VERSION long # 7
idstring "USTBIN\0"
get FILES long

for i = 0 < FILES
   get NSIZE long
   getdstring NAME NSIZE
   get ZIP byte
   get SIZE long
   get ZSIZE long
   get OFFSET long
   savepos TMP
   if ZIP == 0
      math TMP += SIZE
      log NAME OFFSET SIZE
   else
      math TMP += ZSIZE
      clog NAME OFFSET ZSIZE SIZE
   endif
   goto TMP
next i


for fsbcache > http://aluigi.altervista.org/papers/fsbext.zip
godskin
Posts: 192
Joined: Sun Oct 04, 2015 2:27 am

Re: Hero Warz .Upk

Post by godskin »

Ekey wrote:for BIN file

Code: Select all

# HeroWarz (USTs.bin format)
# Written by Ekey (h4x0r)
#
# script for QuickBMS http://quickbms.aluigi.org

comtype unzip_dynamic
filexor 0xb6
idstring "YYHH"
get VERSION long # 7
idstring "USTBIN\0"
get FILES long

for i = 0 < FILES
   get NSIZE long
   getdstring NAME NSIZE
   get ZIP byte
   get SIZE long
   get ZSIZE long
   get OFFSET long
   savepos TMP
   if ZIP == 0
      math TMP += SIZE
      log NAME OFFSET SIZE
   else
      math TMP += ZSIZE
      clog NAME OFFSET ZSIZE SIZE
   endif
   goto TMP
next i


for fsbcache > http://aluigi.altervista.org/papers/fsbext.zip


thx very much bro Ekrey
how to XOR .upk ?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Hero Warz .Upk

Post by aluigi »

godskin wrote:how to XOR .upk ?

Don't you like the script I posted?!
godskin
Posts: 192
Joined: Sun Oct 04, 2015 2:27 am

Re: Hero Warz .Upk

Post by godskin »

aluigi wrote:
godskin wrote:how to XOR .upk ?

Don't you like the script I posted?!


Image

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

Re: Hero Warz .Upk

Post by aluigi »

But it's not a problem of the script, the xor decryption is correct.
godskin
Posts: 192
Joined: Sun Oct 04, 2015 2:27 am

Re: Hero Warz .Upk

Post by godskin »

aluigi wrote:But it's not a problem of the script, the xor decryption is correct.


I try use have same error

Code: Select all

@for /f "tokens=*" %%a in ('dir /b *.upk') do ( umodel -game=all -all -export -nostat%%a )
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Hero Warz .Upk

Post by aluigi »

Have you already contacted Gildor about this problem?
godskin
Posts: 192
Joined: Sun Oct 04, 2015 2:27 am

Re: Hero Warz .Upk

Post by godskin »

aluigi wrote:Have you already contacted Gildor about this problem?


yes wait reply
chrrox
Posts: 388
Joined: Thu Aug 07, 2014 10:28 pm

Re: Hero Warz .Upk

Post by chrrox »

This game works fine in umodel if you add 4 bytes right before name table.
ImageImage
I added 4 0's
Image