• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

[Tut] Fixing up your launcher after encryption

Joined
Apr 18, 2010
Messages
674
Reaction score
393
I just made a simple "encryption" cause I'm tired as ****.
Pretty much, take a look at ThievingSix's tutorial for information about encryption, I'm just breezing over what you need to do on editing your launcher.

Before I begin, I'm going to show you my text document which has the original part and the edited part:

Code:
::::MAIET's original::::
SHR DL, 5
SHL AL, 3
^ = Decryption

::::Edited::::
SHR DL, 6
SHL AL, 4
^ = Decrpytion

When you look in the launcher, you won't see the encryption algorithm - but the decryption algorithm. What does that tell you? It means it "decompiles" the .mrs file to check it's CRC32 for updates. Just take what's in your runnable (the decryption part lmao) and do it in the launcher. Example:

Code:
;;;; ORIGINAL LAUNCHER ;;;;
0040FA90  /$ 8B4C24 04      MOV ECX,DWORD PTR SS:[ESP+4]
0040FA94  |. 85C9           TEST ECX,ECX
0040FA96  |. 74 1E          JE SHORT GunzLaun.0040FAB6
0040FA98  |. 56             PUSH ESI
0040FA99  |. 8B7424 0C      MOV ESI,DWORD PTR SS:[ESP+C]
0040FA9D  |. 85F6           TEST ESI,ESI
0040FA9F  |. 7E 14          JLE SHORT GunzLaun.0040FAB5
0040FAA1  |> 8A01           /MOV AL,BYTE PTR DS:[ECX]
0040FAA3  |. 8AD0           |MOV DL,AL
0040FAA5  |. C0EA 03        |SHR DL,3
0040FAA8  |. C0E0 05        |SHL AL,5
0040FAAB  |. 0AD0           |OR DL,AL
0040FAAD  |. F6D2           |NOT DL
0040FAAF  |. 8811           |MOV BYTE PTR DS:[ECX],DL
0040FAB1  |. 41             |INC ECX
0040FAB2  |. 4E             |DEC ESI
0040FAB3  |.^75 EC          \JNZ SHORT GunzLaun.0040FAA1
0040FAB5  |> 5E             POP ESI
0040FAB6  \> C3             RETN

;;;; AND ALSO ;;;;

0040FC70  |> 8A01           /MOV AL,BYTE PTR DS:[ECX]
0040FC72  |. 8AD0           |MOV DL,AL
0040FC74  |. C0EA 03        |SHR DL,3
0040FC77  |. C0E0 05        |SHL AL,5
0040FC7A  |. 0AD0           |OR DL,AL
0040FC7C  |. F6D2           |NOT DL
0040FC7E  |. 8811           |MOV BYTE PTR DS:[ECX],DL
0040FC80  |. 41             |INC ECX
0040FC81  |. 4D             |DEC EBP
0040FC82  |.^75 EC          \JNZ SHORT GunzLaun.0040FC70

Code:
;;;; EDITED LAUNCHER ;;;;
0040FA90  /$ 8B4C24 04      MOV ECX,DWORD PTR SS:[ESP+4]
0040FA94  |. 85C9           TEST ECX,ECX
0040FA96  |. 74 1E          JE SHORT GunzLaun.0040FAB6
0040FA98  |. 56             PUSH ESI
0040FA99  |. 8B7424 0C      MOV ESI,DWORD PTR SS:[ESP+C]
0040FA9D  |. 85F6           TEST ESI,ESI
0040FA9F  |. 7E 14          JLE SHORT GunzLaun.0040FAB5
0040FAA1  |> 8A01           /MOV AL,BYTE PTR DS:[ECX]
0040FAA3  |. 8AD0           |MOV DL,AL
[COLOR=Red]0040FAA5  |. C0EA 03        |SHR DL,6
0040FAA8  |. C0E0 05        |SHL AL,4[/COLOR]
0040FAAB  |. 0AD0           |OR DL,AL
0040FAAD  |. F6D2           |NOT DL
0040FAAF  |. 8811           |MOV BYTE PTR DS:[ECX],DL
0040FAB1  |. 41             |INC ECX
0040FAB2  |. 4E             |DEC ESI
0040FAB3  |.^75 EC          \JNZ SHORT GunzLaun.0040FAA1
0040FAB5  |> 5E             POP ESI
0040FAB6  \> C3             RETN

;;;; AND ALSO ;;;;

0040FC70  |> 8A01           /MOV AL,BYTE PTR DS:[ECX]
0040FC72  |. 8AD0           |MOV DL,AL
[COLOR=red]0040FC74  |. C0EA 03        |SHR DL,6
0040FC77  |. C0E0 05        |SHL AL,4[/COLOR]
0040FC7A  |. 0AD0           |OR DL,AL
0040FC7C  |. F6D2           |NOT DL
0040FC7E  |. 8811           |MOV BYTE PTR DS:[ECX],DL
0040FC80  |. 41             |INC ECX
0040FC81  |. 4D             |DEC EBP
0040FC82  |.^75 EC          \JNZ SHORT GunzLaun.0040FC70

D_D Just edit the parts in the launcher to fit your encryption, save, tada.

Edit- I can't guarantee this will work (Auto-Update didn't work and as I said, I'm tired.) and I can't guarantee the edited "decryption" algorithm will work. But with reason and logic being in what I just said, I can say with a 90% positive attitude it will work.
 
Last edited:
Newbie Spellweaver
Joined
Jul 25, 2007
Messages
5
Reaction score
0
Re: [Info] Fixing up your launcher after encryption

W00t first post :p
Btw isn't this wrong posted shouldn't this be in teh tutorial section ??
Well its usefull for the people that are starting there own servers ;)
 
Joined
Apr 18, 2010
Messages
674
Reaction score
393
Re: [Info] Fixing up your launcher after encryption

W00t first post :p
Btw isn't this wrong posted shouldn't this be in teh tutorial section ??
Well its usefull for the people that are starting there own servers ;)

This isn't a tutorial. I just gave information on what you need to do to fix any problem after encrypting your files.
 
Joined
Apr 18, 2010
Messages
674
Reaction score
393
Re: [Info] Fixing up your launcher after encryption

I've known this for a long time.

A lot of people known this for a while. It's not like I just figured it out, if the launcher updates encrypted files slowly/wrongly/etc. the only logical reason being the encryption is in the launcher as well.
 
Skilled Illusionist
Joined
Dec 18, 2009
Messages
300
Reaction score
82
Re: [Info] Fixing up your launcher after encryption

Move to release its like the fix for launcher updating..
and thanks
 
Junior Spellweaver
Joined
Jan 19, 2010
Messages
175
Reaction score
181
only thing thing that needs to be done now is the zpatch builder because that write the wrong crc because of the failed ijji encrytion that its on
 
Junior Spellweaver
Joined
Jan 19, 2010
Messages
175
Reaction score
181
im guessing u never worked out the zpatch builder lol neither me wrote my own launcher
 
Joined
Apr 18, 2010
Messages
674
Reaction score
393
im guessing u never worked out the zpatch builder lol neither me wrote my own launcher

You have to realize I get asked about 15 times, every day, for favors.
I tend to forget things.
But with the ZPatchBuilder (never actually looked into it):
-Open in OllyDbg
-CTRL + S
Then type in
Code:
SHR dl, 3
SHL al, 5
 
Junior Spellweaver
Joined
Apr 16, 2009
Messages
115
Reaction score
22
Great find, hopefully this stops the launcher taking all year to update.
 
Back
Top