# Curated Win32 + POSIX API dictionary (549 high-value APIs)
# Blank lines and lines starting with '#' are ignored; order is preserved for dynamic matching.

# --- High-priority loader / injection / execution APIs (placed first for fast dynamic hits) ---
LoadLibraryA
LoadLibraryW
LoadLibraryExA
LoadLibraryExW
GetProcAddress
GetModuleHandleA
GetModuleHandleW
GetModuleHandleExA
GetModuleHandleExW
VirtualAlloc
VirtualAllocEx
VirtualAllocExNuma
VirtualProtect
VirtualProtectEx
VirtualFree
VirtualFreeEx
VirtualQuery
VirtualQueryEx
WriteProcessMemory
ReadProcessMemory
CreateRemoteThread
CreateRemoteThreadEx
CreateProcessA
CreateProcessW
CreateProcessAsUserA
CreateProcessAsUserW
WinExec
OpenProcess
TerminateProcess
ExitProcess
Sleep
SleepEx
IsDebuggerPresent
CheckRemoteDebuggerPresent
InternetOpenA
InternetOpenW
InternetConnectA
InternetConnectW
HttpOpenRequestA
HttpOpenRequestW
HttpSendRequestA
HttpSendRequestW
WinHttpOpen
URLDownloadToFileA
URLDownloadToFileW
WSAStartup
connect
send
recv
CryptAcquireContextA
CryptDecrypt
CryptEncrypt
RegSetValueExA
CreateServiceA
NtAllocateVirtualMemory
NtProtectVirtualMemory
NtWriteVirtualMemory
dlopen
dlsym
mprotect
execve
ptrace

# --- kernel32: Modules, memory, processes, threads, fibers ---
GetModuleFileNameA
GetModuleFileNameW
FreeLibrary
FreeLibraryAndExitThread
SetDllDirectoryA
SetDllDirectoryW
AddDllDirectory
HeapCreate
HeapAlloc
HeapReAlloc
HeapFree
HeapDestroy
GetProcessHeap
GlobalAlloc
GlobalFree
GlobalLock
GlobalUnlock
LocalAlloc
LocalFree
RtlMoveMemory
RtlCopyMemory
RtlZeroMemory
RtlFillMemory
GetCurrentProcess
GetCurrentProcessId
GetProcessId
CreateThread
OpenThread
SuspendThread
ResumeThread
TerminateThread
ExitThread
GetCurrentThread
GetCurrentThreadId
GetThreadContext
SetThreadContext
Wow64GetThreadContext
Wow64SetThreadContext
QueueUserAPC
CreateFiber
ConvertThreadToFiber
SwitchToFiber
FlushInstructionCache
DuplicateHandle
CloseHandle
WaitForSingleObject
WaitForMultipleObjects
CreateToolhelp32Snapshot
Process32First
Process32FirstW
Process32Next
Process32NextW
Thread32First
Thread32Next
Module32First
Module32FirstW
Module32Next
Module32NextW
EnumProcesses
EnumProcessModules
GetExitCodeProcess
GetExitCodeThread
CreateProcessInternalW
GetStartupInfoA
GetStartupInfoW
GetStdHandle
AllocConsole
FreeConsole

# --- kernel32: Files, pipes, mappings, resources, system info ---
CreateFileA
CreateFileW
ReadFile
WriteFile
DeleteFileA
DeleteFileW
CopyFileA
CopyFileW
MoveFileA
MoveFileW
MoveFileExA
MoveFileExW
GetFileSize
GetFileSizeEx
SetFilePointer
SetFilePointerEx
GetFileAttributesA
GetFileAttributesW
SetFileAttributesA
SetFileAttributesW
FindFirstFileA
FindFirstFileW
FindNextFileA
FindNextFileW
FindClose
CreateDirectoryA
CreateDirectoryW
RemoveDirectoryA
RemoveDirectoryW
GetTempPathA
GetTempPathW
GetTempFileNameA
GetTempFileNameW
GetSystemDirectoryA
GetSystemDirectoryW
GetWindowsDirectoryA
GetWindowsDirectoryW
GetCurrentDirectoryA
GetCurrentDirectoryW
SetCurrentDirectoryA
SetCurrentDirectoryW
CreateFileMappingA
CreateFileMappingW
MapViewOfFile
UnmapViewOfFile
CreatePipe
CreateNamedPipeA
CreateNamedPipeW
ConnectNamedPipe
DeviceIoControl
GetLogicalDrives
GetLogicalDriveStringsA
GetDriveTypeA
GetTickCount
GetTickCount64
QueryPerformanceCounter
GetSystemTime
GetLocalTime
OutputDebugStringA
OutputDebugStringW
GetLastError
SetLastError
CreateMutexA
CreateMutexW
OpenMutexA
OpenMutexW
CreateEventA
CreateEventW
SetEvent
GetEnvironmentVariableA
GetEnvironmentVariableW
ExpandEnvironmentStringsA
ExpandEnvironmentStringsW
GetCommandLineA
GetCommandLineW
GetComputerNameA
GetComputerNameW
GetVersion
GetVersionExA
GetSystemInfo
GetNativeSystemInfo
GlobalMemoryStatusEx
SetUnhandledExceptionFilter
AddVectoredExceptionHandler
RemoveVectoredExceptionHandler
FindResourceA
FindResourceW
LoadResource
LockResource
SizeofResource
MultiByteToWideChar
WideCharToMultiByte
lstrlenA
lstrlenW
lstrcpyA
lstrcatA
lstrcmpA
lstrcmpiA

# --- ntdll ---
NtFreeVirtualMemory
NtReadVirtualMemory
NtCreateSection
NtMapViewOfSection
NtUnmapViewOfSection
NtOpenProcess
NtTerminateProcess
NtCreateProcess
NtCreateProcessEx
NtCreateUserProcess
NtCreateThread
NtCreateThreadEx
NtOpenThread
NtSuspendThread
NtResumeThread
NtGetContextThread
NtSetContextThread
NtQueueApcThread
NtDelayExecution
NtClose
NtQuerySystemInformation
NtQueryInformationProcess
NtQueryInformationThread
NtSetInformationProcess
NtSetInformationThread
NtQueryVirtualMemory
NtCreateFile
NtOpenFile
NtReadFile
NtWriteFile
NtDeleteFile
NtDuplicateObject
NtWaitForSingleObject
NtOpenKey
NtCreateKey
NtSetValueKey
NtQueryValueKey
NtContinue
NtTestAlert
ZwAllocateVirtualMemory
ZwProtectVirtualMemory
ZwWriteVirtualMemory
ZwUnmapViewOfSection
ZwCreateThreadEx
ZwQuerySystemInformation
ZwQueryInformationProcess
LdrLoadDll
LdrGetProcedureAddress
LdrGetDllHandle
RtlDecompressBuffer
RtlCompressBuffer
RtlInitUnicodeString
RtlCreateUserThread
RtlAddVectoredExceptionHandler
EtwEventWrite

# --- advapi32: Registry, services, tokens, CryptoAPI ---
RegOpenKeyA
RegOpenKeyW
RegOpenKeyExA
RegOpenKeyExW
RegCreateKeyA
RegCreateKeyW
RegCreateKeyExA
RegCreateKeyExW
RegSetValueExW
RegQueryValueExA
RegQueryValueExW
RegDeleteKeyA
RegDeleteKeyW
RegDeleteValueA
RegDeleteValueW
RegEnumKeyExA
RegEnumValueA
RegCloseKey
OpenSCManagerA
OpenSCManagerW
CreateServiceW
OpenServiceA
OpenServiceW
StartServiceA
StartServiceW
ControlService
DeleteService
ChangeServiceConfigA
ChangeServiceConfig2A
CloseServiceHandle
RegisterServiceCtrlHandlerA
SetServiceStatus
StartServiceCtrlDispatcherA
OpenProcessToken
OpenThreadToken
AdjustTokenPrivileges
LookupPrivilegeValueA
LookupPrivilegeValueW
GetTokenInformation
DuplicateTokenEx
ImpersonateLoggedOnUser
RevertToSelf
CreateProcessWithTokenW
LogonUserA
LogonUserW
GetUserNameA
GetUserNameW
CryptAcquireContextW
CryptReleaseContext
CryptCreateHash
CryptHashData
CryptDeriveKey
CryptDestroyHash
CryptGenKey
CryptImportKey
CryptExportKey
CryptDestroyKey
CryptGenRandom
CryptGetHashParam

# --- ws2_32 ---
WSACleanup
WSASocketA
WSASocketW
WSAConnect
WSASend
WSARecv
WSAGetLastError
WSAAddressToStringA
socket
bind
listen
accept
sendto
recvfrom
closesocket
shutdown
select
setsockopt
getsockopt
ioctlsocket
gethostbyname
getaddrinfo
freeaddrinfo
inet_addr
inet_ntoa
htons
htonl
ntohs
ntohl

# --- wininet ---
InternetOpenUrlA
InternetOpenUrlW
InternetReadFile
InternetWriteFile
InternetCloseHandle
InternetSetOptionA
InternetSetOptionW
InternetQueryOptionA
InternetCrackUrlA
InternetCheckConnectionA
HttpSendRequestExA
HttpAddRequestHeadersA
HttpQueryInfoA
FtpPutFileA
FtpGetFileA

# --- winhttp ---
WinHttpConnect
WinHttpOpenRequest
WinHttpSendRequest
WinHttpReceiveResponse
WinHttpQueryDataAvailable
WinHttpReadData
WinHttpWriteData
WinHttpQueryHeaders
WinHttpAddRequestHeaders
WinHttpSetOption
WinHttpCloseHandle
WinHttpCrackUrl
WinHttpGetIEProxyConfigForCurrentUser

# --- crypt32 & bcrypt ---
CryptProtectData
CryptUnprotectData
CryptStringToBinaryA
CryptStringToBinaryW
CryptBinaryToStringA
CryptBinaryToStringW
CertOpenSystemStoreA
CertOpenStore
CertFindCertificateInStore
CertCloseStore
BCryptOpenAlgorithmProvider
BCryptCloseAlgorithmProvider
BCryptGenerateSymmetricKey
BCryptEncrypt
BCryptDecrypt
BCryptCreateHash
BCryptHashData
BCryptFinishHash
BCryptGenRandom

# --- user32 ---
MessageBoxA
MessageBoxW
FindWindowA
FindWindowW
GetForegroundWindow
GetWindowTextA
GetWindowTextW
GetWindowThreadProcessId
ShowWindow
EnumWindows
SetWindowsHookExA
SetWindowsHookExW
UnhookWindowsHookEx
CallNextHookEx
GetAsyncKeyState
GetKeyState
GetKeyboardState
MapVirtualKeyA
GetClipboardData
OpenClipboard
CloseClipboard
GetDC
ReleaseDC
GetSystemMetrics
BlockInput
SendInput
PostMessageA
SendMessageA
SetTimer
GetCursorPos
GetLastInputInfo

# --- shell32, urlmon, ole32, shlwapi, iphlpapi, dnsapi ---
ShellExecuteA
ShellExecuteW
ShellExecuteExA
ShellExecuteExW
SHGetFolderPathA
SHGetFolderPathW
SHGetSpecialFolderPathA
CommandLineToArgvW
IsUserAnAdmin
URLDownloadToCacheFileA
URLOpenBlockingStreamA
CoInitialize
CoInitializeEx
CoCreateInstance
CoUninitialize
PathFileExistsA
PathFileExistsW
StrStrIA
GetAdaptersInfo
GetAdaptersAddresses
DnsQuery_A

# --- libc / POSIX ---
dlclose
dlerror
mmap
munmap
execvp
execl
fork
vfork
clone
waitpid
kill
prctl
syscall
socketpair
open
openat
read
write
close
lseek
stat
fstat
unlink
chmod
chown
chdir
getcwd
mkdir
rmdir
getenv
setenv
system
popen
pclose
malloc
calloc
realloc
free
memcpy
memmove
memset
memcmp
strlen
strcpy
strncpy
strcmp
strncmp
strstr
sprintf
snprintf
sscanf
printf
fprintf
puts
fopen
fread
fwrite
fclose
sleep
usleep
nanosleep
getpid
getppid
getuid
geteuid
setuid
setsid
dup2
pipe
fcntl
ioctl
signal
sigaction
pthread_create
pthread_join
uname
gethostname
exit
_exit
