Revert "String Decryption, Ida database" #2

Merged
ALittlePatate merged 1 commits from revert-1-string-decrypt into master 2022-01-04 20:31:55 +00:00
2 changed files with 0 additions and 24 deletions
Showing only changes of commit 2ed3fb6cb5 - Show all commits

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;
}