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

Disassembly:
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004381b0
lea ecx, [esi + 0xc]
call fcn.004381b0
lea ecx, [esi + 0x18]
call fcn.004381b0
mov dword [esi + 0x24], 0
mov ebp, 6
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov edi, dword [esi + 0x44]
test edi, edi
je 0x459910
mov ecx, dword [0x524aa8]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test ecx, ecx
je 0x459900
movsx edx, word [ecx + 0x5e30]
lea eax, [ecx + 0x5e34]
mov ebx, dword [ecx + 0x3f08]
lea eax, [eax + edx*8]
cmp dword [eax], ebx
je 0x4598f6
lea eax, [edx + 1]
cdq
idiv ebp
movzx eax, dx
mov word [ecx + 0x5e30], ax
cwde
lea eax, [eax*8 + 0x5e34]
add eax, ecx
xor edx, edx
mov dword [eax], ebx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5e2c]
push edi
call fcn.0047e51b
add esp, 4
mov dword [esi + 0x44], 0
mov edi, dword [esi + 0x50]
test edi, edi
je 0x459984
mov ecx, dword [0x524aa8]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test ecx, ecx
je 0x459974
movsx edx, word [ecx + 0x5e30]
lea eax, [ecx + 0x5e34]
mov ebx, dword [ecx + 0x3f08]
lea eax, [eax + edx*8]
cmp dword [eax], ebx
je 0x45996a
lea eax, [edx + 1]
cdq
idiv ebp
movzx eax, dx
mov word [ecx + 0x5e30], ax
cwde
lea eax, [eax*8 + 0x5e34]
add eax, ecx
xor edx, edx
mov dword [eax], ebx
mov dword [eax + 4], edx
inc word [eax + 6]
inc dword [ecx + 0x5e2c]
push edi
call fcn.0047e51b
add esp, 4
mov dword [esi + 0x50], 0
lea ecx, [esi + 0x54]
call fcn.004381b0
pop edi
lea ecx, [esi + 0x78]
pop esi
pop ebp
pop ebx
jmp fcn.0045bff0
Function at 0x45cc50
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 0x45ccec
push 0x60
call fcn.00482122
mov esi, dword [0x524aa8]
add esp, 4
mov ecx, eax
test esi, esi
je 0x45cccf
movsx edx, word [esi + 0x5e30]
lea eax, [esi + 0x5e34]
mov edi, dword [esi + 0x3f08]
lea eax, [eax + edx*8]
cmp dword [eax], edi
je 0x45ccc5
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 0x45ccda
call fcn.0045f220
jmp 0x45ccdc
xor eax, eax
mov dword [esp + 0x14], eax
mov ecx, ebp
lea eax, [esp + 0x14]
push eax
call fcn.00431680
mov esi, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x58]
cmp esi, ecx
jne 0x45cd45
inc esi
test ecx, ecx
je 0x45cd06
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x45cd0b
mov eax, 8
cmp eax, esi
cmovg esi, eax
cmp esi, ecx
jle 0x45cd45
imul ecx, esi, 0x7c
call fcn.0043da90
mov edi, eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x45cd3c
imul ecx, dword [ebx + 0x54], 0x7c
push ecx
push eax
push edi
call fcn.00472aa0
mov ecx, dword [ebx + 0x5c]
add esp, 0xc
call fcn.0043db20
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 0x45cd76
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 0x45cda1
mov ecx, dword [edi - 0x78]
call fcn.0043da90
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.00472aa0
mov edx, dword [esp + 0x28]
add esp, 0xc
mov ecx, dword [edi - 4]
mov eax, 0xffff
cmp word [ecx + 0x3c], ax
jne 0x45cdb7
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 0x45cde2
cmp byte [eax + 0x3c], 0
mov edx, dword [eax + 0x78]
lea ecx, [edx + 0x38]
jne 0x45cdd8
mov dword [edx + 0x34], eax
xor edx, edx
mov word [ecx], dx
inc word [ecx]
add eax, 0x7c
cmp eax, esi
jne 0x45cdc4
mov ecx, ebx
mov byte [ebx + 0x18], 0
call fcn.0045cb70
mov eax, dword [edi - 4]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x463e00
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x51bfc0], 0
jne 0x463ead
push 0x2220
push 0
push 0x51bfc0
call fcn.004726d0
movq xmm0, qword [section..data]
add esp, 0xc
mov eax, dword [0x51a008]
movq qword [0x51bfc4], xmm0
mov dword [0x51bfcc], eax
call fcn.00467210
test eax, eax
je 0x463eb3
push 0x51d26c
call fcn.004689c0
add esp, 4
test eax, eax
je 0x463eb3
push 0x51d25c
call fcn.004689e0
add esp, 4
test eax, eax
je 0x463eb3
push 0x51d264
call fcn.004689e0
add esp, 4
test eax, eax
je 0x463eb3
push 0x51e1e0
push 0x51d25c
call fcn.00468a90
add esp, 8
call fcn.00465af0
mov dword [0x51bfc0], 1
call fcn.004689a0
mov dword [0x51d288], eax
mov dword [0x51d28c], edx
call fcn.00464460
mov eax, 1
ret
call fcn.00463ee0
xor eax, eax
ret
Function at 0x464810
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x51bfc0], 0
jne 0x464829
push 0
push 0x10001
call fcn.00463a50
add esp, 8
ret
jmp 0x469780
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 0x4697fa
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [esp + 0x14], 0x12
jne 0x4697d9
mov esi, dword [0x51c388]
test esi, esi
je 0x4697e7
push esi
call fcn.00464040
mov esi, dword [esi]
add esp, 4
test esi, esi
jne 0x4697c8
jmp 0x4697e7
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 0x4697b7
call dword [sym.imp.USER32.dll_GetActiveWindow]
test eax, eax
je 0x46987e
push str.GLFW
push eax
call dword [sym.imp.USER32.dll_GetPropW]
mov ebx, eax
test ebx, ebx
je 0x46987e
movaps xmm0, xmmword [0x4b4850]
lea eax, [esp + 0x40]
movups xmmword [esp + 0x3c], xmm0
xor esi, esi
movaps xmm0, xmmword [0x4b4860]
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 0x469874
cmp byte [edi + ebx + 0x74], 1
jne 0x469874
call fcn.0046aba0
push eax
push 0
push ebp
push edi
push ebx
call fcn.00465d90
add esp, 0x14
inc esi
lea eax, [esp + 0x40]
cmp esi, 4
jl 0x469840
mov esi, dword [0x51e078]
test esi, esi
je 0x4698f9
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 0x4698bf
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
cmp dword [esi + 0x2dc], eax
je 0x4698f9
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.00471279
add esp, 0x50
ret
Function at 0x4676b0
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.004726d0
push 0x6d1
push 0
push 0x51d992
call fcn.004726d0
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 0x46780d
cmp esi, 0x140
jb 0x4677aa
cmp esi, 0x14e
ja 0x4677aa
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 0x4677b5
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 0x4677e6
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 0x467809
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 0x467705
mov ecx, dword [esp + 0x170]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00471279
add esp, 0x164
ret
Function at 0x467af0
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 0x467b37
push 0x4b41b0
push 0x10008
call fcn.00466fc0
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00471279
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 0x467b72
push str.Win32:_Failed_to_load_user32.dll
push 0x10008
call fcn.00466fc0
add esp, 8
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00471279
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 0x467c0f
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 0x467c5e
mov eax, dword [esp + esi*4 + 0x10]
inc esi
test eax, eax
jne 0x467c47
jmp 0x467c7d
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 0x467cd1
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 0x467d00
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 0x467d1d
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.00471279
add esp, 0x1c
ret
Function at 0x4689e0
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 0x468a07
push 0x4b4640
push 0x10008
call fcn.00466fc0
add esp, 8
xor eax, eax
ret
mov dword [ecx], 1
mov eax, 1
ret

Function at 0x469160
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.0046a310
add esp, 0xc
test eax, eax
je 0x469291
mov edi, dword [esp + 0x1c]
cmp dword [edi], 0
je 0x469204
mov eax, dword [edi + 4]
cmp eax, 0x36001
jne 0x4691ad
call fcn.0046d3e0
test eax, eax
je 0x469291
push ebx
push edi
push esi
call fcn.0046cfe0
jmp 0x4691e7
cmp eax, 0x36002
jne 0x4691cb
call fcn.0046e610
test eax, eax
je 0x469291
push ebx
push edi
push esi
call fcn.0046e180
jmp 0x4691e7
cmp eax, 0x36003
jne 0x4691f2
call fcn.0046f160
test eax, eax
je 0x469291
push ebx
push edi
push esi
call fcn.0046ef50
add esp, 0xc
test eax, eax
je 0x469291
push edi
push esi
call fcn.00465050
add esp, 8
test eax, eax
je 0x469291
cmp dword [esi + 0x3c], 0
je 0x469264
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.0046a0d0
push esi
call fcn.0046aa80
add esp, 8
cmp dword [ebp + 0x28], 0
je 0x469287
push esi
call fcn.00465a60
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret
cmp dword [ebp + 0x10], 0
je 0x469287
push 8
push dword [esi + 0x2ac]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 0x18], 0
je 0x469287
push esi
call fcn.00469350
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 0x469910
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 0x46997b
push esi
lea ecx, [edi + edi]
push ecx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x469956
push str.Win32:_Failed_to_allocate_global_handle_for_clipboard
push 0x10008
call fcn.00466fc0
add esp, 8
pop esi
pop edi
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x46997d
push str.Win32:_Failed_to_lock_global_handle
push 0x10008
call fcn.00466fc0
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 0x4699b0
push str.Win32:_Failed_to_open_clipboard
jmp 0x469966
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 0x46a7c0
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 0x46a81e
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 0x46a843
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x46a833
push dword [eax + 4]
jmp 0x46a845
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
jmp 0x46a845
push 0
call dword [sym.imp.USER32.dll_SetCursor]
push ebx
call fcn.00465a60
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 0x46a8da
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 0x46a8da
push str.Win32:_Failed_to_register_raw_input_device
push 0x10008
call fcn.00466fc0
add esp, 8
mov ecx, dword [esp + 0x18]
pop edi
pop ebx
xor ecx, esp
call fcn.00471279
add esp, 0x14
ret
Function at 0x46a8f0
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 0x46a930
push str.Win32:_Failed_to_remove_raw_input_device
push 0x10008
call fcn.00466fc0
add esp, 8
add esp, 0xc
ret

Function at 0x46a940
Capabilities:
Register raw input devices

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
cmp dword [esi + 0x1e8], 0
je 0x46a98e
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 0x46a98e
push str.Win32:_Failed_to_remove_raw_input_device
push 0x10008
call fcn.00466fc0
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 0x46aa1a
mov eax, dword [esi + 0x40]
test eax, eax
je 0x46aa01
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 0x46aa30
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 0x46aa76
push str.Win32:_Failed_to_register_raw_input_device
push 0x10008
call fcn.00466fc0
add esp, 8
add esp, 0xc
ret

Function at 0x46aba0
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 0x46f160
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 0x46f1a2
mov eax, 1
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00471279
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 0x46f1f2
mov eax, dword [esp + esi*4 + 0xc]
inc esi
test eax, eax
jne 0x46f1b1
test ecx, ecx
jne 0x46f1f2
push str.OSMesa:_Library_not_found
push 0x10006
call fcn.00463a50
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00471279
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 0x46f2b8
cmp dword [0x51e1c8], 0
je 0x46f2b8
cmp dword [0x51e1cc], 0
je 0x46f2b8
cmp dword [0x51e1d0], 0
je 0x46f2b8
cmp dword [0x51e1d4], 0
je 0x46f2b8
test eax, eax
je 0x46f2b8
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00471279
add esp, 0x10
ret
push str.OSMesa:_Failed_to_load_required_entry_points
push 0x10008
call fcn.00463a50
mov eax, dword [0x51e1bc]
add esp, 8
test eax, eax
je 0x46f2e4
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.00471279
add esp, 0x10
ret

Function at 0x46fcd2
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 0x46fcf9
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x46fcfc
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.0046fcae
pop esi
leave
ret 8

Function at 0x471f12
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x471f51
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x471f51
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x471f51
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x471f51
cmp dword [ecx + 0x74], 0xe
jbe 0x471f51
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret