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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4f9394]
cmp byte [eax + 0xc], 0
je 0x47ca99
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47ca92
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4fabcc], 0
jne 0x47c980
push 0x47caa0
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x47caa8
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4fabcc], eax
cmp dword [0x4f803c], 0
jne 0x47ca7b
push 0x47cab8
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4f803c], eax
cmp dword [0x4f803c], 0
je 0x47ca7b
push 0x47cac4
mov eax, dword [0x4f803c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4fabd0], eax
push 0x47cad4
mov eax, dword [0x4f803c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4fabd4], eax
push 0x47cae8
mov eax, dword [0x4f803c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4fabd8], eax
push 0x47cb00
mov eax, dword [0x4f803c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4fabdc], eax
push 0x47cb18
mov eax, dword [0x4f803c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4fabe0], eax
push 0x47cb2c
mov eax, dword [0x4f803c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4fabe4], eax
push 0x47cb44
mov eax, dword [0x4f803c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4fabe8], eax
push 0x47cb5c
mov eax, dword [0x4f803c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4fabec], eax
push 0x47cb78
mov eax, dword [0x4f803c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4fabf0], eax
push 0x47cb84
mov eax, dword [0x4f803c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4fabf4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47ca99
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x481670
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.00404f10
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x4816bf
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.00405180
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x488ee0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x488f30]
test si, 4
je 0x488ef4
or bl, 1
test si, 8
je 0x488efe
or bl, 4
test si, 1
je 0x488f08
or bl, 8
test si, 2
je 0x488f12
or bl, 0x10
test si, 0x10
je 0x488f1c
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x488f2b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x488f34
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x488f6c]
push pe_nt_image_headers32
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x488f4d
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x488f5c
or bl, 4
test esi, 0x20000000
je 0x488f67
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x488fbc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
add esp, 0xffffff00
push esp
call sub.user32.dll_GetKeyboardState
mov eax, esp
call fcn.00488f70
mov ebx, eax
mov eax, ebx
add esp, 0x100
pop ebx
ret

Function at 0x48f650
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x48f662
add esp, 0xfffffff0
call fcn.00404358
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00424ae0
mov eax, dword [0x4f8954]
mov dword [eax + 4], ebx
mov dword [eax], 0x48f9f4
mov eax, dword [0x4f8968]
mov dword [eax + 4], ebx
mov dword [eax], 0x48fa00
mov eax, ebx
call fcn.0048fa0c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4184cc]
call fcn.00403fb0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4184cc]
call fcn.00403fb0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4184cc]
call fcn.00403fb0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4184cc]
call fcn.00403fb0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4184cc]
call fcn.00403fb0
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, 0x48be24
push eax
push 0
push 0
mov eax, dword [0x4f8d44]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x426630]
call fcn.00427e7c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x426630]
call fcn.00427e7c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x426630]
call fcn.00427e7c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0048fea4
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x48fd6c
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x48fd6c
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x48fd6c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x48f79f
call fcn.004043b0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x48fb50
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48fcfb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x48fcdc
mov dl, 1
mov eax, dword [0x418d30]
call fcn.00403fb0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404f10
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x48fccb
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0047cc8c
test al, al
je 0x48fcbe
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x48fd0c
lea eax, [ebp - 0x254]
call fcn.0040a994
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x48fcbe
xor eax, eax
push ebp
push 0x48fcb7
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x100
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x48fd44
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x48fca0
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00405180
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
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 - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x48fca0
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, 0x100
call fcn.00405180
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48fcbe
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x48fbc1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041e3c4
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 0x48fd02
lea eax, [ebp - 0x260]
call fcn.00404f10
ret

Function at 0x490644
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x4fac18]
cmp byte [eax + 0xa5], 0
jne 0x4906b5
cmp dword [0x4fac30], 0
jne 0x490676
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x490600
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4fac30], eax
cmp dword [0x4fac2c], 0
jne 0x490691
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4fac2c], eax
cmp dword [0x4fac34], 0
jne 0x4906b5
push esp
push 0
push 0
push 0x4905a4
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4fac34], eax
pop edx
ret
Function at 0x490da4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4fac18]
cmp dword [eax + 0x30], 0
je 0x490e4e
cmp dword [ebx + 0x94], 0
jne 0x490e48
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x490d34
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x490e48
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 0x490e0e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x490e48
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.0041b064
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x490e1d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4919ac
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 0x4919e1
push 0x100
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.00405000
jmp 0x4919ee
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404f64
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x492bb8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x492bf9
mov eax, esi
call fcn.00478204
test al, al
je 0x492bf9
mov eax, dword [ebx + 0x84]
call fcn.00477f00
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x492bf9
push 0
mov eax, dword [ebx + 0x84]
call fcn.00477f00
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x494d54
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004051ec
dec eax
test eax, eax
jl 0x494d95
inc eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.004053ec
mov edx, dword [ebp - 8]
mov cl, byte [ebp - 8]
add cl, 0xd
xor byte [eax + edx], cl
inc dword [ebp - 8]
dec dword [ebp - 0xc]
jne 0x494d77
mov esp, ebp
pop ebp
ret

Function at 0x49aa00
Capabilities:
Send icmp echo request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49ab6a
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0xc], edx
call sub.ICMP.DLL_IcmpCreateFile
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x49aa49
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49ab78
xor eax, eax
push ebp
push 0x49ab59
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x3c
call fcn.00402b2c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x49aa7c
call fcn.00404930
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49ab78
xor eax, eax
push ebp
push 0x49ab3b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x38]
xor ecx, ecx
mov edx, 0x20
call fcn.004035b8
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x10]
mov word [eax + 0xc], 0x20
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
call fcn.004053ec
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x18], eax
mov eax, dword [0x4f86d4]
mov eax, dword [eax]
push eax
push 0x3c
mov eax, dword [ebp - 0x10]
push eax
push 0
push 0x20
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.ICMP.DLL_IcmpSendEcho
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x49ab25
mov eax, dword [ebp - 0x10]
cmp dword [eax + 4], 0
jne 0x49ab25
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov edx, dword [0x4f86d4]
cmp eax, dword [edx]
setl byte [ebp - 5]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov edx, dword [ebp - 4]
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + 0x14]
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ab42
mov eax, dword [ebp - 0x10]
call fcn.00402b5c
ret
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x49c36c
Capabilities:
Get domain controller name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffedc
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x124], edx
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x118], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49c50d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x49c4e1
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x10], eax
mov byte [ebp - 5], 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
lea eax, [ebp - 0x118]
mov edx, 0x49c528
call fcn.00405238
mov eax, dword [ebp - 0x118]
lea edx, [ebp - 0x112]
mov ecx, 0x81
call fcn.00405f98
push eax
call sub.netapi32.dll_NetGetDCName
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x49c446
cmp dword [ebp - 0x10], 0
je 0x49c446
mov eax, dword [ebp - 4]
lea edx, [eax + 8]
mov eax, dword [ebp - 0x10]
call fcn.00405f7c
lea eax, [ebp - 0x11c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
xor ecx, ecx
mov edx, 0x49c528
call fcn.0043b49c
mov edx, dword [ebp - 0x11c]
mov eax, dword [ebp - 4]
add eax, 8
call fcn.00404f64
mov byte [ebp - 5], 1
mov eax, dword [ebp - 0x10]
push eax
call sub.netapi32.dll_NetApiBufferFree
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
lea eax, [ebp - 0x120]
mov edx, 0x49c528
call fcn.00405238
mov eax, dword [ebp - 0x120]
lea edx, [ebp - 0x112]
mov ecx, 0x81
call fcn.00405f98
push eax
call sub.netapi32.dll_NetGetAnyDCName
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x49c4d7
cmp dword [ebp - 0x10], 0
je 0x49c4d7
mov eax, dword [ebp - 4]
lea edx, [eax + 0xc]
mov eax, dword [ebp - 0x10]
call fcn.00405f7c
lea eax, [ebp - 0x124]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
xor ecx, ecx
mov edx, 0x49c528
call fcn.0043b49c
mov edx, dword [ebp - 0x124]
mov eax, dword [ebp - 4]
add eax, 0xc
call fcn.00404f64
mov byte [ebp - 5], 1
mov eax, dword [ebp - 0x10]
push eax
call sub.netapi32.dll_NetApiBufferFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x49c4ef
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49c514
lea eax, [ebp - 0x124]
mov edx, 4
call fcn.00404f34
ret
Function at 0x49fe24
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbdc
push ebx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.004053dc
xor eax, eax
push ebp
push 0x49ff10
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x41d]
xor ecx, ecx
mov edx, 0x401
call fcn.004035b8
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.004053ec
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x49fef2
cmp dword [ebp - 0x10], 7
jne 0x49fef2
cmp dword [ebp - 0x14], 1
jbe 0x49fed4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x41d]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.004053ec
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x6c]
mov eax, dword [eax + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x49fef2
lea eax, [ebp - 0x1c]
lea edx, [ebp - 0x41d]
mov ecx, 0x401
call fcn.00405180
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.004095a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ff17
lea eax, [ebp - 0x1c]
call fcn.00404f10
lea eax, [ebp - 8]
call fcn.00404f10
ret
Function at 0x4a11fc
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, dword [0x417c80]
call fcn.00405b1c
xor eax, eax
push ebp
push 0x4a1340
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4f82b0], 0
jne 0x4a124f
mov ecx, dword [0x4f870c]
mov dl, 1
mov eax, dword [0x40868c]
call fcn.0040d5b4
call fcn.00404884
lea eax, [ebp - 0x20]
xor ecx, ecx
mov edx, pe_nt_image_headers32
call fcn.004035b8
mov eax, ebx
call fcn.004057d8
mov dword [ebp - 0x1c], eax
push esi
push edi
mov esi, 0x4a1350
lea edi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
lea eax, [ebp - 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
call fcn.00406ba4
xor eax, eax
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.004057e8
test eax, eax
jle 0x4a12e7
mov dword [ebp - 4], pe_nt_image_headers32
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x40]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x4a12e0
lea eax, [ebp - 0x44]
mov edx, ebx
call fcn.004051b4
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x40]
mov ecx, pe_nt_image_headers32
call fcn.00405180
mov eax, dword [ebp - 0x48]
pop edx
call fcn.00409534
test eax, eax
jne 0x4a12e0
mov ebx, 0x15
jmp 0x4a12ec
mov ebx, pe_nt_image_headers32
jmp 0x4a12ec
mov ebx, 0x15
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 0x20]
push eax
push ebx
push 0
push esi
call dword [0x4f82b0]
call fcn.004a1154
mov eax, dword [ebp - 8]
call fcn.004a1154
mov eax, edi
mov edx, dword [ebp - 0xc]
call fcn.00406bbc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1347
lea eax, [ebp - 0x48]
mov edx, 2
call fcn.00404f34
lea eax, [ebp - 0x10]
mov edx, dword [0x417c80]
call fcn.00405bec
ret
Function at 0x4b8870
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe48
push ebx
xor edx, edx
mov dword [ebp - 0x1ac], edx
mov dword [ebp - 0x1b0], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b8a43
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1a8]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4b8a17
xor eax, eax
push ebp
push 0x4b8a10
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x14]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x38]
mov eax, dword [ebp - 4]
call fcn.004b9064
mov eax, dword [ebp - 0x14]
call fcn.00406268
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4b89de
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
call fcn.00406270
test eax, eax
jl 0x4b89c2
inc eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 4]
cmp word [eax + 0x2a], 0
je 0x4b8933
mov ebx, dword [ebp - 4]
mov eax, dword [ebx + 0x2c]
call dword [ebx + 0x28]
test al, al
je 0x4b8933
call fcn.00404930
call fcn.00404930
jmp 0x4b8a17
mov eax, dword [ebp - 4]
cmp word [eax + 0x32], 0
je 0x4b89a4
lea eax, [ebp - 0x1ac]
push eax
lea edx, [ebp - 0x1b0]
mov eax, 0x4b768c
call fcn.00407084
mov eax, dword [ebp - 0x1b0]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
movzx edx, word [edx + ecx*2]
mov dword [ebp - 0x1b8], edx
mov byte [ebp - 0x1b4], 0
lea edx, [ebp - 0x1b8]
xor ecx, ecx
call fcn.0040aa2c
mov eax, dword [ebp - 0x1ac]
push eax
fild dword [ebp - 0xc]
fild dword [ebp - 0x10]
fdivp st(1)
fmul dword [0x4b8a50]
call fcn.00403000
mov edx, eax
mov ebx, dword [ebp - 4]
pop ecx
mov eax, dword [ebx + 0x34]
call dword [ebx + 0x30]
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
mov dx, word [eax + edx*2]
mov eax, dword [ebp - 4]
call fcn.004b8a54
inc dword [ebp - 0xc]
dec dword [ebp - 0x18]
jne 0x4b890d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b89e5
lea eax, [ebp - 0x14]
mov edx, dword [0x4b728c]
call fcn.00406450
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b8a4a
lea eax, [ebp - 0x1b0]
mov edx, 2
call fcn.00404f34
lea eax, [ebp - 0x14]
mov edx, dword [0x4b728c]
call fcn.00406450
ret
Function at 0x4b8a54
Capabilities:
Connect socket
Get socket status

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdcc
mov word [ebp - 6], dx
mov dword [ebp - 4], eax
mov byte [ebp - 7], 0
mov eax, dword [ebp - 4]
call fcn.004b91e4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4b8b80
mov word [ebp - 0x2c], 2
mov ax, word [ebp - 6]
push eax
call sub.wsock32.dll_htons
mov word [ebp - 0x2a], ax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
call fcn.004053ec
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x28], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.wsock32.dll_connect
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x4b8b80
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x4b8b75
lea eax, [ebp - 0x130]
call fcn.00497548
lea eax, [ebp - 0x234]
call fcn.00497548
lea edx, [ebp - 0x130]
mov eax, dword [ebp - 0xc]
call fcn.00497538
lea edx, [ebp - 0x234]
mov eax, dword [ebp - 0xc]
call fcn.00497538
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov ecx, 0x3e8
xor edx, edx
div ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov ecx, 0x3e8
xor edx, edx
div ecx
imul eax, edx, 0x3e8
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x234]
push eax
push 0
call sub.wsock32.dll_select
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
setg byte [ebp - 7]
cmp byte [ebp - 7], 0
je 0x4b8b75
mov ax, word [ebp - 6]
push eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x38]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
call fcn.004b937c
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004b9230
mov al, byte [ebp - 7]
mov esp, ebp
pop ebp
ret