Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/obfuscation.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,20 @@
* @param str : the string to obfuscate/deobfuscate by xoring each character
* @param size : size of given string
*/
void xor_str(char *str, int size) {
/*void xor_str(char *str, int size) {
while (size-- > 0) {
*str ^= 42;
str++;
}
}
}*/

/**
* XOR the given wide string pointer by xoring each wide char with 42
* @param wstr : the wide string to obfuscate/deobfuscate by xoring each wide
* character
* @param size : size of given string
*/
void xor_wstr(wchar_t *wstr, int size) {
/*void xor_wstr(wchar_t *wstr, int size) {
while (size-- > 0) {
*wstr++ ^= 42;
}
Expand Down Expand Up @@ -76,8 +76,8 @@ char SHGetKnownFolderPath_str[] =
"\x79\x62\x6d\x4f\x5e\x61\x44\x45\x5d\x44\x6c\x45\x46\x4e\x4f\x58\x7a\x4b"
"\x5e\x42";
XOR_STR(SHGetKnownFolderPath_str, strlen(SHGetKnownFolderPath_str));*/
// apis->funcLoadLibraryA =
//(PLoadLibraryA)GetProcAddress(hKernel32, loadLibA_str);
// apis->funcSHGetKnownFolderPath = (PSHGetKnownFolderPath)GetProcAddress(
// hKernel32, SHGetKnownFolderPath_str);
// apis->funcLoadLibraryA =
//(PLoadLibraryA)GetProcAddress(hKernel32, loadLibA_str);
// apis->funcSHGetKnownFolderPath = (PSHGetKnownFolderPath)GetProcAddress(
// hKernel32, SHGetKnownFolderPath_str);
}