joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46c6bc
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd98
push ebx
xor edx, edx
mov dword [ebp - 0x268], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46c887
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46c865
mov dl, 1
mov eax, dword [0x41d0dc]
call fcn.00403444
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404348
lea eax, [ebp - 0x11c]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
dec eax
test eax, eax
jl 0x46c84e
inc eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x11c]
call fcn.00456b10
test al, al
je 0x46c842
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x11c]
mov dword [ebp - 0x264], eax
mov byte [ebp - 0x260], 0
lea ecx, [ebp - 0x264]
mov edx, 0x46c898
lea eax, [ebp - 0x25c]
call fcn.0040a530
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46c842
xor eax, eax
push ebp
push 0x46c83b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14], pe_nt_image_headers32
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x21c]
push eax
push 0
push 0
push 0x46c8d0
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46c824
lea eax, [ebp - 0x268]
lea edx, [ebp - 0x21c]
mov ecx, pe_nt_image_headers32
call fcn.004045b8
mov edx, dword [ebp - 0x268]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + eax*4 - 0x11c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x10]
mov eax, dword [ebp + eax*4 - 0x11c]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x46c824
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x21c]
mov ecx, pe_nt_image_headers32
call fcn.004045b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c842
mov eax, dword [ebp - 0x18]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
inc dword [ebp - 0x10]
dec dword [ebp - 0x1c]
jne 0x46c731
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov dl, 1
call fcn.004223a4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46c88e
lea eax, [ebp - 0x268]
call fcn.00404348
ret
Function at 0x46d3c0
Capabilities:
Create thread
Set global application hook

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4f8bc0]
cmp byte [eax + 0xa5], 0
jne 0x46d437
cmp dword [0x4f8bd8], 0
jne 0x46d3f5
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46d37c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4f8bd8], eax
cmp dword [0x4f8bd4], 0
jne 0x46d410
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4f8bd4], eax
cmp dword [0x4f8bdc], 0
jne 0x46d437
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x46d31c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4f8bdc], eax
pop ecx
pop ebp
ret

Function at 0x46d500
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
call fcn.0046d498
mov byte [ebp - 9], al
cmp byte [ebp - 9], 0
je 0x46d521
xor eax, eax
call fcn.0046d4d0
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_ShowWindow
cmp byte [ebp - 9], 0
je 0x46d53b
mov al, 1
call fcn.0046d4d0
mov esp, ebp
pop ebp
ret

Function at 0x46dc00
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [0x4f8bc0]
cmp dword [eax + 0x30], 0
je 0x46dcca
mov eax, dword [ebp - 4]
cmp dword [eax + 0x94], 0
jne 0x46dcc1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x14], eax
mov al, byte [ebp - 5]
mov byte [ebp - 0x10], al
lea eax, [ebp - 0x14]
push eax
push 0x46db80
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
cmp dword [eax + 8], 0
je 0x46dcc1
push 3
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_GetWindow
mov dword [ebp - 0x14], eax
push 0xffffffffffffffec
mov eax, dword [ebp - 0x14]
push eax
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x46dc7b
mov dword [ebp - 0x14], 0xfffffffe
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
mov eax, dword [eax + 8]
dec eax
cmp eax, 0
jl 0x46dcc1
mov dword [ebp - 0xc], eax
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x90]
call fcn.0041f5d0
push eax
call sub.user32.dll_SetWindowPos
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0xffffffff
jne 0x46dc90
mov eax, dword [ebp - 4]
inc dword [eax + 0x94]
mov esp, ebp
pop ebp
ret

Function at 0x46e9e4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0xa4], 0
je 0x46ea29
push pe_nt_image_headers32
lea eax, [ebp - 0x108]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
lea edx, [ebp - 0x108]
mov eax, dword [ebp - 8]
call fcn.00404438
jmp 0x46ea3a
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x8c]
call fcn.0040439c
mov esp, ebp
pop ebp
ret
Function at 0x46febc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x84], 0
je 0x46ff0f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.00450ed4
test al, al
je 0x46ff0f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.00450a04
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46ff0f
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x84]
call fcn.00450a04
push eax
call sub.user32.dll_ShowWindow
pop ecx
pop ebp
ret

Function at 0x48b9c4
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
mov edx, dword [0x41c00c]
call fcn.00404e28
xor eax, eax
push ebp
push 0x48bb17
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4f6a30], 0
jne 0x48ba1a
mov ecx, dword [0x4f7708]
mov dl, 1
mov eax, dword [0x407ea8]
call fcn.0040dc5c
call fcn.00403cc4
lea eax, [ebp - 0x30]
xor ecx, ecx
mov edx, 0x10
call fcn.00402df4
mov eax, dword [ebp - 4]
call fcn.00404be0
mov dword [ebp - 0x2c], eax
mov esi, 0x48bb28
lea edi, [ebp - 0x40]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x1c]
call fcn.004061e8
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
call fcn.00404bf0
test eax, eax
jle 0x48bab5
mov dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x50]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x48baac
lea eax, [ebp - 0x54]
mov edx, dword [ebp - 4]
call fcn.004045d0
mov eax, dword [ebp - 0x54]
push eax
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x50]
mov ecx, 0x10
call fcn.004045b8
mov eax, dword [ebp - 0x58]
pop edx
call fcn.00408e60
test eax, eax
jne 0x48baac
mov dword [ebp - 0x10], 0x15
jmp 0x48babc
mov dword [ebp - 0x10], 0x10
jmp 0x48babc
mov dword [ebp - 0x10], 0x15
lea eax, [ebp - 0x20]
push eax
push 1
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
call dword [0x4f6a30]
call fcn.0048b8f4
mov eax, dword [ebp - 0x18]
call fcn.0048b8f4
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x1c]
call fcn.00406200
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48bb1e
lea eax, [ebp - 0x58]
mov edx, 2
call fcn.0040436c
lea eax, [ebp - 0x20]
mov edx, dword [0x41c00c]
call fcn.00404ef8
ret

Function at 0x4a5758
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff68
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [ebp - 0x88], 2
jne 0x4a578f
cmp dword [ebp - 0x94], 5
jb 0x4a578f
mov byte [ebp - 1], 1
jmp 0x4a5793
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret
Function at 0x4bd790
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4bd805
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, 0x104
call fcn.00404994
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00404808
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00404608
push eax
call sub.kernel32.dll_GetTempPathA
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.00404994
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004bd664
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bd80c
lea eax, [ebp - 0xc]
call fcn.00404348
ret

Function at 0x4c4fd0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c511c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004206fc
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 2
jne 0x4c504e
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x4c504e
lea ecx, [ebp - 0x20]
xor edx, edx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.00408be4
mov edx, dword [ebp - 0x1c]
mov ebx, dword [0x4f7798]
mov ebx, dword [ebx]
mov eax, 0x4c5134
call ebx
dec eax
jne 0x4c504e
mov dword [ebp - 0x10], 1
jmp 0x4c5053
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
pop edx
sub eax, edx
jl 0x4c5101
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], edx
lea ecx, [ebp - 0x24]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x24]
call fcn.004c4a18
test al, al
jne 0x4c50f5
mov eax, dword [ebp - 4]
call fcn.004c4fb4
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
add eax, 0x1c
call fcn.0040439c
xor eax, eax
push ebp
push 0x4c50e3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 0
je 0x4c50d9
mov eax, dword [ebp - 4]
mov dl, byte [eax + 0x30]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004c540c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c50f5
inc dword [ebp - 0xc]
dec dword [ebp - 0x18]
jne 0x4c5070
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c5123
lea eax, [ebp - 0x28]
mov edx, 4
call fcn.0040436c
ret
Function at 0x4c91e0
Capabilities:
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
test dl, dl
je 0x4c91f8
add esp, 0xfffffff0
call fcn.00403798
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x4c9325
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, ebx
call fcn.00427450
mov byte [ebx + 0xa18], 0
mov eax, 0x400
call fcn.004027e0
mov dword [ebx + 0x86c], eax
push ebx
push 0x4c9aa4
call fcn.00463f8c
mov dword [ebx + 0x864], eax
mov dword [ebx + 0xa10], 1
mov byte [ebx + 0x870], 0
push 0x4c934c
push 0
push 0xffffffffffffffff
push 0
call sub.kernel32.dll_CreateEventA
mov dword [ebx + 0xa50], eax
mov ecx, 0x4c9358
mov dl, 8
mov eax, ebx
call fcn.004c9a24
lea eax, [ebx + 0x874]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x4c92f5
xor eax, eax
push ebp
push 0x4c92df
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov dword [ebx + 0xa54], esi
inc esi
jne 0x4c92b8
lea ecx, [ebp - 8]
mov dx, 0x2733
mov eax, ebx
call fcn.004c9860
push 4
push 0x4c9370
push 0xff7f
push 0xffff
mov eax, dword [ebx + 0xa54]
push eax
call sub.wsock32.dll_setsockopt
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c9303
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, ebx
call fcn.004c9860
mov byte [ebx + 0xa18], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c932c
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0040436c
ret

Function at 0x4c93c4
Capabilities:
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4c9498
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0xa54]
test eax, eax
je 0x4c93f3
push eax
call sub.wsock32.dll_closesocket
call sub.wsock32.dll_WSACleanup
lea eax, [ebx + 0x874]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x4c945f
xor eax, eax
push ebp
push 0x4c9449
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov dword [ebx + 0xa54], esi
inc esi
jne 0x4c943f
lea ecx, [ebp - 8]
mov dx, 0x2733
mov eax, ebx
call fcn.004c9860
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c946d
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, ebx
call fcn.004c9860
mov eax, dword [ebp - 4]
mov dword [ebx + 0x840], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c949f
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0040436c
ret
Function at 0x4c96a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffff7fc
mov esi, edx
mov ebx, eax
xor edi, edi
jmp 0x4c9722
test edi, edi
jle 0x4c96cd
mov ecx, 0x4c981c
mov dl, 1
mov eax, dword [0x407ea8]
call fcn.0040db84
call fcn.00403cc4
jmp 0x4c9722
cmp word [ebx + 0xa42], 0
jne 0x4c96ef
mov ecx, 0x4c981c
mov dl, 1
mov eax, dword [0x407ea8]
call fcn.0040db84
call fcn.00403cc4
jmp 0x4c9722
mov byte [esp], 0
mov edx, esp
mov ecx, esi
mov eax, dword [ebx + 0xa44]
call dword [ebx + 0xa40]
cmp byte [esp], 0
jne 0x4c9721
mov ecx, 0x4c981c
mov dl, 1
mov eax, dword [0x407ea8]
call fcn.0040db84
call fcn.00403cc4
jmp 0x4c9722
inc edi
mov eax, esi
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x4c9730
cmp eax, 0
je 0x4c96b1
mov byte [ebx + 0x870], 0
mov eax, ebx
call fcn.004c9534
cmp dword [ebx + 0x848], 0
jne 0x4c9763
mov ecx, 0x4c9834
mov dl, 1
mov eax, dword [0x4c8db4]
call fcn.0040db84
call fcn.00403cc4
mov ecx, 0x4c9850
mov dl, 2
mov eax, ebx
call fcn.004c9a24
mov word [ebx + 0x844], 2
mov ax, word [ebx + 0x83c]
push eax
call sub.wsock32.dll_htons
mov word [ebx + 0x846], ax
mov edi, 0x10
push 0
push 0
mov eax, esi
call fcn.0042251c
mov eax, esi
mov edx, dword [eax]
call dword [edx]
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x4c97b2
call fcn.004033b4
mov ecx, eax
lea edx, [esp + 1]
mov eax, esi
call fcn.00422750
push edi
lea eax, [ebx + 0x844]
push eax
push 0
mov eax, esi
mov edx, dword [eax]
call dword [edx]
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x4c97dd
call fcn.004033b4
push eax
lea eax, [esp + 0x11]
push eax
mov eax, dword [ebx + 0xa54]
push eax
call sub.wsock32.dll_sendto
cmp word [ebx + 0xa32], 0
je 0x4c9807
mov edx, ebx
mov eax, dword [ebx + 0xa34]
call dword [ebx + 0xa30]
add esp, 0x804
pop edi
pop esi
pop ebx
ret

Function at 0x4c9b18
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4c9bec
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x800
lea eax, [ebx + 0x30]
push eax
mov eax, dword [ebx + 0xa54]
push eax
call sub.wsock32.dll_recvfrom
mov dword [ebx + 0x834], eax
cmp word [ebx + 0xa2a], 0
je 0x4c9bd6
lea eax, [ebp - 8]
push eax
xor eax, eax
mov al, byte [ebp - 0x14]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
xor eax, eax
mov al, byte [ebp - 0x13]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
xor eax, eax
mov al, byte [ebp - 0x12]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
xor eax, eax
mov al, byte [ebp - 0x11]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x38]
mov ecx, 3
mov eax, 0x4c9c00
call fcn.0040a5e4
mov ax, word [ebp - 0x16]
push eax
call sub.wsock32.dll_ntohs
mov edx, dword [ebp - 8]
push edx
movzx eax, ax
push eax
mov ecx, dword [ebx + 0x834]
mov edx, ebx
mov eax, dword [ebx + 0xa2c]
call dword [ebx + 0xa28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c9bf3
lea eax, [ebp - 8]
call fcn.00404348
ret
Function at 0x4e2290
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
xor ebx, ebx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x114], ebx
test dl, dl
je 0x4e22b4
add esp, 0xfffffff0
call fcn.00403798
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4e23d0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4dd6dc]
push eax
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.00420b9c
mov dl, 1
mov eax, dword [0x43c620]
call fcn.0043c778
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4e23ab
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.0043c858
mov edx, 0x4e2400
mov eax, dword [ebp - 0xc]
call fcn.0043ca44
lea ecx, [ebp - 0x114]
mov edx, 0x4e2434
mov eax, dword [ebp - 0xc]
call fcn.0043ccb4
mov edx, dword [ebp - 0x114]
mov eax, dword [ebp - 4]
add eax, 0x1c
call fcn.0040439c
lea ecx, [ebp - 0x118]
mov edx, 0x4e244c
mov eax, dword [ebp - 0xc]
call fcn.0043ccb4
mov edx, dword [ebp - 0x118]
mov eax, dword [ebp - 4]
add eax, 0x20
call fcn.0040439c
mov eax, dword [ebp - 0xc]
call fcn.0043c80c
mov eax, dword [ebp - 4]
cmp dword [eax + 0x1c], 0
jne 0x4e2395
mov dword [ebp - 0x10], 0xff
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x110]
push eax
call sub.advapi32.dll_GetUserNameA
mov eax, dword [ebp - 4]
add eax, 0x1c
lea edx, [ebp - 0x110]
mov ecx, pe_nt_image_headers32
call fcn.004045b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e23b2
mov eax, dword [ebp - 0xc]
call fcn.00403474
ret
Function at 0x4e6168
Capabilities:
Log keystrokes via application hook

Disassembly:
cmp dword [0x4f968c], 0
jne 0x4e618a
push 0
mov eax, dword [0x4f8668]
push eax
push 0x4e609c
push 0xd
call sub.user32.dll_SetWindowsHookExW
mov dword [0x4f968c], eax
ret

Function at 0x4e85b4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x140], ecx
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x144], ecx
mov dword [ebp - 0x130], ecx
mov dword [ebp - 0x13c], ecx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004047f8
lea edi, [ebp - 0x12c]
xor eax, eax
push ebp
push 0x4e872e
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
xor edx, edx
mov eax, 2
call fcn.004b92b8
mov ebx, eax
mov dword [edi], 0x128
mov edx, edi
mov eax, ebx
call fcn.004b92ec
cmp eax, 1
sbb eax, eax
inc eax
jmp 0x4e86fa
lea eax, [ebp - 0x138]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004045b8
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.00409c50
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
call fcn.00408be4
mov eax, dword [ebp - 0x130]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 4]
call fcn.00408be4
mov edx, dword [ebp - 0x13c]
pop eax
call fcn.00404754
je 0x4e86d4
lea eax, [ebp - 0x144]
lea edx, [edi + 0x24]
mov ecx, 0x104
call fcn.004045b8
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.00408be4
mov eax, dword [ebp - 0x140]
push eax
lea edx, [ebp - 0x148]
mov eax, dword [ebp - 4]
call fcn.00408be4
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00404754
jne 0x4e86eb
push 0
mov eax, dword [edi + 8]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov esi, eax
mov edx, edi
mov eax, ebx
call fcn.004b9320
cmp eax, 1
sbb eax, eax
inc eax
test al, al
jne 0x4e8635
push ebx
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e8735
lea eax, [ebp - 0x148]
mov edx, 7
call fcn.0040436c
lea eax, [ebp - 4]
call fcn.00404348
ret
Function at 0x4e8740
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, eax
push esi
call sub.user32.dll_IsIconic
test eax, eax
je 0x4e875d
push 9
push esi
call sub.user32.dll_ShowWindow
call sub.user32.dll_GetForegroundWindow
cmp esi, eax
jne 0x4e876d
mov bl, 1
jmp 0x4e885f
mov eax, dword [0x4f7efc]
cmp dword [eax], 2
jne 0x4e8781
mov eax, dword [0x4f7964]
cmp dword [eax], 4
jg 0x4e87b5
mov eax, dword [0x4f7efc]
cmp dword [eax], 1
jne 0x4e8849
mov eax, dword [0x4f7964]
cmp dword [eax], 4
jg 0x4e87b5
mov eax, dword [0x4f7964]
cmp dword [eax], 4
jne 0x4e8849
mov eax, dword [0x4f7d00]
cmp dword [eax], 0
jle 0x4e8849
xor ebx, ebx
push 0
call sub.user32.dll_GetForegroundWindow
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov edi, eax
push 0
push esi
call sub.user32.dll_GetWindowThreadProcessId
mov dword [ebp - 4], eax
push 0xffffffffffffffff
push edi
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_AttachThreadInput
test eax, eax
je 0x4e8803
push esi
call sub.user32.dll_BringWindowToTop
push esi
call sub.user32.dll_SetForegroundWindow
push 0
push edi
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_AttachThreadInput
call sub.user32.dll_GetForegroundWindow
cmp esi, eax
sete bl
test bl, bl
jne 0x4e8855
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x2000
call sub.user32.dll_SystemParametersInfoA
push 2
push 0
push 0
push 0x2001
call sub.user32.dll_SystemParametersInfoA
push esi
call sub.user32.dll_BringWindowToTop
push esi
call sub.user32.dll_SetForegroundWindow
push 2
mov eax, dword [ebp - 8]
push eax
push 0
push 0x2001
call sub.user32.dll_SystemParametersInfoA
jmp 0x4e8855
push esi
call sub.user32.dll_BringWindowToTop
push esi
call sub.user32.dll_SetForegroundWindow
call sub.user32.dll_GetForegroundWindow
cmp esi, eax
sete bl
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret