READ THE RULES: Click here

Follow us on Facebook: https://www.facebook.com/xentax/ :)

[HELP] My Little Pony Gameloft .ark file format

The Original Forum. Game archives, full of resources. How to open them? Get help here.
Post Reply
Spyrohat
ultra-n00b
Posts: 3
Joined: Sun Oct 13, 2019 12:07 pm

[HELP] My Little Pony Gameloft .ark file format

Post by Spyrohat » Sun Oct 13, 2019 12:15 pm

Hello. Can someone help with decrypting .ark format files? I’ve looked all over the Internet and nowhere is there a way to open these files. Who can help and write a program to open such files? Or maybe there is already a way to decrypt such files?

I attach a link to a file of this type:
https://mega.nz/#!FwZiSQTS!bQyCgN8kW7ya ... OjN5MddcI8

Please help anyone than you can!

User avatar
LolHacksRule
n00b
Posts: 12
Joined: Tue Oct 02, 2018 1:50 am
Been thanked: 1 time

Re: [HELP] My Little Pony Gameloft .ark file format

Post by LolHacksRule » Wed Oct 30, 2019 6:19 pm

Not encrypted, ZLib compressed, but if you want filenames and directories, you have to decrypt the metadata then extract, unfortunately they changed the key as of some update.

User avatar
LolHacksRule
n00b
Posts: 12
Joined: Tue Oct 02, 2018 1:50 am
Been thanked: 1 time

Re: [HELP] My Little Pony Gameloft .ark file format

Post by LolHacksRule » Thu Nov 07, 2019 6:27 pm

Ekey made this script:

Code: Select all

# Gameloft (Glitch Engine) ARK format
#   Ice Age Adventures (Android / iOS)
#   Littlest Pet Shop (Android)
#   MY LITTLE PONY: Magic Princess (Android)
# script for QuickBMS http://quickbms.aluigi.org

set KEY binary "\x4F\x94\x32\x01\xA1\x5B\x02\x00\x4F\x94\x32\x01\xB5\x88\x99\x00"

get TABLE_SIZE asize
get FILES long
get TABLE_OFFSET long
math TABLE_SIZE -= TABLE_OFFSET

callfunction DecryptTable 1

for i = 0 < FILES
    getdstring NAME 64 MEMORY_FILE
    getdstring PATH 64 MEMORY_FILE
    get OFFSET long MEMORY_FILE
    get SIZE long MEMORY_FILE
    get ZSIZE long MEMORY_FILE
    get ESIZE long MEMORY_FILE
    get TIMESTAMP long MEMORY_FILE
    getdstring MD5 16 MEMORY_FILE
    get RESERVED long MEMORY_FILE
   
    string PATH += NAME
   
    if ESIZE != 0
        log MEMORY_FILE2 OFFSET ESIZE
        encryption xxtea KEY "0x9e3779b9 0" 0 16
        goto 0
        if ZSIZE == SIZE
           log PATH 0 SIZE MEMORY_FILE2
        else
           clog PATH 0 ESIZE SIZE MEMORY_FILE2
        endif
        encryption "" ""
    else
        if ZSIZE == SIZE
           log PATH OFFSET SIZE
        else
           clog PATH OFFSET ZSIZE SIZE
        endif
    endif
next i

startfunction DecryptTable
    encryption xxtea KEY "0x9e3779b9 0" 0 16
    log MEMORY_FILE TABLE_OFFSET TABLE_SIZE
    encryption "" ""
endfunction
Like I said due to the encryption key change, this script will only output a memory error when trying to extract this game's ARKs.

Spyrohat
ultra-n00b
Posts: 3
Joined: Sun Oct 13, 2019 12:07 pm

Re: [HELP] My Little Pony Gameloft .ark file format

Post by Spyrohat » Sat Nov 09, 2019 6:05 am

It’s sad. As I understand it, no one knows how to decrypt these files at present?

User avatar
Dinoguy1000
Site Admin
Posts: 727
Joined: Mon Sep 13, 2004 1:55 am
Has thanked: 106 times
Been thanked: 130 times

Re: [HELP] My Little Pony Gameloft .ark file format

Post by Dinoguy1000 » Sat Nov 09, 2019 8:29 am

You could try asking on the game's subreddit, since that's where past reverse engineering work has generally been located, but I have no idea if anyone that did that work in the past is still involved or interested these days.
Welcome to Xentax!

Rules | Requests | Wiki

If you run across a post that breaks the rules, please report the post - a mod or admin will handle it from there.

Spyrohat
ultra-n00b
Posts: 3
Joined: Sun Oct 13, 2019 12:07 pm

Re: [HELP] My Little Pony Gameloft .ark file format

Post by Spyrohat » Sat Nov 09, 2019 8:40 am

Thanks, but hardly anyone will help me there. About a year ago I tried to ask for help there, but, unfortunately, no one knows anything about this type of file.

Post Reply