joyce8/EMBER2024-capa huggingface dataset:
Function at 0x53cf5c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 0x10
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
jne 0x53cf85
push 0
push dword [ebp + 0xc]
push 0xe
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.DLL_SendMessageW]
jmp 0x53cf9b
push 0
push dword [ebp + 0xc]
push 0x149
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.DLL_SendMessageW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, 0
jl 0x53d082
push 3
push dword [ebp + 8]
call fcn.0053b311
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 7
je 0x53cfd7
push 2
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.00447454
mov eax, dword [ebp - 0xc]
cmp eax, 0
jne 0x53cfee
push dword [ebp - 0x10]
call fcn.004458d2
jmp 0x53d082
mov eax, dword [ebp - 0xc]
inc eax
shl eax, 2
push eax
push dword [ebp - 0x10]
call fcn.00433101
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
jne 0x53d023
push dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
inc eax
push eax
push 0xd
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.DLL_SendMessageW]
jmp 0x53d03a
push dword [ebp - 0x18]
push dword [ebp + 0xc]
push 0x148
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.DLL_SendMessageW]
xor eax, eax
inc eax
push eax
push dword [ebp - 0x10]
push dword [ebp - 0xc]
push 0
call fcn.0043283a
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push eax
call fcn.00527bb4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
and eax, 0xff
cmp eax, 0x20
jne 0x53d07b
push dword [0x57fc80]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.0043915f
push 1
call fcn.0048a859
leave
ret 8

Function at 0x53d7ff
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 4
mov eax, dword [0x580410]
cmp eax, 0
je 0x53d81b
call dword [sym.imp.USER32.DLL_ReleaseCapture]
call fcn.0053ab76
push 0xa
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_ShowWindow]
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_UpdateWindow]
mov eax, dword [0x58054c]
xor al, 1
cmp eax, 0
je 0x53d852
push 0xffffffffffffffff
push 0
push 0
push 0
push dword [ebp + 8]
call fcn.0052e9ff
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_SetForegroundWindow]
push dword [ebp + 8]
call fcn.0053cdb8
leave
ret 4
Function at 0x53f799
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
sub esp, 4
mov eax, dword [ebp + 0x14]
mov edx, dword [0x57f98c]
cmp eax, edx
jne 0x53f7d6
mov eax, dword [0x580540]
sub eax, 0xc
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_GetWindowLongW]
mov edx, eax
mov eax, 2
and eax, edx
cmp eax, 0
je 0x53f7d6
jmp 0x53f7da
xor eax, eax
jmp 0x53f7dd
xor eax, eax
inc eax
cmp eax, 0
je 0x53f801
mov eax, dword [ebp + 0x10]
cmp eax, 0
je 0x53f7fb
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0053be2b
jmp 0x53f801
call dword [sym.imp.USER32.DLL_DestroyCaret]
mov eax, dword [ebp + 0x10]
cmp eax, 0
je 0x53f826
mov eax, dword [ebp + 0x14]
mov edx, dword [0x57f98c]
cmp eax, edx
jne 0x53f81f
mov eax, 8
jmp 0x53f824
mov eax, 5
jmp 0x53f82b
mov eax, 0
mov dword [ebp - 0xc], eax
push dword [ebp - 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_ShowWindow]
mov eax, dword [0x58054c]
xor al, 1
cmp eax, 0
je 0x53f858
push 0xffffffffffffffff
push 0
push 0
push 0
push dword [ebp + 8]
call fcn.0052e9ff
mov eax, dword [ebp + 0x14]
mov edx, dword [0x57f9b8]
cmp eax, edx
jne 0x53f888
mov eax, dword [0x580540]
sub eax, 4
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_GetWindowLongW]
mov dword [ebp + 8], eax
push dword [ebp - 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.DLL_ShowWindow]
mov eax, dword [ebp + 0x14]
mov edx, dword [0x57f9a8]
cmp eax, edx
jne 0x53f89f
push 9
push dword [ebp + 8]
call fcn.00530bc9
leave
ret 0x10
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x4893df]
shl eax, 2
mov dword [0x4893e3], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.0047c864
pop edx
call fcn.0047c7c8
call fcn.0047c8a4
push 0
call fcn.0047dac8
pop ecx
push 0x489388
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x4893e7], eax
push 0
jmp fcn.00483368

Function at 0x401510
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov ebx, 0x4896b0
lea esi, [ebp - 0x24]
mov edi, 0x4894cc
mov eax, 0x489694
call fcn.0047ceb4
mov word [esi + 0x10], 8
mov edx, ebx
mov eax, edi
call fcn.0048717c
inc dword [esi + 0x1c]
lea edx, [ebx + 3]
lea eax, [edi + 4]
call fcn.0048717c
inc dword [esi + 0x1c]
lea edx, [ebx + 6]
lea eax, [edi + 8]
call fcn.0048717c
inc dword [esi + 0x1c]
lea edx, [ebx + 9]
lea eax, [edi + 0xc]
call fcn.0048717c
inc dword [esi + 0x1c]
lea edx, [ebx + 0xc]
lea eax, [edi + 0x10]
call fcn.0048717c
inc dword [esi + 0x1c]
lea edx, [ebx + 0xf]
lea eax, [edi + 0x14]
call fcn.0048717c
inc dword [esi + 0x1c]
lea edx, [ebx + 0x12]
lea eax, [edi + 0x18]
call fcn.0048717c
inc dword [esi + 0x1c]
lea edx, [ebx + 0x15]
lea eax, [edi + 0x1c]
call fcn.0048717c
inc dword [esi + 0x1c]
lea edx, [ebx + 0x18]
lea eax, [edi + 0x20]
call fcn.0048717c
inc dword [esi + 0x1c]
lea edx, [ebx + 0x1b]
lea eax, [edi + 0x24]
call fcn.0048717c
inc dword [esi + 0x1c]
lea edx, [ebx + 0x1e]
lea eax, [edi + 0x28]
call fcn.0048717c
inc dword [esi + 0x1c]
lea edx, [ebx + 0x21]
lea eax, [edi + 0x2c]
call fcn.0048717c
inc dword [esi + 0x1c]
lea edx, [ebx + 0x24]
lea eax, [edi + 0x30]
call fcn.0048717c
inc dword [esi + 0x1c]
lea edx, [ebx + 0x27]
mov eax, 0x48952c
call fcn.0048717c
inc dword [esi + 0x1c]
lea edx, [ebx + 0x2a]
mov eax, 0x489530
call fcn.0048717c
inc dword [esi + 0x1c]
lea edx, [ebx + 0x2d]
mov eax, 0x489534
call fcn.0048717c
inc dword [esi + 0x1c]
lea edx, [ebx + 0x30]
mov eax, 0x489538
call fcn.0048717c
inc dword [esi + 0x1c]
lea edx, [ebx + 0x33]
mov eax, 0x48953c
call fcn.0048717c
inc dword [esi + 0x1c]
lea edx, [ebx + 0x36]
mov eax, 0x489540
call fcn.0048717c
inc dword [esi + 0x1c]
lea edx, [ebx + 0x39]
mov eax, 0x489544
call fcn.0048717c
inc dword [esi + 0x1c]
lea edx, [ebx + 0x3c]
mov eax, 0x489548
call fcn.0048717c
inc dword [esi + 0x1c]
lea edx, [ebx + 0x3f]
mov eax, 0x48954c
call fcn.0048717c
inc dword [esi + 0x1c]
lea edx, [ebx + 0x42]
mov eax, 0x489550
call fcn.0048717c
inc dword [esi + 0x1c]
lea edx, [ebx + 0x45]
mov eax, 0x489554
call fcn.0048717c
inc dword [esi + 0x1c]
mov edx, dword [esi]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4062fc
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
mov eax, 0x48b2d0
call fcn.0047ceb4
push 0x487abc
call sub.KERNEL32.DLL_GetPriorityClass
mov ebx, eax
push 0x487ac8
call sub.KERNEL32.DLL_GetThreadPriority
mov esi, eax
push 0x100
push 0x487abc
call sub.KERNEL32.DLL_SetPriorityClass
push 0xf
push 0x487ac8
call sub.KERNEL32.DLL_SetThreadPriority
push 0xa
call sub.KERNEL32.DLL_Sleep
rdtsc
push eax
push edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], edx
push 0x1f4
call sub.KERNEL32.DLL_Sleep
rdtsc
sub eax, dword [ebp - 0x2c]
sbb edx, dword [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], edx
pop edx
pop eax
push esi
push 0x487ac8
call sub.KERNEL32.DLL_SetThreadPriority
push ebx
push 0x487abc
call sub.KERNEL32.DLL_SetPriorityClass
mov word [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
xor edx, edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
fild qword [ebp - 0x38]
fld xword [0x4063f0]
fmulp st(1)
add esp, 0xfffffff8
fstp qword [esp]
lea eax, [ebp - 4]
call fcn.004872dc
inc dword [ebp - 0xc]
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.00487378
mov eax, dword [ebp + 8]
mov edx, 2
mov word [ebp - 0x18], 0x14
push eax
lea eax, [ebp - 4]
dec dword [ebp - 0xc]
call fcn.00487348
pop eax
mov word [ebp - 0x18], 8
inc dword [ebp - 0xc]
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40cde8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
mov eax, 0x48be3c
call fcn.0047ceb4
mov dword [ebp - 0x2c], 0x100
mov dword [ebp - 0x30], 0x100
push dword [ebp - 0x30]
call fcn.0047c6d8
pop ecx
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
je 0x40ce5d
push dword [ebp - 0x34]
push dword [ebp - 0x30]
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0x100
jbe 0x40ce5d
push dword [ebp - 0x30]
push dword [ebp - 0x34]
call fcn.0047c6f8
add esp, 8
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x40ce5d
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x34], edx
push dword [ebp - 0x34]
push dword [ebp - 0x30]
call sub.KERNEL32.DLL_GetCurrentDirectoryA
mov dword [ebp - 0x30], eax
mov word [ebp - 0x18], 8
mov word [ebp - 0x18], 0x14
cmp dword [ebp - 0x30], 0
je 0x40ce7a
cmp dword [ebp - 0x34], 0
je 0x40ce7a
mov edx, dword [ebp - 0x34]
jmp 0x40ce7f
mov edx, 0x48baa8
lea eax, [ebp - 4]
call fcn.0048717c
inc dword [ebp - 0xc]
mov word [ebp - 0x18], 0x20
push dword [ebp - 0x34]
call fcn.0047c6e8
pop ecx
mov word [ebp - 0x18], 0x2c
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.00487378
mov eax, dword [ebp + 8]
mov word [ebp - 0x18], 0x38
push eax
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00487348
pop eax
mov word [ebp - 0x18], 0x20
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
jmp 0x40cefd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415fa8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 1]
call fcn.00415ffc
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x415fca
lea eax, [ebp - 1]
xor edx, edx
call fcn.00416030
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x415fe0
lea eax, [ebp - 1]
mov dl, 2
call fcn.00416030
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x415ff6
lea eax, [ebp - 1]
mov dl, 1
call fcn.00416030
mov al, byte [ebp - 1]
pop ecx
pop ebp
ret
Function at 0x416690
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [0x491bc0]
mov eax, dword [eax]
call fcn.00445028
push 0
mov edx, dword [0x491bc0]
mov ecx, dword [edx]
push dword [ecx + 0x24]
call sub.USER32.DLL_ShowWindow
mov eax, dword [ebp - 4]
cmp word [eax + 0x23a], 0
je 0x4166d7
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x23c]
mov ecx, dword [ebp - 4]
call dword [ecx + 0x238]
pop ecx
pop ebp
ret

Function at 0x4166dc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [0x491bc0]
mov eax, dword [eax]
call fcn.004450c8
push 9
mov edx, dword [0x491bc0]
mov ecx, dword [edx]
push dword [ecx + 0x24]
call sub.USER32.DLL_ShowWindow
mov eax, dword [0x491bc0]
mov edx, dword [eax]
push dword [edx + 0x24]
call sub.USER32.DLL_SetForegroundWindow
mov ecx, dword [ebp - 4]
cmp word [ecx + 0x242], 0
je 0x416732
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x244]
mov ecx, dword [ebp - 4]
call dword [ecx + 0x240]
pop ecx
pop ebp
ret

Function at 0x4224bc
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.0047a008
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x42250b
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.USER32.DLL_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.0047a238
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x428ab4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x428d13
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x428b16
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0042857c
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.00475a84
cmp al, 1
jne 0x428b16
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00428894
test al, al
je 0x428ca2
cmp dword [ebp - 8], 0
jge 0x428b34
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.0042857c
mov eax, dword [ebp - 0x210]
call fcn.0047a288
cmp ebx, eax
jge 0x428b7e
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0042857c
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x491d90]
and eax, 0xff
bt dword [edx], eax
jae 0x428b7e
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x210]
cmp eax, dword [ebp - 8]
jg 0x428b92
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00428a90
cmp ebx, dword [ebp - 8]
je 0x428c94
lea eax, [ebp - 0x108]
push eax
call sub.USER32.DLL_GetKeyboardState
mov edx, 0x100
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x428bbe
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.00479734
and eax, 0x7f
movzx eax, word [eax*2 + 0x48d8cc]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.USER32.DLL_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x224], 1
xor eax, eax
push ebp
push 0x428c81
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.00479734
and eax, 0x7f
movzx eax, word [eax*2 + 0x48d8cc]
push eax
push 0x100
mov eax, dword [ebp - 4]
call fcn.00454998
push eax
call sub.USER32.DLL_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.00479734
and eax, 0x7f
movzx eax, word [eax*2 + 0x48d8cc]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00454998
push eax
call sub.USER32.DLL_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428c88
mov eax, dword [ebp - 4]
mov byte [eax + 0x224], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x218], edx
jmp 0x428cf5
cmp dword [ebp - 8], 0
jge 0x428cad
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0042857c
mov eax, dword [ebp - 0x218]
call fcn.0047a288
cmp eax, dword [ebp - 8]
jg 0x428ce7
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0042857c
mov eax, dword [ebp - 0x21c]
call fcn.0047a288
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00428a90
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428d1a
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.0047a02c
ret
Function at 0x43189c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4318a2
ret

Function at 0x434208
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.KERNEL32.DLL_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x434259
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x434240
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x434230
jmp 0x434259
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x434241
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43cb5c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4920e0
cmp dword [edi], 0
jne 0x43cbd8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x4920dc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x48dba0
mov ecx, 2
call fcn.00479038
mov edx, 0x43cb34
lea eax, [esi + 5]
call fcn.0043cb54
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0043cb54
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x43cbad
mov dword [0x4920dc], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x43ccf4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x43cd44]
test si, 4
je 0x43cd08
or bl, 1
test si, 8
je 0x43cd12
or bl, 4
test si, 1
je 0x43cd1c
or bl, 8
test si, 2
je 0x43cd26
or bl, 0x10
test si, 0x10
je 0x43cd30
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x43cd3f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x43cd48
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x43cd80]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x43cd61
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x43cd70
or bl, 4
test esi, 0x20000000
je 0x43cd7b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4432d0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4432e2
add esp, 0xfffffff0
call fcn.00479898
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0046caf8
mov eax, ebx
call fcn.0044361c
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x4648c0]
call fcn.00479528
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x4648c0]
call fcn.00479528
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x4648c0]
call fcn.00479528
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x4648c0]
call fcn.00479528
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4648c0]
call fcn.00479528
mov dword [ebx + 0x70], eax
push 0
call sub.USER32.DLL_GetDC
mov esi, eax
push 0x5a
push esi
call sub.GDI32.DLL_GetDeviceCaps
mov dword [ebx + 0x34], eax
push esi
push 0
call sub.USER32.DLL_ReleaseDC
mov eax, dword [ebx + 0x4c]
push eax
mov eax, 0x43fdc0
push eax
push 0
push 0
mov eax, dword [0x491d6c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x430dc4]
call fcn.004322fc
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x430dc4]
call fcn.004322fc
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x430dc4]
call fcn.004322fc
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.004439fc
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x443918
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x443918
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x443918
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4433f1
call fcn.004798f0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4436fc
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4438a7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x443888
mov dl, 1
mov eax, dword [0x464cc4]
call fcn.00479528
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.0047a008
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.DLL_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x443877
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00458f64
test al, al
je 0x44386a
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4438b8
lea eax, [ebp - 0x254]
call fcn.00474490
push eax
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x44386a
xor eax, eax
push ebp
push 0x443863
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x100
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4438f0
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x44384c
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.0047a238
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x44384c
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.0047a238
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44386a
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x44376d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.00468344
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4438ae
lea eax, [ebp - 0x260]
call fcn.0047a008
ret

Function at 0x4440f4
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4920d0]
cmp byte [eax + 0x95], 0
jne 0x444165
cmp dword [0x4920ec], 0
jne 0x444126
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x4440b0
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x4920ec], eax
cmp dword [0x4920e8], 0
jne 0x444141
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x4920e8], eax
cmp dword [0x4920f0], 0
jne 0x444165
push esp
push 0
push 0
push 0x444054
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x4920f0], eax
pop edx
ret