joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000bf20
Capabilities:
Contain obfuscated stackstrings
Set file attributes

Disassembly:
sub esp, 0x440
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [esp + 0x18]
push edi
lea ecx, [esp + 0x28]
mov bl, 0x65
push eax
push ecx
mov byte [esp + 0x30], 0x6b
mov byte [esp + 0x31], bl
mov byte [esp + 0x32], 0x72
mov byte [esp + 0x33], 0x6e
mov byte [esp + 0x34], bl
mov byte [esp + 0x35], 0x6c
mov byte [esp + 0x36], 0x33
mov byte [esp + 0x37], 0x32
mov byte [esp + 0x38], 0x2e
mov byte [esp + 0x39], 0x64
mov byte [esp + 0x3a], 0x6c
mov byte [esp + 0x3b], 0x6c
mov byte [esp + 0x3c], 0
mov byte [esp + 0x24], 0x43
mov byte [esp + 0x25], 0x72
mov byte [esp + 0x26], bl
mov byte [esp + 0x27], 0x61
mov byte [esp + 0x28], 0x74
mov byte [esp + 0x29], bl
mov byte [esp + 0x2a], 0x46
mov byte [esp + 0x2b], 0x69
mov byte [esp + 0x2c], 0x6c
mov byte [esp + 0x2d], bl
mov byte [esp + 0x2e], 0x41
mov byte [esp + 0x2f], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov ebp, eax
lea edx, [esp + 0x10]
lea eax, [esp + 0x38]
push edx
push eax
mov byte [esp + 0x40], 0x6b
mov byte [esp + 0x41], bl
mov byte [esp + 0x42], 0x72
mov byte [esp + 0x43], 0x6e
mov byte [esp + 0x44], bl
mov byte [esp + 0x45], 0x6c
mov byte [esp + 0x46], 0x33
mov byte [esp + 0x47], 0x32
mov byte [esp + 0x48], 0x2e
mov byte [esp + 0x49], 0x64
mov byte [esp + 0x4a], 0x6c
mov byte [esp + 0x4b], 0x6c
mov byte [esp + 0x4c], 0
mov byte [esp + 0x18], 0x57
mov byte [esp + 0x19], 0x72
mov byte [esp + 0x1a], 0x69
mov byte [esp + 0x1b], 0x74
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1d], 0x46
mov byte [esp + 0x1e], 0x69
mov byte [esp + 0x1f], 0x6c
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], 0
call esi
push eax
call edi
mov ecx, dword [esp + 0x454]
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push ecx
mov dword [esp + 0x64], eax
call ebp
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1000c11a
push 2
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x51]
mov byte [esp + 0x50], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0x4c], 0
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_rand]
cdq
mov ecx, 0x5005
xor edi, edi
idiv ecx
mov ebp, edx
test ebp, ebp
jle 0x1000c0f8
mov edx, edi
and edx, 0x800003ff
jns 0x1000c0bc
dec edx
or edx, 0xfffffc00
inc edx
jne 0x1000c0dd
xor esi, esi
call dword [sym.imp.MSVCRT.dll_rand]
add eax, esi
mov ecx, 0xff
cdq
idiv ecx
inc esi
cmp esi, 0x400
mov byte [esp + esi + 0x4f], dl
jl 0x1000c0c0
lea edx, [esp + 0x4c]
push 0
push edx
lea eax, [esp + 0x58]
push 0x400
push eax
push ebx
call dword [esp + 0x5c]
inc edi
cmp edi, ebp
jl 0x1000c0aa
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x10017d50]
mov edx, dword [esp + 0x454]
and ecx, 0xffff
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x440
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4aa004]
jne 0x40100a
repz ret
jmp fcn.004014cd

Function at 0x4074fe
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4aa004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00403f44
and dword [ebp - 0x14], 0
cmp dword [0x4ace88], 0
mov dword [ebp - 0x18], eax
jne 0x4075b1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407659
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x407659
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4ace88], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4ace8c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4ace90], eax
call edi
push eax
call esi
mov dword [0x4ace98], eax
test eax, eax
je 0x4075b1
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4ace94], eax
mov eax, dword [0x4ace94]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40760a
cmp dword [0x4ace98], ecx
je 0x40760a
push eax
call esi
push dword [0x4ace98]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40760a
test ebx, ebx
je 0x40760a
call edi
test eax, eax
je 0x407601
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407601
test byte [ebp - 8], 1
jne 0x40760a
or dword [ebp + 0x10], 0x200000
jmp 0x40763d
mov eax, dword [0x4ace8c]
cmp eax, dword [ebp - 0x18]
je 0x40763d
push eax
call esi
test eax, eax
je 0x40763d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40763d
mov eax, dword [0x4ace90]
cmp eax, dword [ebp - 0x18]
je 0x40763d
push eax
call esi
test eax, eax
je 0x40763d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4ace88]
call esi
test eax, eax
je 0x407659
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40765b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret

Function at 0x4a6680
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4ab2f0]
sub esp, 0x10
push ebx
mov ebx, dword [0x1f7f038]
push edi
mov edi, dword [0x1f7f314]
push eax
call fcn.004a6590
add esp, 4
cmp dword [0x1f7f314], 0x2f
jne 0x4a66dd
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.004a65e0
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
lea edx, [ebp + 8]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x401480
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov edi, dword [ebp + 0x18]
mov eax, edi
and eax, 0xfffffff8
cmp eax, 0x7ffffff8
je 0x40119a
mov ecx, dword [edx]
mov eax, dword [edx + 0x14]
mov dword [ebp - 0x30], eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x48], xmm0
lea eax, [edi + 8]
lea esi, [ebp - 0x48]
mov ebx, 0xf
cmp eax, 0x10
jb 0x4010d7
test eax, eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
js 0x40109f
or eax, 0xf
cmp eax, 0x17
mov edx, 0x16
cmovae edx, eax
cmp edx, 0xfff
jae 0x4010a4
mov dword [ebp - 0x20], edx
lea eax, [edx + 1]
mov dword [ebp - 0x10], 0
push eax
call fcn.00403e7a
add esp, 4
mov esi, eax
jmp 0x4010c5
mov edx, 0x7fffffff
mov dword [ebp - 0x20], edx
lea eax, [edx + 0x24]
mov dword [ebp - 0x10], 0
push eax
call fcn.00403e7a
add esp, 4
mov esi, eax
add esi, 0x23
and esi, 0xffffffe0
mov dword [esi - 4], eax
mov edi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x48], esi
lea edx, [ebp + 8]
mov ebx, dword [ebp - 0x20]
cmp dword [ebp - 0x30], 0x10
mov dword [ebp - 0x38], eax
cmovb ecx, edx
mov dword [ebp - 0x34], ebx
mov dword [esi + 4], 0x20732d20
mov dword [esi], 0x6c727563
lea eax, [esi + 8]
push edi
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov byte [esi + edi + 8], 0
mov edi, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x34]
cmp ebx, 0x10
lea eax, [ebp - 0x48]
cmovae eax, edi
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add esp, 4
mov esi, eax
cmp ebx, 0x10
jb 0x40114d
lea ecx, [ebx + 1]
cmp ecx, 0x1000
jb 0x401143
mov eax, dword [edi - 4]
add edi, 0xfffffffc
sub edi, eax
cmp edi, 0x20
jae 0x4011a6
add ebx, 0x24
mov ecx, ebx
mov edi, eax
push ecx
push edi
call fcn.00403eaf
add esp, 8
lea ecx, [ebp + 8]
mov eax, dword [ecx + 0x14]
cmp eax, 0x10
jb 0x401183
mov ecx, dword [ecx]
lea edi, [eax + 1]
cmp edi, 0x1000
jb 0x401179
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x4011a6
add eax, 0x24
mov edi, eax
mov ecx, edx
push edi
push ecx
call fcn.00403eaf
add esp, 8
test esi, esi
setne al
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
call fcn.00401420
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
lea ecx, [ebp + 8]
call fcn.004011d0
add esp, 0xc
pop ebp
ret
Function at 0x4046ac
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4046eb
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4046eb
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4046eb
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4046eb
cmp dword [ecx + 0x74], 0xe
jbe 0x4046eb
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x403ca0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4bcb28], 0
push edi
mov edi, ecx
jne 0x403cc5
push 0
push 0x10001
call fcn.00404b1d
pop ecx
pop ecx
xor eax, eax
jmp 0x403d69
push esi
push dword [0x4bd5d0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x403ce4
push str.Cannot_query_extension_without_a_current_OpenGL_or_OpenGL_ES_context
push 0x10002
jmp 0x403cf3
cmp byte [edi], 0
jne 0x403cfe
push str.Extension_name_cannot_be_an_empty_string
push 0x10004
call fcn.00404b1d
pop ecx
pop ecx
xor eax, eax
jmp 0x403d68
cmp dword [esi + 0x1ec], 3
push ebx
jl 0x403d80
lea eax, [ebp - 4]
push eax
push 0x821d
call dword [esi + 0x214]
xor ebx, ebx
cmp dword [ebp - 4], ebx
jle 0x403d5f
push ebx
push 0x1f03
call dword [esi + 0x210]
test eax, eax
je 0x403d6c
mov ecx, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x403d50
test dl, dl
je 0x403d4c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x403d50
add eax, 2
add ecx, 2
test dl, dl
jne 0x403d30
xor eax, eax
jmp 0x403d55
sbb eax, eax
or eax, 1
test eax, eax
je 0x403d9c
inc ebx
cmp ebx, dword [ebp - 4]
jl 0x403d1e
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.00404b1d
pop ecx
xor eax, eax
jmp 0x403d66
push 0x1f03
call dword [esi + 0x218]
test eax, eax
je 0x403d6c
mov edx, eax
mov ecx, edi
call fcn.00403b72
test eax, eax
je 0x403d5f
xor eax, eax
inc eax
jmp 0x403d67
Function at 0x404b1d
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x4bb014]
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 0x404b70
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push 0x400
push eax
call fcn.004049c3
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 2
push ecx
call fcn.00418b68
add esp, 0x1c
mov byte [ebp - 5], 0
jmp 0x404c61
cmp ebx, 0x10001
jne 0x404b82
mov esi, str.The_GLFW_library_is_not_initialized
jmp 0x404c42
cmp ebx, 0x10002
jne 0x404b91
mov esi, str.There_is_no_current_context
jmp 0x404bb0
cmp ebx, 0x10003
jne 0x404ba3
mov esi, str.Invalid_argument_for_enum_parameter
jmp 0x404c42
cmp ebx, 0x10004
jne 0x404bbd
mov esi, str.Invalid_value_for_parameter
push 7
lea edi, [ebp - 0x404]
jmp 0x404c4a
cmp ebx, 0x10005
jne 0x404bd8
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 0x404c5f
cmp ebx, 0x10006
jne 0x404bef
push 8
mov esi, str.The_requested_API_is_unavailable
lea edi, [ebp - 0x404]
jmp 0x404c04
cmp ebx, 0x10007
jne 0x404c09
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 0x404c23
cmp ebx, 0x10008
jne 0x404c26
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 0x404c61
cmp ebx, 0x10009
jne 0x404c35
mov esi, str.The_requested_format_is_unavailable
jmp 0x404c42
cmp ebx, 0x1000a
jne 0x404c4f
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 0x404c61
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 [0x4bcb28], 0
je 0x404cbb
push dword [0x4bd5c8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x404cc0
push 0x408
push 1
call fcn.004165fb
pop ecx
pop ecx
mov esi, eax
push esi
push dword [0x4bd5c8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov edi, 0x4bd5d8
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4bcee8]
mov dword [esi], eax
push edi
mov dword [0x4bcee8], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x404cc0
mov esi, 0x4be548
lea ecx, [ebp - 0x404]
mov dword [esi + 4], ebx
mov eax, ecx
sub esi, eax
mov al, byte [ecx]
mov byte [esi + ecx + 8], al
inc ecx
test al, al
jne 0x404ccd
mov eax, dword [0x4be540]
test eax, eax
je 0x404ced
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.0040e4c9
leave
ret
Function at 0x404cfc
Capabilities:
Set thread local storage value

Disassembly:
cmp dword [0x4bcb28], 0
push ebx
push esi
push edi
je 0x404d10
xor eax, eax
inc eax
jmp 0x404dc0
push 0x1a18
xor ebx, ebx
push ebx
push 0x4bcb28
call fcn.0040fb20
mov esi, 0x452994
mov edi, 0x4bcb2c
add esp, 0xc
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00407b54
test eax, eax
je 0x404db9
push 0x4bd5d8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor esi, esi
mov ecx, 0x4bd5c4
inc esi
mov dword [0x4bd5d4], esi
call fcn.004091a2
test eax, eax
je 0x404db9
mov ecx, 0x4bd5cc
call fcn.004091a2
test eax, eax
je 0x404db9
push 0x4be548
push dword [0x4bd5c8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [0x4bcb28], esi
call fcn.00409217
mov dword [0x4bd5f0], eax
mov dword [0x4bd5f4], edx
call fcn.0040b2ee
mov eax, dword [str.03000000fa2d00000100000000000000_3DRUDDER_leftx:a0_lefty:a1_rightx:a5_righty:a2_platform:Windows_]
jmp 0x404db1
mov ecx, eax
call fcn.004058b4
test eax, eax
je 0x404db9
mov eax, dword [ebx*4 + 0x452324]
inc ebx
test eax, eax
jne 0x404d9e
mov eax, esi
jmp 0x404dc0
call fcn.004049c9
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x405f02
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x4bb014]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 8], 0
mov eax, str.libOSMesa.dll
cmp dword [0x4be520], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], str.OSMesa.dll
je 0x405f36
xor eax, eax
inc eax
jmp 0x406048
push esi
xor esi, esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x4be520], eax
test eax, eax
jne 0x405f68
mov eax, dword [ebp + esi*4 - 0xc]
inc esi
test eax, eax
jne 0x405f39
push str.OSMesa:_Library_not_found
push 0x10006
call fcn.00404b1d
pop ecx
pop ecx
jmp 0x406045
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.OSMesaCreateContextExt
push eax
call esi
push str.OSMesaCreateContextAttribs
push dword [0x4be520]
mov dword [0x4be524], eax
call esi
push str.OSMesaDestroyContext
push dword [0x4be520]
mov dword [0x4be528], eax
call esi
push str.OSMesaMakeCurrent
push dword [0x4be520]
mov dword [0x4be52c], eax
call esi
push str.OSMesaGetColorBuffer
push dword [0x4be520]
mov dword [0x4be530], eax
call esi
push str.OSMesaGetDepthBuffer
push dword [0x4be520]
mov dword [0x4be534], eax
call esi
push str.OSMesaGetProcAddress
push dword [0x4be520]
mov dword [0x4be538], eax
call esi
cmp dword [0x4be524], 0
mov dword [0x4be53c], eax
je 0x40601d
cmp dword [0x4be52c], 0
je 0x40601d
cmp dword [0x4be530], 0
je 0x40601d
cmp dword [0x4be534], 0
je 0x40601d
cmp dword [0x4be538], 0
je 0x40601d
test eax, eax
je 0x40601d
xor eax, eax
inc eax
jmp 0x406047
push str.OSMesa:_Failed_to_load_required_entry_points
push 0x10008
call fcn.00404b1d
mov eax, dword [0x4be520]
pop ecx
pop ecx
test eax, eax
je 0x406045
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [0x4be520], 0
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040e4c9
leave
ret
Function at 0x407872
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x4bb014]
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.0040fb20
push 0x6d1
push 0
push 0x4bdcfe
call fcn.0040fb20
add esp, 0x18
lea edi, [ebp - 0x160]
mov eax, 0x4bdd9e
sub edi, 0x480
mov dword [ebp - 0x164], eax
push 0x20
pop esi
movsx ebx, word [esi*2 + 0x4bda44]
cmp ebx, 0xffffffff
je 0x4079fc
cmp esi, 0x140
jb 0x40798c
cmp esi, 0x14e
ja 0x40798c
mov dword [ebp - 0x160], 0x60
mov dword [ebp - 0x15c], 0x61
mov dword [ebp - 0x158], 0x62
mov dword [ebp - 0x154], 0x63
mov dword [ebp - 0x150], 0x64
mov dword [ebp - 0x14c], 0x65
mov dword [ebp - 0x148], 0x66
mov dword [ebp - 0x144], 0x67
mov dword [ebp - 0x140], 0x68
mov dword [ebp - 0x13c], 0x69
mov dword [ebp - 0x138], 0x6e
mov dword [ebp - 0x134], 0x6f
mov dword [ebp - 0x130], 0x6a
mov dword [ebp - 0x12c], 0x6d
mov dword [ebp - 0x128], 0x6b
mov eax, dword [edi]
jmp 0x407995
push 1
push ebx
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push 0
push 0x10
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x168], eax
push ecx
lea ecx, [ebp - 0x124]
push ecx
push ebx
push eax
call dword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 0xffffffff
jne 0x4079d3
push 0
push 0x10
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x124]
push eax
push ebx
push dword [ebp - 0x168]
call dword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jl 0x4079f6
xor ecx, ecx
lea eax, [ebp - 0x24]
push ecx
push ecx
push 5
push dword [ebp - 0x164]
push 1
push eax
push ecx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x164]
inc esi
add eax, 5
add edi, 4
mov dword [ebp - 0x164], eax
cmp esi, 0x15c
jle 0x4078c9
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e4c9
leave
ret

Function at 0x4094e2
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 0x40951d
mov edx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.004077c6
leave
ret

Function at 0x40951f
Capabilities:
Register raw input devices

Disassembly:
push esi
mov esi, ecx
mov edx, 0x4be3d0
push 0x4be3d8
mov dword [0x4be3e0], esi
call fcn.0040afdb
pop ecx
mov ecx, esi
call fcn.0040940f
mov ecx, esi
call fcn.004055b5
mov ecx, esi
call fcn.0040943d
cmp dword [esi + 0x1e0], 0
je 0x40955e
mov ecx, esi
pop esi
jmp fcn.0040949f
pop esi
ret
Function at 0x409707
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 ecx, 0x8000
mov edi, esi
or edi, 2
and ax, cx
push 0x12
cmove edi, esi
call ebx
mov ebx, edi
mov ecx, 0x8000
or ebx, 4
and ax, cx
push 0x5c
cmove 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
and al, 1
push 0x90
cmove esi, edi
call ebx
mov ecx, esi
or ecx, 0x20
and al, 1
pop edi
cmove ecx, esi
pop esi
mov eax, ecx
pop ebx
ret

Function at 0x409789
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 ecx, 0x8000
mov edi, esi
or edi, 2
and ax, cx
push 0x12
cmove edi, esi
call ebx
mov ebx, edi
mov ecx, 0x8000
or ebx, 4
and ax, cx
push 0x5c
cmove 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
and al, 1
push 0x90
cmove esi, edi
call ebx
mov ecx, esi
or ecx, 0x20
and al, 1
pop edi
cmove ecx, esi
pop esi
mov eax, ecx
pop ebx
ret
Function at 0x40ae7d
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4bb014]
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 0x40aed9
cmp dword [ebp - 0x2c], 0x12
jne 0x40aec5
mov esi, dword [0x4bcef0]
jmp 0x40aebf
mov eax, dword [esi + 0x268]
mov dword [esi + 0x18], 1
test eax, eax
je 0x40aebd
push esi
call eax
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x40aea8
jmp 0x40aed9
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 0x40ae9a
call dword [sym.imp.USER32.dll_GetActiveWindow]
test eax, eax
je 0x40af70
push str.GLFW
push eax
call dword [sym.imp.USER32.dll_GetPropW]
mov ebx, eax
test ebx, ebx
je 0x40af70
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
call esi
push 0xa1
movzx edi, ax
call esi
mov ecx, 0x8000
movzx eax, ax
cmp edi, ecx
jae 0x40af44
cmp byte [ebx + 0x1c4], 1
jne 0x40af44
call fcn.00409789
push eax
movsx eax, word [0x4bdcec]
mov edx, 0x154
jmp 0x40af63
cmp eax, ecx
jae 0x40af70
cmp byte [ebx + 0x1c8], 1
jne 0x40af70
call fcn.00409789
push eax
movsx eax, word [0x4bdcf4]
mov edx, 0x158
push 0
push eax
mov ecx, ebx
call fcn.00405382
add esp, 0xc
mov esi, dword [0x4be3e0]
test esi, esi
je 0x40afcb
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 0x40afac
mov eax, dword [ebp - 8]
cdq
sub eax, edx
sar eax, 1
cmp dword [esi + 0x2cc], eax
je 0x40afcb
mov eax, dword [ebp - 8]
cdq
sub eax, edx
movd xmm1, ecx
sar eax, 1
mov ecx, esi
cvtdq2pd xmm1, xmm1
movd xmm0, eax
cvtdq2pd xmm2, xmm0
call fcn.0040b02d
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e4c9
leave
ret

Function at 0x40b64f
Capabilities:
Get thread local storage value

Disassembly:
cmp dword [0x4bcb28], 0
push esi
mov esi, ecx
jne 0x40b66a
push 0
push 0x10001
call fcn.00404b1d
pop ecx
jmp 0x40b6c2
test esi, esi
je 0x40b6c3
push 0x44
lea eax, [esi + 0x260]
push 0
push eax
call fcn.0040fb20
add esp, 0xc
push dword [0x4bd5d0]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp esi, eax
jne 0x40b698
xor ecx, ecx
call fcn.00403bbd
mov ecx, esi
call fcn.0040aad8
mov ecx, dword [0x4bcef0]
mov edx, 0x4bcef0
cmp ecx, esi
je 0x40b6b8
mov eax, dword [ecx]
mov edx, ecx
mov ecx, eax
cmp eax, esi
jne 0x40b6ae
mov eax, dword [esi]
push esi
mov dword [edx], eax
call fcn.00416606
pop ecx
pop esi
ret

Function at 0x41a0a5
Capabilities:
Parse pe header

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