Encryption in plain txt files in mpq?

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

ACDS2
Newcomer
Posts: 3
Joined: May 7th, 2009, 9:39 am

Encryption in plain txt files in mpq?

Post by ACDS2 »

Originally I asked about this on hiveworkshop,but they don't endorse deprotection/extraction of others' map's contents,so I will repost here instead.

As a former/semi-active mapper I am particularly interested the inner works of modern Warcraft 3 custom maps,I usually open up protected/optimized maps with mpq editor of my choice,then read the .j file to understand how things are done/implemented in that map.

This simple and stupid method worked fine until I opened a map with an encrypted .j file,after a closer look at that mpq/w3x,it seems all plain text files(.j,.txt etc) are also encrypted,none of them makes sense as ascii/utf8,though the binary ones(.w3i etc) seem to be unmodified.

I opened a few encrypted files with hex editor,it turned out that all files have the same first few bytes " ff d6 fe cf 00 00 00 00 ",as you can see the first pair is well above 0x80(ascii range),so they are not a magic file extension header of any binary compression format that I know of.

I googled a bit and it seems few other maps also uses this kind of protection,but I couldn't find any info on decrypting the encryption or the encryption algorithm used on them.

So I am asking if anyone else has seen this kind of protection and knows how to decrypt the encrypted plain text files.

Thanks.
storyyeller
Senior Member
Posts: 178
Joined: February 15th, 2009, 9:08 pm

Re: Encryption in plain txt files in mpq?

Post by storyyeller »

Could you post the files here?

I doubt I'll be able to help but maybe someone else can.
ACDS2
Newcomer
Posts: 3
Joined: May 7th, 2009, 9:39 am

Re: Encryption in plain txt files in mpq?

Post by ACDS2 »

An encrypted war3misc.txt extracted from encrypted map
You do not have the required permissions to view the files attached to this post.