Gameloft .arsc

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Xiron
Posts: 104
Joined: Sat Sep 12, 2015 7:09 am

Gameloft .arsc

Post by Xiron »

I've read another topic on here about Gameloft archives being GLA(2), I didn't see anything of the sort in this file.

This file comes from an android game.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Gameloft .arsc

Post by aluigi »

I see just a sequence of indexed strings and no data/content.

The following incomplete script just gives you an idea of the format:

Code: Select all

get MYNAME basename
get ARCHIVE_SIZE asize
for RESOURCE = 0
    savepos BASE_OFF
    if BASE_OFF >= ARCHIVE_SIZE
        break
    endif
    get TYPE short

    get OFFSETS_OFF short
    if OFFSETS_OFF != 0
        math OFFSETS_OFF + BASE_OFF
        if TYPE != 1
            savepos TMP
            get SIZE long
            get NAMESZ long
            xmath NAMESZ "(NAMESZ - 1) * 2"
            getdstring NAME NAMESZ
            set NAME unicode NAME
            xmath SIZE "SIZE - (OFFSETS_OFF - BASE_OFF)"
            log NAME OFFSETS_OFF SIZE
            math OFFSETS_OFF + SIZE
            goto OFFSETS_OFF
        else
            get NEXT_OFF long
            math NEXT_OFF + BASE_OFF
            get NAMES long
            get DUMMY long
            get DUMMY long
            get NAMES_OFF long
            math NAMES_OFF + BASE_OFF
            get DUMMY long
            goto OFFSETS_OFF
            for i = 0 < NAMES
                get NAME_OFF long
                putarray 0 i NAME_OFF
            next i
            for i = 0 < NAMES
                getarray NAME_OFF 0 i
                math NAME_OFF + NAMES_OFF
                goto NAME_OFF
                get NAMESZ2 variable5
                get NAMESZ variable5
                slog MYNAME -1 NAMESZ   #getdstring NAME NAMESZ
            next i
            goto NEXT_OFF
        endif
    endif
next RESOURCE

# to be continued... unfinished

*edit* new version
Xiron
Posts: 104
Joined: Sat Sep 12, 2015 7:09 am

Re: Gameloft .arsc

Post by Xiron »

Hmm alright. Still being unsure about where the majority of files are kept at this point, can you tell me anything about these .so files that have ELF in the header?
https://www.dropbox.com/s/18blx0bxjfxc3 ... O.zip?dl=0
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Gameloft .arsc

Post by aluigi »

In the meantime I have updated the previous script.
The format is too complex to be parsed because it's just a resource file and not an archive, but you can use the script recursively on the extracted files and you can get "something".
Xiron
Posts: 104
Joined: Sat Sep 12, 2015 7:09 am

Re: Gameloft .arsc

Post by Xiron »

Wait, so are you still talking about the arsc in the second half of that post there, or the .so files I attached to the post above?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Gameloft .arsc

Post by aluigi »

arsc archives obviously.
SO are shared libraries (executables), not archives.