Horizon *.bin

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
h3x3r
Posts: 165
Joined: Wed Jun 01, 2016 5:53 pm

Horizon *.bin

Post by h3x3r »

Hi aluigi. Can you please help here. I would like to dump all uncompressed chunks as they are stored into single file. What am i missing? Thanks in advance!

EDiT: Solved.

So here is it. First script is for decompressing bin archives and second is for unpacking.

Code: Select all

####################################
comtype oodle

get FNAME basename
getdstring DUMMY 0x8
get FSIZE longlong
get SIZE longlong
get FILECOUNT longlong
get CHUNKCOUNT long
get DUMMY long
math FILECOUNT * 32
getdstring DUMMY FILECOUNT

append
for i = 0 < CHUNKCOUNT
   get TOTAL_SIZE longlong
   get CHUNK_SIZE long
   get DUMMY long
   get OFFSET longlong
   get CHUNK_ZSIZE long
   get FILEID long
   string NAME p "%s%s" FNAME .bin_d
   clog NAME OFFSET CHUNK_ZSIZE CHUNK_SIZE
next i

For unpack. Just select idx file of decompressed bin.

Code: Select all

####################################
open FDDE "idx" 0
open FDDE "bin_d" 1
get FNAME basename

#getdstring SIGN 0x4
idstring "\x40\x30\x20\x10"
get FILES long

for i = 0 < FILES
   get STRING_LENGTH long
   getdstring FILENAME STRING_LENGTH
   getdstring DUMMY 0x10
   get OFFSET longlong
   get SIZE longlong
   string NAME p "%s/%s" FNAME FILENAME
   log NAME OFFSET SIZE 1
next i


Small Archive

Code: Select all

https://drive.google.com/file/d/1GAKL4NI6zTGBedMX3H01Vpp2-_32Qdaq/view?usp=sharing


EDiT: Thanks Ekey for links but i figured it out. I just added "append" before this line "for i = 0 < CHUNKCOUNT"
Last edited by h3x3r on Sat Aug 15, 2020 4:24 pm, edited 2 times in total.
ultima71
Posts: 11
Joined: Tue Aug 22, 2017 7:47 am

Re: Horizon *.bin

Post by ultima71 »

+1
Hellrazah
Posts: 3
Joined: Tue Sep 22, 2020 11:31 am

Re: Horizon *.bin

Post by Hellrazah »

Has anyone had any success extracting the music and sound files? I managed to extract roughly 30GBs/131,000 files worth of data from the .bin files using DecimaExplorer-GUI, but considering I'm quite new to this I am not sure what or how to look for them, everything is a .core file. Any help or guidance would be greatly appreciated!