The Forum is up for sale: XeNTaX Forum looking for new owner

Perry Rhodan encoded ? Jpegs

Get your graphics formats figures out here! Got details for others? Post here!
Post Reply
Itze
veteran
Posts: 81
Joined: Sat Mar 15, 2008 4:43 pm
Has thanked: 2 times
Been thanked: 6 times

Perry Rhodan encoded ? Jpegs

Post by Itze »

Hi, i've been trying to display the textures from the new Perry Rhodan adventure game but they seem to be encoded somehow :?

i have attached the head texture of perry(atleast i think so :D )

maybe someone can figure out how to make it viewable again :ninja:
You do not have the required permissions to view the files attached to this post.
User avatar
john_doe
VIP member
VIP member
Posts: 80
Joined: Sat Oct 21, 2006 2:25 pm
Been thanked: 1 time

Re: Perry Rhodan encoded ? Jpegs

Post by john_doe »

Hi,

I've made a little tool which decrypts the file you sent. Please tell me if it works with other files, too.

You can download it from http://gamefileformats.the-underdogs.in ... tperry.zip
Rheini
Moderator
Posts: 652
Joined: Wed Oct 18, 2006 9:48 pm
Location: Germany
Has thanked: 19 times
Been thanked: 46 times
Contact:

Re: Perry Rhodan encoded ? Jpegs

Post by Rheini »

Care to share the algo? :)
User avatar
john_doe
VIP member
VIP member
Posts: 80
Joined: Sat Oct 21, 2006 2:25 pm
Been thanked: 1 time

Re: Perry Rhodan encoded ? Jpegs

Post by john_doe »

Of course:

Code: Select all

void decryptData(byte *data, uint32 size) {
    byte xorValues[3] = {0x42, 0x99, 0x80};
    for (uint32 ofs = 0; ofs < size; ofs++) {
        uint32 value = ofs % 3;
        data[ofs] ^= xorValues[value] - 0x6E;
    }
}
Itze
veteran
Posts: 81
Joined: Sat Mar 15, 2008 4:43 pm
Has thanked: 2 times
Been thanked: 6 times

Re: Perry Rhodan encoded ? Jpegs

Post by Itze »

thanks john_doe :D

works fine, i tried a few different files(128x128 up to 1024x1024) and it converted them properly

would it be possible to convert them back with a simple tool too?

i saw the algo but unfortunately im no programmar and have no idea how it works :eek:
Rheini
Moderator
Posts: 652
Joined: Wed Oct 18, 2006 9:48 pm
Location: Germany
Has thanked: 19 times
Been thanked: 46 times
Contact:

Re: Perry Rhodan encoded ? Jpegs

Post by Rheini »

Try using the same program. It might work.
Itze
veteran
Posts: 81
Joined: Sat Mar 15, 2008 4:43 pm
Has thanked: 2 times
Been thanked: 6 times

Re: Perry Rhodan encoded ? Jpegs

Post by Itze »

lol yeah it does... :D
thanks
Rheini
Moderator
Posts: 652
Joined: Wed Oct 18, 2006 9:48 pm
Location: Germany
Has thanked: 19 times
Been thanked: 46 times
Contact:

Re: Perry Rhodan encoded ? Jpegs

Post by Rheini »

btw this works because the algorithm uses XOR.
mambox
mega-veteran
mega-veteran
Posts: 190
Joined: Wed Mar 24, 2004 2:06 pm
Has thanked: 5 times
Been thanked: 4 times

Re: Perry Rhodan encoded ? Jpegs

Post by mambox »

I dont know how good is the game but look great!

another xoring,congrats to john.

btw how did you reverse the xoring method,analysis of file or reversing exe?
kurt28
n00b
Posts: 17
Joined: Tue Sep 07, 2010 6:00 pm
Has thanked: 1 time

Re: Perry Rhodan encoded ? Jpegs

Post by kurt28 »

john_doe wrote:Hi,

I've made a little tool which decrypts the file you sent. Please tell me if it works with other files, too.

You can download it from http://gamefileformats.the-underdogs.in ... tperry.zip
Please, can you upload the file again?

Thanks.
User avatar
john_doe
VIP member
VIP member
Posts: 80
Joined: Sat Oct 21, 2006 2:25 pm
Been thanked: 1 time

Re: Perry Rhodan encoded ? Jpegs

Post by john_doe »

Of course, I hope I can still find it somewhere...
User avatar
john_doe
VIP member
VIP member
Posts: 80
Joined: Sat Oct 21, 2006 2:25 pm
Been thanked: 1 time

Re: Perry Rhodan encoded ? Jpegs

Post by john_doe »

I found it and upload the tool here:
http://www.xentax.com/uploads/author/jo ... tperry.zip
kurt28
n00b
Posts: 17
Joined: Tue Sep 07, 2010 6:00 pm
Has thanked: 1 time

Re: Perry Rhodan encoded ? Jpegs

Post by kurt28 »

Thank you very much. :wink:
Post Reply