joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4295b8
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x1e8], 0
je 0x4295d4
cmp dword [esi + 4], 0
je 0x429601
test byte [ebx + 0x45], 1
jne 0x4295f3
mov eax, ebx
call fcn.004284f0
test eax, eax
jne 0x4295f3
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x429711
mov edx, esi
mov eax, ebx
call fcn.00429230
jmp 0x429711
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x42970a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0042b588
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.00426454
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.004295b8
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x40]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.0042b588
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x429711
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x432ef0
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.00403918
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x432f3f
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.00403b48
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43a8e8
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4547e0
cmp dword [edi], 0
jne 0x43a964
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4547dc]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4528a4
mov ecx, 2
call fcn.00402814
mov edx, 0x43a8c0
lea eax, [esi + 5]
call fcn.0043a8e0
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0043a8e0
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 0x43a939
mov dword [0x4547dc], 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 0x43aa80
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x43aad0]
test si, 4
je 0x43aa94
or bl, 1
test si, 8
je 0x43aa9e
or bl, 4
test si, 1
je 0x43aaa8
or bl, 8
test si, 2
je 0x43aab2
or bl, 0x10
test si, 0x10
je 0x43aabc
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43aacb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x43aad4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x43ab0c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43aaed
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x43aafc
or bl, 4
test esi, 0x20000000
je 0x43ab07
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x440cb4
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x440cc6
add esp, 0xfffffff0
call fcn.00402f90
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00411f44
mov eax, ebx
call fcn.00441000
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x40bffc]
call fcn.00402c60
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x40bffc]
call fcn.00402c60
mov dword [ebx + 0x44], eax
mov dl, 1
mov eax, dword [0x40bffc]
call fcn.00402c60
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x40bffc]
call fcn.00402c60
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x40bffc]
call fcn.00402c60
mov dword [ebx + 0x70], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x34], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x4c]
push eax
mov eax, 0x440c84
push eax
push 0
push 0
mov eax, dword [0x45388c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41340c]
call fcn.00414944
mov dword [ebx + 0x78], eax
mov dl, 1
mov eax, dword [0x41340c]
call fcn.00414944
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x41340c]
call fcn.00414944
mov dword [ebx + 0x74], eax
mov eax, ebx
call fcn.004413e0
mov eax, dword [ebx + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4412fc
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4412fc
mov eax, dword [ebx + 0x74]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4412fc
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x440dd5
call fcn.00402fe8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4410e0
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 0x44128b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x28], 0
jne 0x44126c
mov dl, 1
mov eax, dword [0x40c2fc]
call fcn.00402c60
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], eax
mov eax, dword [ebp - 4]
add eax, 0x2c
call fcn.00403918
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x44125b
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.0042fb10
test al, al
je 0x44124e
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, 0x44129c
lea eax, [ebp - 0x254]
call fcn.004087c8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x44124e
xor eax, eax
push ebp
push 0x441247
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4412d4
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x441230
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403b48
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov ebx, dword [eax]
call dword [ebx + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x30]
jne 0x441230
mov eax, dword [ebp - 4]
add eax, 0x2c
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00403b48
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44124e
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x441151
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x28]
mov byte [eax + 0x19], 0
mov dl, 1
call fcn.0040efd8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x441292
lea eax, [ebp - 0x260]
call fcn.00403918
ret

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

Disassembly:
push ecx
mov eax, dword [0x4547d0]
cmp byte [eax + 0x95], 0
jne 0x441b49
cmp dword [0x4547ec], 0
jne 0x441b0a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x441a94
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4547ec], eax
cmp dword [0x4547e8], 0
jne 0x441b25
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4547e8], eax
cmp dword [0x4547f0], 0
jne 0x441b49
push esp
push 0
push 0
push 0x441a38
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4547f0], eax
pop edx
ret
Function at 0x441c40
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x441c57
add esp, 0xfffffff0
call fcn.00402f90
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00411f44
mov byte [ebx + 0x28], 0
mov dl, 1
mov eax, dword [0x40bffc]
call fcn.00402c60
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x40bffc]
call fcn.00402c60
mov dword [ebx + 0x98], eax
xor eax, eax
mov dword [ebx + 0x50], eax
xor eax, eax
mov dword [ebx + 0x74], eax
mov dword [ebx + 0x4c], 0x80000018
mov dword [ebx + 0x68], 0x1f4
mov byte [ebx + 0x6c], 1
xor eax, eax
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x64], 0x9c4
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x8d], 1
mov dl, 1
mov eax, dword [0x413d9c]
call fcn.0041ae78
mov esi, eax
mov dword [ebx + 0x88], esi
push 0x441dcc
mov eax, dword [0x4537b8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0041b248
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x443764
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4537b8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_2
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.00409bc8
test eax, eax
je 0x441d4a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408168
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.00409bf0
test eax, eax
je 0x441d5e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x7c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00403b48
mov eax, dword [0x4536c4]
cmp byte [eax], 0
jne 0x441d8f
mov eax, ebx
call fcn.00441eb8
mov byte [ebx + 0x49], 1
mov byte [ebx + 0x4a], 1
mov byte [ebx + 0x4b], 1
mov byte [ebx + 0x8e], 1
xor eax, eax
mov dword [ebx + 0x90], eax
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x441dc1
call fcn.00402fe8
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x442128
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4547d0]
cmp dword [eax + 0x24], 0
je 0x4421cb
cmp dword [ebx + 0x84], 0
jne 0x4421c5
mov eax, dword [ebx + 0x24]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4420b8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x80]
cmp dword [eax + 8], 0
je 0x4421c5
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 0x44218e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x80]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4421c5
push 0x13
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x80]
call fcn.0040d6c0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x44219d
inc dword [ebx + 0x84]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x442bd8
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x94], 0
je 0x442c0d
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x24]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403a00
jmp 0x442c17
mov eax, esi
mov edx, dword [ebx + 0x7c]
call fcn.0040396c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x443ad8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x74]
test esi, esi
je 0x443b10
mov eax, esi
call fcn.0042b884
test al, al
je 0x443b10
mov eax, dword [ebx + 0x74]
call fcn.0042b588
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x443b10
push 0
mov eax, dword [ebx + 0x74]
call fcn.0042b588
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x448470
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x448488
mov dl, 4
mov eax, dword [ebp - 4]
call fcn.004498b0
mov eax, dword [ebp - 4]
call fcn.00449140
xor edx, edx
push ebp
push 0x448453
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
jne 0x4483f2
test si, si
jne 0x4483a4
mov eax, dword [ebp - 8]
call fcn.00408100
mov esi, eax
cmp esi, 0xffff
jbe 0x4483a4
call fcn.00402bd0
movzx ebx, si
push 0
push ebx
movzx eax, si
sub eax, ebx
mov edx, dword [ebp - 8]
lea eax, [edx + eax]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10288]
push eax
call sub.wsock32.dll_send
test eax, eax
je 0x4483f2
cmp eax, 0xffffffff
jle 0x4483d3
sub ebx, eax
jmp 0x4483e2
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.004497e4
test ebx, ebx
je 0x4483f2
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x4483a7
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x44843d
mov eax, dword [ebp - 4]
mov byte [eax + 0x10088], 0
mov ecx, 0x4484a0
mov dl, 1
mov eax, dword [0x447854]
call fcn.004090ec
call fcn.004033e8
mov eax, dword [ebp - 4]
cmp word [eax + 0x10282], 0
je 0x44843d
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x10284]
call dword [ebx + 0x10280]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44845a
mov eax, dword [ebp - 4]
call fcn.00449198
ret
Function at 0x4485b4
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x44874a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x448760
lea edx, [ebp - 0xc]
movzx eax, si
call fcn.00407cb4
push dword [ebp - 0xc]
push 0x448770
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403c58
mov ecx, dword [ebp - 8]
mov dl, 8
mov eax, ebx
call fcn.004498b0
test si, si
jne 0x448655
push 2
push 0x10000
lea eax, [ebx + 0x24]
push eax
movzx eax, word [ebx + 0x10288]
push eax
call sub.wsock32.dll_recv
cmp eax, 0xffffffff
jne 0x448644
lea ecx, [ebp - 0x10]
mov dx, 0x2733
mov eax, ebx
call fcn.004497e4
mov eax, dword [ebp - 4]
call fcn.00403918
jmp 0x4486ab
mov esi, eax
cmp esi, 0xffff
jbe 0x4486ab
call fcn.00402bd0
jmp 0x4486ab
push 2
push 0x10000
lea eax, [ebx + 0x24]
push eax
movzx eax, word [ebx + 0x10288]
push eax
call sub.wsock32.dll_recv
movzx edx, si
cmp eax, edx
jge 0x4486ab
test eax, eax
jne 0x448685
mov eax, dword [ebp - 4]
call fcn.00403918
jmp 0x44872f
inc eax
jne 0x448696
lea ecx, [ebp - 0x14]
mov dx, 0x2733
mov eax, ebx
call fcn.004497e4
mov eax, dword [0x4538f8]
mov eax, dword [eax]
call fcn.00442e80
cmp byte [ebx + 0x10088], 0
je 0x448655
cmp byte [ebx + 0x10088], 0
jne 0x4486fa
movzx edi, si
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00403ecc
push 0
push edi
mov eax, dword [ebp - 4]
call fcn.00403d68
mov edx, 1
dec edx
cmp edx, dword [eax - 4]
jb 0x4486dc
call fcn.00402bd0
inc edx
lea eax, [eax + edx - 1]
push eax
movzx eax, word [ebx + 0x10288]
push eax
call sub.wsock32.dll_recv
mov edx, dword [ebp - 4]
xchg edx, eax
call fcn.00403ecc
jmp 0x44872f
mov byte [ebx + 0x10088], 0
mov ecx, 0x44877c
mov dl, 1
mov eax, dword [0x447854]
call fcn.004090ec
call fcn.004033e8
cmp word [ebx + 0x10282], 0
je 0x44872f
mov edx, ebx
mov eax, dword [ebx + 0x10284]
call dword [ebx + 0x10280]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x448751
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.0040393c
ret
Function at 0x448b68
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00403d4c
xor eax, eax
push ebp
push 0x448d25
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x448d3c
mov dl, 8
mov eax, dword [ebp - 4]
call fcn.004498b0
push 0
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x40c4d0]
call fcn.0040f284
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x448cb5
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
jne 0x448c79
mov eax, dword [ebp - 4]
lea edx, [eax + 0x24]
mov ecx, 0x10000
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 4]
mov esi, eax
mov ebx, esi
push 0
push ebx
mov eax, esi
sub eax, ebx
cmp eax, 0x10000
jbe 0x448bfd
call fcn.00402bd0
mov edx, dword [ebp - 4]
lea eax, [edx + eax + 0x24]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10288]
push eax
call sub.wsock32.dll_send
test eax, eax
je 0x448c79
cmp eax, 0xffffffff
jle 0x448c4a
sub ebx, eax
mov edx, dword [ebp - 4]
add dword [edx + 0x10084], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0x100c2], 0
je 0x448c59
mov edi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [edi + 0x100c4]
call dword [edi + 0x100c0]
jmp 0x448c59
lea ecx, [ebp - 0x10]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.004497e4
mov eax, dword [0x4538f8]
mov eax, dword [eax]
call fcn.00442e80
test ebx, ebx
je 0x448c79
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x448bea
mov eax, dword [ebp - 0xc]
call fcn.0040f060
mov ebx, eax
mov eax, dword [ebp - 0xc]
call fcn.0040f07c
cmp ebx, eax
je 0x448c9f
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x448bc3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x448cbc
mov eax, dword [ebp - 0xc]
call fcn.00402c90
ret
Function at 0x4496ec
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x4497b8
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x4497cc
mov dl, 4
mov eax, ebx
call fcn.004498b0
mov byte [ebx + 0x10290], 0
mov si, word [ebx + 0x10288]
cmp si, 0xffff
je 0x4497a2
movzx eax, si
push eax
call sub.wsock32.dll_closesocket
test eax, eax
jne 0x449794
test byte [ebx + 0x20], 8
jne 0x449751
cmp word [ebx + 0x1004a], 0
je 0x449751
mov edx, ebx
mov eax, dword [ebx + 0x1004c]
call dword [ebx + 0x10048]
cmp byte [ebx + 0x10089], 0
jne 0x4497a2
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
cmp esi, 0xffff
jbe 0x449774
call fcn.00402bd0
mov word [ebx + 0x10288], si
push 0x3d
push 0x465
mov eax, dword [ebx + 0x1028c]
push eax
movzx eax, si
push eax
call sub.wsock32.dll_WSAAsyncSelect
jmp 0x4497a2
lea ecx, [ebp - 4]
mov dx, 0x2733
mov eax, ebx
call fcn.004497e4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4497bf
lea eax, [ebp - 4]
call fcn.00403918
ret

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

Disassembly:
push ebx
mov ebx, eax
mov ecx, 0x449994
mov dl, 8
mov eax, ebx
call fcn.004498b0
push 2
push 1
lea eax, [ebx + 0x24]
push eax
movzx eax, word [ebx + 0x10288]
push eax
call sub.wsock32.dll_recv
test eax, eax
jle 0x449986
mov al, 1
pop ebx
ret
xor eax, eax
pop ebx
ret

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

Disassembly:
push ebx
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x4499ab
mov eax, dword [esp + 0x10000]
mov ebx, eax
mov ecx, 0x4499f8
mov dl, 8
mov eax, ebx
call fcn.004498b0
push 0
push 0x10000
lea eax, [esp + 8]
push eax
movzx eax, word [ebx + 0x10288]
push eax
call sub.wsock32.dll_recv
add esp, 0x10004
pop ebx
ret

Function at 0x449c30
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov esi, edx
mov edi, esp
mov dword [edi], 0x10
push edi
lea edx, [esp + 8]
push edx
movzx eax, word [eax + 0x10288]
push eax
call sub.wsock32.dll_getsockname
push dword [esp + 8]
call sub.wsock32.dll_inet_ntoa
mov ebx, eax
xor eax, eax
mov dword [edi], eax
xor eax, eax
mov edx, dword [edi]
cmp byte [ebx + edx], 0x2e
jne 0x449c73
mov edx, dword [edi]
mov byte [ebx + edx], 0x2c
inc eax
inc dword [edi]
cmp eax, 3
jl 0x449c64
mov edx, esi
mov eax, ebx
call fcn.004082e8
add esp, 0x14
pop edi
pop esi
pop ebx
ret

Function at 0x449c8c
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebx
push esi
add esp, 0xffffffdc
mov esi, edx
mov dword [esp], 0x10
push esp
lea edx, [esp + 8]
push edx
movzx eax, word [eax + 0x10288]
push eax
call sub.wsock32.dll_getsockname
push esi
mov bx, word [esp + 0xa]
mov eax, ebx
and ax, 0xff
movzx eax, ax
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], 0
shr bx, 8
movzx eax, bx
mov dword [esp + 0x20], eax
mov byte [esp + 0x24], 0
lea edx, [esp + 0x18]
mov ecx, 1
mov eax, 0x449cf8
call fcn.00408830
add esp, 0x24
pop esi
pop ebx
ret