joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4520e5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4521fd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4521fd
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046706d
mov esi, eax
test esi, esi
je 0x4521fd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4521fd
mov ecx, esi
call fcn.00452050
cmp edi, eax
jge 0x4521fd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x452183
mov dword [esp + 0x34], 1
jmp 0x4521de
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4521fd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004515f0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x467a10
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x467a48
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00465ac7
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00465a9f
jmp 0x467a54
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x469103
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x469145
call fcn.0046ebfd
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x469145
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46913c
xor eax, eax
jmp 0x46914d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00469153
pop edi
pop esi
pop ebx
ret 4
Function at 0x46f12d
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46f15b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46f179
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046f093
jmp 0x46f179
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46f179
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046f093
test edi, edi
mov eax, edi
jne 0x46f163
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x404de5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x408688
cmp edx, dword [eax]
je 0x404e07
add eax, 8
inc ecx
cmp eax, 0x408718
jl 0x404df8
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x408688]
jne 0x404f35
mov eax, dword [0x408a48]
cmp eax, 1
je 0x404f0f
test eax, eax
jne 0x404e38
cmp dword [0x4085d4], 1
je 0x404f0f
cmp edx, 0xfc
je 0x404f35
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404e6f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004032f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004033f0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x404eb2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004033f0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4065d0
push edi
call fcn.00405720
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004032f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00403300
lea eax, [ebp - 0xa0]
push 0x4065b0
push eax
call fcn.00403300
push dword [esi + 0x40868c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00403300
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00405697
add esp, 0x2c
pop edi
jmp 0x404f35
lea eax, [ebp + 8]
lea esi, [esi + 0x40868c]
push 0
push eax
push dword [esi]
call fcn.004033f0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x4e37db
Capabilities:
Encode data using xor

Disassembly:
push 1
pop ecx
cmp dword [esp + 8], ecx
jl 0x4e37fb
mov eax, dword [esp + 4]
mov edx, ecx
and edx, 3
mov dl, byte [esp + edx + 0xc]
xor byte [eax], dl
inc ecx
inc eax
cmp ecx, dword [esp + 8]
jle 0x4e37e8
ret
Function at 0x4e74a7
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x408688
cmp edx, dword [eax]
je 0x4e74c9
add eax, 8
inc ecx
cmp eax, 0x408718
jl 0x4e74ba
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x408688]
jne 0x4e75f7
mov eax, dword [0x408a48]
cmp eax, 1
je 0x4e75d1
test eax, eax
jne 0x4e74fa
cmp dword [0x4085d4], 1
je 0x4e75d1
cmp edx, 0xfc
je 0x4e75f7
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4e7531
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004e59b2
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004e5ab2
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4e7574
lea eax, [ebp - 0x1a4]
push eax
call fcn.004e5ab2
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4065d0
push edi
call fcn.004e7de2
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004e59b2
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004e59c2
lea eax, [ebp - 0xa0]
push 0x4065b0
push eax
call fcn.004e59c2
push dword [esi + 0x40868c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004e59c2
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004e7d59
add esp, 0x2c
pop edi
jmp 0x4e75f7
lea eax, [ebp + 8]
lea esi, [esi + 0x40868c]
push 0
push eax
push dword [esi]
call fcn.004e5ab2
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40270e
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
movzx eax, byte [esi + 0x17]
xor ebx, ebx
sub eax, ebx
push edi
je 0x40281b
dec eax
je 0x402770
dec eax
je 0x40274b
dec eax
je 0x402739
push dword [esi + 0x18]
push dword [ebp + 8]
call dword [esi + 0x10]
jmp 0x4027b8
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x4027d3
mov byte [eax], bl
jmp 0x4027d3
mov esi, dword [ebp + 8]
push esi
mov ecx, 0x4671d8
call fcn.0044320e
cmp eax, 0xffffffff
jne 0x402760
xor eax, eax
cmp esi, ebx
je 0x402826
mov byte [eax + esi], bl
jmp 0x402826
mov ecx, esi
call fcn.00401dfc
cmp dword [0x4663b0], ebx
jne 0x4027d7
cmp dword [esi + 0xc], ebx
jne 0x4027d7
cmp dword [0x46a468], esi
mov edi, dword [ebp + 8]
jne 0x402793
cmp edi, ebx
jne 0x4027c3
push ebx
lea eax, [ebp - 1]
push eax
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp eax, ebx
je 0x4027bf
cmp edi, ebx
mov dword [0x46a468], ebx
je 0x4027bc
push edi
push dword [esi + 0x18]
call fcn.00439002
pop ecx
pop ecx
jmp 0x402826
dec eax
jmp 0x402826
cmp edi, ebx
je 0x4027cd
mov byte [edi], bl
mov dword [0x46a468], ebx
jmp 0x4027d3
mov dword [0x46a468], esi
xor eax, eax
jmp 0x402826
mov edi, dword [ebp + 8]
cmp edi, ebx
mov eax, dword [esi + 0xc]
je 0x402826
cmp eax, ebx
jne 0x4027e9
mov byte [edi], bl
jmp 0x4027d3
mov ecx, dword [esi + 8]
cmp edi, ecx
je 0x402826
cmp eax, 0x186a0
jb 0x402811
push eax
push ecx
push edi
call fcn.00456f20
mov eax, dword [esi + 0xc]
add esp, 0xc
mov byte [edi + eax], bl
mov eax, dword [esi + 0xc]
jmp 0x402826
mov byte [edi], al
inc edi
inc ecx
mov al, byte [ecx]
cmp al, bl
jne 0x40280d
mov byte [edi], bl
jmp 0x402808
push dword [ebp + 8]
mov ecx, dword [esi + 0xc]
call fcn.0040270e
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40da3f
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp byte [ebp + 0x10], bl
push esi
mov eax, 0xd0
je 0x40da5c
inc dword [0x4663b8]
add dword [0x464108], eax
push eax
push 0x466038
push dword [0x464108]
call fcn.00456f20
mov esi, dword [0x464108]
mov eax, dword [ebp + 8]
add esp, 0xc
cmp byte [ebp + 0x10], bl
mov dword [esi + 0x2c], eax
je 0x40da8c
push ebx
mov ecx, 0x466ce0
call fcn.0040d688
cmp dword [0x4663d8], ebx
mov dword [0x467198], ebx
mov dword [0x46719c], ebx
je 0x40daab
push 0x466b80
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [ebp + 0xc], bl
jne 0x40db21
or ecx, 0xffffffff
cmp byte [esi + 0xc2], bl
jne 0x40dad4
cmp byte [ebp + 0x14], 0x64
sete al
cmp al, bl
mov byte [esi + 0xc2], al
je 0x40dad4
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 0x24], ecx
cmp dword [0x4671a4], ebx
je 0x40dae4
cmp dword [0x4671a0], ebx
jne 0x40daec
cmp byte [esi + 0xc2], bl
je 0x40db21
cmp byte [esi + 0xc2], bl
mov byte [esi + 0xc0], bl
jne 0x40db21
cmp dword [0x4671a4], ebx
jge 0x40db0a
mov dword [esi + 0xb4], ecx
jmp 0x40db21
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0xb0], eax
mov eax, dword [0x4671a4]
mov dword [esi + 0xb4], eax
pop esi
pop ebx
pop ebp
ret
Function at 0x410bbc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
and dword [ebp - 0xc], 0
push ebx
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
push edi
mov byte [ebp - 1], 0
mov byte [ebp - 2], 0
lea eax, [esi + 0x14]
jne 0x410be1
lea eax, [ebp + 0x17]
cmp byte [ebp + 0x10], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 8], eax
jne 0x410c23
push 0x45ac08
push edi
call fcn.0043956b
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x410c23
push 0x45984c
push ebx
call fcn.00401ed8
pop ecx
push eax
call fcn.00441ec1
test eax, eax
pop ecx
pop ecx
jne 0x410c23
test esi, esi
je 0x410c20
mov byte [esi + 0x18], 1
mov byte [ebx], 0
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 1
push 1
lea eax, [ebp - 1]
push eax
push edi
call fcn.00415869
mov bl, al
add esp, 0x14
test bl, bl
mov byte [ebp + 0x14], bl
je 0x410d31
cmp byte [ebp + 0x10], 0
je 0x410ce3
cmp bl, 0x9c
jb 0x410d00
cmp bl, 0x9f
ja 0x410d00
cmp byte [ebp + 0x18], 0
je 0x410c87
push 1
push 0
push 0xffffffffffffffff
push 0x45ac04
mov ecx, dword [0x466b78]
call fcn.0040187e
jmp 0x410da1
push edi
push str.__s__is_not_allowed_as_a_prefix_key.
mov esi, 0x200
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0040a513
add esp, 0x10
cmp byte [0x46718c], 0
lea eax, [ebp - 0x210]
je 0x410cc5
push str.__The_current_thread_will_exit.
push esi
push eax
call fcn.0040a5ae
add esp, 0xc
jmp 0x410d8b
push 0
fldz
push ecx
push ecx
fstp qword [esp]
push 0
push 0x10000
push eax
call fcn.0043bc63
add esp, 0x18
jmp 0x410da1
test esi, esi
je 0x410d00
push 2
push 0x45abb8
push edi
call fcn.00441f04
add esp, 0xc
neg eax
sbb al, al
inc al
mov byte [esi + 0x19], al
push dword [ebp + 0x14]
call fcn.00444b50
test byte [ebp - 1], 0x30
pop ecx
mov byte [ebp - 2], al
je 0x410dbd
cmp bl, 0x41
jb 0x410dbd
cmp bl, 0x5a
ja 0x410dbd
and byte [ebp - 1], 0xcf
jmp 0x410dbd
push edi
call fcn.00415611
test ax, ax
pop ecx
jne 0x410dcc
push 1
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.00422905
add esp, 0xc
test ax, ax
mov dword [ebp - 0xc], eax
jne 0x410da5
cmp byte [ebp + 0x18], al
je 0x410d6d
push 1
push 0
push 0xffffffffffffffff
push 0x45abb4
jmp 0x410c77
test esi, esi
je 0x410da1
push edi
push str.__s__is_not_a_valid_key_name.__The_current_thread_will_exit.
lea eax, [ebp - 0x210]
push 0x200
push eax
call fcn.0040a513
add esp, 0x10
lea eax, [ebp - 0x210]
push 0x4595d8
mov ecx, 0x466ce0
push eax
call fcn.0044bc5a
xor eax, eax
jmp 0x410e07
mov eax, dword [ebp - 8]
inc dword [0x4683dc]
mov byte [eax], 4
mov eax, dword [ebp - 0x10]
mov bl, al
mov byte [eax + 0x4683cc], 1
cmp byte [ebp - 2], 0
je 0x410dc9
mov eax, dword [ebp - 8]
mov byte [eax], 2
mov eax, dword [ebp - 0xc]
cmp byte [ebp + 0x10], 0
je 0x410ddf
test esi, esi
je 0x410e04
mov byte [esi + 0x13], bl
mov word [esi + 0xa], ax
jmp 0x410e04
test esi, esi
je 0x410e04
mov word [esi + 8], ax
xor eax, eax
mov al, byte [ebp - 1]
mov byte [esi + 0x12], bl
and eax, 0xffffffd5
push eax
call fcn.00411ffe
or dword [esi + 0xc], eax
mov al, byte [ebp - 1]
and al, 0x2a
or byte [esi + 0x10], al
pop ecx
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411994
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
push ebx
xor ebx, ebx
cmp byte [0x4683f4], bl
mov dword [ebp - 8], ecx
jne 0x411af8
cmp dword [0x46741c], ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
jne 0x4119c5
call edi
mov dword [0x46741c], eax
inc dword [0x4683f0]
push esi
call edi
mov ecx, dword [0x4683f0]
mov esi, dword [0x464084]
mov edx, eax
sub edx, dword [0x46741c]
cmp ecx, dword [0x464080]
mov dword [0x467420], eax
jbe 0x411a65
cmp edx, esi
jae 0x411a65
push edx
push ecx
push str._u_hotkeys_have_been_received_in_the_last__ums._n_nDo_you_want_to_continue__n_see_MaxHotkeysPerInterval_in_the_help_file_
xor esi, esi
lea eax, [ebp - 0x80c]
push 0x800
inc esi
push eax
mov dword [ebp - 0xc], esi
call fcn.0040a513
add esp, 0x14
call fcn.00411789
fldz
push ebx
push ecx
push ecx
fstp qword [esp]
push ebx
lea eax, [ebp - 0x80c]
push 4
push eax
mov byte [0x4683f4], 1
mov dword [0x46406c], ebx
call fcn.0043bc63
add esp, 0x18
cmp eax, 7
jne 0x411a52
push ebx
push ebx
push esi
mov ecx, 0x466ce0
call fcn.00417a6f
mov eax, dword [0x467420]
mov dword [0x46406c], esi
mov byte [0x4683f4], bl
jmp 0x411a6c
cmp edx, esi
mov dword [ebp - 0xc], ebx
jbe 0x411a7c
cmp dword [ebp - 0xc], ebx
mov dword [0x4683f0], ebx
mov dword [0x46741c], eax
jne 0x411af6
mov ecx, dword [ebp - 8]
mov al, byte [ecx + 0x11]
mov byte [0x467171], al
cmp byte [ecx + 0x1a], bl
je 0x411ac4
cmp byte [ecx + 0x1b], bl
je 0x411ac4
mov byte [ebp - 1], 1
call fcn.0041121e
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
inc byte [esi + 0x19]
call fcn.00406481
dec byte [esi + 0x19]
cmp byte [ebp - 1], bl
mov dword [ebp + 8], eax
je 0x411aba
mov ecx, dword [ebp - 8]
call fcn.0041171d
cmp dword [ebp + 8], ebx
jne 0x411ac9
mov byte [esi + 0x1d], bl
jmp 0x411af6
mov byte [ebp - 1], bl
jmp 0x411a9a
cmp byte [esi + 0x1d], bl
je 0x411af6
mov byte [esi + 0x1d], bl
call edi
sub eax, dword [esi + 4]
cmp eax, 0x3e8
ja 0x411af6
mov eax, dword [ebp - 8]
movzx eax, word [eax]
push ebx
push eax
push 0x312
push dword [0x466254]
call dword [sym.imp.USER32.dll_PostMessageA]
pop esi
pop edi
pop ebx
leave
ret 4

Function at 0x411f5b
Capabilities:
Log keystrokes via polling

Disassembly:
cmp byte [esp + 4], 0xa
jne 0x411f65
mov al, 0xd
ret
push ebx
push dword [esp + 0x10]
push dword [esp + 0xc]
call dword [sym.imp.USER32.dll_VkKeyScanExA]
mov ebx, eax
shr ebx, 8
cmp bl, 0xff
jne 0x411f86
cmp al, 0xff
jne 0x411f86
xor al, al
pop ebx
ret
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x411fd9
mov dl, bl
and dl, 6
cmp dl, 6
jne 0x411fa6
cmp byte [0x4673a1], 0
je 0x411fa6
or byte [ecx], 8
jmp 0x411fc8
test bl, 2
je 0x411fb7
mov dl, byte [ecx]
test dl, 3
jne 0x411fb7
or dl, 1
mov byte [ecx], dl
test bl, 4
je 0x411fc8
mov dl, byte [ecx]
test dl, 0xc
jne 0x411fc8
or dl, 4
mov byte [ecx], dl
test bl, 1
je 0x411fd9
mov dl, byte [ecx]
test dl, 0x30
jne 0x411fd9
or dl, 0x10
mov byte [ecx], dl
pop ebx
ret
Function at 0x4122eb
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0x14]
cmp edi, 3
jge 0x4122ff
mov eax, dword [ebp + 0x10]
jmp 0x4123b0
push ebx
mov bl, byte [ebp + 8]
test bl, bl
push esi
mov esi, dword [ebp + 0x10]
mov byte [esi], 0
jne 0x412325
cmp word [ebp + 0xc], 0
je 0x4123ac
push dword [ebp + 0xc]
call fcn.00413c3a
mov bl, al
jmp 0x41233a
cmp word [ebp + 0xc], 0
jne 0x412342
push 0
push dword [ebp + 8]
call fcn.00413cfd
pop ecx
mov dword [ebp + 0xc], eax
cmp word [ebp + 0xc], 0
pop ecx
je 0x412360
cmp bl, 0x9c
jb 0x41234c
cmp bl, 0x9f
jbe 0x412360
movzx eax, word [ebp + 0xc]
push edi
push esi
shl eax, 0x10
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
test eax, eax
jne 0x4123ac
mov eax, dword [0x4651f8]
xor ecx, ecx
test eax, eax
jle 0x412387
cmp byte [ecx*8 + 0x464e2c], bl
je 0x412379
inc ecx
cmp ecx, eax
jl 0x41236b
cmp ecx, eax
jge 0x412387
push edi
push dword [ecx*8 + 0x464e28]
jmp 0x4123a3
movzx eax, bl
push eax
call fcn.0043c6e9
test eax, eax
pop ecx
je 0x41239d
mov byte [esi], bl
mov byte [esi + 1], 0
jmp 0x4123ac
push edi
push str.not_found
push esi
call fcn.004392af
add esp, 0xc
mov eax, esi
pop esi
pop ebx
pop edi
pop ebp
ret

Function at 0x4123b3
Capabilities:
Log keystrokes via polling

Disassembly:
cmp dword [0x466388], 0
je 0x4123c9
cmp byte [esp + 4], 0
jne 0x4123c9
mov al, byte [0x466270]
ret
push ebx
xor bl, bl
cmp byte [0x467399], bl
push esi
push edi
jne 0x412469
cmp byte [0x46739a], bl
jne 0x412469
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
call edi
mov esi, 0x8000
test si, ax
je 0x412400
add bl, 0x10
push 0xa1
call edi
test si, ax
je 0x41240f
or bl, 0x20
push 0xa2
call edi
test si, ax
je 0x41241e
or bl, 1
push 0xa3
call edi
test si, ax
je 0x41242d
or bl, 2
push 0xa4
call edi
test si, ax
je 0x41243c
or bl, 4
push 0xa5
call edi
test si, ax
je 0x41244b
or bl, 8
push 0x5b
call edi
test si, ax
je 0x412457
or bl, 0x40
push 0x5c
call edi
test si, ax
je 0x4124e4
or bl, 0x80
jmp 0x4124e4
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push ebp
push 0x10
call edi
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
mov esi, 0x8000
test si, ax
jne 0x41248d
push 0x10
call ebp
test si, ax
je 0x41248f
mov bl, 0x10
push 0x11
call edi
test si, ax
jne 0x4124a1
push 0x11
call ebp
test si, ax
je 0x4124a4
or bl, 1
push 0x12
call edi
test si, ax
jne 0x4124b6
push 0x12
call ebp
test si, ax
je 0x4124b9
or bl, 4
push 0x5b
call edi
test si, ax
jne 0x4124cb
push 0x5b
call ebp
test si, ax
je 0x4124ce
or bl, 0x40
push 0x5c
call edi
test si, ax
jne 0x4124e0
push 0x5c
call ebp
test si, ax
je 0x4124e3
or bl, 0x80
pop ebp
cmp dword [0x466388], 0
je 0x412521
mov al, bl
not al
and al, byte [0x466270]
je 0x412521
not al
and byte [0x466272], al
and byte [0x466270], al
and byte [0x466271], al
xor eax, eax
mov al, byte [0x466272]
push eax
push 0x466278
call fcn.00411e9d
pop ecx
pop ecx
pop edi
pop esi
mov al, bl
pop ebx
ret
Function at 0x41313b
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov ebx, dword [esp + 8]
xor ecx, ecx
mov eax, dword [ecx*8 + 0x468430]
test eax, eax
je 0x413157
cmp eax, ebx
je 0x413174
inc ecx
cmp ecx, 0xa
jl 0x413142
cmp ecx, 0xa
jl 0x41315f
push 9
pop ecx
mov eax, dword [esp + 0xc]
test eax, eax
push esi
lea esi, [ecx*8 + 0x468430]
je 0x413193
mov dword [esi + 4], eax
jmp 0x4131c9
mov edx, dword [esp + 0xc]
test edx, edx
je 0x41318a
lea eax, [ecx*8 + 0x468434]
cmp dword [eax], 0
jne 0x41318a
mov dword [eax], edx
mov eax, dword [ecx*8 + 0x468434]
pop ebx
ret
and dword [esi + 4], 0
push edi
push 0x20
pop edi
push ebx
push edi
call dword [sym.imp.USER32.dll_VkKeyScanExA]
cmp ax, 0xffff
je 0x4131b3
and ax, 0x600
cmp ax, 0x600
je 0x4131be
inc edi
cmp edi, 0x100
jl 0x41319b
jmp 0x4131c5
mov dword [esi + 4], 3
mov eax, dword [esi + 4]
pop edi
mov dword [esi], ebx
pop esi
pop ebx
ret

Function at 0x4136b2
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
mov ebx, 0x80000000
cmp ecx, ebx
je 0x41381f
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
cmp eax, ebx
je 0x41381e
mov edx, dword [0x468480]
cmp edx, 2
jne 0x413716
push eax
mov al, byte [ebp + 0x18]
neg al
push ecx
push 0
sbb eax, eax
and eax, ebx
or eax, 1
push eax
call fcn.00411d08
add esp, 0x10
call fcn.0041227d
cmp byte [ebp + 0x18], 0
je 0x41381e
mov dword [esi], ebx
mov dword [edi], ebx
jmp 0x41381e
mov eax, dword [ebp + 0x10]
or word [eax], 0x8001
cmp byte [ebp + 0x18], 0
je 0x413760
cmp edx, 1
jne 0x41374c
cmp dword [0x468400], ebx
jne 0x41373c
push 0x468400
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [0x468400]
add dword [esi], eax
mov eax, dword [0x468404]
add dword [edi], eax
jmp 0x413777
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 0xc]
add dword [esi], eax
mov eax, dword [ebp - 8]
jmp 0x413748
mov eax, dword [0x464108]
test byte [eax + 0xc4], 2
jne 0x413777
push edi
push esi
call fcn.0043966c
pop ecx
pop ecx
cmp dword [0x468480], 1
jne 0x41378e
mov eax, dword [esi]
mov dword [0x468400], eax
mov eax, dword [edi]
mov dword [0x468404], eax
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0
call ebx
push 1
mov dword [ebp - 4], eax
call ebx
mov dword [ebp + 8], eax
mov eax, dword [esi]
shl eax, 0x10
cdq
idiv dword [ebp - 4]
mov ebx, dword [ebp + 0x14]
inc eax
mov dword [esi], eax
mov eax, dword [edi]
shl eax, 0x10
cdq
idiv dword [ebp + 8]
inc eax
test ebx, ebx
mov dword [edi], eax
jl 0x413807
cmp ebx, 0x64
jle 0x4137c9
push 0x64
pop ebx
test ebx, ebx
je 0x413807
cmp dword [0x468480], 1
je 0x413807
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [ebp - 8]
shl eax, 0x10
cdq
idiv dword [ebp + 8]
push ebx
push dword [edi]
push dword [esi]
inc eax
push eax
mov eax, dword [ebp - 0xc]
shl eax, 0x10
cdq
idiv dword [ebp - 4]
inc eax
push eax
call fcn.0042b195
add esp, 0x14
jmp 0x41381e
push eax
push dword [esi]
push 0
push 0x8001
call fcn.0041366e
add esp, 0x10
call fcn.0041227d
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413cfd
Capabilities:
Log keystrokes

Disassembly:
push esi
movzx esi, byte [esp + 8]
mov ecx, esi
mov eax, 0x90
cmp ecx, eax
jg 0x413d83
je 0x413d79
sub ecx, 0x5b
cmp ecx, 0x14
ja case.0x413d1c.93
jmp dword [ecx*4 + 0x413e29]
mov eax, 0x15b
jmp 0x413e15
mov eax, 0x15c
jmp 0x413e15
push 0x52
jmp 0x413db9
push 0x4f
jmp 0x413db9
push 0x50
jmp 0x413db9
push 0x51
jmp 0x413db9
push 0x4b
jmp 0x413db9
push 0x4c
jmp 0x413db9
push 0x4d
jmp 0x413db9
push 0x47
jmp 0x413db9
push 0x48
jmp 0x413db9
push 0x49
jmp 0x413db9
push 0x53
jmp 0x413db9
mov eax, 0x135
jmp 0x413e15
push 0x37
jmp 0x413db9
push 0x4a
jmp 0x413db9
push 0x4e
jmp 0x413db9
mov eax, 0x145
jmp 0x413e15
sub ecx, 0xa0
je 0x413db7
dec ecx
je 0x413db0
dec ecx
je 0x413dac
dec ecx
je 0x413da5
dec ecx
je 0x413da1
dec ecx
jne case.0x413d1c.93
mov eax, 0x138
jmp 0x413e15
push 0x38
jmp 0x413db9
mov eax, 0x11d
jmp 0x413e15
push 0x1d
jmp 0x413db9
mov eax, 0x136
jmp 0x413e15
push 0x2a
pop eax
jmp 0x413e15
push 0
push esi
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
test ax, ax
jne 0x413dcc
pop esi
ret
cmp esi, 0x2e
jg 0x413e01
cmp esi, 0x2d
jge 0x413df1
cmp esi, 3
je 0x413e10
cmp esi, 0xd
je 0x413df1
cmp esi, 0x20
jle 0x413e15
cmp esi, 0x28
jle 0x413df1
cmp esi, 0x2c
je 0x413e10
jmp 0x413e15
cmp byte [esp + 0xc], 0
movzx eax, ax
je 0x413e27
or ax, 0x100
pop esi
ret
sub esi, 0x5d
je 0x413e10
sub esi, 0x12
je 0x413e10
sub esi, 0x21
jne 0x413e15
or eax, 0x100
mov cl, byte [esp + 0xc]
neg cl
movzx eax, ax
sbb ecx, ecx
not ecx
and ecx, eax
mov ax, cx
pop esi
ret