So, I have a loader. I'm trying to xoro string the strings, but i'm having some issues.
here is the xoro string code:
#pragma once
//Use this to xor encrypt string literals throughout your cheat to make it harder to reverse
template <int XORSTART, int BUFLEN, int XREFKILLER>
class XorStr
{
private:
XorStr();
public:
char s[BUFLEN];
XorStr(char * xs);
~XorStr()
{
for (int i = 0; i < BUFLEN; i++) s
= 0;
}
};
template <int XORSTART, int BUFLEN, int XREFKILLER>
XorStr<XORSTART, BUFLEN, XREFKILLER>::XorStr(char * xs)
{
int xvalue = XORSTART;
int i = 0;
for (; i < (BUFLEN - 1); i++)
{
s = xs[i - XREFKILLER] ^ xvalue;
xvalue += 1;
xvalue %= 256;
}
s[BUFLEN - 1] = 0;
}
#define XOR(a) a
Here is how i'm doing it:
But when I browse through the strings in processhacker i see the string:
Am I doing something wrong? Or is it processhacker that can decrypt xoro strings? if so, what other methods is there to encrypt strings?
all help is appreciated. if you want to add me on discord: PumpLeffe#2662