joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46560c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x465623
add esp, 0xfffffff0
call fcn.00403758
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00424f1c
mov eax, dword [0x4b2480]
cmp word [eax + 2], 0
jne 0x46564b
mov eax, dword [0x4b2480]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00466cfc
mov eax, dword [0x4b2598]
cmp word [eax + 2], 0
jne 0x465665
mov eax, dword [0x4b2598]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00466ef4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x419acc]
call fcn.004033c4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x419acc]
call fcn.004033c4
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x427a98]
call fcn.0042f198
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4657ec
mov eax, dword [0x4b22f8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042f568
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x467494
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4b22f8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040d718
test eax, eax
je 0x46575a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004091ec
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d740
test eax, eax
je 0x46576e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404494
mov eax, dword [0x4b2138]
cmp byte [eax], 0
jne 0x4657a2
mov eax, ebx
call fcn.00465914
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00467670
mov eax, ebx
call fcn.00468034
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4657e2
call fcn.004037b0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x465b94
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4b3be4]
cmp dword [eax + 0x30], 0
je 0x465c3e
cmp dword [ebx + 0x94], 0
jne 0x465c38
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x465b24
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x465c38
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x465bfe
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x465c38
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041c498
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x465c0d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4667a0
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4667d5
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404314
jmp 0x4667e2
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404278
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46784c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46788d
mov eax, esi
call fcn.0044dddc
test al, al
je 0x46788d
mov eax, dword [ebx + 0x84]
call fcn.0044dad8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46788d
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044dad8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x48b987
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x4b1f36
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x48b9df
movzx edx, word [ebp + 8]
mov dword [ebp - 8], edx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0xc]
push 0
push 0
push 0x4b1f57
push dword [ebp - 4]
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x48b9d5
mov bx, 0x2a04
push dword [ebp - 4]
call sub.advapi32.dll_RegCloseKey_1
jmp 0x48b9e3
mov bx, 0x2a04
mov eax, ebx
pop ebx
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x49a45c
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 0x49a4e5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4b3cd8
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x49a4cf
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040c048
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, 0x49a4fc
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x4b262c]
mov dl, 1
mov eax, dword [0x499c60]
call fcn.0040c96c
call fcn.00403bc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49a4ec
lea eax, [ebp - 0x1c]
call fcn.00404224
ret

Function at 0x49ab8c
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.0049aab0
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004035f0
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x49abf0
call fcn.0049a3a4
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x49abe2
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.004035f0
pop esi
pop ebx
ret

Function at 0x49ac14
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.004046e4
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00402d7c
test ebx, ebx
je 0x49ac5f
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 0x49ad3c
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 0x49ad6d
mov ecx, dword [0x4b24fc]
mov dl, 1
mov eax, dword [0x499c60]
call fcn.0040c930
call fcn.00403bc0
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 0x49ad9a
mov ecx, dword [0x4b246c]
mov dl, 1
mov eax, dword [0x499c60]
call fcn.0040c930
call fcn.00403bc0
xor eax, eax
push ebp
push 0x49ae16
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.004035f0
cmp byte [ebp + 8], 0
je 0x49adf2
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.0049aca4
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.0049ab8c
jmp 0x49ae0c
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.0049a690
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49ae33
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x49b014
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.0049a94c
xor eax, eax
push ebp
push 0x49b185
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 0x49b16f
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x49b05f
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x49b069
call fcn.00403c6c
jmp 0x49b18c
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041eaf4
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 0x49b164
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 0x49b117
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x49b104
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004035f0
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.0049afcc
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x49b198]
cmp dl, byte [eax + 0x28]
je 0x49b16b
call fcn.0040c854
jmp 0x49b16b
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0041eb14
jmp 0x49b16b
cmp ecx, ebx
jge 0x49b133
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.0041eb14
jmp 0x49b069
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.0041eaf4
cmp edx, dword [esp + 4]
jne 0x49b153
cmp eax, dword [esp]
pop edx
pop eax
jne 0x49b069
push ebp
call fcn.0049afcc
pop ecx
jmp 0x49b16b
push ebp
call fcn.0049afcc
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b18c
mov eax, dword [ebp - 4]
call fcn.0049a958
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49b19c
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 0x49b2be
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0049a94c
xor eax, eax
push ebp
push 0x49b2a1
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 0x49b1ec
call fcn.00403c6c
jmp 0x49b2a8
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 0x49b28b
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x49b28b
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004035f0
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 0x49b28b
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c048
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, 0x49b2d8
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4b262c]
mov dl, 1
mov eax, dword [0x499c60]
call fcn.0040c96c
call fcn.00403bc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b2a8
mov eax, dword [ebp - 4]
call fcn.0049a958
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b2c5
lea eax, [ebp - 0x28]
call fcn.00404224
ret
Function at 0x49b324
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 0x49b46e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0049a94c
xor eax, eax
push ebp
push 0x49b451
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x49b389
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x49b389
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 0x49b43b
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x49b39c
call fcn.00403c6c
jmp 0x49b458
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 0x49b43b
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x49b43b
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.004035f0
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 0x49b43b
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c048
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, 0x49b488
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4b262c]
mov dl, 1
mov eax, dword [0x499c60]
call fcn.0040c96c
call fcn.00403bc0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b458
mov eax, dword [ebp - 4]
call fcn.0049a958
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49b475
lea eax, [ebp - 0x28]
call fcn.00404224
ret
Function at 0x49c5dc
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 0x49c83c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x49c63f
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.0049c0a4
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040d278
cmp al, 1
jne 0x49c63f
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.0049c3bc
test al, al
je 0x49c7cb
cmp dword [ebp - 8], 0
jge 0x49c65d
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.0049c0a4
mov eax, dword [ebp - 0x210]
call fcn.004044e4
cmp ebx, eax
jge 0x49c6a7
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.0049c0a4
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4b2784]
and eax, 0xff
bt dword [edx], eax
jae 0x49c6a7
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x49c6bb
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0049c5b8
cmp ebx, dword [ebp - 8]
je 0x49c7bd
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 0x49c6e7
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004035f0
and eax, 0x7f
movzx eax, word [eax*2 + 0x4b20ec]
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 0x49c7aa
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004035f0
and eax, 0x7f
movzx eax, word [eax*2 + 0x4b20ec]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0044dad8
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.004035f0
and eax, 0x7f
movzx eax, word [eax*2 + 0x4b20ec]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0044dad8
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c7b1
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 0x49c81e
cmp dword [ebp - 8], 0
jge 0x49c7d6
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.0049c0a4
mov eax, dword [ebp - 0x218]
call fcn.004044e4
cmp eax, dword [ebp - 8]
jg 0x49c810
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.0049c0a4
mov eax, dword [ebp - 0x21c]
call fcn.004044e4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0049c5b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c843
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404248
ret
Function at 0x4a79c4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x4a79fc]
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4a79da
or bl, 1
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4a79e9
or bl, 4
push 0x12
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4a79f8
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x4a8d2c
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x4b2568]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4a8d52
push 0
mov eax, dword [0x4b2568]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x4ac1c8
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4ac279
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x4368e0]
call fcn.004369e0
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4ac25c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 8]
call fcn.00436a80
xor ecx, ecx
mov edx, 0x4ac290
mov eax, dword [ebp - 8]
call fcn.00436ae4
test al, al
je 0x4ac23e
lea ecx, [ebp - 0xc]
mov edx, 0x4ac2c8
mov eax, dword [ebp - 8]
call fcn.00436cac
cmp dword [ebp - 0xc], 0
je 0x4ac23a
mov byte [ebp - 1], 1
jmp 0x4ac23e
mov byte [ebp - 1], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ac263
mov eax, dword [ebp - 8]
call fcn.00436a50
mov eax, dword [ebp - 8]
call fcn.004033f4
ret
Function at 0x401ed0
Capabilities:
Read data from internet
Receive data

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [ecx + 0xc]
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 8]
push edx
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x401ef3
or eax, 0xffffffff
ret 8
mov eax, dword [esp + 8]
ret 8

Function at 0x402c70
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0x40d164
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402cdb
push ebx
push edi
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x402ca3
mov ecx, dword [edi]
push 0
push ecx
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push esi
push edx
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov ebx, eax
test edi, edi
je 0x402ccb
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
add esp, 4
mov dword [edi], eax
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, ebx
pop edi
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4044f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0x10]
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
mov edi, ecx
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
mov eax, dword [edi + 4]
push ebx
push ecx
push 0
push edx
push eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x404540
mov ecx, dword [edi + 8]
mov edx, dword [ebx]
push eax
push ecx
push edx
call fcn.00402880
add esp, 0xc
mov dword [ebx], eax
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 8
ret 8

Function at 0x404550
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov esi, ecx
test edi, edi
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x400
je 0x404577
mov eax, dword [edi]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 4]
push ebp
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test edi, edi
mov ebx, eax
je 0x4045a3
mov edx, dword [esp + 0x10]
mov dword [edi], edx
test ebx, ebx
jne 0x4045bf
mov eax, dword [esi + 8]
test eax, eax
je 0x4045bf
mov eax, dword [edi]
mov cl, byte [esi + 8]
push eax
push ecx
push ebx
push ebp
call fcn.00402900
add esp, 0x10
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x4045d0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
push 0
mov eax, dword [esi + 8]
push eax
push ecx
call fcn.00402880
mov ecx, dword [esi + 4]
add esp, 0xc
lea edx, [esp + 8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xc]
push 4
push edx
push 4
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 8

Function at 0x404610
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [esi + 8]
test eax, eax
je 0x40462d
push 0
push eax
push 1
push edi
call fcn.00402900
add esp, 0x10
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x10]
mov edx, dword [esi + 4]
inc eax
push eax
push edi
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 8