-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathiat.c
More file actions
43 lines (37 loc) · 1.18 KB
/
Copy pathiat.c
File metadata and controls
43 lines (37 loc) · 1.18 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include "common.h"
#define SECURITY_WIN32
#include <security.h>
#include <ShlObj.h>
#include <bcrypt.h>
#include <wincrypt.h>
#define PSAPI_VERSION 1
#include <psapi.h>
#include <winsock.h>
#include <winhttp.h>
#include <wininet.h>
#pragma comment(lib, "Secur32.lib")
#pragma comment(lib, "shell32.lib")
#pragma comment(lib, "bcrypt.lib")
#pragma comment(lib, "crypt32.lib")
#pragma comment(lib, "psapi.lib")
#pragma comment(lib, "Ws2_32.lib")
#pragma comment(lib, "wininet.lib")
#pragma comment(lib, "winhttp.lib")
VOID StuffIAT(
void
) {
// The address of this function will never be 0xFFFFFF[...]
// But the compiler won't realize that and won't optimize this block out
if ((PVOID)(&StuffIAT) > (PVOID)-2) {
MessageBoxA(NULL, NULL, NULL, 0); // user32.dll
CopySid(0, NULL, NULL); // Secur32.dll
GetUserNameExA(0, NULL, NULL); // advapi32.dll
SHGetSettings(NULL, 0); // shell32.dll
BCryptCreateContext(0, NULL, NULL); // bcrypt.dll
CryptMemAlloc(0); // crypt32.dll
GetPerformanceInfo(NULL, 0); // psapi.dll
WSAGetLastError(); // ws2_32.dll
WinHttpCheckPlatform(); // winhttp.h
InternetCloseHandle(NULL); //wininet.h
}
}