joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447910
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x479683
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046cdfe
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00472497
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004739b3
test eax, eax
je 0x447a2c
mov ecx, dword [esp + 0x3c]
call fcn.004724c4
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4479f0
push edi
mov ecx, esi
call fcn.0046fb31
mov ecx, esi
call fcn.00447b90
cmp dword [esp + 0x38], 1
jne 0x447a25
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046fc6c
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x44a440
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44a473
push esi
call fcn.0044d540
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44a46c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44a4f9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44a4e2
mov eax, dword [esi + 8]
test eax, eax
je 0x44a497
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44a4de
cmp eax, 2
je 0x44a4e2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44a48a
cmp eax, 3
je 0x44a4bd
cmp eax, 1
jne 0x44a48a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44a48a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44a48a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044a520
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44a508
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044a520
add esp, 4
pop esi
ret

Function at 0x456530
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x4565d3
test eax, eax
jbe 0x4565d3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4565d3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x45657e
xor esi, esi
jmp 0x456584
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4565af
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0040d9d0
add esi, eax
push esi
mov ebx, esi
call fcn.0040d9d0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x456590
pop ebp
test edi, edi
pop edi
jne 0x4565d3
test ebx, ebx
je 0x4565d3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0045c4a0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x456715
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x45682d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45682d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046d250
mov esi, eax
test esi, esi
je 0x45682d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x45682d
mov ecx, esi
call fcn.00456680
cmp edi, eax
jge 0x45682d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4567b3
mov dword [esp + 0x34], 1
jmp 0x45680e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45682d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00455c20
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x46dbf4
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46dc2c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046bcab
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046bc83
jmp 0x46dc38
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46f2ee
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46f330
call fcn.00474da3
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46f330
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46f327
xor eax, eax
jmp 0x46f338
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046f33e
pop edi
pop esi
pop ebx
ret 4
Function at 0x4752d3
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x475301
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47531f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00475239
jmp 0x47531f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47531f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00475239
test edi, edi
mov eax, edi
jne 0x475309
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x40284c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x431030], 0x8088405
inc edx
mov dword [0x431030], edx
mul edx
mov eax, edx
ret

Function at 0x405dbc
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405df5
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403340
jmp 0x405dfe
mov eax, ebx
mov edx, esi
call fcn.004032f4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405e08
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
test eax, eax
jle 0x405e29
mov al, byte [esp]
jmp 0x405e2b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40e3e0
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.00403260
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x40e441
push 0x100
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
cmp byte [ebp - 0x101], 0
jne 0x40e441
cmp byte [ebp - 0x102], 0
je 0x40e441
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, 0x100
call fcn.004033bc
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40f674
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x24], 0
je 0x40f6f5
xor eax, eax
mov al, byte [ebx + 4]
mov word [ebp - 6], ax
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x40f6a6
add word [ebp - 6], 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x40f6b8
add word [ebp - 6], 0x4000
test byte [ebx + 0xb], 0x20
je 0x40f6c4
add word [ebp - 6], 0x8000
xor ebx, ebx
movzx edx, word [ebp - 6]
mov cl, 2
mov eax, dword [ebp - 0xc]
call fcn.0040f54c
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40f6e9
push ebp
mov eax, dword [ebp - 4]
call fcn.0040f5e8
pop ecx
mov ebx, eax
cmp bl, 2
je 0x40f6c4
cmp dword [ebp - 4], 0
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x416f00
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 0x416f06
ret
Function at 0x41d334
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x43164c
cmp dword [edi], 0
jne 0x41d3b0
push pe_nt_image_headers32
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x431648]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x430544
mov ecx, 2
call fcn.00402704
mov edx, 0x41d30c
lea eax, [esi + 5]
call fcn.0041d32c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041d32c
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 0x41d385
mov dword [0x431648], 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 0x41d4b4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x41d504]
test si, 4
je 0x41d4c8
or bl, 1
test si, 8
je 0x41d4d2
or bl, 4
test si, 1
je 0x41d4dc
or bl, 8
test si, 2
je 0x41d4e6
or bl, 0x10
test si, 0x10
je 0x41d4f0
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41d4ff
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x41d508
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x41d540]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41d521
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x41d530
or bl, 4
test esi, 0x20000000
je 0x41d53b
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

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

Disassembly:
push ecx
mov eax, dword [0x431624]
cmp byte [eax + 0x7f], 0
jne 0x421423
cmp dword [0x431650], 0
jne 0x4213ff
call sub.kernel32.dll_GetCurrentThreadId
push eax
push 0
mov eax, 0x42138c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x431650], eax
cmp dword [0x431654], 0
jne 0x421423
push esp
push 0
push 0
push 0x42133c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x431654], eax
pop edx
ret

Function at 0x421428
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x431650], 0
je 0x42143c
mov eax, dword [0x431650]
push eax
call sub.user32.dll_UnhookWindowsHookEx
xor eax, eax
mov dword [0x431650], eax
cmp dword [0x431654], 0
je 0x421459
push 0
mov eax, dword [0x431654]
push eax
call sub.kernel32.dll_TerminateThread
xor eax, eax
mov dword [0x431654], eax
ret
Function at 0x4214f8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x42150f
add esp, 0xfffffff0
call fcn.00402bac
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0040d538
mov dl, 1
mov eax, 0x407a28
call fcn.004029ac
mov dword [ebx + 0x70], eax
mov dl, 1
mov eax, 0x407a28
call fcn.004029ac
mov dword [ebx + 0x80], eax
xor eax, eax
mov dword [ebx + 0x40], eax
xor eax, eax
mov dword [ebx + 0x60], eax
mov dword [ebx + 0x3c], 0x80000018
mov dword [ebx + 0x54], 0x1f4
mov dword [ebx + 0x58], 0x32
mov dword [ebx + 0x5c], 0x9c4
mov byte [ebx + 0x64], 0
mov byte [ebx + 0x7d], 1
mov dl, 1
mov eax, 0x416df8
call fcn.0041b94c
mov esi, eax
mov dword [ebx + 0x78], esi
push 0x421650
mov eax, dword [0x431014]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041bcd8
mov eax, dword [ebx + 0x78]
mov dword [eax + 8], ebx
mov dword [eax + 4], 0x4228d0
push 0x100
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x431014]
push eax
call sub.kernel32.dll_GetModuleFileNameA
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.00405910
test eax, eax
je 0x4215ec
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00405808
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.004058f0
test eax, eax
je 0x421600
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x6c]
lea edx, [ebp - 0x101]
mov ecx, 0x100
call fcn.004033bc
cmp byte [0x431034], 0
jne 0x421630
mov eax, ebx
call fcn.004216e0
mov byte [ebx + 0x39], 1
mov byte [ebx + 0x3a], 1
cmp byte [ebp - 1], 0
je 0x421648
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4220e8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x7e], 0
je 0x42211a
push 0x100
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x20]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403340
jmp 0x422124
mov eax, esi
mov edx, dword [ebx + 0x6c]
call fcn.004032f4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x422aa8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x60]
test esi, esi
je 0x422ae0
mov eax, esi
call fcn.00415658
test al, al
je 0x422ae0
mov eax, dword [ebx + 0x60]
call fcn.004154c0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x422ae0
push 0
mov eax, dword [ebx + 0x60]
call fcn.004154c0
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x42a7c8
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe68
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x194], ebx
mov dword [ebp - 0x198], ebx
test dl, dl
je 0x42a7ee
add esp, 0xfffffff0
call fcn.00402bac
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x42a908
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, ebx
call fcn.0040d538
xor eax, eax
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x38], 3
mov dword [ebx + 0x3c], 0xffffffff
mov byte [ebx + 0x40], 0
lea eax, [ebp - 0x190]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
mov esi, eax
mov dword [ebx + 0x44], esi
test esi, esi
jne 0x42a8e1
mov byte [ebx + 0x40], 1
lea edx, [ebp - 0x194]
mov ax, word [ebp - 0x190]
shr ax, 8
movzx eax, ax
call fcn.00405568
push dword [ebp - 0x194]
push 0x42a930
lea edx, [ebp - 0x198]
mov ax, word [ebp - 0x190]
and ax, 0xff
movzx eax, ax
call fcn.00405568
push dword [ebp - 0x198]
lea eax, [ebx + 0x20]
mov edx, 3
call fcn.00403494
lea edx, [ebp - 0x194]
lea eax, [ebp - 0x18c]
call fcn.00405934
mov edx, dword [ebp - 0x194]
lea eax, [ebx + 0x24]
call fcn.004032b0
lea edx, [ebp - 0x194]
lea eax, [ebp - 0x8b]
call fcn.00405934
mov edx, dword [ebp - 0x194]
lea eax, [ebx + 0x28]
call fcn.004032b0
movzx eax, word [ebp - 0xa]
mov dword [ebx + 0x2c], eax
movzx eax, word [ebp - 8]
mov dword [ebx + 0x30], eax
jmp 0x42a8ea
mov edx, esi
mov eax, ebx
call fcn.0042ac10
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42a90f
lea eax, [ebp - 0x198]
mov edx, 2
call fcn.00403280
ret

Function at 0x42a970
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00403588
mov eax, dword [ebp - 8]
call fcn.00403588
xor eax, eax
push ebp
push 0x42aa5c
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
mov word [ebx], 2
mov eax, dword [edi + 0x34]
push eax
call sub.wsock32.dll_getprotobynumber
mov esi, eax
test esi, esi
jne 0x42a9ca
call sub.wsock32.dll_WSAGetLastError
mov edx, eax
mov eax, edi
call fcn.0042ac10
jmp 0x42aa41
mov eax, dword [esi]
push eax
mov eax, dword [ebp - 8]
call fcn.00403598
push eax
call sub.wsock32.dll_getservbyname
test eax, eax
jne 0x42a9f3
mov eax, dword [ebp - 8]
call fcn.00405598
push eax
call sub.wsock32.dll_htons
mov word [ebx + 2], ax
jmp 0x42a9fb
mov ax, word [eax + 8]
mov word [ebx + 2], ax
mov eax, dword [ebp - 4]
call fcn.00403598
push eax
call sub.wsock32.dll_inet_addr
mov esi, eax
mov dword [ebx + 4], esi
inc esi
jne 0x42aa3d
mov eax, dword [ebp - 4]
call fcn.00403598
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
jne 0x42aa33
call sub.wsock32.dll_WSAGetLastError
mov edx, eax
mov eax, edi
call fcn.0042ac10
jmp 0x42aa41
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebx + 4], eax
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42aa63
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403280
ret
Function at 0x42aa70
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
cmp dword [ebx], 0xffffffff
je 0x42ab70
push 0
push 0x401
push edi
mov eax, dword [ebx]
push eax
call sub.wsock32.dll_WSAAsyncSelect
test eax, eax
je 0x42aaad
call sub.wsock32.dll_WSAGetLastError
mov edx, eax
mov eax, esi
call fcn.0042ac10
jmp 0x42ab70
call sub.wsock32.dll_WSAIsBlocking
test eax, eax
je 0x42aad2
call sub.wsock32.dll_WSACancelBlockingCall
test eax, eax
je 0x42aad2
call sub.wsock32.dll_WSAGetLastError
mov edx, eax
mov eax, esi
call fcn.0042ac10
jmp 0x42ab70
push 2
mov eax, dword [ebx]
push eax
call sub.wsock32.dll_shutdown
test eax, eax
je 0x42aafc
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2749
je 0x42aafc
call sub.wsock32.dll_WSAGetLastError
mov edx, eax
mov eax, esi
call fcn.0042ac10
jmp 0x42ab70
cmp byte [ebp + 8], 0
je 0x42ab0a
mov word [ebp - 4], 1
jmp 0x42ab10
mov word [ebp - 4], 0
mov word [ebp - 2], 0
push 4
lea eax, [ebp - 4]
push eax
push 0x80
push 0xffff
mov eax, dword [ebx]
push eax
call sub.wsock32.dll_setsockopt
test eax, eax
je 0x42ab4e
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x273a
je 0x42ab4e
call sub.wsock32.dll_WSAGetLastError
mov edx, eax
mov eax, esi
call fcn.0042ac10
jmp 0x42ab70
mov eax, dword [ebx]
push eax
call sub.wsock32.dll_closesocket
test eax, eax
je 0x42ab6a
call sub.wsock32.dll_WSAGetLastError
mov edx, eax
mov eax, esi
call fcn.0042ac10
jmp 0x42ab70
mov dword [ebx], 0xffffffff
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4

Function at 0x42ab78
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
call fcn.00403588
xor eax, eax
push ebp
push 0x42ac00
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 8], 0
je 0x42abea
xor ebx, ebx
mov eax, dword [ebp + 8]
call fcn.004033d4
mov esi, eax
mov eax, dword [ebp - 8]
push eax
mov eax, esi
sub eax, ebx
push eax
lea eax, [ebp + 8]
call fcn.004035a4
add eax, ebx
push eax
push edi
call sub.wsock32.dll_send
add ebx, eax
test eax, eax
jge 0x42abe2
call sub.wsock32.dll_WSAGetLastError
mov edx, eax
mov eax, dword [ebp - 4]
call fcn.0042ac10
jmp 0x42abea
cmp esi, ebx
jle 0x42abea
test eax, eax
jge 0x42abb1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ac07
lea eax, [ebp + 8]
call fcn.00403260
ret

Function at 0x42b7f0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebx
push esi
add esp, 0xffffff6c
mov esi, edx
mov ebx, eax
push 0x80
lea eax, [esp + 0x14]
push eax
call sub.wsock32.dll_gethostname
test eax, eax
jne 0x42b845
lea eax, [esp + 0x10]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
jne 0x42b826
mov eax, esi
call fcn.00403260
jmp 0x42b853
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 4], eax
push dword [esp + 4]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, esi
call fcn.0040338c
jmp 0x42b853
call sub.wsock32.dll_WSAGetLastError
mov edx, eax
mov eax, ebx
call fcn.0042ac10
add esp, 0x94
pop esi
pop ebx
ret
Function at 0x42b85c
Capabilities:
Get hostname

Disassembly:
push ebx
push esi
add esp, 0xffffff7c
mov esi, edx
mov ebx, eax
push 0x80
lea eax, [esp + 4]
push eax
call sub.wsock32.dll_gethostname
test eax, eax
jne 0x42b88b
mov eax, esi
mov edx, esp
mov ecx, 0x81
call fcn.004033bc
jmp 0x42b899
call sub.wsock32.dll_WSAGetLastError
mov edx, eax
mov eax, ebx
call fcn.0042ac10
add esp, 0x84
pop esi
pop ebx
ret

Function at 0x42b9b4
Capabilities:
Connect socket
Connect udp socket
Create udp socket

Disassembly:
push ebx
push esi
add esp, 0xffffffe0
mov ebx, eax
push esp
mov ecx, dword [ebx + 0x5c]
mov edx, dword [ebx + 0x58]
mov eax, ebx
call fcn.0042a970
test al, al
je 0x42bab1
push 0
mov eax, dword [ebx + 0x38]
push eax
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov dword [ebx + 0x3c], esi
inc esi
jne 0x42b9f9
call sub.wsock32.dll_WSAGetLastError
mov edx, eax
mov eax, ebx
call fcn.0042ac10
jmp 0x42bab1
cmp byte [ebx + 0x54], 0
je 0x42ba55
mov esi, 0x400
mov word [esp + 0x10], 2
xor eax, eax
mov dword [esp + 0x14], eax
push esi
call sub.wsock32.dll_htons
mov word [esp + 0x12], ax
push 0x10
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx + 0x3c]
push eax
call sub.wsock32.dll_bind
test eax, eax
je 0x42ba55
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2740
je 0x42ba4c
call sub.wsock32.dll_WSAGetLastError
mov edx, eax
mov eax, ebx
call fcn.0042ac10
jmp 0x42bab1
dec esi
cmp esi, 0x200
jg 0x42ba11
push 0x10
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x3c]
push eax
call sub.wsock32.dll_connect
test eax, eax
je 0x42ba85
call sub.wsock32.dll_WSAGetLastError
cmp eax, 0x2733
je 0x42ba85
call sub.wsock32.dll_WSAGetLastError
mov edx, eax
mov eax, ebx
call fcn.0042ac10
jmp 0x42bab1
push 1
push 0x401
mov eax, dword [ebx + 0x50]
push eax
mov eax, dword [ebx + 0x3c]
push eax
call sub.wsock32.dll_WSAAsyncSelect
test eax, eax
je 0x42baad
call sub.wsock32.dll_WSAGetLastError
mov edx, eax
mov eax, ebx
call fcn.0042ac10
jmp 0x42bab1
mov byte [ebx + 0x40], 4
add esp, 0x20
pop esi
pop ebx
ret