joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48b870
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 dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, ebx
call fcn.004041b4
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404674
push eax
push edi
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
jne 0x48b917
xor eax, eax
push ebp
push 0x48b910
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00404800
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx]
call fcn.00404674
push eax
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404674
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x48b8f2
mov edx, dword [ebp - 8]
dec edx
mov eax, ebx
call fcn.00404800
jmp 0x48b8f9
mov eax, ebx
call fcn.004041b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b917
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4a5f90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a6111
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4dcee4], 0
jne 0x4a60ee
push 0x4dec6c
call sub.kernel32.dll_EnterCriticalSection_1
xor eax, eax
push ebp
push 0x4a60e7
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4dcee4], 0
jne 0x4a60cf
mov dword [ebp - 4], pe_nt_image_headers32
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404800
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.00404674
push eax
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.00408550
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea edx, [ebp - 0x14]
xor ecx, ecx
mov eax, 0x4a6128
call fcn.00409968
mov eax, dword [ebp - 0xc]
call fcn.00404674
push eax
push 0x80000000
call sub.advapi32.dll_RegQueryValueA
test eax, eax
jne 0x4a6050
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404800
jmp 0x4a6087
lea eax, [ebp - 8]
mov edx, 0x4a6148
call fcn.0040424c
xor eax, eax
push ebp
push 0x4a607d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.0048b958
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a6087
mov eax, dword [ebp - 8]
call fcn.00404674
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4dcee4], eax
cmp dword [0x4dcee4], 0
jne 0x4a60ba
mov ecx, dword [0x4dd3b8]
mov dl, 1
mov eax, dword [0x4078d4]
js 0x4a60ef
add al, ch
jae 0x4a611d
idiv bh
xor eax, eax
pop edx
pop ecx
pop ecx
Function at 0x4b1648
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
cmp byte [ebx + 0x87], 0
je 0x4b1683
cmp dword [ebx + 0x5c], 0
je 0x4b1683
mov eax, dword [ebx + 0x5c]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb8]
mov edx, eax
mov eax, esi
call fcn.004a9d2c
xor eax, eax
mov dword [ebx + 0x5c], eax
mov byte [ebx + 0x87], 0
cmp dword [ebx + 0x5c], 0
jne 0x4b17ce
cmp dword [ebx + 0x7c], 0
jne 0x4b16a9
mov dl, 1
mov eax, dword [0x41b0d0]
call fcn.004032ac
mov dword [ebx + 0x7c], eax
cmp dword [ebx + 0xc], 0
je 0x4b17a7
mov eax, dword [ebx + 0xc]
push eax
mov al, byte [0x4b17d4]
push eax
mov al, byte [0x4b17d8]
push eax
push 0
mov eax, dword [ebx + 0x7c]
push eax
mov eax, dword [0x4dd3e4]
push eax
mov ecx, dword [ebx + 0x68]
mov dl, 1
mov eax, dword [0x4a1fec]
call fcn.004a3e58
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x4b17a0
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebx + 0x5c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
push eax
mov eax, dword [ebx + 0x64]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
mov edx, eax
mov eax, esi
call fcn.004a9d2c
lea eax, [ebx + 0x10]
push eax
mov eax, dword [ebx + 0x5c]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xc0]
mov edx, eax
mov eax, esi
call fcn.004a9d2c
mov eax, dword [ebx + 0x40]
push eax
lea eax, [ebx + 0x70]
mov ecx, 1
mov edx, dword [0x4a75e8]
call fcn.00405694
add esp, 4
mov eax, dword [ebx + 0x30]
cmp eax, 0x1a
jge 0x4b1773
mov edx, dword [0x4dd660]
mov al, byte [edx + eax]
mov byte [ebx + 0x74], al
jmp 0x4b1784
cmp eax, 0x1007
jne 0x4b1780
mov byte [ebx + 0x74], 0x18
jmp 0x4b1784
mov byte [ebx + 0x74], 0
mov eax, dword [ebx + 0x40]
mov dword [ebx + 0x78], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b17ce
mov eax, dword [ebp - 4]
call fcn.004032dc
ret
lea eax, [ebx + 0x5c]
push eax
push 0
push 0
mov eax, dword [ebx + 0x64]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
mov edx, eax
mov eax, esi
call fcn.004a9d2c
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4b3b24
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 0x4b3bad
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4deca4
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x4b3b97
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040c240
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, 0x4b3bc4
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x4dd5ec]
mov dl, 1
mov eax, dword [0x4b3328]
call fcn.0040cb64
call fcn.00403b6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b3bb4
lea eax, [ebp - 0x1c]
call fcn.004041b4
ret

Function at 0x4b4260
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.004b4184
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004034d8
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x4b42c4
call fcn.004b3a6c
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x4b42b6
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004034d8
pop esi
pop ebx
ret

Function at 0x4b42e8
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00404674
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00402c84
test ebx, ebx
je 0x4b4333
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 0x4b4410
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 edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4b4441
mov ecx, dword [0x4dd490]
mov dl, 1
mov eax, dword [0x4b3328]
call fcn.0040cb28
call fcn.00403b6c
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 0x4b446e
mov ecx, dword [0x4dd3ec]
mov dl, 1
mov eax, dword [0x4b3328]
call fcn.0040cb28
call fcn.00403b6c
xor eax, eax
push ebp
push 0x4b44ea
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.004034d8
cmp byte [ebp + 8], 0
je 0x4b44c6
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, edi
mov eax, dword [ebp - 4]
call fcn.004b4378
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.004b4260
jmp 0x4b44e0
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, edi
mov eax, dword [ebp - 4]
call fcn.004b3d58
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b4507
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4b46cc
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004b4020
xor eax, eax
push ebp
push 0x4b483d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x4b4827
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x4b4717
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4b4721
call fcn.00403c18
jmp 0x4b4844
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041fd18
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 + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x4b481c
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
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x4b47cf
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x4b47bc
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004034d8
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.004b4684
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x4b4850]
cmp dl, byte [eax + 0x28]
je 0x4b4823
call fcn.0040ca4c
jmp 0x4b4823
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041fd38
jmp 0x4b4823
cmp ecx, ebx
jge 0x4b47eb
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041fd38
jmp 0x4b4721
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041fd18
cmp edx, dword [esp + 4]
jne 0x4b480b
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4b4721
push ebp
call fcn.004b4684
pop ecx
jmp 0x4b4823
push ebp
call fcn.004b4684
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b4844
mov eax, dword [ebp - 4]
call fcn.004b402c
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b4854
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 0x4b4976
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004b4020
xor eax, eax
push ebp
push 0x4b4959
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 0x4b48a4
call fcn.00403c18
jmp 0x4b4960
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 0x4b4943
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4b4943
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004034d8
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 0x4b4943
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c240
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, 0x4b4990
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4dd5ec]
mov dl, 1
mov eax, dword [0x4b3328]
call fcn.0040cb64
call fcn.00403b6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b4960
mov eax, dword [ebp - 4]
call fcn.004b402c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b497d
lea eax, [ebp - 0x28]
call fcn.004041b4
ret
Function at 0x4b49dc
Capabilities:
Receive data
Receive data on socket
Set socket configuration

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 0x4b4b26
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004b4020
xor eax, eax
push ebp
push 0x4b4b09
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x4b4a41
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4b4a41
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 0x4b4af3
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4b4a54
call fcn.00403c18
jmp 0x4b4b10
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 0x4b4af3
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4b4af3
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004034d8
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 0x4b4af3
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c240
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, 0x4b4b40
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4dd5ec]
mov dl, 1
mov eax, dword [0x4b3328]
call fcn.0040cb64
call fcn.00403b6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b4b10
mov eax, dword [ebp - 4]
call fcn.004b402c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b4b2d
lea eax, [ebp - 0x28]
call fcn.004041b4
ret
Function at 0x4b5dbc
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x13c], edx
mov dword [ebp - 0x128], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x14], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b5fc9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebp - 0xc]
call fcn.00405e6c
push eax
push 0x4b5fd8
push 1
push 0
mov eax, dword [0x4dd088]
push eax
call sub.ole32.dll_CoCreateInstance
mov esi, eax
mov eax, esi
call fcn.0041a890
test al, al
je 0x4b5e87
lea eax, [ebp - 4]
call fcn.00405e6c
push eax
push 0
push 0
mov eax, dword [0x4dd1f4]
push eax
push 1
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
call fcn.0048b748
jmp 0x4b5e6b
lea edx, [ebp - 0x128]
lea eax, [ebp - 0x24]
call fcn.0048b844
mov edx, dword [ebp - 0x128]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x24]
push eax
push 1
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
test eax, eax
je 0x4b5e50
jmp 0x4b5f88
lea eax, [ebp - 0x10]
push eax
push 0x4b5fe8
push 0x80000000
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
je 0x4b5f88
xor eax, eax
push ebp
push 0x4b5f81
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
jmp 0x4b5f4c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x124]
mov dword [ebp - 0x138], eax
mov byte [ebp - 0x134], 6
lea edx, [ebp - 0x13c]
mov eax, dword [0x4dd1f4]
call fcn.0048b7bc
mov eax, dword [ebp - 0x13c]
mov dword [ebp - 0x130], eax
mov byte [ebp - 0x12c], 0xb
lea edx, [ebp - 0x138]
mov ecx, 1
mov eax, 0x4b5ff8
call fcn.00409968
lea eax, [ebp - 0x144]
lea edx, [ebp - 0x124]
mov ecx, pe_nt_image_headers32
call fcn.00404424
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x138]
call fcn.0048b760
lea eax, [ebp - 0x138]
lea edx, [ebp - 0x140]
call fcn.0048b844
mov edx, dword [ebp - 0x140]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x38]
inc esi
push pe_nt_image_headers32
lea eax, [ebp - 0x124]
push eax
push esi
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegEnumKeyA
test eax, eax
je 0x4b5eb7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b5f88
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b5fd0
lea eax, [ebp - 0x144]
mov edx, 3
call fcn.004041d8
lea eax, [ebp - 0x128]
call fcn.004041b4
lea eax, [ebp - 0x14]
call fcn.004041b4
lea eax, [ebp - 0xc]
call fcn.00405e6c
lea eax, [ebp - 4]
call fcn.00405e6c
ret
Function at 0x4b6080
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor ebx, ebx
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push eax
push edi
push esi
call sub.advapi32.dll_RegEnumKeyA
test eax, eax
jne 0x4b60c1
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00404424
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b60cc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor ebx, ebx
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x108]
push eax
mov eax, edi
call fcn.00404674
push eax
push esi
call sub.advapi32.dll_RegQueryValueA
test eax, eax
jne 0x4b611a
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x108]
mov ecx, pe_nt_image_headers32
call fcn.00404424
mov bl, 1
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4be054
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
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 0x4be2b4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4be0b7
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004bdb1c
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040d470
cmp al, 1
jne 0x4be0b7
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004bde34
test al, al
je 0x4be243
cmp dword [ebp - 8], 0
jge 0x4be0d5
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.004bdb1c
mov eax, dword [ebp - 0x210]
call fcn.00404474
cmp ebx, eax
jge 0x4be11f
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004bdb1c
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4dd754]
and eax, 0xff
bt dword [edx], eax
jae 0x4be11f
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4be133
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004be030
cmp ebx, dword [ebp - 8]
je 0x4be235
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4be15f
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004034d8
and eax, 0x7f
movzx eax, word [eax*2 + 0x4dcf60]
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 + 0x23c], 1
xor eax, eax
push ebp
push 0x4be222
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004034d8
and eax, 0x7f
movzx eax, word [eax*2 + 0x4dcf60]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.00456b54
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004034d8
and eax, 0x7f
movzx eax, word [eax*2 + 0x4dcf60]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.00456b54
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4be229
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4be296
cmp dword [ebp - 8], 0
jge 0x4be24e
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004bdb1c
mov eax, dword [ebp - 0x218]
call fcn.00404474
cmp eax, dword [ebp - 8]
jg 0x4be288
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004bdb1c
mov eax, dword [ebp - 0x21c]
call fcn.00404474
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004be030
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4be2bb
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.004041d8
ret