[Tut] Fixing up your launcher after encryption
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
0040FAA5 |. C0EA 03 |SHR DL,6
0040FAA8 |. C0E0 05 |SHL AL,4
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,6
0040FC77 |. C0E0 05 |SHL AL,4
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.
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 ;)
Re: [Info] Fixing up your launcher after encryption
Quote:
Originally Posted by
vinniej
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.
Re: [Info] Fixing up your launcher after encryption
Quote:
Originally Posted by
Your Master
This isn't a tutorial. I just gave information on what you need to do to fix any problem after encrypting your files.
It's good information tho, I'm not sure if I should move this or not....
Re: [Info] Fixing up your launcher after encryption
Quote:
Originally Posted by
KillerStefan
It's good information tho, I'm not sure if I should move this or not....
I'll whip up a tutorial based on ThievingSix's old encryption, so then you can move it to the tutorial section. =P
Re: [Info] Fixing up your launcher after encryption
oh im suprised no one picked up this sooner o_o
Re: [Info] Fixing up your launcher after encryption
I've known this for a long time.
Re: [Info] Fixing up your launcher after encryption
Quote:
Originally Posted by
Linear88
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.
Re: [Info] Fixing up your launcher after encryption
Move to release its like the fix for launcher updating..
and thanks
Re: [Info] Fixing up your launcher after encryption
Edited main post. Should be clear for beginners.
Requesting this thread to be moved to the tutorials section.
Re: [TUT] Fixing up your launcher after encryption
Re: [Tut] Fixing up your launcher after encryption
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
Re: [Tut] Fixing up your launcher after encryption
Quote:
Originally Posted by
steven1234
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
I forgot about ZPatchBuilder. I'll look into it a little later tonight.
Re: [Tut] Fixing up your launcher after encryption
Re: [Tut] Fixing up your launcher after encryption
Quote:
Originally Posted by
mage200
and its work?
It should. Just find your decryption method, and implement it in the launcher like so.