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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x48201c]
cmp byte [eax + 0xc], 0
je 0x460e1d
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x460e16
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x483bc8], 0
jne 0x460d04
push 0x460e24
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x460e2c
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x483bc8], eax
cmp dword [0x480e24], 0
jne 0x460dff
push 0x460e3c
call sub.kernel32.dll_LoadLibraryA
mov dword [0x480e24], eax
cmp dword [0x480e24], 0
je 0x460dff
push 0x460e48
mov eax, dword [0x480e24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x483bcc], eax
push 0x460e58
mov eax, dword [0x480e24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x483bd0], eax
push 0x460e6c
mov eax, dword [0x480e24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x483bd4], eax
push 0x460e84
mov eax, dword [0x480e24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x483bd8], eax
push 0x460e9c
mov eax, dword [0x480e24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x483bdc], eax
push 0x460eb0
mov eax, dword [0x480e24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x483be0], eax
push 0x460ec8
mov eax, dword [0x480e24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x483be4], eax
push 0x460ee0
mov eax, dword [0x480e24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x483be8], eax
push 0x460efc
mov eax, dword [0x480e24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x483bec], eax
push 0x460f08
mov eax, dword [0x480e24]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x483bf0], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460e1d
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x464ebc
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.00403f9c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x464f0b
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.0040420c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x46c664
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x46c6b4]
test si, 4
je 0x46c678
or bl, 1
test si, 8
je 0x46c682
or bl, 4
test si, 1
je 0x46c68c
or bl, 8
test si, 2
je 0x46c696
or bl, 0x10
test si, 0x10
je 0x46c6a0
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46c6af
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x46c6b8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x46c6f0]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46c6d1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x46c6e0
or bl, 4
test esi, 0x20000000
je 0x46c6eb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x472d98
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x472daa
add esp, 0xfffffff0
call fcn.004034ec
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00421150
mov eax, dword [0x481cb4]
mov dword [eax + 4], ebx
mov dword [eax], 0x47313c
mov eax, dword [0x481cc0]
mov dword [eax + 4], ebx
mov dword [eax], 0x473148
mov eax, ebx
call fcn.00473154
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x415df4]
call fcn.00403158
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x415df4]
call fcn.00403158
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x415df4]
call fcn.00403158
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x415df4]
call fcn.00403158
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x415df4]
call fcn.00403158
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, 0x46f570
push eax
push 0
push 0
mov eax, dword [0x481e14]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x422bc4]
call fcn.00424338
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x422bc4]
call fcn.00424338
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x422bc4]
call fcn.00424338
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.004735bc
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x473498
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x473498
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x473498
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x472ee7
call fcn.00403544
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x47327c
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 0x473427
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x473408
mov dl, 1
mov eax, dword [0x416458]
call fcn.00403158
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00403f9c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4733f7
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.00461010
test al, al
je 0x4733ea
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, 0x473438
lea eax, [ebp - 0x254]
call fcn.00408ec0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4733ea
xor eax, eax
push ebp
push 0x4733e3
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 0x473470
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4733cc
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040420c
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 0x4733cc
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.0040420c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4733ea
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4732ed
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041ab18
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 0x47342e
lea eax, [ebp - 0x260]
call fcn.00403f9c
ret

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

Disassembly:
push ecx
mov eax, dword [0x483c14]
cmp byte [eax + 0xa5], 0
jne 0x473dcd
cmp dword [0x483c2c], 0
jne 0x473d8e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x473d18
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x483c2c], eax
cmp dword [0x483c28], 0
jne 0x473da9
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x483c28], eax
cmp dword [0x483c30], 0
jne 0x473dcd
push esp
push 0
push 0
push 0x473cbc
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x483c30], eax
pop edx
ret
Function at 0x473ef4
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x473f0b
add esp, 0xfffffff0
call fcn.004034ec
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00421150
mov eax, dword [0x481e00]
cmp word [eax + 2], 0
jne 0x473f33
mov eax, dword [0x481e00]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004755e4
mov eax, dword [0x481ebc]
cmp word [eax + 2], 0
jne 0x473f4d
mov eax, dword [0x481ebc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004757dc
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x415df4]
call fcn.00403158
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x415df4]
call fcn.00403158
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x4236a4]
call fcn.0042ab7c
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4740d4
mov eax, dword [0x481d1c]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042af4c
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x475d7c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x481d1c]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
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.0040c5c4
test eax, eax
je 0x474042
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004088a0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c5ec
test eax, eax
je 0x474056
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.0040420c
mov eax, dword [0x481c00]
cmp byte [eax], 0
jne 0x47408a
mov eax, ebx
call fcn.004741fc
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00475f58
mov eax, ebx
call fcn.0047691c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4740ca
call fcn.00403544
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47447c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x483c14]
cmp dword [eax + 0x30], 0
je 0x474526
cmp dword [ebx + 0x94], 0
jne 0x474520
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x47440c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x474520
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 0x4744e6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x474520
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.00418728
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4744f5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x475088
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 0x4750bd
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.0040408c
jmp 0x4750ca
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403ff0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x476134
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x476175
mov eax, esi
call fcn.0045c5d8
test al, al
je 0x476175
mov eax, dword [ebx + 0x84]
call fcn.0045c2d4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x476175
push 0
mov eax, dword [ebx + 0x84]
call fcn.0045c2d4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x477bb0
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 0x477cf8
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x477d10
mov dl, 4
mov eax, dword [ebp - 4]
call fcn.004793a4
mov eax, dword [ebp - 4]
call fcn.00478da0
xor edx, edx
push ebp
push 0x477cdb
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10098], 0
jne 0x477c7a
test si, si
jne 0x477c20
mov eax, dword [ebp - 8]
call fcn.00408864
mov esi, eax
cmp esi, 0xffff
jbe 0x477c20
call fcn.004030c8
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 + 0x10110]
push eax
call sub.wsock32.dll_send
test eax, eax
je 0x477c7a
cmp eax, 0xffffffff
jle 0x477c4f
sub ebx, eax
jmp 0x477c5e
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.004792d8
test ebx, ebx
je 0x477c7a
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10098], 0
jne 0x477c7a
mov eax, dword [ebp - 4]
cmp byte [eax + 0x100bd], 0
je 0x477c23
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10098], 0
je 0x477cc5
mov eax, dword [ebp - 4]
mov byte [eax + 0x10098], 0
mov ecx, 0x477d28
mov dl, 1
mov eax, dword [0x476ca0]
call fcn.0040b7f4
call fcn.00403954
mov eax, dword [ebp - 4]
cmp word [eax + 0x1010a], 0
je 0x477cc5
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1010c]
call dword [ebx + 0x10108]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x477ce2
mov eax, dword [ebp - 4]
call fcn.00478e04
ret
Function at 0x4782f8
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.0040444c
xor eax, eax
push ebp
push 0x4784c7
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x4784dc
mov dl, 8
mov eax, dword [ebp - 4]
call fcn.004793a4
push 0
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x416658]
call fcn.0041b0e0
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x478457
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10098], 0
jne 0x478413
mov eax, dword [ebp - 4]
lea edx, [eax + 0x30]
mov ecx, 0x10000
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 0x10]
push 0
push ebx
mov eax, dword [ebp - 0x10]
sub eax, ebx
cmp eax, 0x10000
jbe 0x47838f
call fcn.004030c8
mov edx, dword [ebp - 4]
lea eax, [edx + eax + 0x30]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10110]
push eax
call sub.wsock32.dll_send
test eax, eax
je 0x478413
cmp eax, 0xffffffff
jle 0x4783e4
sub ebx, eax
mov edx, dword [ebp - 4]
add dword [edx + 0x10094], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0x100da], 0
je 0x4783da
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0x100dc]
call dword [esi + 0x100d8]
mov eax, dword [ebp - 4]
call fcn.00478da0
jmp 0x4783f3
lea ecx, [ebp - 0x14]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.004792d8
mov eax, dword [0x481e9c]
mov eax, dword [eax]
call fcn.00475338
test ebx, ebx
je 0x478413
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10098], 0
je 0x47837b
mov eax, dword [ebp - 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 0xc]
call fcn.0041abc8
cmp edx, dword [esp + 4]
jne 0x47842d
cmp eax, dword [esp]
pop edx
pop eax
je 0x478441
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10098], 0
je 0x478352
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47845e
mov eax, dword [ebp - 0xc]
call fcn.00403188
ret
Function at 0x478504
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4786af
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x4786c4
mov dl, 8
mov eax, ebx
call fcn.004793a4
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.0041abe8
cmp byte [ebx + 0x10098], 0
jne 0x47865b
xor eax, eax
mov dword [ebx + 0x10094], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx]
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x478568
call fcn.004030c8
mov dword [ebx + 0x100c4], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
call fcn.0041abc8
sub dword [esp], eax
sbb dword [esp + 4], edx
pop eax
pop edx
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x478596
call fcn.004030c8
cmp eax, 0x10000
jle 0x4785a2
mov eax, 0x10000
lea edx, [ebx + 0x30]
mov ecx, eax
mov eax, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0xc]
mov dword [ebp - 8], eax
mov esi, dword [ebp - 8]
push 0
push esi
mov eax, dword [ebp - 8]
sub eax, esi
cmp eax, 0x10000
jbe 0x4785c9
call fcn.004030c8
lea eax, [ebx + eax + 0x30]
push eax
movzx eax, word [ebx + 0x10110]
push eax
call sub.wsock32.dll_send
test eax, eax
je 0x478699
test eax, eax
jle 0x478609
sub esi, eax
add dword [ebx + 0x10094], eax
cmp word [ebx + 0x100da], 0
je 0x478617
mov edx, ebx
mov eax, dword [ebx + 0x100dc]
call dword [ebx + 0x100d8]
jmp 0x478617
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, ebx
call fcn.004792d8
mov eax, dword [0x481e9c]
mov eax, dword [eax]
call fcn.00475338
test esi, esi
je 0x478630
cmp byte [ebx + 0x10098], 0
je 0x4785b5
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
call fcn.0041abc8
cmp edx, dword [esp + 4]
jne 0x47864a
cmp eax, dword [esp]
pop edx
pop eax
je 0x47865b
cmp byte [ebx + 0x10098], 0
je 0x47856e
cmp byte [ebx + 0x10098], 0
je 0x478699
mov byte [ebx + 0x10098], 0
mov ecx, 0x4786d8
mov dl, 1
mov eax, dword [0x476ca0]
call fcn.0040b7f4
call fcn.00403954
cmp word [ebx + 0x1010a], 0
je 0x478699
mov edx, ebx
mov eax, dword [ebx + 0x1010c]
call dword [ebx + 0x10108]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4786b6
lea eax, [ebp - 0xc]
call fcn.00403f9c
ret
Function at 0x478e38
Capabilities:
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x478f41
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x478f58
mov dl, 8
mov eax, ebx
call fcn.004793a4
test byte [ebx + 0x1c], 0x10
setne al
xor al, 1
and al, byte [0x483c40]
je 0x478f2b
xor eax, eax
push ebp
push 0x478f0b
push dword fs:[eax]
mov dword fs:[eax], esp
push 6
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
cmp esi, 0xffff
jbe 0x478ea1
call fcn.004030c8
mov word [ebx + 0x10110], si
mov word [ebp - 4], 0
mov word [ebp - 2], 0
push 4
lea eax, [ebp - 4]
push eax
push 0x80
push 0xff7f
movzx eax, si
push eax
call sub.wsock32.dll_setsockopt
cmp word [ebx + 0x10110], 0xffff
jne 0x478ee6
lea ecx, [ebp - 8]
mov dx, 0x2733
mov eax, ebx
call fcn.004792d8
push 0x3f
push 0x465
mov eax, dword [ebx + 0x10114]
push eax
movzx eax, word [ebx + 0x10110]
push eax
call sub.wsock32.dll_WSAAsyncSelect
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x478f2b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x478f48
lea eax, [ebp - 8]
call fcn.00403f9c
ret

Function at 0x479224
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov ecx, 0x4792c0
mov dl, 4
mov eax, ebx
call fcn.004793a4
mov byte [ebx + 0x10118], 0
mov ax, word [ebx + 0x10110]
cmp ax, 0xffff
je 0x4792b2
movzx eax, ax
push eax
call sub.wsock32.dll_closesocket
test byte [ebx + 0x1c], 8
jne 0x479271
cmp word [ebx + 0x1005a], 0
je 0x479271
mov edx, ebx
mov eax, dword [ebx + 0x1005c]
call dword [ebx + 0x10058]
cmp byte [ebx + 0x10099], 0
jne 0x4792b2
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
cmp esi, 0xffff
jbe 0x479294
call fcn.004030c8
mov word [ebx + 0x10110], si
push 0x3d
push 0x465
mov eax, dword [ebx + 0x10114]
push eax
movzx eax, si
push eax
call sub.wsock32.dll_WSAAsyncSelect
pop esi
pop ebx
ret
Function at 0x47944c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x100b8]
cmp dword [eax + 4], 0
setg byte [ebp - 5]
cmp byte [ebp - 5], 0
jne 0x479510
push 2
push 1
lea eax, [ebp - 6]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10110]
push eax
call sub.wsock32.dll_recv
test eax, eax
jle 0x47949d
mov byte [ebp - 5], 1
mov eax, dword [ebp - 4]
call fcn.004791d0
jmp 0x479510
test eax, eax
jne 0x479510
mov byte [ebp - 5], 1
xor eax, eax
push ebp
push 0x4794d9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10118], 0
je 0x4794cf
mov eax, dword [ebp - 4]
call fcn.0047951c
mov eax, dword [ebp - 4]
call fcn.00479224
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4794e3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10034]
call fcn.0042dc10
mov eax, dword [ebp - 4]
cmp word [eax + 0x1005a], 0
je 0x479510
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1005c]
call dword [ebx + 0x10058]
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

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

Disassembly:
push ebx
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x479523
mov eax, dword [esp + 0x10000]
mov ebx, eax
mov ecx, 0x479570
mov dl, 8
mov eax, ebx
call fcn.004793a4
push 0
push 0x10000
lea eax, [esp + 8]
push eax
movzx eax, word [ebx + 0x10110]
push eax
call sub.wsock32.dll_recv
add esp, 0x10004
pop ebx
ret

Function at 0x47979c
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 + 0x10110]
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 0x4797df
mov edx, dword [edi]
mov byte [ebx + edx], 0x2c
inc eax
inc dword [edi]
cmp eax, 3
jl 0x4797d0
mov edx, esi
mov eax, ebx
call fcn.00408a50
add esp, 0x14
pop edi
pop esi
pop ebx
ret

Function at 0x4797f8
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 + 0x10110]
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, 0x479864
call fcn.00408f40
add esp, 0x24
pop esi
pop ebx
ret