[Tutorial] How to extract DO client.

08/07/2013 11:45 SekhmetPOL#1
»jD« way


My way (probably worse, but if BP will change something in main.swf encoding you can use this one)
08/07/2013 11:47 Requi#2
I ♥ you.
08/07/2013 15:34 »jD«#3
Such a hard way to do it -.- Everyone knows the SWF is XORed with a starting byte of 0x71 and is then incremented each byte... lol

-jD
08/07/2013 17:02 SekhmetPOL#4
Quote:
Originally Posted by »jD« View Post
Such a hard way to do it -.- Everyone knows the SWF is XORed with a starting byte of 0x71 and is then incremented each byte... lol

-jD
Probably you're right, but I don't understand exclusive disjunction(all the more that, what you've wrote) so I've just used way what I know.
08/07/2013 17:04 Requi#5
Quote:
Originally Posted by jD
Everyone
Who do you mean, with "everyone"?
08/07/2013 17:22 »jD«#6
I posted that when the new encryption first came out :P

Code:
byte[] mainswf = File.ReadAllBytes(args[0]);
uint start = (uint)(mainswf[0] ^ 0x43) - 1;
for (int i = 0; i < mainswf.Length; i++)
{
    mainswf[i] ^= (byte)++start;
}
File.WriteAllBytes(args[0], mainswf);
Compile and drop SWF ontop of the exe, DONE!

-jD
08/07/2013 17:43 SekhmetPOL#7
Quote:
Originally Posted by »jD« View Post
I posted that when the new encryption first came out :P

Code:
byte[] mainswf = File.ReadAllBytes(args[0]);
uint start = (uint)(mainswf[0] ^ 0x43) - 1;
for (int i = 0; i < mainswf.Length; i++)
{
    mainswf[i] ^= (byte)++start;
}
File.WriteAllBytes(args[0], mainswf);
Compile and drop SWF ontop of the exe, DONE!

-jD
Really easier. Thanks.
If you don't mind, I've added your way to first post.
08/08/2013 05:25 Requi#8
Quote:
Originally Posted by »jD« View Post
I posted that when the new encryption first came out :P

Code:
byte[] mainswf = File.ReadAllBytes(args[0]);
uint start = (uint)(mainswf[0] ^ 0x43) - 1;
for (int i = 0; i < mainswf.Length; i++)
{
    mainswf[i] ^= (byte)++start;
}
File.WriteAllBytes(args[0], mainswf);
Compile and drop SWF ontop of the exe, DONE!

-jD
Really nice, that you share that with us. But it doesn't do anything with it.
I have the same file at the end.

@SekhmetPOL
My decompiler crashes, if I want to open it in the decompiler.
I can decompile it. But I can't "open" it to see the source.
08/08/2013 08:37 SekhmetPOL#9
Quote:
Originally Posted by Requi View Post
Really nice, that you share that with us. But it doesn't do anything with it.
I have the same file at the end.

@SekhmetPOL
My decompiler crashes, if I want to open it in the decompiler.
I can decompile it. But I can't "open" it to see the source.
Use JPEXS.
08/08/2013 09:50 »jD«#10
JPEXS is the best ;) Finally someone else is using it :P

@Requi, whats wrong? It should work :P

-jD
08/08/2013 09:55 Requi#11
Well. There is nothing wrong. I think.

I compiled the .exe. Dropped the main.swf on the decrypter and at the end, I still have the same main.swf
08/08/2013 09:57 »jD«#12
Are you sure its the same SWF? :P

-jD

Are you sure its the same SWF? :P

-jD
08/08/2013 10:40 SekhmetPOL#13
Quote:
Originally Posted by Requi View Post
Well. There is nothing wrong. I think.

I compiled the .exe. Dropped the main.swf on the decrypter and at the end, I still have the same main.swf
Weight of the file will be the same, because it's still compressed.


[Only registered and activated users can see links. Click Here To Register...] - decompilable 7.8.10 main.swf
08/08/2013 10:45 Requi#14
Quote:
Originally Posted by SekhmetPOL View Post
Weight of the file will be the same, because it's still compressed.


[Only registered and activated users can see links. Click Here To Register...] - decompilable 7.8.10 main.swf
Sothink is shit. Because of this, I couldn't decompile it.
I use now your and jD's Decompiler.
08/08/2013 11:44 »jD«#15
Yup, XOR doesn't change the size, it simply changes the bytes.

-jD