Magic Duels Origins (*.zed)

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
happyend
Posts: 157
Joined: Sun Aug 24, 2014 8:54 am

Magic Duels Origins (*.zed)

Post by happyend »

files AUDIO_000.ZED (315 MB)
use filecutter script
Samples:

http://www64.zippyshare.com/v/4dLBz1fl/file.html
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Magic Duels Origins (*.zed)

Post by aluigi »

For the ZED files there is the great tool written by spirolone.
I guess the final version is the following but feel free to check in that thread for other versions:
http://www.slightlymagic.net/forum/view ... 90#p179787
happyend
Posts: 157
Joined: Sun Aug 24, 2014 8:54 am

Re: Magic Duels Origins (*.zed)

Post by happyend »

get error
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
at Zed.ZedToZip.main(ZedToZip.java:91)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Magic Duels Origins (*.zed)

Post by aluigi »

Ok, don't worry about the error at the end and it uses constant offsets to find the toc:

Code: Select all

#math OFFSET = 0x168bbe2f    # demo
math OFFSET = 0x13acd3de    # retail
get SIZE asize
math SIZE - OFFSET
encryption xor_prev ""
log MEMORY_FILE OFFSET SIZE
encryption "" ""

for
        getdstring SIGN 4 MEMORY_FILE
        get ver_made        short MEMORY_FILE
        get ver_need        short MEMORY_FILE
        get flag            short MEMORY_FILE
        get method          short MEMORY_FILE
        get modtime         short MEMORY_FILE
        get moddate         short MEMORY_FILE
        get crc             long MEMORY_FILE
        get comp_size       long MEMORY_FILE
        get uncomp_size     long MEMORY_FILE
        get name_len        short MEMORY_FILE
        get extra_len       short MEMORY_FILE
        get comm_len        short MEMORY_FILE
        get disknum         short MEMORY_FILE
        get int_attr        short MEMORY_FILE
        get ext_attr        long MEMORY_FILE
        get rel_offset      long MEMORY_FILE
        getdstring name     name_len MEMORY_FILE
        getdstring extra    extra_len MEMORY_FILE
        getdstring comment  comm_len MEMORY_FILE

    log name rel_offset comp_size
next
happyend
Posts: 157
Joined: Sun Aug 24, 2014 8:54 am

Re: Magic Duels Origins (*.zed)

Post by happyend »

cool,aluigi!!!Perfect!!!