joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004b80
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0
je 0x10004c6b
cmp dword [esi + 0x1c], 0
je 0x10004c6b
push dword [esi + 0xcc]
call dword [sym.imp.USER32.dll_DestroyWindow]
push 0
push dword [esi + 0xc0]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0xdc]
call fcn.1003f6e4
push dword [esi + 0x34]
call fcn.1003f6e4
add esp, 8
mov dword [esi + 0xdc], 0
cmp byte [esi + 0x30], 0
mov dword [esi + 0x34], 0
je 0x10004c12
mov eax, dword [esi + 0xd0]
test eax, eax
je 0x10004bef
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp word [esi + 0x124], 0
mov dword [esi + 0xd0], 0
je 0x10004c12
push 0
lea eax, [esi + 0xe0]
push eax
call dword [sym.imp.USER32.dll_ChangeDisplaySettingsW]
mov ecx, esi
mov dword [esi + 0x3c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x50], 0x80000000
mov dword [esi + 0x4c], 0x80000000
mov byte [esi + 0x30], 0
mov byte [esi + 0x60], 1
mov dword [esi + 0x2c], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
call fcn.10003790
mov eax, esi
pop esi
ret
pop esi
jmp fcn.10003790

Function at 0x10005000
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100de5dc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0
je 0x100050fa
cmp dword [esi + 0x1c], 0
je 0x100050fa
cmp byte [esi + 0x60], 0
je 0x100050fa
cmp byte [esi + 0x30], 0
mov byte [esi + 0x60], 0
je 0x10005040
call fcn.100048f0
push 5
push dword [esi + 0xcc]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [esi + 0x60], 0
je 0x10005064
mov dword [esi + 0x50], 0x80000000
mov dword [esi + 0x4c], 0x80000000
jmp 0x100050ad
mov eax, dword [esi + 0x18]
dec eax
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x1c]
dec eax
mov dword [ebp - 0x14], 0
push 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push 0xcf0000
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRect]
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0xcc]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x4c], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 0x50], eax
cmp byte [esi + 0x60], 0
jne 0x100050fa
push 0xffffffffffffffff
push dword [esi + 0xc8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esi + 0x1c]
lea eax, [esi + 0x1bc]
push 0
push eax
push dword [esi + 0xdc]
push ecx
push 0
push 0
push 0
push ecx
push dword [esi + 0x18]
push 0
push 0
push dword [esi + 0x1e8]
call dword [sym.imp.GDI32.dll_SetDIBitsToDevice]
push dword [esi + 0xc8]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1003f6d6
mov esp, ebp
pop ebp
ret
Function at 0x10005250
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ecx
mov eax, dword fs:[0x2c]
mov ecx, dword [0x100e4e2c]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x100e5860]
cmp eax, dword [ecx + 4]
jle 0x100052d6
push 0x100e5860
call fcn.1003f773
add esp, 4
cmp dword [0x100e5860], 0xffffffff
jne 0x100052d6
push 0x1005e960
mov dword [0x100e5800], 0
mov dword [0x100e5804], 0
mov dword [0x100e5808], 0
mov dword [0x100e580c], 0
mov byte [0x100e5810], 0
mov dword [0x100e5814], 0
call fcn.1003fc21
add esp, 4
push 0x100e5860
call fcn.1003f722
add esp, 4
call fcn.100019a0
push 0xffffffffffffffff
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x100e5814], 0
jne 0x10005363
push 1
push 1
push 1
push 0x104
mov ecx, 0x100e5800
call fcn.10009c30
mov eax, dword [0x100e5814]
push 0
push 0x26
mov byte [eax], 0
push dword [0x100e5814]
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x10005363
push str.PROGRAMFILES
call fcn.1004ba3c
add esp, 4
test eax, eax
je 0x10005349
push 0x103
push eax
push dword [0x100e5814]
call fcn.100466a0
add esp, 0xc
jmp 0x10005363
mov ecx, dword [0x100e5814]
movq xmm0, qword [str.C:PROGRA1]
movq qword [ecx], xmm0
mov eax, dword [0x100d1eac]
mov dword [ecx + 8], eax
call fcn.100019a0
push dword [eax + 0x1c]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x100e5814]
pop ecx
ret

Function at 0x10007cd0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100de5dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xorps xmm0, xmm0
mov dword [ebp - 8], 0
mov edx, ecx
movq qword [ebp - 0x10], xmm0
push esi
lea ecx, [ebp - 0x10]
xor bl, bl
call fcn.10007bb0
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
cmp esi, eax
je 0x10007d30
push edi
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi]
call edi
test eax, eax
movzx ebx, bl
mov eax, 1
cmovne ebx, eax
add esi, 4
cmp esi, dword [ebp - 0x14]
jne 0x10007d11
mov esi, dword [ebp - 0x10]
pop edi
test esi, esi
je 0x10007d60
mov ecx, dword [ebp - 8]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x10007d56
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10007d72
push ecx
push esi
call fcn.1003fc36
add esp, 8
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.1003f6d6
mov esp, ebp
pop ebp
ret
call fcn.1004b8ff
int3
Function at 0x10008000
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub dword [ebp + 0xc], 1
jne 0x1000801e
push 0
push 0
push 0
push 0x10007ff0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
pop ebp
ret 0xc
Function at 0x10036690
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x100e24b0], 0
jne 0x1003673d
push 0x2220
push 0
push 0x100e24b0
call fcn.10041210
movq xmm0, qword [0x100ddd48]
add esp, 0xc
mov eax, dword [0x100ddd50]
movq qword [0x100e24b4], xmm0
mov dword [0x100e24bc], eax
call fcn.10037e90
test eax, eax
je 0x10036743
push 0x100e375c
call fcn.10036e80
add esp, 4
test eax, eax
je 0x10036743
push 0x100e374c
call fcn.10036ea0
add esp, 4
test eax, eax
je 0x10036743
push 0x100e3754
call fcn.10036ea0
add esp, 4
test eax, eax
je 0x10036743
push 0x100e46d0
push 0x100e374c
call fcn.10036f50
add esp, 8
call fcn.10037180
mov dword [0x100e24b0], 1
call fcn.10039610
mov dword [0x100e3778], eax
mov dword [0x100e377c], edx
call fcn.10036ce0
mov eax, 1
ret
call fcn.10036760
xor eax, eax
ret
Function at 0x10036e30
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x100e24b0], 0
jne 0x10036e49
push 0
push 0x10001
call fcn.10036390
add esp, 8
ret
jmp 0x1003a010
sub esp, 0x40
mov eax, dword [0x100de5dc]
xor eax, esp
mov dword [esp + 0x3c], 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 0x1003a08a
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [esp + 0x14], 0x12
jne 0x1003a069
mov esi, dword [0x100e2878]
test esi, esi
je 0x1003a077
push esi
call fcn.100368c0
mov esi, dword [esi]
add esp, 4
test esi, esi
jne 0x1003a058
jmp 0x1003a077
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 0x1003a047
call dword [sym.imp.USER32.dll_GetActiveWindow]
test eax, eax
je 0x1003a0fb
push str.GLFW
push eax
call dword [sym.imp.USER32.dll_GetPropW]
mov ebx, eax
test ebx, ebx
je 0x1003a0fb
movaps xmm0, xmmword [0x1008fa50]
xor esi, esi
movups xmmword [esp + 0x2c], xmm0
movaps xmm0, xmmword [0x1008fa60]
movups xmmword [esp + 0x3c], xmm0
mov edi, dword [esp + esi*8 + 0x30]
push dword [esp + esi*8 + 0x2c]
movsx ebp, word [edi*2 + 0x100e3bc8]
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x1003a0f5
cmp byte [edi + ebx + 0x74], 1
jne 0x1003a0f5
call fcn.1003b1a0
push eax
push 0
push ebp
push edi
push ebx
call fcn.10037380
add esp, 0x14
inc esi
cmp esi, 4
jl 0x1003a0c0
mov esi, dword [0x100e4568]
test esi, esi
je 0x1003a176
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 0x1003a13c
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
cmp dword [esi + 0x2dc], eax
je 0x1003a176
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 + 0x4c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003f6d6
add esp, 0x40
ret

Function at 0x10036ea0
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 0x10036ec7
push 0x10076ed0
push 0x10008
call fcn.10037c40
add esp, 8
xor eax, eax
ret
mov dword [ecx], 1
mov eax, 1
ret
Function at 0x10038330
Capabilities:
Log keystrokes

Disassembly:
sub esp, 0x164
mov eax, dword [0x100de5dc]
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.10041210
push 0x6d1
push 0
push 0x100e3e82
call fcn.10041210
mov eax, 0x100e3f22
lea ebx, [esp + 0x2c]
add esp, 0x18
mov dword [esp + 0x10], eax
mov esi, 0x20
sub ebx, 0x480
movsx edi, word [esi*2 + 0x100e3bc8]
cmp edi, 0xffffffff
je 0x1003848d
cmp esi, 0x140
jb 0x1003842a
cmp esi, 0x14e
ja 0x1003842a
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 0x10038435
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 0x10038466
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 0x10038489
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 0x10038385
mov ecx, dword [esp + 0x170]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1003f6d6
add esp, 0x164
ret
Function at 0x10038770
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x1c
mov eax, dword [0x100de5dc]
xor eax, esp
mov dword [esp + 0x18], eax
push 0x100e37b0
push 0x100e24b0
push 6
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
jne 0x100387b7
push 0x1008f4c0
push 0x10008
call fcn.10037c40
add esp, 8
xor eax, eax
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.1003f6d6
add esp, 0x1c
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.user32.dll
call ebx
mov dword [0x100e4590], eax
test eax, eax
jne 0x100387f2
push str.Win32:_Failed_to_load_user32.dll
push 0x10008
call fcn.10037c40
add esp, 8
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.1003f6d6
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 [0x100e4590]
mov dword [0x100e4594], eax
call edi
push str.EnableNonClientDpiScaling
push dword [0x100e4590]
mov dword [0x100e4598], eax
call edi
push str.SetProcessDpiAwarenessContext
push dword [0x100e4590]
mov dword [0x100e459c], eax
call edi
push str.GetDpiForWindow
push dword [0x100e4590]
mov dword [0x100e45a0], eax
call edi
push str.AdjustWindowRectExForDpi
push dword [0x100e4590]
mov dword [0x100e45a4], eax
call edi
push str.GetSystemMetricsForDpi
push dword [0x100e4590]
mov dword [0x100e45a8], eax
call edi
push str.dinput8.dll
mov dword [0x100e45ac], eax
call ebx
mov dword [0x100e4578], eax
test eax, eax
je 0x1003888f
push str.DirectInput8Create
push eax
call edi
mov dword [0x100e457c], 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 [0x100e4584], eax
test eax, eax
jne 0x100388de
mov eax, dword [esp + esi*4 + 0x10]
inc esi
test eax, eax
jne 0x100388c7
jmp 0x100388fd
push str.XInputGetCapabilities
push eax
call edi
push str.XInputGetState
push dword [0x100e4584]
mov dword [0x100e4588], eax
call edi
mov dword [0x100e458c], eax
push str.dwmapi.dll
call ebx
mov dword [0x100e45b0], eax
pop esi
test eax, eax
je 0x10038951
push str.DwmIsCompositionEnabled
push eax
call edi
push str.DwmFlush
push dword [0x100e45b0]
mov dword [0x100e45b4], eax
call edi
push str.DwmEnableBlurBehindWindow
push dword [0x100e45b0]
mov dword [0x100e45b8], eax
call edi
push str.DwmGetColorizationColor
push dword [0x100e45b0]
mov dword [0x100e45bc], eax
call edi
mov dword [0x100e45c0], eax
push str.shcore.dll
call ebx
mov dword [0x100e45c4], eax
test eax, eax
je 0x10038980
push str.SetProcessDpiAwareness
push eax
call edi
push str.GetDpiForMonitor
push dword [0x100e45c4]
mov dword [0x100e45c8], eax
call edi
mov dword [0x100e45cc], eax
push str.ntdll.dll
call ebx
mov dword [0x100e45d0], eax
test eax, eax
je 0x1003899d
push str.RtlVerifyVersionInfo
push eax
call edi
mov dword [0x100e45d4], eax
mov ecx, dword [esp + 0x20]
mov eax, 1
pop edi
pop ebx
xor ecx, esp
call fcn.1003f6d6
add esp, 0x1c
ret
Function at 0x10039c10
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.1003a9b0
add esp, 0xc
test eax, eax
je 0x10039d41
mov edi, dword [esp + 0x1c]
cmp dword [edi], 0
je 0x10039cb4
mov eax, dword [edi + 4]
cmp eax, 0x36001
jne 0x10039c5d
call fcn.1003d580
test eax, eax
je 0x10039d41
push ebx
push edi
push esi
call fcn.1003d170
jmp 0x10039c97
cmp eax, 0x36002
jne 0x10039c7b
call fcn.1003e7b0
test eax, eax
je 0x10039d41
push ebx
push edi
push esi
call fcn.1003e320
jmp 0x10039c97
cmp eax, 0x36003
jne 0x10039ca2
call fcn.1003f300
test eax, eax
je 0x10039d41
push ebx
push edi
push esi
call fcn.1003f0f0
add esp, 0xc
test eax, eax
je 0x10039d41
push edi
push esi
call fcn.10035b50
add esp, 8
test eax, eax
je 0x10039d41
cmp dword [esi + 0x3c], 0
je 0x10039d14
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.1003a770
push esi
call fcn.1003b080
add esp, 8
cmp dword [ebp + 0x28], 0
je 0x10039d37
push esi
call fcn.100370f0
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret
cmp dword [ebp + 0x10], 0
je 0x10039d37
push 8
push dword [esi + 0x2ac]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 0x18], 0
je 0x10039d37
push esi
call fcn.10039e00
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 0x1003ae60
Capabilities:
Register raw input devices

Disassembly:
sub esp, 0x14
mov eax, dword [0x100de5dc]
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 [0x100e4568], ebx
call dword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1003aebe
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 [0x100e4558], xmm0
movd xmm0, dword [esp + 0xc]
cvtdq2pd xmm0, xmm0
movsd qword [0x100e4560], xmm0
cmp dword [ebx + 0x68], 0x34001
jne 0x1003aee3
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x1003aed3
push dword [eax + 4]
jmp 0x1003aee5
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
jmp 0x1003aee5
push 0
call dword [sym.imp.USER32.dll_SetCursor]
push ebx
call fcn.100370f0
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 0x1003af7a
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 0x1003af7a
push str.Win32:_Failed_to_register_raw_input_device
push 0x10008
call fcn.10037c40
add esp, 8
mov ecx, dword [esp + 0x18]
pop edi
pop ebx
xor ecx, esp
call fcn.1003f6d6
add esp, 0x14
ret

Function at 0x1003af90
Capabilities:
Register raw input devices

Disassembly:
sub esp, 0xc
push esi
mov esi, dword [esp + 0x14]
cmp dword [esi + 0x1e8], 0
je 0x1003afde
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 0x1003afde
push str.Win32:_Failed_to_remove_raw_input_device
push 0x10008
call fcn.10037c40
add esp, 8
push 0
mov dword [0x100e4568], 0
call dword [sym.imp.USER32.dll_ClipCursor]
cvttsd2si eax, qword [0x100e4560]
cvttsd2si ecx, qword [0x100e4558]
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 0x1003b06a
mov eax, dword [esi + 0x40]
test eax, eax
je 0x1003b051
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 0x1003b1a0
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 0x1003f300
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x10
mov eax, dword [0x100de5dc]
xor eax, esp
mov dword [esp + 0xc], eax
cmp dword [0x100e46ac], 0
mov dword [esp], str.libOSMesa.dll
mov dword [esp + 4], str.OSMesa.dll
mov dword [esp + 8], 0
je 0x1003f342
mov eax, 1
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.1003f6d6
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 [0x100e46ac], ecx
test ecx, ecx
jne 0x1003f392
mov eax, dword [esp + esi*4 + 0xc]
inc esi
test eax, eax
jne 0x1003f351
test ecx, ecx
jne 0x1003f392
push str.OSMesa:_Library_not_found
push 0x10006
call fcn.10036390
add esp, 8
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.1003f6d6
add esp, 0x10
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OSMesaCreateContextExt
push ecx
call esi
push str.OSMesaCreateContextAttribs
push dword [0x100e46ac]
mov dword [0x100e46b0], eax
call esi
push str.OSMesaDestroyContext
push dword [0x100e46ac]
mov dword [0x100e46b4], eax
call esi
push str.OSMesaMakeCurrent
push dword [0x100e46ac]
mov dword [0x100e46b8], eax
call esi
push str.OSMesaGetColorBuffer
push dword [0x100e46ac]
mov dword [0x100e46bc], eax
call esi
push str.OSMesaGetDepthBuffer
push dword [0x100e46ac]
mov dword [0x100e46c0], eax
call esi
push str.OSMesaGetProcAddress
push dword [0x100e46ac]
mov dword [0x100e46c4], eax
call esi
cmp dword [0x100e46b0], 0
mov dword [0x100e46c8], eax
je 0x1003f458
cmp dword [0x100e46b8], 0
je 0x1003f458
cmp dword [0x100e46bc], 0
je 0x1003f458
cmp dword [0x100e46c0], 0
je 0x1003f458
cmp dword [0x100e46c4], 0
je 0x1003f458
test eax, eax
je 0x1003f458
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.1003f6d6
add esp, 0x10
ret
push str.OSMesa:_Failed_to_load_required_entry_points
push 0x10008
call fcn.10036390
mov eax, dword [0x100e46ac]
add esp, 8
test eax, eax
je 0x1003f484
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x100e46ac], 0
mov ecx, dword [esp + 0x14]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.1003f6d6
add esp, 0x10
ret

Function at 0x1004d5d7
Capabilities:
Parse pe header

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

Function at 0x10050125
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100936f8
push 0x100936f0
push str.FlsAlloc
push 0x1f
call fcn.1004ffe4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10050159
push dword [ebp + 8]
mov ecx, esi
call dword [0x1005f308]
call esi
jmp 0x1005015f
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x100501a3
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10093708
push 0x10093700
push str.FlsGetValue
push 0x21
call fcn.1004ffe4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100501da
push dword [ebp + 8]
mov ecx, esi
call dword [0x1005f308]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100501e2
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10093710
push 0x10093708
push str.FlsSetValue
push 0x22
call fcn.1004ffe4
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1005021c
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1005f308]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]