Posted: Sat Feb 26, 2022 3:58 pm Post subject:
Some source code.
I had been bored and was messing around with the gamemd.exe of RA2 Yuri's Revenge. From that I have extracted some code (not providing all here as I think it would be duplicate) and some of that code is as I dubbed it 'cryptographic' related. Also an interesting one and that is some CD control/checking. I thought it might be useful for the Ares project I suppose, so here it is. Do with it as you please I only ask for some credit if it is used.
The zip contains code for the following stuff:
- CRC calculations
- Base64
- SHA1
- Blowfish Cipher Engine interface
- CD control stuff
Now, these classes are compiled for C++20 under visual studio 2022 with all warnings enabled. They are based on the actual reversed engineered source code, but some contain improvements, like safety issues and performance. For example: for the blowfish cipher engine I added in an improvement so that you do not need admin rights for the registry edit and in stead completely avoid the registry (this can be toggled in the code). They should be functionally the same though. I also have documented the code for the better part. I was actually working on the RSA cipher as well, but never finished it. If needed I can provide the addresses in the exe for all the known functions.
I also see that, by looking on GitHub, that you guys have a very incomplete INIClass and using jumps. I am also 99% sure that a lot of the functions belong in CCINIClass and not in INIClass. I can provide source code for INIClass, it is however 95% complete, missing the RSA functions and comments. Though my implementation uses a template class for Vector and StringClass to eliminate duplicate code.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum