Mobile game .bin

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
ghost
Posts: 54
Joined: Tue Aug 19, 2014 10:30 am

Mobile game .bin

Post by ghost »

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

Re: Mobile game .bin

Post by aluigi »

Name of the game?
Do you have other (smaller) files in the same folder? because these files are just containers so there are no information about the archived files.
ghost
Posts: 54
Joined: Tue Aug 19, 2014 10:30 am

Re: Mobile game .bin

Post by ghost »

aluigi wrote:Name of the game?
Do you have other (smaller) files in the same folder? because these files are just containers so there are no information about the archived files.

Game download:http://dl.uu.cc/download/tank-3442_v3.4.4.2_s2.1.0_LE0S0N30000.apk
Game resource path “res\raw\”
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Mobile game .bin

Post by aluigi »

You are not new on this forum so:
    - why have you deliberately omitted the game name? (which is still omitted)
    - why have you deliberately modified the extension from mp3 to a generic bin?
ghost
Posts: 54
Joined: Tue Aug 19, 2014 10:30 am

Re: Mobile game .bin

Post by ghost »

aluigi wrote:You are not new on this forum so:
- why did you deliberately omitted the game name? (which is still omitted)
- why did you deliberately modified the extension from mp3 to a generic bin?


Game name: Tank battle

Android version is mp3
IOS version is bin

IOS version download need to account in China
So I gave a Android version download address
But the files are the same

IOS version download:https://itunes.apple.com/cn/app/%E5%9D%A6%E5%85%8B%E4%B9%8B%E6%88%98/id1111484111?mt=8
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Mobile game .bin

Post by aluigi »

Ok thanks for the info, they are ever useful.

The files that start with 0x5d 0x00 0x00 are sequences of lzma compressed data (they are not chunks because in tex.mp3 they are big, only in map.mp3 they are <= 32kb).
It's highly possible that the information (TOC) about the archived files are hardcoded directly in libtanktank.so since it contains references to ".ogg" filenames (snd.mp3).

The following script is a raw dumper of lzma data:

Code: Select all

comtype lzma_dynamic
get MP3_SIZE asize
for OFFSET = 0 != MP3_SIZE
    get SKIP long
    findloc NEXT_OFF binary "\x5d\x00\x00" 0 ""
    if NEXT_OFF == ""
        math NEXT_OFF = MP3_SIZE
    endif
    xmath SIZE "NEXT_OFF - OFFSET"
    clog "" OFFSET SIZE SIZE
    math OFFSET = NEXT_OFF
    goto OFFSET
next
ghost
Posts: 54
Joined: Tue Aug 19, 2014 10:30 am

Re: Mobile game .bin

Post by ghost »

aluigi wrote:Ok thanks for the info, they are ever useful.

The files that start with 0x5d 0x00 0x00 are sequences of lzma compressed data (they are not chunks because in tex.mp3 they are big, only in map.mp3 they are <= 32kb).
It's highly possible that the information (TOC) about the archived files are hardcoded directly in libtanktank.so since it contains references to ".ogg" filenames (snd.mp3).

The following script is a raw dumper of lzma data:

Code: Select all

comtype lzma_dynamic
get MP3_SIZE asize
for OFFSET = 0 != MP3_SIZE
    get SKIP long
    findloc NEXT_OFF binary "\x5d\x00\x00" 0 ""
    if NEXT_OFF == ""
        math NEXT_OFF = MP3_SIZE
    endif
    xmath SIZE "NEXT_OFF - OFFSET"
    clog "" OFFSET SIZE SIZE
    math OFFSET = NEXT_OFF
    goto OFFSET
next

Hi, aluigi
Thanks for your help