If you would like to edit the XOR keys used to decompress/compress your custom ENC's to prevent others from using your ENC's on their own server, or their own custom ENC's on your server, this is how you do it:
- Open cabalmain.exe in ollydbg
- Go to address 0x0042D470. You should see this line: XOR EAX,00000057. This is the 4th XOR key.
- Edit the 57 to anything you want, and then change the lines at zpipe.c:123 and zpipe.c:208 to match (ie. change the 0x57 to what you changed it to in cabalmain.exe).
- Go to address 0x0042D482. This is your 3rd XOR key.
- Repeat step 3, but instead change the lines at zpipe.c:120 and zpipe.c:205.
- The 2nd XOR key is at 0x0042D494. You should know what to do with it by now.
- The 1st XOR key is at 0x0042D4A5.
Have fun :)
P.S. I highly suggest you pack your cabalmain.exe with something like Themida after making this changes, else anyone can easily get your modified XOR keys.