joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44162c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x470a40]
cmp byte [eax + 0xc], 0
je 0x441799
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x441792
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x471bb8], 0
jne 0x441680
push 0x4417a0
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4417a8
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x471bb8], eax
cmp dword [0x46fad0], 0
jne 0x44177b
push 0x4417b8
call sub.kernel32.dll_LoadLibraryA
mov dword [0x46fad0], eax
cmp dword [0x46fad0], 0
je 0x44177b
push 0x4417c4
mov eax, dword [0x46fad0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x471bbc], eax
push 0x4417d4
mov eax, dword [0x46fad0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x471bc0], eax
push 0x4417e8
mov eax, dword [0x46fad0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x471bc4], eax
push 0x441800
mov eax, dword [0x46fad0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x471bc8], eax
push 0x441818
mov eax, dword [0x46fad0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x471bcc], eax
push 0x44182c
mov eax, dword [0x46fad0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x471bd0], eax
push 0x441844
mov eax, dword [0x46fad0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x471bd4], eax
push 0x44185c
mov eax, dword [0x46fad0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x471bd8], eax
push 0x441878
mov eax, dword [0x46fad0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x471bdc], eax
push 0x441884
mov eax, dword [0x46fad0]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x471be0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x441799
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4459b4
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004043ec
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x445a03
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404654
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44d944
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44d994]
test si, 4
je 0x44d958
or bl, 1
test si, 8
je 0x44d962
or bl, 4
test si, 1
je 0x44d96c
or bl, 8
test si, 2
je 0x44d976
or bl, 0x10
test si, 0x10
je 0x44d980
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44d98f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44d998
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44d9d0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44d9b1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44d9c0
or bl, 4
test esi, 0x20000000
je 0x44d9cb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x453fec
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x453ffe
add esp, 0xfffffff0
call fcn.004039e4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004208f8
mov eax, dword [0x470728]
mov dword [eax + 4], ebx
mov dword [eax], 0x454390
mov eax, dword [0x470734]
mov dword [eax + 4], ebx
mov dword [eax], 0x45439c
mov eax, ebx
call fcn.004543a8
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x416830]
call fcn.00403650
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x416830]
call fcn.00403650
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x416830]
call fcn.00403650
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x416830]
call fcn.00403650
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x416830]
call fcn.00403650
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x450870
push eax
push 0
push 0
mov eax, dword [0x470864]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x422318]
call fcn.00423a2c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x422318]
call fcn.00423a2c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x422318]
call fcn.00423a2c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004547c8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4546a4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4546a4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4546a4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45413b
call fcn.00403a3c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x454488
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x454633
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x454614
mov dl, 1
mov eax, dword [0x416d20]
call fcn.00403650
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004043ec
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x454603
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044198c
test al, al
je 0x4545f6
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x454644
lea eax, [ebp - 0x254]
call fcn.004091f8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4545f6
xor eax, eax
push ebp
push 0x4545ef
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x45467c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4545d8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404654
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4545d8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404654
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4545f6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4544f9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041ae94
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45463a
lea eax, [ebp - 0x260]
call fcn.004043ec
ret

Function at 0x454f68
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x471bfc]
cmp byte [eax + 0xa5], 0
jne 0x454fd9
cmp dword [0x471c14], 0
jne 0x454f9a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x454f24
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x471c14], eax
cmp dword [0x471c10], 0
jne 0x454fb5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x471c10], eax
cmp dword [0x471c18], 0
jne 0x454fd9
push esp
push 0
push 0
push 0x454ec8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x471c18], eax
pop edx
ret
Function at 0x4550d0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4550e7
add esp, 0xfffffff0
call fcn.004039e4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004208f8
mov eax, dword [0x470854]
cmp word [eax + 2], 0
jne 0x45510f
mov eax, dword [0x470854]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00456704
mov eax, dword [0x4708f4]
cmp word [eax + 2], 0
jne 0x455129
mov eax, dword [0x4708f4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004568fc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x416830]
call fcn.00403650
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x416830]
call fcn.00403650
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x422d98]
call fcn.0042a48c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4552b0
mov eax, dword [0x470788]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042a85c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x456e7c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x470788]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040b520
test eax, eax
je 0x45521e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408b40
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040b548
test eax, eax
je 0x455232
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404654
mov eax, dword [0x47067c]
cmp byte [eax], 0
jne 0x455266
mov eax, ebx
call fcn.004553d8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00457058
mov eax, ebx
call fcn.00457a08
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4552a6
call fcn.00403a3c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45564c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x471bfc]
cmp dword [eax + 0x30], 0
je 0x4556f6
cmp dword [ebx + 0x94], 0
jne 0x4556f0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4555dc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4556f0
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4556b6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4556f0
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00418ed0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4556c5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4561d4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x456209
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004044dc
jmp 0x456216
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404440
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x457234
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x457275
mov eax, esi
call fcn.0043d0c8
test al, al
je 0x457275
mov eax, dword [ebx + 0x84]
call fcn.0043cdc4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x457275
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043cdc4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45a3ac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0040489c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x45a404
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x470a4c]
mov dl, 1
mov eax, dword [0x459f64]
call fcn.0040ab44
call fcn.00403e4c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0045a06c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x45d32c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x45d35a
mov eax, ebx
call fcn.0045dde4
cmp dword [ebx + 0x3c], 0
je 0x45d353
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x45d3cb
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x45d3bd
cmp dword [ebx + 8], 0
je 0x45d37c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x45d38e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45d3bd
cmp dword [ebx + 8], 0
je 0x45d36f
cmp eax, 3
je 0x45d3a1
dec eax
jne 0x45d36f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x45d36f
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x45d36f
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x45d3e9
cmp dword [ebx + 0x10], 0xcc
je 0x45d3e9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0045d3f4
pop ebx
ret

Function at 0x46e270
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 4], ebx
mov esi, ecx
mov ebx, edx
xor eax, eax
push ebp
push 0x46e34c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x46e368
push ebx
push 0x46e368
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00404764
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402f8c
mov dword [ebp - 0x48], 0x44
mov dword [ebp - 0x1c], 1
mov ax, word [ebp + 8]
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
call fcn.004089dc
mov eax, dword [ebp - 0x5c]
call fcn.0040489c
push eax
push 0
push 0x30
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0040489c
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test bl, bl
je 0x46e32e
push 0xffffffffffffffff
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e353
lea eax, [ebp - 0x5c]
call fcn.004043ec
lea eax, [ebp - 4]
call fcn.004043ec
ret

Function at 0x46e36c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xffffff80
mov ebx, edx
push 0x80
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
cmp eax, 0x80
jg 0x46e38c
test eax, eax
jne 0x46e395
mov eax, ebx
call fcn.004043ec
jmp 0x46e39e
mov edx, ebx
mov eax, esp
call fcn.00408cfc
add esp, 0x80
pop ebx
ret
Function at 0x401280
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x415008]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
lea eax, [esp + 0x10]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4012e8
lea eax, [esp + 0x18]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
push 0
push 0
push 0x10
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 1
push eax
push 0
push dword [esp + 0x24]
mov dword [esp + 0x38], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push str.graphics_hook32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push str.dummy_debug_proc
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x10], eax
test eax, eax
je 0x4013b4
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 0x18
mov ecx, esp
push 0xd
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.crossfire.dat
mov byte [ecx], 0
call fcn.00401650
call fcn.00401460
add esp, 0x18
test eax, eax
jne 0x40134a
push 0xc8
call esi
jmp 0x401313
sub esp, 0x18
mov ecx, esp
push 0xd
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push str.crossfire.dat
mov byte [ecx], 0
call fcn.00401650
call fcn.00401460
add esp, 0x18
mov ecx, eax
call fcn.004013d0
mov ebx, eax
test ebx, ebx
je 0x4013b4
push ebx
push edi
push dword [esp + 0x18]
push 3
call dword [sym.imp.USER32.dll_SetWindowsHookExA]
mov dword [esp + 0x10], eax
mov edi, 0x78
push 0x1f4
call esi
push dword [esp + 0x10]
push 0
push 0x5b0
push ebx
call dword [sym.imp.USER32.dll_PostThreadMessageA]
dec edi
jne 0x401398
mov ecx, dword [esp + 0x24]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00401b0d
mov esp, ebp
pop ebp
ret
Function at 0x408e1a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x415008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00406e9a
mov dword [ebp - 0x14], eax
cmp dword [0x41711c], esi
jne 0x408f0d
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x408e9a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x408fed
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x408fed
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x408fed
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x41711c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x417120], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x417124], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41712c], eax
test eax, eax
je 0x408f0a
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x417128], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x408f32
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x408f25
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x408f47
push 4
pop eax
jmp 0x408fef
cmp dword [ebp - 0x14], esi
je 0x408f47
push dword [0x41711c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x408f2c
mov eax, dword [0x417128]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x408fa5
cmp dword [0x41712c], edi
je 0x408fa5
push eax
call ebx
push dword [0x41712c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x408fa5
test eax, eax
je 0x408fa5
call ecx
test eax, eax
je 0x408f9a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x408f9a
test byte [ebp - 8], 1
jne 0x408fa5
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x408fd5
mov eax, dword [0x417120]
cmp eax, edi
je 0x408fd2
push eax
call ebx
test eax, eax
je 0x408fd2
call eax
mov esi, eax
test esi, esi
je 0x408fd2
mov eax, dword [0x417124]
cmp eax, edi
je 0x408fd2
push eax
call ebx
test eax, eax
je 0x408fd2
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x41711c]
call ebx
test eax, eax
je 0x408fed
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x408fef
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401b0d
mov esp, ebp
pop ebp
ret
Function at 0x10006583
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x1003e2c9
call fcn.1002aaa4
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
lea ecx, [esi + 4]
mov dword [esi], edi
call fcn.10004ca0
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x20], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x10006907
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
mov eax, 0x1003e34c
call fcn.1002aaa4
push ecx
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov esi, 0xff
push esi
push ebx
push esi
push esi
push str.team0
mov dword [esp + 0x30], ebx
call fcn.10006817
mov ebp, 0x80
push ebp
push ebx
push ebp
push esi
push str.team1
mov ecx, edi
call fcn.10006817
push esi
push ebx
push 0x64
push esi
push str.team2
mov ecx, edi
call fcn.10006817
push esi
push esi
push 0x78
push 0x32
push str.team3
mov ecx, edi
call fcn.10006817
push esi
push ebx
push 0x64
push esi
push str.team4
mov ecx, edi
call fcn.10006817
push 0x2d
push esi
push 0x78
push 0x32
push str.radarbg
mov ecx, edi
call fcn.10006817
push esi
push esi
push 0x78
push 0x28
push str.radarlines
mov ecx, edi
call fcn.10006817
push esi
push ebx
push 0x64
push esi
push str.radaroutlines
mov ecx, edi
call fcn.10006817
push esi
push ebx
push 0x64
push esi
push str.menuselection
mov ecx, edi
call fcn.10006817
push esi
push esi
push esi
push esi
push str.menu_text
mov ecx, edi
call fcn.10006817
push esi
push ebx
push ebx
push esi
push str.health_non
mov ecx, edi
call fcn.10006817
push esi
push ebx
push esi
push esi
push str.health_low
mov ecx, edi
call fcn.10006817
push esi
push 0xc8
push ebp
push 0x32
push str.health_avg
mov ecx, edi
call fcn.10006817
push esi
push ebx
push esi
push ebx
push str.health_high
mov ecx, edi
call fcn.10006817
mov ecx, dword [esp + 0x14]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x10007389
Capabilities:
Parse pe header

Disassembly:
mov edx, dword [esp + 4]
test edx, edx
je 0x100073c2
cmp edx, 0xffffffff
je 0x100073c2
cmp word [edx], 0x5a4d
jne 0x100073c2
mov eax, dword [edx + 0x3c]
add eax, edx
cmp dword [eax], 0x4550
jne 0x100073c2
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [eax + 0x1c]
mov eax, dword [eax + 0x2c]
add eax, edx
push eax
call fcn.10007313
jmp 0x100073c4
xor eax, eax
ret 0xc

Function at 0x10009719
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
call fcn.1000860f
xor eax, eax
lea ecx, [ebp - 4]
push ecx
push eax
push eax
push 0x100096f6
push eax
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
leave
ret