joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4cace4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x54c950]
cmp byte [eax + 0xc], 0
je 0x4cae51
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4cae4a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x54db28], 0
jne 0x4cad38
push 0x4cae58
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4cae60
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x54db28], eax
cmp dword [0x549cb8], 0
jne 0x4cae33
push 0x4cae70
call sub.kernel32.dll_LoadLibraryA
mov dword [0x549cb8], eax
cmp dword [0x549cb8], 0
je 0x4cae33
push 0x4cae7c
mov eax, dword [0x549cb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x54db2c], eax
push 0x4cae8c
mov eax, dword [0x549cb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x54db30], eax
push 0x4caea0
mov eax, dword [0x549cb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x54db34], eax
push 0x4caeb8
mov eax, dword [0x549cb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x54db38], eax
push 0x4caed0
mov eax, dword [0x549cb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x54db3c], eax
push 0x4caee4
mov eax, dword [0x549cb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x54db40], eax
push 0x4caefc
mov eax, dword [0x549cb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x54db44], eax
push 0x4caf14
mov eax, dword [0x549cb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x54db48], eax
push 0x4caf30
mov eax, dword [0x549cb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x54db4c], eax
push 0x4caf3c
mov eax, dword [0x549cb8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x54db50], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cae51
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x4cf1d8
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.00484a08
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4cf227
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00484c88
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d6a00
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4d6a50]
test si, 4
je 0x4d6a14
or bl, 1
test si, 8
je 0x4d6a1e
or bl, 4
test si, 1
je 0x4d6a28
or bl, 8
test si, 2
je 0x4d6a32
or bl, 0x10
test si, 0x10
je 0x4d6a3c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4d6a4b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x4d6a54
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x4d6a8c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4d6a6d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4d6a7c
or bl, 4
test esi, 0x20000000
je 0x4d6a87
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4dd168
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4dd17a
add esp, 0xfffffff0
call fcn.00483fb4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0049e958
mov eax, dword [0x54c424]
mov dword [eax + 4], ebx
mov dword [eax], 0x4dd50c
mov eax, dword [0x54c430]
mov dword [eax + 4], ebx
mov dword [eax], 0x4dd518
mov eax, ebx
call fcn.004dd524
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x496060]
call fcn.00483c4c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x496060]
call fcn.00483c4c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x496060]
call fcn.00483c4c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x496060]
call fcn.00483c4c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x496060]
call fcn.00483c4c
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x4d993c
push eax
push 0
push 0
mov eax, dword [0x54c60c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4a0438]
call fcn.004a1bd0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4a0438]
call fcn.004a1bd0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4a0438]
call fcn.004a1bd0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004dd998
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4dd860
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4dd860
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4dd860
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4dd2b7
call fcn.0048400c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4dd620
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd9c
push ebx
xor edx, edx
mov dword [ebp - 0x264], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4dd7f0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x4dd7d1
mov dl, 1
mov eax, dword [0x496608]
call fcn.00483c4c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00484a08
lea eax, [ebp - 0x118]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
mov ebx, eax
call sub.kernel32.dll_GetSystemDefaultLangID
movzx eax, ax
mov dword [ebp - 0x10], eax
dec ebx
test ebx, ebx
jl 0x4dd7c0
inc ebx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x118]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
call fcn.004cb044
test al, al
jne 0x4dd6bd
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4dd7b3
xor edx, edx
push ebp
push 0x4dd7ac
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4dd6dd
mov ebx, dword [ebp - 0x10]
jmp 0x4dd6df
mov ebx, eax
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov dword [ebp - 0x260], ebx
mov byte [ebp - 0x25c], 0
lea ecx, [ebp - 0x260]
mov edx, 0x4dd800
lea eax, [ebp - 0x258]
call fcn.00489db0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4dd795
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x4dd838
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4dd795
lea eax, [ebp - 0x264]
lea edx, [ebp - 0x218]
mov ecx, pe_nt_image_headers32
call fcn.00484c88
mov edx, dword [ebp - 0x264]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4dd795
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x218]
mov ecx, pe_nt_image_headers32
call fcn.00484c88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dd7b3
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x18], 4
dec dword [ebp - 0x14]
jne 0x4dd69e
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0049aa44
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dd7f7
lea eax, [ebp - 0x264]
call fcn.00484a08
ret
Function at 0x4de138
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x54db74]
cmp byte [eax + 0xa5], 0
jne 0x4de1a9
cmp dword [0x54db8c], 0
jne 0x4de16a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4de0f4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x54db8c], eax
cmp dword [0x54db88], 0
jne 0x4de185
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x54db88], eax
cmp dword [0x54db90], 0
jne 0x4de1a9
push esp
push 0
push 0
push 0x4de098
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x54db90], eax
pop edx
ret

Function at 0x4de83c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x54db74]
cmp dword [eax + 0x30], 0
je 0x4de8e6
cmp dword [ebx + 0x94], 0
jne 0x4de8e0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4de7cc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4de8e0
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 0x4de8a6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4de8e0
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.004985c0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4de8b5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4df444
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 0x4df479
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.00484af8
jmp 0x4df486
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00484a5c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4e05a8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4e05e9
mov eax, esi
call fcn.004c65dc
test al, al
je 0x4e05e9
mov eax, dword [ebx + 0x84]
call fcn.004c62d8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4e05e9
push 0
mov eax, dword [ebx + 0x84]
call fcn.004c62d8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4e61a0
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 0x4e6229
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x54dc18
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x4e6213
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0048c15c
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, 0x4e6240
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x54c7c4]
mov dl, 1
mov eax, dword [0x4e59a4]
call fcn.0048ca9c
call fcn.0048441c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e6230
lea eax, [ebp - 0x1c]
call fcn.00484a08
ret

Function at 0x4e68dc
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.004e6800
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00483e84
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x4e6940
call fcn.004e60e8
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x4e6932
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.00483e84
pop esi
pop ebx
ret

Function at 0x4e6964
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff4
mov ebx, edx
mov eax, ebx
call fcn.00484ed8
push eax
call sub.wsock32.dll_gethostbyname
mov dword [esp + 4], eax
lea eax, [esp + 8]
xor ecx, ecx
mov edx, 4
call fcn.0048354c
cmp dword [esp + 4], 0
je 0x4e69b6
mov eax, dword [esp + 4]
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 8], cl
mov cl, byte [edx + 1]
mov byte [esp + 9], cl
mov cl, byte [edx + 2]
mov byte [esp + 0xa], cl
mov al, byte [edx + 3]
mov byte [esp + 0xb], al
mov eax, dword [esp + 8]
mov dword [esp], eax
mov eax, dword [esp]
add esp, 0xc
pop ebx
ret
Function at 0x4e6a9c
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 0x4e6acd
mov ecx, dword [0x54c680]
mov dl, 1
mov eax, dword [0x4e59a4]
call fcn.0048ca60
call fcn.0048441c
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 0x4e6afa
mov ecx, dword [0x54c5e4]
mov dl, 1
mov eax, dword [0x4e59a4]
call fcn.0048ca60
call fcn.0048441c
xor eax, eax
push ebp
push 0x4e6b76
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.00483e84
cmp byte [ebp + 8], 0
je 0x4e6b52
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.004e6a04
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.004e68dc
jmp 0x4e6b6c
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.004e63d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e6b93
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4e6d58
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.004e669c
xor eax, eax
push ebp
push 0x4e6eca
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 0x4e6eb4
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x4e6da4
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4e6dae
call fcn.004844c8
jmp 0x4e6ed1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0049ab18
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 0x4e6ea9
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 0x4e6e5c
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x4e6e49
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00483e84
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.004e6d10
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x4e6edc]
cmp dl, byte [eax + 0x28]
je 0x4e6eb0
call fcn.0048c978
jmp 0x4e6eb0
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.0049ab38
jmp 0x4e6eb0
cmp edi, ebx
jge 0x4e6e78
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.0049ab38
jmp 0x4e6dae
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.0049ab18
cmp edx, dword [esp + 4]
jne 0x4e6e98
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4e6dae
push ebp
call fcn.004e6d10
pop ecx
jmp 0x4e6eb0
push ebp
call fcn.004e6d10
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e6ed1
mov eax, dword [ebp - 4]
call fcn.004e66a8
ret
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4e6ee0
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 0x4e7002
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004e669c
xor eax, eax
push ebp
push 0x4e6fe5
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 0x4e6f30
call fcn.004844c8
jmp 0x4e6fec
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 0x4e6fcf
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4e6fcf
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00483e84
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 0x4e6fcf
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0048c15c
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, 0x4e701c
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x54c7c4]
mov dl, 1
mov eax, dword [0x4e59a4]
call fcn.0048ca9c
call fcn.0048441c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e6fec
mov eax, dword [ebp - 4]
call fcn.004e66a8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e7009
lea eax, [ebp - 0x28]
call fcn.00484a08
ret
Function at 0x4e7068
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 0x4e71b2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004e669c
xor eax, eax
push ebp
push 0x4e7195
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x4e70cd
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4e70cd
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 0x4e717f
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4e70e0
call fcn.004844c8
jmp 0x4e719c
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 0x4e717f
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4e717f
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00483e84
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 0x4e717f
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0048c15c
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, 0x4e71cc
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x54c7c4]
mov dl, 1
mov eax, dword [0x4e59a4]
call fcn.0048ca9c
call fcn.0048441c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e719c
mov eax, dword [ebp - 4]
call fcn.004e66a8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e71b9
lea eax, [ebp - 0x28]
call fcn.00484a08
ret

Function at 0x4f1dfc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov byte [ebp - 1], 0
push eax
push 0xffffffffffffffff
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov ebx, eax
test ebx, ebx
je 0x4f1e5b
xor eax, eax
push ebp
push 0x4f1e42
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push ebx
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4f1e53
test bl, bl
je 0x4f1e5b
mov byte [ebp - 1], 1
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4f2f00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 8]
mov eax, ebx
call fcn.00484a08
mov dword [ebp - 0xc], pe_nt_image_headers32
lea eax, [ebp - 0x110]
mov edx, dword [ebp - 0xc]
call fcn.004877a0
mov dword [ebp - 0x10], 1
xor edx, edx
push ebp
push 0x4f3008
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, esi
call fcn.00484ed8
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4f2ff1
xor edx, edx
push ebp
push 0x4f2fea
push dword fs:[edx]
mov dword fs:[edx], esp
test edi, edi
jne 0x4f2f9b
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
jmp 0x4f2fbd
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, edi
call fcn.00484ed8
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4f2fd3
mov eax, ebx
lea edx, [ebp - 0x110]
mov ecx, pe_nt_image_headers32
call fcn.00484c88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f2ff1
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f300f
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret