Merge pull request #1 from Aham-Admin/string-decrypt

String Decryption
This commit was merged in pull request #1.
This commit is contained in:
ALittlePatate
2022-01-04 21:30:16 +01:00
committed by GitHub
2 changed files with 24 additions and 0 deletions

Binary file not shown.

24
Tools/main.cpp Normal file
View File

@@ -0,0 +1,24 @@
#include <iostream>
#include <defs.h>
void Decrypt(int a1, int size)
{
unsigned int i; // [esp+10h] [ebp-4h]
for (i = 0; i <= (size - 2); ++i)
*(char*)(a1 + i) ^= (char)i + 3;
*(char*)(a1 + (size - 1)) = 0;
}
int main()
{
char string[] = "Pgdhiagm+jb|/";
Decrypt((int)string, sizeof(string));
std::cout << string << std::endl;
return 0;
}