joyce8/EMBER2024-capa huggingface dataset:
Function at 0x609fa0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x62f836
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebp
push edi
mov eax, dword [0x682d00]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
mov ecx, esi
call fcn.00531f70
mov dword [esp + 0xc], eax
mov eax, dword [esi]
mov edx, dword [eax]
push 0
mov ecx, esi
call edx
test eax, eax
je 0x60a073
fld qword [esi + 0x28]
fld qword [0x642ba8]
fmul st(1), st(0)
fxch st(1)
call fcn.005f9c80
fmul qword [esi + 0x20]
mov edi, eax
call fcn.005f9c80
push 0x40
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edi
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x30], eax
xor edi, edi
mov dword [esp + 0x28], edi
cmp eax, edi
je 0x60a02b
mov ecx, eax
call fcn.00532020
mov edi, eax
mov eax, dword [esi + 0x38]
fld qword [esi + 0x30]
fmul qword [0x632648]
push eax
fnstcw word [esp + 0x34]
movzx eax, word [esp + 0x34]
or eax, 0xc00
mov dword [esp + 0x14], eax
lea edx, [esp + 0x1c]
mov dword [esp + 0x2c], 0xffffffff
fldcw word [esp + 0x14]
fistp qword [esp + 0x14]
mov ecx, dword [esp + 0x14]
push ecx
push ebp
fldcw word [esp + 0x3c]
push edx
push ebx
mov ecx, edi
call fcn.00532680
jmp 0x60a0a4
push 0x1c
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], 1
test eax, eax
je 0x60a098
push ebp
push ebx
mov ecx, eax
call fcn.00531ab0
jmp 0x60a09a
xor eax, eax
mov dword [esp + 0x28], 0xffffffff
mov edi, eax
mov eax, dword [esi + 0xc]
cmp eax, dword [ebx]
jne 0x60a0b3
mov ecx, dword [esi + 0x10]
cmp ecx, dword [ebx + 4]
je 0x60a0bc
mov eax, dword [esp + 0xc]
and eax, 0xfffffffe
jmp 0x60a0c0
mov eax, dword [esp + 0xc]
mov edx, dword [esi + 4]
cmp edx, dword [ebp]
jne 0x60a0d0
mov ecx, dword [esi + 8]
cmp ecx, dword [ebp + 4]
je 0x60a0d3
and eax, 0xfffffffd
mov edx, dword [esi + 0x14]
push eax
mov ecx, edi
mov dword [edi + 0x14], edx
call fcn.00531fa0
mov eax, edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
add esp, 0x20
ret
Function at 0x60a7e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x62f966
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x682d00]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
push eax
lea ecx, [esp + 0x14]
push edi
push ecx
call fcn.00609300
lea edx, [esp + 0x1c]
push edx
lea eax, [edi + 0xc]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.005ba040
lea edx, [esp + 0x28]
push edx
lea eax, [edi + 4]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.005ba040
push 0x1c
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x28
mov dword [esp + 0x38], eax
xor esi, esi
mov dword [esp + 0x30], esi
cmp eax, esi
je 0x60a86d
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x24]
push ecx
mov ecx, eax
call fcn.00531ab0
mov ebx, eax
jmp 0x60a86f
xor ebx, ebx
push 8
mov dword [esp + 0x34], 0xffffffff
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x38], eax
mov dword [esp + 0x30], 1
cmp eax, esi
je 0x60a89a
mov ecx, eax
call fcn.0053bfd0
mov esi, eax
push ebx
mov ecx, esi
mov dword [esp + 0x34], 0xffffffff
call fcn.0053bff0
mov ebx, dword [edi + 0x14]
mov ecx, edi
call fcn.00531f70
push ebx
mov ecx, esi
call fcn.0060a770
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x24
ret
Function at 0x60f690
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10c
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
test byte [esi], 1
mov ebx, ecx
mov dword [esp + 0xc], edi
je 0x60f74e
jmp 0x60f6b9
mov edi, dword [esp + 0xc]
mov eax, dword [ebp + 0xc]
cmp edi, eax
jae 0x60f74e
mov ecx, dword [ebx + 0x6c]
push 0
sub eax, edi
push eax
mov eax, dword [ebp + 8]
push eax
push ecx
call sub.WSOCK32.dll_send
test eax, eax
jge 0x60f737
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2746
je 0x60f72b
cmp eax, 0x2749
je 0x60f72b
cmp eax, 0x2733
jne 0x60f732
mov eax, dword [ebx + 0x6c]
push 0
push 0
lea edx, [esp + 0x18]
push edx
inc eax
push 0
lea esi, [ebx + 0x80]
mov ecx, 0x41
lea edi, [esp + 0x20]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.005f20e0
add esp, 0x14
test eax, eax
jge 0x60f742
mov eax, dword [ebp + 0x10]
and dword [eax], 0xfffffffe
mov esi, eax
jmp 0x60f745
mov dword [ebx + 8], 3
and dword [esi], 0xfffffffe
jmp 0x60f745
add dword [ebp + 8], eax
add edi, eax
mov dword [esp + 0xc], edi
jmp 0x60f745
mov esi, dword [ebp + 0x10]
test byte [esi], 1
jne 0x60f6b5
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4021bc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x903ac8
push 0x4023f4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
push 2
push dword [eax + 0x78]
xor eax, dword [eax]
pop ecx
or dword [0x405c68], 0xffffffff
or dword [0x405c6c], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x405c5c]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x405c58]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x405c64], eax
call fcn.004023f3
cmp dword [0x405b70], ebx
jne 0x40223f
push 0x4023f0
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.004023de
push 0x405014
push 0x405010
call sub.MSVCRT.dll__initterm
mov eax, dword [0x405c54]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
push dword [0x405c50]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x40500c
push section.sect_2
call sub.MSVCRT.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.MSVCRT.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x4022d2
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x4022a6
cmp al, 0x22
jne 0x402298
cmp byte [esi], 0x22
jne 0x4022af
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
cmp al, bl
je 0x4022b9
cmp al, 0x20
jbe 0x4022ab
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x4022dd
movzx eax, word [ebp - 0x2c]
jmp 0x4022e0
cmp byte [esi], 0x20
jbe 0x4022af
inc esi
mov dword [ebp - 0x74], esi
jmp 0x4022d2
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
nop
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x78], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x5b3b0987
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data_1
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x79f4e07
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x68484fb4
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..data_1
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x795e725d
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4038f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4bdb28], 0
push edi
mov edi, ecx
jne 0x403915
push 0
push 0x10001
call fcn.0040478d
pop ecx
pop ecx
xor eax, eax
jmp 0x4039b9
push esi
push dword [0x4be5d0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x403934
push str.Cannot_query_extension_without_a_current_OpenGL_or_OpenGL_ES_context
push 0x10002
jmp 0x403943
cmp byte [edi], 0
jne 0x40394e
push str.Extension_name_cannot_be_an_empty_string
push 0x10004
call fcn.0040478d
pop ecx
pop ecx
xor eax, eax
jmp 0x4039b8
cmp dword [esi + 0x1ec], 3
push ebx
jl 0x4039d0
lea eax, [ebp - 4]
push eax
push 0x821d
call dword [esi + 0x214]
xor ebx, ebx
cmp dword [ebp - 4], ebx
jle 0x4039af
push ebx
push 0x1f03
call dword [esi + 0x210]
test eax, eax
je 0x4039bc
mov ecx, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4039a0
test dl, dl
je 0x40399c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4039a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x403980
xor eax, eax
jmp 0x4039a5
sbb eax, eax
or eax, 1
test eax, eax
je 0x4039ec
inc ebx
cmp ebx, dword [ebp - 4]
jl 0x40396e
push edi
call dword [esi + 0x228]
pop ecx
pop ebx
pop esi
pop edi
leave
ret
push str.Extension_string_retrieval_is_broken
push 0x10008
call fcn.0040478d
pop ecx
xor eax, eax
jmp 0x4039b6
push 0x1f03
call dword [esi + 0x218]
test eax, eax
je 0x4039bc
mov edx, eax
mov ecx, edi
call fcn.004037c2
test eax, eax
je 0x4039af
xor eax, eax
inc eax
jmp 0x4039b7
Function at 0x40478d
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x4bc040]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
je 0x4047d0
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.00404608
add esp, 0x10
mov byte [ebp - 5], 0
jmp 0x4048c1
cmp ebx, 0x10001
jne 0x4047e2
mov esi, str.The_GLFW_library_is_not_initialized
jmp 0x4048a2
cmp ebx, 0x10002
jne 0x4047f1
mov esi, str.There_is_no_current_context
jmp 0x404810
cmp ebx, 0x10003
jne 0x404803
mov esi, str.Invalid_argument_for_enum_parameter
jmp 0x4048a2
cmp ebx, 0x10004
jne 0x40481d
mov esi, str.Invalid_value_for_parameter
push 7
lea edi, [ebp - 0x404]
jmp 0x4048aa
cmp ebx, 0x10005
jne 0x404838
mov esi, str.Out_of_memory
lea edi, [ebp - 0x404]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x4048bf
cmp ebx, 0x10006
jne 0x40484f
push 8
mov esi, str.The_requested_API_is_unavailable
lea edi, [ebp - 0x404]
jmp 0x404864
cmp ebx, 0x10007
jne 0x404869
push 0xa
mov esi, str.The_requested_API_version_is_unavailable
lea edi, [ebp - 0x404]
pop ecx
rep movsd dword es:[edi], dword [esi]
jmp 0x404883
cmp ebx, 0x10008
jne 0x404886
push 8
pop ecx
mov esi, str.A_platform_specific_error_occurred
lea edi, [ebp - 0x404]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
jmp 0x4048c1
cmp ebx, 0x10009
jne 0x404895
mov esi, str.The_requested_format_is_unavailable
jmp 0x4048a2
cmp ebx, 0x1000a
jne 0x4048af
mov esi, str.The_specified_window_has_no_context
push 9
lea edi, [ebp - 0x404]
pop ecx
rep movsd dword es:[edi], dword [esi]
jmp 0x4048c1
push 6
pop ecx
mov esi, str.ERROR:_UNKNOWN_GLFW_ERROR
lea edi, [ebp - 0x404]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
cmp dword [0x4bdb28], 0
je 0x40491b
push dword [0x4be5c8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x404920
push 0x408
push 1
call fcn.00416060
pop ecx
pop ecx
mov esi, eax
push esi
push dword [0x4be5c8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, 0x4be5d8
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4bdee8]
mov dword [esi], eax
push edi
mov dword [0x4bdee8], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x404920
mov esi, 0x4bf548
lea ecx, [ebp - 0x404]
mov dword [esi + 4], ebx
mov eax, ecx
sub esi, eax
mov al, byte [ecx]
mov byte [ecx + esi + 8], al
inc ecx
test al, al
jne 0x40492d
mov eax, dword [0x4bf540]
test eax, eax
je 0x40494d
lea ecx, [ebp - 0x404]
push ecx
push ebx
call eax
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040def1
leave
ret
Function at 0x40495c
Capabilities:
Set thread local storage value

Disassembly:
cmp dword [0x4bdb28], 0
push ebx
push esi
push edi
je 0x404970
xor eax, eax
inc eax
jmp 0x404a20
push 0x1a18
xor ebx, ebx
push ebx
push 0x4bdb28
call fcn.0040f580
mov esi, 0x453a74
mov edi, 0x4bdb2c
add esp, 0xc
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00407757
test eax, eax
je 0x404a19
push 0x4be5d8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor esi, esi
mov ecx, 0x4be5c4
inc esi
mov dword [0x4be5d4], esi
call fcn.00408d92
test eax, eax
je 0x404a19
mov ecx, 0x4be5cc
call fcn.00408d92
test eax, eax
je 0x404a19
push 0x4bf548
push dword [0x4be5c8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x4bdb28], esi
call fcn.00408e07
mov dword [0x4be5f0], eax
mov dword [0x4be5f4], edx
call fcn.0040aec0
mov eax, dword [str.03000000fa2d00000100000000000000_3DRUDDER_leftx:a0_lefty:a1_rightx:a5_righty:a2_platform:Windows_]
jmp 0x404a11
mov ecx, eax
call fcn.004054af
test eax, eax
je 0x404a19
mov eax, dword [ebx*4 + 0x453404]
inc ebx
test eax, eax
jne 0x4049fe
mov eax, esi
jmp 0x404a20
call fcn.00404639
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x405b0a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
mov eax, str.libOSMesa.dll
cmp dword [0x4bf520], 0
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], str.OSMesa.dll
je 0x405b31
xor eax, eax
inc eax
leave
ret
push esi
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, eax
mov dword [0x4bf520], ecx
test ecx, ecx
jne 0x405b6a
mov eax, dword [ebp + esi*4 - 8]
inc esi
test eax, eax
jne 0x405b34
test ecx, ecx
jne 0x405b6a
push str.OSMesa:_Library_not_found
push 0x10006
call fcn.0040478d
pop ecx
pop ecx
jmp 0x405c47
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OSMesaCreateContextExt
push ecx
call esi
push str.OSMesaCreateContextAttribs
push dword [0x4bf520]
mov dword [0x4bf524], eax
call esi
push str.OSMesaDestroyContext
push dword [0x4bf520]
mov dword [0x4bf528], eax
call esi
push str.OSMesaMakeCurrent
push dword [0x4bf520]
mov dword [0x4bf52c], eax
call esi
push str.OSMesaGetColorBuffer
push dword [0x4bf520]
mov dword [0x4bf530], eax
call esi
push str.OSMesaGetDepthBuffer
push dword [0x4bf520]
mov dword [0x4bf534], eax
call esi
push str.OSMesaGetProcAddress
push dword [0x4bf520]
mov dword [0x4bf538], eax
call esi
cmp dword [0x4bf524], 0
mov dword [0x4bf53c], eax
je 0x405c1f
cmp dword [0x4bf52c], 0
je 0x405c1f
cmp dword [0x4bf530], 0
je 0x405c1f
cmp dword [0x4bf534], 0
je 0x405c1f
cmp dword [0x4bf538], 0
je 0x405c1f
test eax, eax
je 0x405c1f
xor eax, eax
inc eax
jmp 0x405c49
push str.OSMesa:_Failed_to_load_required_entry_points
push 0x10008
call fcn.0040478d
mov eax, dword [0x4bf520]
pop ecx
pop ecx
test eax, eax
je 0x405c47
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [0x4bf520], 0
xor eax, eax
pop esi
leave
ret
Function at 0x40746c
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x4bc040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x100
lea eax, [ebp - 0x124]
push 0
push eax
call fcn.0040f580
push 0x6d1
push 0
push 0x4becfe
call fcn.0040f580
add esp, 0x18
lea edi, [ebp - 0x168]
mov eax, 0x4bed9e
sub edi, 0x480
mov dword [ebp - 0x128], eax
push 0x20
pop esi
movsx ebx, word [esi*2 + 0x4bea44]
cmp ebx, 0xffffffff
je 0x4075f6
cmp esi, 0x140
jb 0x407586
cmp esi, 0x14e
ja 0x407586
mov dword [ebp - 0x168], 0x60
mov dword [ebp - 0x164], 0x61
mov dword [ebp - 0x160], 0x62
mov dword [ebp - 0x15c], 0x63
mov dword [ebp - 0x158], 0x64
mov dword [ebp - 0x154], 0x65
mov dword [ebp - 0x150], 0x66
mov dword [ebp - 0x14c], 0x67
mov dword [ebp - 0x148], 0x68
mov dword [ebp - 0x144], 0x69
mov dword [ebp - 0x140], 0x6e
mov dword [ebp - 0x13c], 0x6f
mov dword [ebp - 0x138], 0x6a
mov dword [ebp - 0x134], 0x6d
mov dword [ebp - 0x130], 0x6b
mov eax, dword [edi]
jmp 0x40758f
push 1
push ebx
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push 0
push 0x10
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x12c], eax
push ecx
lea ecx, [ebp - 0x124]
push ecx
push ebx
push eax
call dword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 0xffffffff
jne 0x4075cd
push 0
push 0x10
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x124]
push eax
push ebx
push dword [ebp - 0x12c]
call dword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jl 0x4075f0
xor ecx, ecx
lea eax, [ebp - 0x24]
push ecx
push ecx
push 5
push dword [ebp - 0x128]
push 1
push eax
push ecx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x128]
inc esi
add eax, 5
add edi, 4
mov dword [ebp - 0x128], eax
cmp esi, 0x15c
jle 0x4074c3
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040def1
leave
ret

Function at 0x4090d2
Capabilities:
Register raw input devices

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
xor ecx, ecx
push 2
pop eax
inc ecx
mov word [ebp - 0xa], ax
push 0xc
push ecx
lea eax, [ebp - 0xc]
mov word [ebp - 0xc], cx
push eax
mov dword [ebp - 8], ecx
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x40910d
mov edx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.004073ae
leave
ret

Function at 0x40910f
Capabilities:
Register raw input devices

Disassembly:
push esi
mov esi, ecx
mov edx, 0x4bf3d0
push 0x4bf3d8
mov dword [0x4bf3e0], esi
call fcn.0040abad
pop ecx
mov ecx, esi
call fcn.00408fff
mov ecx, esi
call fcn.004051b0
mov ecx, esi
call fcn.0040902d
cmp dword [esi + 0x1e0], 0
je 0x40914e
mov ecx, esi
pop esi
jmp fcn.0040908f
pop esi
ret
Function at 0x4092f7
Capabilities:
Log keystrokes via polling

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

Function at 0x40936f
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push esi
push edi
push 0x10
call ebx
movzx esi, ax
push 0x11
shr esi, 0xf
call ebx
mov edi, esi
or edi, 2
test ax, ax
push 0x12
cmovns edi, esi
call ebx
mov ebx, edi
or ebx, 4
test ax, ax
push 0x5c
cmovns ebx, edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
call edi
push 0x5b
mov si, ax
call edi
mov edi, ebx
or edi, 8
or si, ax
push 0x14
cmovns edi, ebx
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
call ebx
mov esi, edi
or esi, 0x10
test al, 1
push 0x90
cmove esi, edi
call ebx
mov ecx, esi
or ecx, 0x20
test al, 1
pop edi
cmove ecx, esi
pop esi
mov eax, ecx
pop ebx
ret
Function at 0x40aa51
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4bc040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
xor ebx, ebx
jmp 0x40aaad
cmp dword [ebp - 0x2c], 0x12
jne 0x40aa99
mov esi, dword [0x4bdef0]
jmp 0x40aa93
mov eax, dword [esi + 0x268]
mov dword [esi + 0x18], 1
test eax, eax
je 0x40aa91
push esi
call eax
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x40aa7c
jmp 0x40aaad
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push ebx
push ebx
push ebx
lea eax, [ebp - 0x30]
push eax
call edi
test eax, eax
jne 0x40aa6e
call dword [sym.imp.USER32.dll_GetActiveWindow]
test eax, eax
je 0x40ab43
push str.GLFW
push eax
call dword [sym.imp.USER32.dll_GetPropW]
mov ebx, eax
test ebx, ebx
je 0x40ab43
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
call esi
push 0xa1
mov di, ax
call esi
mov ecx, 0x8000
cmp di, cx
jae 0x40ab16
cmp byte [ebx + 0x1c4], 1
jne 0x40ab16
call fcn.0040936f
push eax
movsx eax, word [0x4becec]
mov edx, 0x154
jmp 0x40ab36
cmp ax, cx
jae 0x40ab43
cmp byte [ebx + 0x1c8], 1
jne 0x40ab43
call fcn.0040936f
push eax
movsx eax, word [0x4becf4]
mov edx, 0x158
push 0
push eax
mov ecx, ebx
call fcn.00404f8c
add esp, 0xc
mov esi, dword [0x4bf3e0]
test esi, esi
je 0x40ab9e
lea eax, [ebp - 0x14]
push eax
push dword [esi + 0x2a4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0xc]
cdq
sub eax, edx
mov ecx, eax
sar ecx, 1
cmp dword [esi + 0x2c8], ecx
jne 0x40ab7f
mov eax, dword [ebp - 8]
cdq
sub eax, edx
sar eax, 1
cmp dword [esi + 0x2cc], eax
je 0x40ab9e
mov eax, dword [ebp - 8]
cdq
sub eax, edx
movd xmm1, ecx
sar eax, 1
mov ecx, esi
cvtdq2pd xmm1, xmm1
movd xmm2, eax
cvtdq2pd xmm2, xmm2
call fcn.0040abff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040def1
leave
ret

Function at 0x40b14d
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x4bdb28], 0
push esi
mov esi, ecx
jne 0x40b168
push 0
push 0x10001
call fcn.0040478d
pop ecx
jmp 0x40b1c0
test esi, esi
je 0x40b1c1
push 0x44
lea eax, [esi + 0x260]
push 0
push eax
call fcn.0040f580
add esp, 0xc
push dword [0x4be5d0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp esi, eax
jne 0x40b196
xor ecx, ecx
call fcn.0040380d
mov ecx, esi
call fcn.0040a6ad
mov ecx, dword [0x4bdef0]
mov edx, 0x4bdef0
cmp ecx, esi
je 0x40b1b6
mov eax, dword [ecx]
mov edx, ecx
mov ecx, eax
cmp eax, esi
jne 0x40b1ac
mov eax, dword [esi]
push esi
mov dword [edx], eax
call fcn.00416070
pop ecx
pop esi
ret

Function at 0x40e5e6
Capabilities:
Parse pe header

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