VAlve file sub .dat (games l4d2 hl2 etc)conversed pc to console

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
metalex
Posts: 13
Joined: Thu Mar 19, 2015 2:06 am

VAlve file sub .dat (games l4d2 hl2 etc)conversed pc to console

Post by metalex »

hi friend help a convert this file

here the header: https://mega.nz/#!fBZHRQrC!lUReT9bm_Nrz ... YGB2u0EsvE

and

hbk for hexworkshop: https://mega.nz/#!idgiVLBS!4k1UFgu68EaW ... x6sqsaptq0


need a script for inversed bits to 16,32 y 64 on spaces


example


first 1F BITS inversed flipbytes 32 bit unsigned long

and of the next 4 bits to end file is 4 bits on this orden

4 bits------16 bit unsigned short
4 bits------64 bit unsigned quad
4 bits------dummy or zeros data

and same patron and same and sane to end file

help me

on this file hbk you have a info ok?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: VAlve file sub .dat (games l4d2 hl2 etc)conversed pc to console

Post by aluigi »

quickbms has a very useful feature that allows to automatically invert the endianess.
So this is the script:

Code: Select all

get SIGN long   # VCCD
get DUMMY long
get DUMMY long
get DUMMY long
get FILES long
get DUMMY long
for i = 0 < FILES
    get DUMMY long
    get DUMMY long
    get DUMMY short
    get DUMMY short
next i
get DAT_SIZE asize
for
    savepos TMP
    if TMP u>= DAT_SIZE
        break
    endif
    get CHAR short
next

From command-line (or by creating a batch file) run the following:
quickbms.exe -E -w script.bms your_file

*edit* updated script
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: VAlve file sub .dat (games l4d2 hl2 etc)conversed pc to console

Post by aluigi »

I have updated the script for inverting also the endianess of the unicode strings.
Now it should be complete.
metalex
Posts: 13
Joined: Thu Mar 19, 2015 2:06 am

Re: VAlve file sub .dat (games l4d2 hl2 etc)conversed pc to console

Post by metalex »

gracias te lo agradezco demasiado