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:
Binary file not shown.
@@ -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;
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user