Merge pull request #2 from ALittlePatate/revert-1-string-decrypt

Revert "String Decryption, Ida database"
This commit was merged in pull request #2.
This commit is contained in:
ALittlePatate
2022-01-04 21:31:55 +01:00
committed by GitHub
2 changed files with 0 additions and 24 deletions

Binary file not shown.

View File

@@ -1,24 +0,0 @@
#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;
}