joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5eb3c0
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 0x5eb3f1
mov ecx, dword [0x606cfc]
mov dl, 1
mov eax, dword [0x5e8980]
call fcn.0042d450
call fcn.00409944
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 0x5eb41e
mov ecx, dword [0x606c60]
mov dl, 1
mov eax, dword [0x5e8980]
call fcn.0042d450
call fcn.00409944
xor eax, eax
push ebp
push 0x5eb49a
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.00408858
cmp byte [ebp + 8], 0
je 0x5eb476
mov eax, dword [ebp + 0x10]
push eax
movzx eax, 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.005eb1dc
mov edi, dword [ebp - 4]
lea esi, [ebp - 0x18]
add edi, 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.005eabc8
jmp 0x5eb490
mov eax, dword [ebp + 0x10]
push eax
movzx eax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.005ea568
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5eb4b7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5eb6cc
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
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.005ea978
xor eax, eax
push ebp
push 0x5eb842
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 0x5eb82a
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x5eb718
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x5eb722
call fcn.00409a38
jmp 0x5eb849
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004b5f40
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 + 0x18]
mov ebx, eax
test ebx, ebx
jle 0x5eb81f
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 edi, eax
cmp edi, 0xffffffff
jne 0x5eb7d1
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x5eb7be
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00408858
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.005eb684
pop ecx
mov eax, dword [ebp - 4]
movzx edx, byte [0x5eb854]
cmp dl, byte [eax + 0x28]
je 0x5eb826
call fcn.0042d2e8
jmp 0x5eb826
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004b5f60
jmp 0x5eb826
cmp edi, ebx
jge 0x5eb7ed
mov eax, dword [ebp - 0xc]
add eax, edi
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004b5f60
jmp 0x5eb722
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx + 0xc]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004b5f40
cmp edx, dword [esp + 4]
jne 0x5eb80e
cmp eax, dword [esp]
pop edx
pop eax
jne 0x5eb722
push ebp
call fcn.005eb684
pop ecx
jmp 0x5eb826
push ebp
call fcn.005eb684
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5eb849
mov eax, dword [ebp - 4]
call fcn.005ea980
pop eax
jmp eax
movzx eax, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5eb888
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 0x5eb9b0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.005ea978
xor eax, eax
push ebp
push 0x5eb991
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 0x5eb8d8
call fcn.00409a38
jmp 0x5eb998
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 0x5eb979
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x5eb979
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00408858
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 0x5eb979
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.0042b3b8
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0x11
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x5eb9cc
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0x11
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x606e78]
mov dl, 1
mov eax, dword [0x5e8980]
call fcn.0042d524
call fcn.00409944
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5eb998
mov eax, dword [ebp - 4]
call fcn.005ea980
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5eb9b7
lea eax, [ebp - 0x28]
call fcn.0040a25c
pop eax
jmp eax
Function at 0x5eba1c
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5ebb93
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.005ea978
xor eax, eax
push ebp
push 0x5ebb74
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x5eba81
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x5eba81
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 0x5ebb5c
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x5eba94
call fcn.00409a38
jmp 0x5ebb7b
lea eax, [ebp - 0x10]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
test eax, eax
jne 0x5ebabb
cmp dword [ebp - 0x10], 0
jle 0x5ebabb
cmp ebx, dword [ebp - 0x10]
jle 0x5ebabb
mov ebx, dword [ebp - 0x10]
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 0x5ebb5c
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x5ebb5c
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00408858
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 0x5ebb5c
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.0042b3b8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0x11
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
mov eax, 0x5ebbb0
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0x11
lea eax, [ebp - 0x28]
push eax
push 2
mov ecx, dword [0x606e78]
mov dl, 1
mov eax, dword [0x5e8980]
call fcn.0042d524
call fcn.00409944
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ebb7b
mov eax, dword [ebp - 4]
call fcn.005ea980
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ebb9a
lea eax, [ebp - 0x2c]
call fcn.0040a25c
pop eax
jmp eax
Function at 0x5ed31c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x24]
mov edi, dword [ebx + 0x34]
sub edi, dword [ebx + 0x6c]
sub edi, dword [ebx + 0x64]
test edi, edi
jne 0x5ed346
cmp dword [ebx + 0x64], 0
jne 0x5ed346
cmp dword [ebx + 0x6c], 0
jne 0x5ed346
mov edi, esi
jmp 0x5ed3cd
cmp edi, 0xffffffff
jne 0x5ed34e
dec edi
jmp 0x5ed3cd
mov eax, dword [ebx + 0x24]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x64]
ja 0x5ed3cd
push esi
mov eax, dword [ebx + 0x30]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.005ec544
add esp, 0xc
sub dword [ebx + 0x68], esi
sub dword [ebx + 0x64], esi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x3c]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x5ed39b
mov cx, word [esp]
sub cx, si
jmp 0x5ed39d
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x5ed384
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x38]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x5ed3c3
mov cx, word [esp]
sub cx, si
jmp 0x5ed3c5
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x5ed3ac
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x5ed42a
mov edx, dword [ebx + 0x30]
mov ecx, edi
add edx, dword [ebx + 0x64]
mov eax, ebp
add edx, dword [ebx + 0x6c]
call fcn.005ed0b8
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x5ed415
mov eax, dword [ebx + 0x30]
mov edx, dword [ebx + 0x64]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x64]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x5ed42a
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x5ed326
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x5efe60
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
mov byte [ebp - 1], cl
mov esi, edx
mov ebx, eax
cmp bl, 0x90
jne 0x5efeb5
push 0x90
call sub.user32.dll_GetKeyState
and ax, 1
cmp al, 1
sbb ebx, ebx
inc ebx
lea eax, [ebp - 0x102]
push eax
call sub.user32.dll_GetKeyboardState
test bl, bl
je 0x5efea0
and byte [ebp - 0x72], 0xfe
jmp 0x5efea4
or byte [ebp - 0x72], 1
lea eax, [ebp - 0x102]
push eax
call sub.user32.dll_SetKeyboardState
jmp 0x5eff3c
push 0
movzx eax, bl
push eax
call sub.user32.dll_MapVirtualKeyW
and al, 0xff
mov byte [ebp - 2], al
test si, si
jbe 0x5eff3c
mov eax, ebx
movzx eax, al
bt dword [0x606891], eax
jae 0x5eff0a
mov eax, dword [ebp + 8]
push eax
mov ecx, 1
movzx edx, byte [ebp - 2]
mov eax, ebx
call fcn.005efe14
pop ecx
cmp byte [ebp - 1], 0
je 0x5eff37
mov eax, dword [ebp + 8]
push eax
mov ecx, 3
movzx edx, byte [ebp - 2]
mov eax, ebx
call fcn.005efe14
pop ecx
jmp 0x5eff37
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
movzx edx, byte [ebp - 2]
mov eax, ebx
call fcn.005efe14
pop ecx
cmp byte [ebp - 1], 0
je 0x5eff37
mov eax, dword [ebp + 8]
push eax
mov ecx, 2
movzx edx, byte [ebp - 2]
mov eax, ebx
call fcn.005efe14
pop ecx
dec si
jne 0x5efeca
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5eff44
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
push 0
movzx eax, bl
push eax
call sub.user32.dll_MapVirtualKeyW
and al, 0xff
mov edx, ebx
movzx edx, dl
bt dword [0x606891], edx
jae 0x5eff78
mov edx, dword [ebp + 8]
push edx
xor ecx, ecx
mov edx, eax
mov eax, ebx
call fcn.005efe14
pop ecx
pop ebx
pop ebp
ret
mov edx, dword [ebp + 8]
push edx
mov ecx, 2
mov edx, eax
mov eax, ebx
call fcn.005efe14
pop ecx
pop ebx
pop ebp
ret
Function at 0x5f16b4
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd88
xor ecx, ecx
mov dword [ebp - 0x278], ecx
mov dword [ebp - 0x274], ecx
mov dword [ebp - 0x270], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a350
xor eax, eax
push ebp
push 0x5f1820
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
call fcn.0040a25c
xor eax, eax
push ebp
push 0x5f17d6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x270]
mov ecx, 0x5f1838
mov edx, dword [ebp - 4]
call fcn.0040af6c
mov eax, dword [ebp - 0x270]
call fcn.0040ad04
push eax
call sub.kernel32.dll_FindFirstFileW
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x5f17bd
lea eax, [ebp - 8]
lea edx, [ebp - 0x240]
mov ecx, 0x104
call fcn.0040adb8
test byte [ebp - 0x26c], 0x10
je 0x5f1782
lea eax, [ebp - 0x274]
mov ecx, 0x5f184c
mov edx, dword [ebp - 8]
call fcn.0040af6c
mov edx, dword [ebp - 0x274]
lea eax, [ebp - 0x10]
call fcn.0040af14
jmp 0x5f17a3
lea eax, [ebp - 0x278]
mov ecx, 0x5f184c
mov edx, dword [ebp - 8]
call fcn.0040af6c
mov edx, dword [ebp - 0x278]
lea eax, [ebp - 0xc]
call fcn.0040af14
lea eax, [ebp - 0x26c]
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_FindNextFileW
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x5f1743
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5f17dd
mov eax, dword [ebp - 0x1c]
push eax
call sub.kernel32.dll_FindClose
pop eax
jmp eax

Function at 0x401ac4
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401b03
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401b03
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401b03
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401b03
cmp dword [ecx + 0x74], 0xe
jbe 0x401b03
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4029fc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004043d8
test esi, esi
jne 0x402a32
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004044c8
jmp 0x402a50
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402910
mov edi, eax
test esi, esi
je 0x402a50
cmp dword [ebx], 0
je 0x402a50
dec esi
jmp 0x402a39
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403478
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45700c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403510
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4034f0
xor eax, eax
push ebp
push 0x4034e9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40352c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4034f0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x45700c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45700c], ax
mov esp, ebp
pop ebp
ret

Function at 0x4041d8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x459048], 0
je 0x404239
cmp word [0x45921c], 0xd7b2
jne 0x404201
cmp dword [0x459224], 0
jbe 0x404201
mov eax, 0x459218
call dword [0x459234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x457054
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404260
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45701c], 0
jne 0x404255
push 0
push 0x457074
push 0x457054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40438c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402718
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x459049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404354
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x40b37c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b3b5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004044c8
jmp 0x40b3be
mov eax, ebx
mov edx, esi
call fcn.0040442c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b3c8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b3e9
mov al, byte [esp]
jmp 0x40b3eb
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40ba70
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40b8e8
mov eax, dword [0x457fa0]
cmp byte [eax], 0
je 0x40bad8
mov eax, dword [0x457df0]
call fcn.00402d94
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408b04
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40bb20
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40bb0e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x457dac]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x459714]
call fcn.00405c30
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40c824
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c888
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404640
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408780
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c88f
lea eax, [ebp - 0xc]
call fcn.004043d8
ret

Function at 0x41d9c4
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041d838
dec esi
jne 0x41d9e6
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x41eb10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x459a24
cmp dword [edi], 0
jne 0x41eb8c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x459a20]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x45759c
mov ecx, 2
call fcn.004028d0
mov edx, 0x41eae8
lea eax, [esi + 5]
call fcn.0041eb08
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041eb08
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 0x41eb61
mov dword [0x459a20], 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 0x41fd18
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 0x41fd1e
ret

Function at 0x422120
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 0x422171
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x422158
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x422148
jmp 0x422171
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 0x422159
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42a7d8
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x42a724
call sub.user32.dll_EnumWindows
ret

Function at 0x42a8fc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x42a979
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042a348
call sub.kernel32.dll_GetTickCount
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x42a921
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00429fa0
cmp dword [ebp - 4], 0
je 0x42a963
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404888
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a980
lea eax, [ebp - 4]
call fcn.004043d8
ret

Function at 0x42d66c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x459bac], 0
je 0x42d7bb
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x457f4c]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x42d7bb
mov eax, dword [0x459bb0]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x459bac]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x42d78a
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x459bac]
call fcn.00415b98
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42d782
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x42d782
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x42d782
mov eax, dword [ebp - 0x14]
call fcn.00436108
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42d782
push ebp
call fcn.0042d628
pop ecx
test al, al
jne 0x42d782
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x42d73e
mov eax, dword [ebp - 0x14]
call fcn.00434c9c
dec eax
jle 0x42d782
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.004037fc
cmp byte [ebp - 1], 0
je 0x42d782
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42d782
mov edx, dword [ebp - 0x14]
mov eax, dword [0x459bb0]
call fcn.0042cdf0
inc edi
dec ebx
jne 0x42d6d1
mov eax, dword [0x459bb0]
cmp dword [eax + 8], 0
jle 0x42d7a2
mov eax, dword [0x459bb0]
call fcn.0042ce80
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42d7bb
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042d490
pop ecx
test al, al
jne 0x42d7bb
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret