From f0b2ad74c251d8d164a56498842302248e2c9e7c Mon Sep 17 00:00:00 2001 From: ErrorTeaPot Date: Fri, 14 Feb 2025 17:08:27 +0100 Subject: [PATCH 1/2] Comment xor_str() and xor_wstr() functions since they are not used at all --- src/obfuscation.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/obfuscation.c b/src/obfuscation.c index 54fc1b5..3e22a26 100644 --- a/src/obfuscation.c +++ b/src/obfuscation.c @@ -1,17 +1,15 @@ #include "obfuscation.h" -#include -#include /** * XOR the given string pointer by xoring each char with 42 * @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; } -} +}*/ /** * XOR the given wide string pointer by xoring each wide char with 42 @@ -19,8 +17,8 @@ void xor_str(char *str, int size) { * 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; } -} +}*/ From 65872283cdc870d5d5f113e7417086e0eaf1acc8 Mon Sep 17 00:00:00 2001 From: Hilan Meyran Date: Wed, 7 May 2025 08:24:48 +0000 Subject: [PATCH 2/2] fix formatting --- src/obfuscation.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/obfuscation.c b/src/obfuscation.c index aef06d5..1c0cd00 100644 --- a/src/obfuscation.c +++ b/src/obfuscation.c @@ -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); }