joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c688
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.0041c5ac
mov cl, 1
mov edx, esi
mov eax, esi
mov bx, 0xffff
call fcn.0047a204
push 0x10
lea eax, [esi + 0x18]
push eax
mov eax, dword [esi + 4]
push eax
call sub.WSOCK32.DLL_connect
mov edx, 0x41c6ec
call fcn.0041bed8
mov byte [esi + 0x29], 0
test byte [esi + 0x28], 0x10
jne 0x41c6de
cmp dword [esi + 4], 0xffffffff
setne al
mov byte [esi + 8], al
mov cl, 2
mov edx, esi
mov eax, esi
mov bx, 0xffff
call fcn.0047a204
pop esi
pop ebx
ret

Function at 0x41c710
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.0047aedc
push eax
call sub.WSOCK32.DLL_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00479cf0
test ebx, ebx
je 0x41c75b
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret

Function at 0x41c7a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov word [ebx], 2
test edi, edi
je 0x41c7c8
mov edx, edi
mov eax, esi
call fcn.0041c710
mov dword [ebx + 4], eax
jmp 0x41c805
cmp dword [ebp - 4], 0
je 0x41c7e1
mov eax, dword [ebp - 4]
call fcn.0047aedc
push eax
call sub.WSOCK32.DLL_inet_addr
mov dword [ebx + 4], eax
jmp 0x41c805
cmp byte [ebp + 0xc], 0
jne 0x41c7ee
xor eax, eax
mov dword [ebx + 4], eax
jmp 0x41c805
mov ecx, dword [0x49295c]
mov dl, 1
mov eax, dword [0x41b84c]
call fcn.00475a04
call fcn.0047a760
cmp dword [ebp + 0x14], 0
je 0x41c821
mov edx, dword [ebp + 0x14]
mov eax, esi
call fcn.0041c76c
push eax
call sub.WSOCK32.DLL_htons
mov word [ebx + 2], ax
jmp 0x41c82f
mov ax, word [ebp + 0x10]
push eax
call sub.WSOCK32.DLL_htons
mov word [ebx + 2], ax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0x10
Function at 0x41c838
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x41c869
mov ecx, dword [0x492964]
mov dl, 1
mov eax, dword [0x41b84c]
call fcn.00475a04
call fcn.0047a760
push 0
push 1
push 2
call sub.WSOCK32.DLL_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x41c896
mov ecx, dword [0x492960]
mov dl, 1
mov eax, dword [0x41b84c]
call fcn.00475a04
call fcn.0047a760
xor eax, eax
push ebp
push 0x41c915
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xffff
call fcn.0047a204
cmp byte [ebp + 8], 0
je 0x41c8f1
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.0041c7a0
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.0041c688
jmp 0x41c90b
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.0041c1c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x41c932
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41caf8
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0041c444
xor edx, edx
push ebp
push 0x41cc58
push dword fs:[edx]
mov dword fs:[edx], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x41cc42
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x41cb42
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x41cb4c
call fcn.0047a800
jmp 0x41cc5f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00469634
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 4]
mov ebx, eax
test ebx, ebx
jle 0x41cc37
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.WSOCK32.DLL_send
cmp eax, 0xffffffff
jne 0x41cbf5
call sub.WSOCK32.DLL_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x41cbe5
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xfffe
call fcn.0047a204
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.0041cab0
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x41cc68]
cmp dl, byte [eax + 0x28]
je 0x41cc3e
call fcn.004758ec
jmp 0x41cc3e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0xc]
call fcn.00469644
jmp 0x41cc3e
cmp eax, ebx
jge 0x41cc0e
mov edx, dword [ebp - 0xc]
add edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00469644
jmp 0x41cb4c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00469634
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00469650
cmp ebx, eax
jne 0x41cb4c
push ebp
call fcn.0041cab0
pop ecx
jmp 0x41cc3e
push ebp
call fcn.0041cab0
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41cc5f
mov eax, dword [ebp - 4]
call fcn.0041c450
ret
mov al, byte [ebp - 5]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41cc6c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41cd8e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0041c444
xor eax, eax
push ebp
push 0x41cd71
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x41ccbc
call fcn.0047a800
jmp 0x41cd78
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.WSOCK32.DLL_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x41cd5b
call sub.WSOCK32.DLL_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x41cd5b
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xfffe
call fcn.0047a204
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x41cd5b
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.00475108
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x41cda8
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x492954]
mov dl, 1
mov eax, dword [0x41b84c]
call fcn.00475a40
call fcn.0047a760
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41cd78
mov eax, dword [ebp - 4]
call fcn.0041c450
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41cd95
lea eax, [ebp - 0x28]
call fcn.0047aa98
ret
Function at 0x41cdf4
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x41cf3e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0041c444
xor eax, eax
push ebp
push 0x41cf21
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x41ce59
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x41ce59
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.WSOCK32.DLL_ioctlsocket
jmp 0x41cf0b
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x41ce6c
call fcn.0047a800
jmp 0x41cf28
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.WSOCK32.DLL_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x41cf0b
call sub.WSOCK32.DLL_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x41cf0b
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xfffe
call fcn.0047a204
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x41cf0b
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.00475108
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x41cf58
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x492954]
mov dl, 1
mov eax, dword [0x41b84c]
call fcn.00475a40
call fcn.0047a760
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41cf28
mov eax, dword [ebp - 4]
call fcn.0041c450
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41cf45
lea eax, [ebp - 0x28]
call fcn.0047aa98
ret

Function at 0x424e58
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.00424a78
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.0047aedc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExA
test eax, eax
je 0x424eb6
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x492948]
mov dl, 1
mov eax, dword [0x424970]
call fcn.00475a40
call fcn.0047a760
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x424ec0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0047aedc
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
je 0x424f18
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x49294c]
mov dl, 1
mov eax, dword [0x424970]
call fcn.00475a40
call fcn.0047a760
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00424aa8
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x425f00
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.0047aa98
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x425f4f
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.0047acc8
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42c4f8
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 0x42c757
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x42c55a
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0042bfc0
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0047623c
cmp al, 1
jne 0x42c55a
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.0042c2d8
test al, al
je 0x42c6e6
cmp dword [ebp - 8], 0
jge 0x42c578
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.0042bfc0
mov eax, dword [ebp - 0x210]
call fcn.0047ad18
cmp ebx, eax
jge 0x42c5c2
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0042bfc0
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x492a40]
and eax, 0xff
bt dword [edx], eax
jae 0x42c5c2
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x210]
cmp eax, dword [ebp - 8]
jg 0x42c5d6
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0042c4d4
cmp ebx, dword [ebp - 8]
je 0x42c6d8
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 0x42c602
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.0047a204
and eax, 0x7f
movzx eax, word [eax*2 + 0x48e4b4]
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 0x42c6c5
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.0047a204
and eax, 0x7f
movzx eax, word [eax*2 + 0x48e4b4]
push eax
push 0x100
mov eax, dword [ebp - 4]
call fcn.0045838c
push eax
call sub.USER32.DLL_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov bx, 0xffce
call fcn.0047a204
and eax, 0x7f
movzx eax, word [eax*2 + 0x48e4b4]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0045838c
push eax
call sub.USER32.DLL_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c6cc
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 0x42c739
cmp dword [ebp - 8], 0
jge 0x42c6f1
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0042bfc0
mov eax, dword [ebp - 0x218]
call fcn.0047ad18
cmp eax, dword [ebp - 8]
jg 0x42c72b
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0042bfc0
mov eax, dword [ebp - 0x21c]
call fcn.0047ad18
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0042c4d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c75e
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.0047aabc
ret
Function at 0x435348
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 0x43534e
ret

Function at 0x437cac
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 0x437cfd
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x437ce4
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x437cd4
jmp 0x437cfd
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 0x437ce5
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44067c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x492f1c
cmp dword [edi], 0
jne 0x4406f8
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x492f18]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x48e790
mov ecx, 2
call fcn.004799d8
mov edx, 0x440654
lea eax, [esi + 5]
call fcn.00440674
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00440674
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 0x4406cd
mov dword [0x492f18], 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 0x440814
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x440864]
test si, 4
je 0x440828
or bl, 1
test si, 8
je 0x440832
or bl, 4
test si, 1
je 0x44083c
or bl, 8
test si, 2
je 0x440846
or bl, 0x10
test si, 0x10
je 0x440850
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x44085f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x440868
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4408a0]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x440881
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x440890
or bl, 4
test esi, 0x20000000
je 0x44089b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x446df0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x446e02
add esp, 0xfffffff0
call fcn.0047a328
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0046c518
mov eax, ebx
call fcn.0044713c
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x4661f0]
call fcn.00479ff8
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x4661f0]
call fcn.00479ff8
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x4661f0]
call fcn.00479ff8
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x4661f0]
call fcn.00479ff8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4661f0]
call fcn.00479ff8
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, 0x4438e0
push eax
push 0
push 0
mov eax, dword [0x492a1c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x434870]
call fcn.00435da8
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x434870]
call fcn.00435da8
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x434870]
call fcn.00435da8
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.004475ac
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x447480
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x447480
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x447480
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x446f11
call fcn.0047a380
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x447264
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 0x44740f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x4473f0
mov dl, 1
mov eax, dword [0x46652c]
call fcn.00479ff8
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.0047aa98
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.DLL_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4473df
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.0045c958
test al, al
je 0x4473d2
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, 0x447420
lea eax, [ebp - 0x254]
call fcn.00473ec8
push eax
push reloc.NVCLIENT.DLL_Ordinal_2
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4473d2
xor eax, eax
push ebp
push 0x4473cb
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 0x447458
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x4473b4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.0047acc8
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 0x4473b4
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.0047acc8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4473d2
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4472d5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.004695ac
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 0x447416
lea eax, [ebp - 0x260]
call fcn.0047aa98
ret

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

Disassembly:
push ecx
mov eax, dword [0x492f0c]
cmp byte [eax + 0x95], 0
jne 0x447d15
cmp dword [0x492f28], 0
jne 0x447cd6
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x447c60
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x492f28], eax
cmp dword [0x492f24], 0
jne 0x447cf1
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x492f24], eax
cmp dword [0x492f2c], 0
jne 0x447d15
push esp
push 0
push 0
push 0x447c04
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x492f2c], eax
pop edx
ret