joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40978c
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe8c
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], eax
mov eax, 0x476b88
call fcn.00468644
call sub.KERNEL32.DLL_GetCurrentProcessId
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
ja 0x4097c7
xor eax, eax
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
jmp 0x40996a
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x4097ea
xor eax, eax
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
jmp 0x40996a
mov dword [ebp - 0x174], 0x128
lea ecx, [ebp - 0x174]
push ecx
push dword [ebp - 0x4c]
call sub.KERNEL32.DLL_Process32First
test eax, eax
jne 0x409818
xor eax, eax
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
jmp 0x40996a
push dword [ebp - 0x3c]
mov word [ebp - 0x24], 8
lea eax, [ebp - 8]
call fcn.004015a4
push eax
inc dword [ebp - 0x18]
lea edx, [ebp - 0x150]
lea eax, [ebp - 4]
call fcn.0047267c
inc dword [ebp - 0x18]
mov eax, dword [eax]
pop edx
call fcn.0045df80
lea eax, [ebp - 8]
call fcn.004026c0
push eax
call fcn.0046ad94
pop ecx
push eax
call fcn.0046838c
add esp, 8
test eax, eax
sete dl
and edx, 1
push edx
dec dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 2
call fcn.0047274c
dec dword [ebp - 0x18]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0047274c
pop ecx
test cl, cl
je 0x4098a8
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x16c]
mov dword [eax], edx
mov al, 1
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
jmp 0x40996a
mov byte [ebp - 0x41], 0
mov byte [ebp - 0x42], 1
lea ecx, [ebp - 0x174]
push ecx
push dword [ebp - 0x4c]
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x4098cc
mov byte [ebp - 0x42], 0
jmp 0x409953
push dword [ebp - 0x3c]
mov word [ebp - 0x24], 0x14
lea eax, [ebp - 0x10]
call fcn.004015a4
push eax
inc dword [ebp - 0x18]
lea edx, [ebp - 0x150]
lea eax, [ebp - 0xc]
call fcn.0047267c
inc dword [ebp - 0x18]
mov eax, dword [eax]
pop edx
call fcn.0045df80
lea eax, [ebp - 0x10]
call fcn.004026c0
push eax
call fcn.0046ad94
pop ecx
push eax
call fcn.0046838c
add esp, 8
test eax, eax
sete dl
and edx, 1
push edx
dec dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0047274c
dec dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0047274c
pop ecx
test cl, cl
je 0x409953
mov byte [ebp - 0x42], 0
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x16c]
mov dword [eax], edx
mov byte [ebp - 0x41], 1
cmp byte [ebp - 0x42], 0
jne 0x4098b0
mov al, byte [ebp - 0x41]
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret
Function at 0x40a360
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd5c
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov word [ebp - 0xa], 2
lea eax, [ebp - 0x2a4]
push eax
mov dx, word [ebp - 0xa]
push edx
call sub.WSOCK32.DLL_WSAStartup
test eax, eax
jne 0x40a3d7
push 0xff
lea ecx, [ebp - 0x114]
push ecx
call sub.WSOCK32.DLL_gethostname
test eax, eax
jne 0x40a3d7
lea eax, [ebp - 0x114]
push eax
call sub.WSOCK32.DLL_gethostbyname
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40a3d7
mov edx, dword [ebp - 0x10]
mov ecx, dword [edx + 0xc]
mov eax, dword [ecx]
push dword [eax]
call sub.WSOCK32.DLL_inet_ntoa
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
push dword [ebp - 8]
call fcn.004683d8
add esp, 8
call sub.WSOCK32.DLL_WSACleanup
mov esp, ebp
pop ebp
ret
Function at 0x40a66c
Capabilities:
Contain obfuscated stackstrings
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffea4
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], eax
mov eax, 0x477214
call fcn.00468644
push dword [ebp - 0x30]
call fcn.00468408
pop ecx
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0x100
jle 0x40a6a1
mov dword [ebp - 0x34], 0xff
mov byte [ebp - 0x5c], 0x59
mov byte [ebp - 0x5b], 0x5a
mov byte [ebp - 0x5a], 0x57
mov byte [ebp - 0x59], 0x55
mov byte [ebp - 0x58], 0x52
mov byte [ebp - 0x57], 0x58
mov byte [ebp - 0x56], 0x51
mov byte [ebp - 0x55], 0x54
mov byte [ebp - 0x54], 0x53
mov byte [ebp - 0x53], 0x50
mov byte [ebp - 0x52], 0x56
mov byte [ebp - 0x51], 0x46
mov byte [ebp - 0x50], 0x4f
mov byte [ebp - 0x4f], 0x42
mov byte [ebp - 0x4e], 0x4a
mov byte [ebp - 0x4d], 0x49
mov byte [ebp - 0x4c], 0x45
mov byte [ebp - 0x4b], 0x47
mov byte [ebp - 0x4a], 0x4b
mov byte [ebp - 0x49], 0x4c
mov byte [ebp - 0x48], 0x44
mov byte [ebp - 0x47], 0x4d
mov byte [ebp - 0x46], 0x4e
mov byte [ebp - 0x45], 0x48
mov byte [ebp - 0x44], 0x43
mov byte [ebp - 0x43], 0x41
xor edx, edx
mov dword [ebp - 0x40], edx
mov ecx, dword [ebp - 0x40]
cmp ecx, dword [ebp - 0x34]
jge 0x40a7e1
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x30]
movsx ecx, byte [edx + eax]
and ecx, 0xff
cmp ecx, 0x30
jl 0x40a75c
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x30]
movsx ecx, byte [edx + eax]
and ecx, 0xff
cmp ecx, 0x39
jg 0x40a75c
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x30]
mov cl, byte [edx + eax]
and cl, 0xff
mov eax, dword [ebp - 0x40]
mov byte [ebp + eax - 0x15c], cl
jmp 0x40a7d2
push 0x1a
mov edx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x30]
movsx eax, byte [ecx + edx]
and eax, 0xff
push eax
lea edx, [ebp - 0x3c]
push edx
call fcn.0046b734
add esp, 0xc
cmp dword [ebp - 0x38], 0x1a
jl 0x40a7c1
mov word [ebp - 0x18], 8
lea eax, [ebp - 4]
call fcn.004015a4
mov edx, eax
inc dword [ebp - 0xc]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x30]
movsx eax, byte [eax + ecx]
and eax, 0xff
call fcn.0045db6c
lea eax, [ebp - 4]
mov eax, dword [eax]
call fcn.00436bdc
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.0047274c
mov ecx, dword [ebp - 0x38]
mov al, byte [ebp + ecx - 0x5c]
mov edx, dword [ebp - 0x40]
mov byte [ebp + edx - 0x15c], al
inc dword [ebp - 0x40]
mov ecx, dword [ebp - 0x40]
cmp ecx, dword [ebp - 0x34]
jl 0x40a71a
mov eax, dword [ebp - 0x34]
mov byte [ebp + eax - 0x15c], 0
lea eax, [ebp - 0x15c]
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret
Function at 0x40e738
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x40e7c1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x47d514
push 0x101
call sub.WSOCK32.DLL_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x40e7ab
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00460270
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x40e7d8
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x47b99c]
mov dl, 1
mov eax, dword [0x40ddc4]
call fcn.00460ba8
call fcn.004657ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e7c8
lea eax, [ebp - 0x1c]
call fcn.00465cb0
ret
Function at 0x40ee54
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.0040ed78
mov cl, 1
mov edx, esi
mov eax, esi
mov bx, 0xffff
call fcn.00465230
push 0x10
lea eax, [esi + 0x18]
push eax
mov eax, dword [esi + 4]
push eax
call sub.WSOCK32.DLL_connect
mov edx, 0x40eeb8
call fcn.0040e680
mov byte [esi + 0x29], 0
test byte [esi + 0x28], 0x10
jne 0x40eeaa
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.00465230
pop esi
pop ebx
ret

Function at 0x40eedc
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.004660f4
push eax
call sub.WSOCK32.DLL_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00464d1c
test ebx, ebx
je 0x40ef27
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 0x40ef6c
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 0x40ef94
mov edx, edi
mov eax, esi
call fcn.0040eedc
mov dword [ebx + 4], eax
jmp 0x40efd1
cmp dword [ebp - 4], 0
je 0x40efad
mov eax, dword [ebp - 4]
call fcn.004660f4
push eax
call sub.WSOCK32.DLL_inet_addr
mov dword [ebx + 4], eax
jmp 0x40efd1
cmp byte [ebp + 0xc], 0
jne 0x40efba
xor eax, eax
mov dword [ebx + 4], eax
jmp 0x40efd1
mov ecx, dword [0x47b9a4]
mov dl, 1
mov eax, dword [0x40ddc4]
call fcn.00460b6c
call fcn.004657ac
cmp dword [ebp + 0x14], 0
je 0x40efed
mov edx, dword [ebp + 0x14]
mov eax, esi
call fcn.0040ef38
push eax
call sub.WSOCK32.DLL_htons
mov word [ebx + 2], ax
jmp 0x40effb
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 0x40f004
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 0x40f035
mov ecx, dword [0x47b9a8]
mov dl, 1
mov eax, dword [0x40ddc4]
call fcn.00460b6c
call fcn.004657ac
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 0x40f062
mov ecx, dword [0x47b9ac]
mov dl, 1
mov eax, dword [0x40ddc4]
call fcn.00460b6c
call fcn.004657ac
xor eax, eax
push ebp
push 0x40f0e6
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.00465230
cmp byte [ebp + 8], 0
je 0x40f0c0
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.0040ef6c
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0040edd4
jmp 0x40f0dc
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, esi
mov eax, dword [ebp - 4]
call fcn.0040e96c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40f103
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40f2c8
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.0040ebf8
xor edx, edx
push ebp
push 0x40f428
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 0x40f412
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x40f312
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x40f31c
call fcn.0046584c
jmp 0x40f42f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0045478c
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 0x40f407
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 0x40f3c5
call sub.WSOCK32.DLL_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x40f3b5
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xfffe
call fcn.00465230
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.0040f280
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x40f438]
cmp dl, byte [eax + 0x28]
je 0x40f40e
call fcn.00460a54
jmp 0x40f40e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0xc]
call fcn.0045479c
jmp 0x40f40e
cmp eax, ebx
jge 0x40f3de
mov edx, dword [ebp - 0xc]
add edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0045479c
jmp 0x40f31c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0045478c
mov ebx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004547a8
cmp ebx, eax
jne 0x40f31c
push ebp
call fcn.0040f280
pop ecx
jmp 0x40f40e
push ebp
call fcn.0040f280
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f42f
mov eax, dword [ebp - 4]
call fcn.0040ec04
ret
mov al, byte [ebp - 5]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40f480
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 0x40f5ca
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040ebf8
xor eax, eax
push ebp
push 0x40f5ad
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x40f4e5
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x40f4e5
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 0x40f597
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x40f4f8
call fcn.0046584c
jmp 0x40f5b4
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 0x40f597
call sub.WSOCK32.DLL_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x40f597
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov bx, 0xfffe
call fcn.00465230
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 0x40f597
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.00460270
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, 0x40f5e4
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x47b99c]
mov dl, 1
mov eax, dword [0x40ddc4]
call fcn.00460ba8
call fcn.004657ac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f5b4
mov eax, dword [ebp - 4]
call fcn.0040ec04
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f5d1
lea eax, [ebp - 0x28]
call fcn.00465cb0
ret

Function at 0x4107a8
Capabilities:
Get socket status

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ecx, edx
mov ebx, eax
mov eax, ecx
mov esi, 0x3e8
cdq
idiv esi
mov dword [esp], eax
mov eax, ecx
mov ecx, 0x3e8
cdq
idiv ecx
imul eax, edx, 0x3e8
mov dword [esp + 4], eax
lea eax, [esp + 8]
call fcn.0045b84c
lea edx, [esp + 8]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
call fcn.0045b83c
push esp
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
call sub.WSOCK32.DLL_select
test eax, eax
setg al
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x417a34
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.00465cb0
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.USER32.DLL_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x417a83
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.00465ee0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41e8b0
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 0x41e8b6
ret

Function at 0x420ca0
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 0x420cf1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x420cd8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x420cc8
jmp 0x420cf1
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 0x420cd9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x429450
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x47d738
cmp dword [edi], 0
jne 0x4294cc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x47d734]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4779bc
mov ecx, 2
call fcn.00464ac0
mov edx, 0x429428
lea eax, [esi + 5]
call fcn.00429448
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00429448
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 0x4294a1
mov dword [0x47d734], 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 0x4295e8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x429638]
test si, 4
je 0x4295fc
or bl, 1
test si, 8
je 0x429606
or bl, 4
test si, 1
je 0x429610
or bl, 8
test si, 2
je 0x42961a
or bl, 0x10
test si, 0x10
je 0x429624
or bl, 0x20
push 0x12
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x429633
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x42963c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x429674]
push 0x10
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x429655
or bl, 1
push 0x11
call sub.USER32.DLL_GetKeyState
test ax, ax
jge 0x429664
or bl, 4
test esi, 0x20000000
je 0x42966f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x42fbc4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x42fbd6
add esp, 0xfffffff0
call fcn.00465354
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00457ad0
mov eax, ebx
call fcn.0042ff10
push 0
call sub.USER32.DLL_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x450d7c]
call fcn.00465024
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x450d7c]
call fcn.00465024
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x450d7c]
call fcn.00465024
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x450d7c]
call fcn.00465024
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x450d7c]
call fcn.00465024
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, 0x42c6b4
push eax
push 0
push 0
mov eax, dword [0x47ba78]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41ddd8]
call fcn.0041f310
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x41ddd8]
call fcn.0041f310
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x41ddd8]
call fcn.0041f310
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.004302f0
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43020c
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43020c
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x43020c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x42fce5
call fcn.004653ac
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x42fff0
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 0x43019b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x43017c
mov dl, 1
mov eax, dword [0x451180]
call fcn.00465024
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00465cb0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.USER32.DLL_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x43016b
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.004462cc
test al, al
je 0x43015e
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, 0x4301ac
lea eax, [ebp - 0x254]
call fcn.0045e764
push eax
push reloc.WSOCK32.DLL_bind
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x43015e
xor eax, eax
push ebp
push 0x430157
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 0x4301e4
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x430140
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00465ee0
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 0x430140
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00465ee0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43015e
mov eax, dword [ebp - 0xc]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x430061
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.00454704
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 0x4301a2
lea eax, [ebp - 0x260]
call fcn.00465cb0
ret

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

Disassembly:
push ecx
mov eax, dword [0x47d728]
cmp byte [eax + 0x95], 0
jne 0x430a59
cmp dword [0x47d744], 0
jne 0x430a1a
call sub.KERNEL32.DLL_GetCurrentThreadId
push eax
push 0
mov eax, 0x4309a4
push eax
push 3
call sub.USER32.DLL_SetWindowsHookExA
mov dword [0x47d744], eax
cmp dword [0x47d740], 0
jne 0x430a35
push 0
push 0
push 0
push 0
call sub.KERNEL32.DLL_CreateEventA
mov dword [0x47d740], eax
cmp dword [0x47d748], 0
jne 0x430a59
push esp
push 0
push 0
push 0x430948
push 0x3e8
push 0
call sub.KERNEL32.DLL_CreateThread
mov dword [0x47d748], eax
pop edx
ret