billiards3d.net .bin

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
everlast
Posts: 17
Joined: Thu Aug 14, 2014 11:08 am

billiards3d.net .bin

Post by everlast »

It's online game and i take the files with URL Snooper.
Here example file: http://www50.zippyshare.com/v/81154049/file.html

Thanks for the help :roll:
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: billiards3d.net .bin

Post by aluigi »

You can try with this quickbms script:

Code: Select all

comtype lzma86head
get SIZE asize
clog MEMORY_FILE 0 SIZE SIZE

endian big
get MEM_SIZE asize MEMORY_FILE

# xml
get SIZE short MEMORY_FILE
savepos OFFSET MEMORY_FILE
log "" OFFSET SIZE MEMORY_FILE
math OFFSET += SIZE
goto OFFSET MEMORY_FILE

get SIZE long MEMORY_FILE
get FILES long MEMORY_FILE
for i = 0 < FILES
    get NAMESZ long MEMORY_FILE
    getdstring NAME NAMESZ MEMORY_FILE
    get SIZE long MEMORY_FILE
    savepos OFFSET MEMORY_FILE
    log NAME OFFSET SIZE MEMORY_FILE
    math OFFSET += SIZE
    goto OFFSET MEMORY_FILE
next i

xmath SIZE "MEM_SIZE - OFFSET"
log "" OFFSET SIZE MEMORY_FILE

Basically:
- the bin file is compressed with lzma
- there is an xml file at the beginning
- there are various files after the xml
- there is a certain amount of bytes after the files that is dumped as-is