joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d410
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, dword [esp + 0x10]
push ebp
push esi
push edi
cmp byte [ecx + 0x3c], 0
lea ebp, [ebx + 0x3c]
jne 0x45d4ac
push 0x60
call fcn.00482a72
mov esi, dword [0x524aa8]
add esp, 4
mov ecx, eax
test esi, esi
je 0x45d48f
movsx edx, word [esi + 0x5e30]
lea eax, [esi + 0x5e34]
mov edi, dword [esi + 0x3f08]
lea eax, [eax + edx*8]
cmp dword [eax], edi
je 0x45d485
lea eax, [edx + 1]
mov dword [esp + 0x14], 6
cdq
idiv dword [esp + 0x14]
movzx eax, dx
mov word [esi + 0x5e30], ax
cwde
lea eax, [eax*8 + 0x5e34]
add eax, esi
xor edx, edx
mov dword [eax], edi
mov dword [eax + 4], edx
inc word [eax + 4]
inc dword [esi + 0x5e28]
test ecx, ecx
je 0x45d49a
call fcn.0045f9e0
jmp 0x45d49c
xor eax, eax
mov dword [esp + 0x14], eax
mov ecx, ebp
lea eax, [esp + 0x14]
push eax
call fcn.00431e30
mov esi, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x58]
cmp esi, ecx
jne 0x45d505
inc esi
test ecx, ecx
je 0x45d4c6
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x45d4cb
mov eax, 8
cmp eax, esi
cmovg esi, eax
cmp esi, ecx
jle 0x45d505
imul ecx, esi, 0x7c
call fcn.0043e250
mov edi, eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x45d4fc
imul ecx, dword [ebx + 0x54], 0x7c
push ecx
push eax
push edi
call fcn.00473250
mov ecx, dword [ebx + 0x5c]
add esp, 0xc
call fcn.0043e2e0
mov dword [ebx + 0x5c], edi
lea ebp, [ebx + 0x3c]
mov dword [ebx + 0x58], esi
imul edi, dword [ebx + 0x54], 0x7c
mov ecx, 0x1f
mov edx, dword [esp + 0x1c]
mov esi, edx
add edi, dword [ebx + 0x5c]
rep movsd dword es:[edi], dword [esi]
inc dword [ebx + 0x54]
imul edi, dword [ebx + 0x54], 0x7c
add edi, dword [ebx + 0x5c]
cmp dword [edi - 4], 0
jne 0x45d536
mov ecx, dword [ebp]
mov eax, dword [ebp + 8]
mov eax, dword [eax + ecx*4 - 4]
mov dword [edi - 4], eax
cmp byte [edi - 0x74], 0
jne 0x45d561
mov ecx, dword [edi - 0x78]
call fcn.0043e250
mov ecx, dword [esp + 0x1c]
push dword [edi - 0x78]
mov dword [edi - 0x7c], eax
mov byte [edi - 0x74], 1
push dword [ecx]
push eax
call fcn.00473250
mov edx, dword [esp + 0x28]
add esp, 0xc
mov ecx, dword [edi - 4]
mov eax, 0xffff
cmp word [ecx + 0x3c], ax
jne 0x45d577
mov ax, word [edx + 0x4c]
mov word [ecx + 0x3c], ax
imul esi, dword [ebx + 0x54], 0x7c
mov eax, dword [ebx + 0x5c]
add esi, eax
cmp eax, esi
je 0x45d5a2
cmp byte [eax + 0x3c], 0
mov edx, dword [eax + 0x78]
lea ecx, [edx + 0x38]
jne 0x45d598
mov dword [edx + 0x34], eax
xor edx, edx
mov word [ecx], dx
inc word [ecx]
add eax, 0x7c
cmp eax, esi
jne 0x45d584
mov ecx, ebx
mov byte [ebx + 0x18], 0
call fcn.0045d330
mov eax, dword [edi - 4]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x4645b0
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x51bfc0], 0
jne 0x46465d
push 0x2220
push 0
push 0x51bfc0
call fcn.00472e80
movq xmm0, qword [section..data]
add esp, 0xc
mov eax, dword [0x51a008]
movq qword [0x51bfc4], xmm0
mov dword [0x51bfcc], eax
call fcn.004679c0
test eax, eax
je 0x464663
push 0x51d26c
call fcn.00469170
add esp, 4
test eax, eax
je 0x464663
push 0x51d25c
call fcn.00469190
add esp, 4
test eax, eax
je 0x464663
push 0x51d264
call fcn.00469190
add esp, 4
test eax, eax
je 0x464663
push 0x51e1e0
push 0x51d25c
call fcn.00469240
add esp, 8
call fcn.004662a0
mov dword [0x51bfc0], 1
call fcn.00469150
mov dword [0x51d288], eax
mov dword [0x51d28c], edx
call fcn.00464c10
mov eax, 1
ret
call fcn.00464690
xor eax, eax
ret
Function at 0x464fc0
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x51bfc0], 0
jne 0x464fd9
push 0
push 0x10001
call fcn.00464200
add esp, 8
ret
jmp 0x469f30
sub esp, 0x50
mov eax, dword [0x51a900]
xor eax, esp
mov dword [esp + 0x4c], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
lea eax, [esp + 0x10]
push 1
push 0
push 0
push 0
push eax
call edi
test eax, eax
je 0x469faa
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [esp + 0x14], 0x12
jne 0x469f89
mov esi, dword [0x51c388]
test esi, esi
je 0x469f97
push esi
call fcn.004647f0
mov esi, dword [esi]
add esp, 4
test esi, esi
jne 0x469f78
jmp 0x469f97
lea eax, [esp + 0x10]
push eax
call ebx
lea eax, [esp + 0x10]
push eax
call ebp
push 1
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
jne 0x469f67
call dword [sym.imp.USER32.dll_GetActiveWindow]
test eax, eax
je 0x46a02e
push str.GLFW
push eax
call dword [sym.imp.USER32.dll_GetPropW]
mov ebx, eax
test ebx, ebx
je 0x46a02e
movaps xmm0, xmmword [0x4b4840]
lea eax, [esp + 0x40]
movups xmmword [esp + 0x3c], xmm0
xor esi, esi
movaps xmm0, xmmword [0x4b4850]
movups xmmword [esp + 0x4c], xmm0
nop dword [eax]
nop dword [eax + eax]
mov edi, dword [eax + esi*8]
push dword [esp + esi*8 + 0x3c]
movsx ebp, word [edi*2 + 0x51d6d8]
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x46a024
cmp byte [edi + ebx + 0x74], 1
jne 0x46a024
call fcn.0046b350
push eax
push 0
push ebp
push edi
push ebx
call fcn.00466540
add esp, 0x14
inc esi
lea eax, [esp + 0x40]
cmp esi, 4
jl 0x469ff0
mov esi, dword [0x51e078]
test esi, esi
je 0x46a0a9
lea eax, [esp + 0x2c]
push eax
push dword [esi + 0x2ac]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
cdq
sub eax, edx
mov edi, eax
sar edi, 1
cmp dword [esi + 0x2d8], edi
jne 0x46a06f
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
cmp dword [esi + 0x2dc], eax
je 0x46a0a9
mov eax, ebx
mov dword [esp + 0x2c], edi
cdq
sub eax, edx
mov dword [esi + 0x2d8], edi
sar eax, 1
mov dword [esp + 0x30], eax
mov dword [esi + 0x2dc], eax
lea eax, [esp + 0x2c]
push eax
push dword [esi + 0x2ac]
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [esp + 0x30]
push dword [esp + 0x30]
call dword [sym.imp.USER32.dll_SetCursorPos]
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00471a29
add esp, 0x50
ret
Function at 0x467e60
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x164
mov eax, dword [0x51a900]
xor eax, esp
mov dword [esp + 0x160], eax
push ebx
push ebp
push esi
push edi
push 0x100
lea eax, [esp + 0x74]
push 0
push eax
call fcn.00472e80
push 0x6d1
push 0
push 0x51d992
call fcn.00472e80
mov eax, 0x51da32
lea ebx, [esp + 0x2c]
add esp, 0x18
mov dword [esp + 0x10], eax
mov esi, 0x20
sub ebx, 0x480
movsx edi, word [esi*2 + 0x51d6d8]
cmp edi, 0xffffffff
je 0x467fbd
cmp esi, 0x140
jb 0x467f5a
cmp esi, 0x14e
ja 0x467f5a
mov dword [esp + 0x14], 0x60
mov dword [esp + 0x18], 0x61
mov dword [esp + 0x1c], 0x62
mov dword [esp + 0x20], 0x63
mov dword [esp + 0x24], 0x64
mov dword [esp + 0x28], 0x65
mov dword [esp + 0x2c], 0x66
mov dword [esp + 0x30], 0x67
mov dword [esp + 0x34], 0x68
mov dword [esp + 0x38], 0x69
mov dword [esp + 0x3c], 0x6e
mov dword [esp + 0x40], 0x6f
mov dword [esp + 0x44], 0x6a
mov dword [esp + 0x48], 0x6d
mov dword [esp + 0x4c], 0x6b
mov ebp, dword [ebx]
jmp 0x467f65
push 1
push edi
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
mov ebp, eax
push 0
push 0x10
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x7c]
push eax
push edi
push ebp
call dword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 0xffffffff
jne 0x467f96
push 0
push 0x10
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x7c]
push eax
push edi
push ebp
call dword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jl 0x467fb9
push 0
push 0
push 5
push dword [esp + 0x1c]
lea eax, [esp + 0x60]
push 1
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [esp + 0x10]
inc esi
add eax, 5
add ebx, 4
mov dword [esp + 0x10], eax
cmp esi, 0x15c
jle 0x467eb5
mov ecx, dword [esp + 0x170]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00471a29
add esp, 0x164
ret
Function at 0x4682a0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x1c
mov eax, dword [0x51a900]
xor eax, esp
mov dword [esp + 0x18], eax
push 0x51d2c0
push 0x51bfc0
push 6
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
jne 0x4682e7
push 0x4b41b0
push 0x10008
call fcn.00467770
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00471a29
add esp, 0x1c
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.user32.dll
call ebx
mov dword [0x51e0a0], eax
test eax, eax
jne 0x468322
push str.Win32:_Failed_to_load_user32.dll
push 0x10008
call fcn.00467770
add esp, 8
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00471a29
add esp, 0x1c
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetProcessDPIAware
push eax
call edi
push str.ChangeWindowMessageFilterEx
push dword [0x51e0a0]
mov dword [0x51e0a4], eax
call edi
push str.EnableNonClientDpiScaling
push dword [0x51e0a0]
mov dword [0x51e0a8], eax
call edi
push str.SetProcessDpiAwarenessContext
push dword [0x51e0a0]
mov dword [0x51e0ac], eax
call edi
push str.GetDpiForWindow
push dword [0x51e0a0]
mov dword [0x51e0b0], eax
call edi
push str.AdjustWindowRectExForDpi
push dword [0x51e0a0]
mov dword [0x51e0b4], eax
call edi
push str.GetSystemMetricsForDpi
push dword [0x51e0a0]
mov dword [0x51e0b8], eax
call edi
push str.dinput8.dll
mov dword [0x51e0bc], eax
call ebx
mov dword [0x51e088], eax
test eax, eax
je 0x4683bf
push str.DirectInput8Create
push eax
call edi
mov dword [0x51e08c], eax
push esi
mov dword [esp + 0xc], str.xinput1_4.dll
xor esi, esi
mov dword [esp + 0x10], str.xinput1_3.dll
mov eax, str.xinput1_4.dll
mov dword [esp + 0x14], str.xinput9_1_0.dll
mov dword [esp + 0x18], str.xinput1_2.dll
mov dword [esp + 0x1c], str.xinput1_1.dll
mov dword [esp + 0x20], 0
push eax
call ebx
mov dword [0x51e094], eax
test eax, eax
jne 0x46840e
mov eax, dword [esp + esi*4 + 0x10]
inc esi
test eax, eax
jne 0x4683f7
jmp 0x46842d
push str.XInputGetCapabilities
push eax
call edi
push str.XInputGetState
push dword [0x51e094]
mov dword [0x51e098], eax
call edi
mov dword [0x51e09c], eax
push str.dwmapi.dll
call ebx
mov dword [0x51e0c0], eax
pop esi
test eax, eax
je 0x468481
push str.DwmIsCompositionEnabled
push eax
call edi
push str.DwmFlush
push dword [0x51e0c0]
mov dword [0x51e0c4], eax
call edi
push str.DwmEnableBlurBehindWindow
push dword [0x51e0c0]
mov dword [0x51e0c8], eax
call edi
push str.DwmGetColorizationColor
push dword [0x51e0c0]
mov dword [0x51e0cc], eax
call edi
mov dword [0x51e0d0], eax
push str.shcore.dll
call ebx
mov dword [0x51e0d4], eax
test eax, eax
je 0x4684b0
push str.SetProcessDpiAwareness
push eax
call edi
push str.GetDpiForMonitor
push dword [0x51e0d4]
mov dword [0x51e0d8], eax
call edi
mov dword [0x51e0dc], eax
push str.ntdll.dll
call ebx
mov dword [0x51e0e0], eax
test eax, eax
je 0x4684cd
push str.RtlVerifyVersionInfo
push eax
call edi
mov dword [0x51e0e4], eax
mov ecx, dword [esp + 0x20]
mov eax, 1
pop edi
pop ebx
xor ecx, esp
call fcn.00471a29
add esp, 0x1c
ret
Function at 0x469190
Capabilities:
Allocate thread local storage

Disassembly:
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, dword [esp + 4]
mov dword [ecx + 4], eax
cmp eax, 0xffffffff
jne 0x4691b7
push 0x4b4640
push 0x10008
call fcn.00467770
add esp, 8
xor eax, eax
ret
mov dword [ecx], 1
mov eax, 1
ret

Function at 0x469910
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0x10]
push edi
push ebx
push ebp
push esi
call fcn.0046aac0
add esp, 0xc
test eax, eax
je 0x469a41
mov edi, dword [esp + 0x1c]
cmp dword [edi], 0
je 0x4699b4
mov eax, dword [edi + 4]
cmp eax, 0x36001
jne 0x46995d
call fcn.0046db90
test eax, eax
je 0x469a41
push ebx
push edi
push esi
call fcn.0046d790
jmp 0x469997
cmp eax, 0x36002
jne 0x46997b
call fcn.0046edc0
test eax, eax
je 0x469a41
push ebx
push edi
push esi
call fcn.0046e930
jmp 0x469997
cmp eax, 0x36003
jne 0x4699a2
call fcn.0046f910
test eax, eax
je 0x469a41
push ebx
push edi
push esi
call fcn.0046f700
add esp, 0xc
test eax, eax
je 0x469a41
push edi
push esi
call fcn.00465800
add esp, 8
test eax, eax
je 0x469a41
cmp dword [esi + 0x3c], 0
je 0x469a14
push 8
push dword [esi + 0x2ac]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 0x2ac]
call dword [sym.imp.USER32.dll_BringWindowToTop]
push dword [esi + 0x2ac]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [esi + 0x2ac]
call dword [sym.imp.USER32.dll_SetFocus]
push esi
call fcn.0046a880
push esi
call fcn.0046b230
add esp, 8
cmp dword [ebp + 0x28], 0
je 0x469a37
push esi
call fcn.00466210
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret
cmp dword [ebp + 0x10], 0
je 0x469a37
push 8
push dword [esi + 0x2ac]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 0x18], 0
je 0x469a37
push esi
call fcn.00469b00
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x46a0c0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push edi
push 0
push 0
push 0xffffffffffffffff
push dword [esp + 0x14]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edi, eax
test edi, edi
je 0x46a12b
push esi
lea ecx, [edi + edi]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x46a106
push str.Win32:_Failed_to_allocate_global_handle_for_clipboard
push 0x10008
call fcn.00467770
add esp, 8
pop esi
pop edi
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x46a12d
push str.Win32:_Failed_to_lock_global_handle
push 0x10008
call fcn.00467770
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop edi
ret
push edi
push eax
push 0xffffffffffffffff
push dword [esp + 0x18]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push dword [0x51d2c4]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x46a160
push str.Win32:_Failed_to_open_clipboard
jmp 0x46a116
call dword [sym.imp.USER32.dll_EmptyClipboard]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
pop esi
pop edi
jmp dword [sym.imp.USER32.dll_CloseClipboard]

Function at 0x46af70
Capabilities:
Register raw input devices

Disassembly:
sub esp, 0x14
mov eax, dword [0x51a900]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 4]
push edi
push eax
mov dword [0x51e078], ebx
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x46afce
lea eax, [esp + 8]
push eax
push dword [ebx + 0x2ac]
call dword [sym.imp.USER32.dll_ScreenToClient]
movd xmm0, dword [esp + 8]
cvtdq2pd xmm0, xmm0
movsd qword [0x51e068], xmm0
movd xmm0, dword [esp + 0xc]
cvtdq2pd xmm0, xmm0
movsd qword [0x51e070], xmm0
cmp dword [ebx + 0x68], 0x34001
jne 0x46aff3
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x46afe3
push dword [eax + 4]
jmp 0x46aff5
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
jmp 0x46aff5
push 0
call dword [sym.imp.USER32.dll_SetCursor]
push ebx
call fcn.00466210
add esp, 4
lea eax, [esp + 8]
push eax
push dword [ebx + 0x2ac]
call dword [sym.imp.USER32.dll_GetClientRect]
lea eax, [esp + 8]
push eax
push dword [ebx + 0x2ac]
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [esp + 0x10]
push eax
push dword [ebx + 0x2ac]
call dword [sym.imp.USER32.dll_ClientToScreen]
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_ClipCursor]
cmp dword [ebx + 0x1e8], 0
je 0x46b08a
mov eax, dword [ebx + 0x2ac]
push 0xc
mov dword [esp + 0x14], eax
lea eax, [esp + 0xc]
push 1
push eax
mov dword [esp + 0x14], 0x20001
mov dword [esp + 0x18], 0
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x46b08a
push str.Win32:_Failed_to_register_raw_input_device
push 0x10008
call fcn.00467770
add esp, 8
mov ecx, dword [esp + 0x18]
pop edi
pop ebx
xor ecx, esp
call fcn.00471a29
add esp, 0x14
ret
Function at 0x46b0a0
Capabilities:
Register raw input devices

Disassembly:
sub esp, 0xc
push 0xc
push 1
lea eax, [esp + 8]
mov dword [esp + 8], 0x20001
push eax
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 0
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x46b0e0
push str.Win32:_Failed_to_remove_raw_input_device
push 0x10008
call fcn.00467770
add esp, 8
add esp, 0xc
ret

Function at 0x46b0f0
Capabilities:
Register raw input devices

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
cmp dword [esi + 0x1e8], 0
je 0x46b13e
push 0xc
push 1
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x20001
push eax
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], 0
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x46b13e
push str.Win32:_Failed_to_remove_raw_input_device
push 0x10008
call fcn.00467770
add esp, 8
push 0
mov dword [0x51e078], 0
call dword [sym.imp.USER32.dll_ClipCursor]
cvttsd2si eax, qword [0x51e070]
cvttsd2si ecx, qword [0x51e068]
mov dword [esp + 8], eax
mov dword [esi + 0x2dc], eax
lea eax, [esp + 4]
push eax
push dword [esi + 0x2ac]
mov dword [esp + 0xc], ecx
mov dword [esi + 0x2d8], ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.USER32.dll_SetCursorPos]
cmp dword [esi + 0x68], 0x34001
jne 0x46b1ca
mov eax, dword [esi + 0x40]
test eax, eax
je 0x46b1b1
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
add esp, 0xc
ret
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
add esp, 0xc
ret
push 0
call dword [sym.imp.USER32.dll_SetCursor]
pop esi
add esp, 0xc
ret

Function at 0x46b1e0
Capabilities:
Register raw input devices

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
push 0xc
push 1
mov dword [esp + 8], 0x20001
mov eax, dword [eax + 0x2ac]
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
push eax
mov dword [esp + 0x10], 0
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x46b226
push str.Win32:_Failed_to_register_raw_input_device
push 0x10008
call fcn.00467770
add esp, 8
add esp, 0xc
ret

Function at 0x46b350
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
push esi
push edi
push 0x10
call ebp
movzx esi, ax
push 0x11
shr esi, 0xf
call ebp
mov edi, esi
or edi, 2
test ax, ax
push 0x12
cmovns edi, esi
call ebp
mov ebx, edi
or ebx, 4
test ax, ax
push 0x5c
cmovns ebx, edi
call ebp
push 0x5b
mov si, ax
call ebp
mov edi, ebx
or edi, 8
or si, ax
push 0x14
cmovns edi, ebx
call ebp
mov esi, edi
or esi, 0x10
test al, 1
push 0x90
cmove esi, edi
call ebp
mov ecx, esi
or ecx, 0x20
test al, 1
pop edi
cmove ecx, esi
pop esi
pop ebp
mov eax, ecx
pop ebx
ret
Function at 0x46f910
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x10
mov eax, dword [0x51a900]
xor eax, esp
mov dword [esp + 0xc], eax
cmp dword [0x51e1bc], 0
mov dword [esp], str.libOSMesa.dll
mov dword [esp + 4], str.OSMesa.dll
mov dword [esp + 8], 0
je 0x46f952
mov eax, 1
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00471a29
add esp, 0x10
ret
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor esi, esi
mov eax, str.libOSMesa.dll
push eax
call edi
mov ecx, eax
mov dword [0x51e1bc], ecx
test ecx, ecx
jne 0x46f9a2
mov eax, dword [esp + esi*4 + 0xc]
inc esi
test eax, eax
jne 0x46f961
test ecx, ecx
jne 0x46f9a2
push str.OSMesa:_Library_not_found
push 0x10006
call fcn.00464200
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00471a29
add esp, 0x10
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OSMesaCreateContextExt
push ecx
call esi
push str.OSMesaCreateContextAttribs
push dword [0x51e1bc]
mov dword [0x51e1c0], eax
call esi
push str.OSMesaDestroyContext
push dword [0x51e1bc]
mov dword [0x51e1c4], eax
call esi
push str.OSMesaMakeCurrent
push dword [0x51e1bc]
mov dword [0x51e1c8], eax
call esi
push str.OSMesaGetColorBuffer
push dword [0x51e1bc]
mov dword [0x51e1cc], eax
call esi
push str.OSMesaGetDepthBuffer
push dword [0x51e1bc]
mov dword [0x51e1d0], eax
call esi
push str.OSMesaGetProcAddress
push dword [0x51e1bc]
mov dword [0x51e1d4], eax
call esi
cmp dword [0x51e1c0], 0
mov dword [0x51e1d8], eax
je 0x46fa68
cmp dword [0x51e1c8], 0
je 0x46fa68
cmp dword [0x51e1cc], 0
je 0x46fa68
cmp dword [0x51e1d0], 0
je 0x46fa68
cmp dword [0x51e1d4], 0
je 0x46fa68
test eax, eax
je 0x46fa68
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00471a29
add esp, 0x10
ret
push str.OSMesa:_Failed_to_load_required_entry_points
push 0x10008
call fcn.00464200
mov eax, dword [0x51e1bc]
add esp, 8
test eax, eax
je 0x46fa94
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x51e1bc], 0
mov ecx, dword [esp + 0x14]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00471a29
add esp, 0x10
ret

Function at 0x470482
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x4704a9
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x4704ac
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0047045e
pop esi
leave
ret 8

Function at 0x4726c2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x472701
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x472701
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x472701
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x472701
cmp dword [ecx + 0x74], 0xe
jbe 0x472701
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x48272d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00472840
mov eax, dword [0x51a900]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00486da3
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x48276f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4828cb
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00496710
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x5230c0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00489476
mov ecx, dword [esi*4 + 0x5230c0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x4828c4
cmp eax, dword [ecx + edi + 0x24]
jne 0x4828c4
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4828c4
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00489476
add esp, 0x14
test edx, edx
jl 0x4828c4
jg 0x48283a
test eax, eax
jb 0x4828c4
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4828c4
jl 0x482854
cmp dword [ebp - 0x1008], eax
ja 0x4828c4
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x482872
test ebx, ebx
je 0x4828ab
cmp ecx, edi
jae 0x4828ab
mov al, byte [ecx]
cmp al, 0xd
jne 0x48288c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x482898
cmp byte [ecx + 1], 0xa
jne 0x482898
inc ecx
jmp 0x482898
movzx eax, al
movsx eax, byte [eax + 0x51abb0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x482872
cmp edx, ebx
jne 0x482872
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4828c9
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00471a29
leave
ret