joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457dc8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x457e00]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x457de1
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x457df0
or bl, 4
test esi, 0x20000000
je 0x457dfb
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45e424
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45e436
add esp, 0xfffffff0
call fcn.0040393c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041dfc4
mov eax, dword [0x4bc124]
mov dword [eax + 4], ebx
mov dword [eax], 0x45e7c8
mov eax, dword [0x4bc130]
mov dword [eax + 4], ebx
mov dword [eax], 0x45e7d4
mov eax, ebx
call fcn.0045e7e0
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x413204]
call fcn.004035a8
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x413204]
call fcn.004035a8
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x413204]
call fcn.004035a8
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x413204]
call fcn.004035a8
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x413204]
call fcn.004035a8
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, 0x45aca8
push eax
push 0
push 0
mov eax, dword [0x4bc298]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41fa2c]
call fcn.004211a0
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41fa2c]
call fcn.004211a0
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41fa2c]
call fcn.004211a0
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045ec48
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45eb24
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45eb24
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45eb24
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45e573
call fcn.00403994
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45e908
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 0x45eab3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45ea94
mov dl, 1
mov eax, dword [0x413868]
call fcn.004035a8
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004043e8
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x45ea83
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.0044be24
test al, al
je 0x45ea76
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, 0x45eac4
lea eax, [ebp - 0x254]
call fcn.0040946c
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45ea76
xor eax, eax
push ebp
push 0x45ea6f
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 0x45eafc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45ea58
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404650
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 0x45ea58
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404650
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ea76
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45e979
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004180f0
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 0x45eaba
lea eax, [ebp - 0x260]
call fcn.004043e8
ret

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

Disassembly:
push ecx
mov eax, dword [0x4bdc38]
cmp byte [eax + 0xa5], 0
jne 0x45f459
cmp dword [0x4bdc50], 0
jne 0x45f41a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45f3a4
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4bdc50], eax
cmp dword [0x4bdc4c], 0
jne 0x45f435
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4bdc4c], eax
cmp dword [0x4bdc54], 0
jne 0x45f459
push esp
push 0
push 0
push 0x45f348
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x4bdc54], eax
pop edx
ret
Function at 0x45f580
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45f597
add esp, 0xfffffff0
call fcn.0040393c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041dfc4
mov eax, dword [0x4bc284]
cmp word [eax + 2], 0
jne 0x45f5bf
mov eax, dword [0x4bc284]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00460bcc
mov eax, dword [0x4bc340]
cmp word [eax + 2], 0
jne 0x45f5d9
mov eax, dword [0x4bc340]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00460dc4
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x413204]
call fcn.004035a8
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x413204]
call fcn.004035a8
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], 0x80000018
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 [0x42054c]
call fcn.00428350
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x45f760
mov eax, dword [0x4bc194]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00428720
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x461334
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4bc194]
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.0040c0c0
test eax, eax
je 0x45f6ce
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408db4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c0e8
test eax, eax
je 0x45f6e2
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.00404650
mov eax, dword [0x4bc040]
cmp byte [eax], 0
jne 0x45f716
mov eax, ebx
call fcn.0045f888
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.00461510
mov eax, ebx
call fcn.00461e50
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45f756
call fcn.00403994
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45fafc
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4bdc38]
cmp dword [eax + 0x30], 0
je 0x45fba6
cmp dword [ebx + 0x94], 0
jne 0x45fba0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45fa8c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45fba0
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 0x45fb66
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45fba0
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.00415a90
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45fb75
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x460684
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 0x4606b9
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.004044d8
jmp 0x4606c6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040443c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x4616ec
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46172d
mov eax, esi
call fcn.00447518
test al, al
je 0x46172d
mov eax, dword [ebx + 0x84]
call fcn.00447214
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46172d
push 0
mov eax, dword [ebx + 0x84]
call fcn.00447214
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x462464
Capabilities:
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
test dl, dl
je 0x46247c
add esp, 0xfffffff0
call fcn.0040393c
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x462593
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, ebx
call fcn.0041dfc4
mov byte [ebx + 0xa18], 0
mov eax, 0x400
call fcn.0040277c
mov dword [ebx + 0x86c], eax
push ebx
push 0x462d0c
call fcn.00457d58
mov dword [ebx + 0x864], eax
mov dword [ebx + 0xa10], 1
mov byte [ebx + 0x870], 0
mov ecx, 0x4625c4
mov dl, 8
mov eax, ebx
call fcn.00462c8c
lea eax, [ebx + 0x874]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x462563
xor eax, eax
push ebp
push 0x46254d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov dword [ebx + 0xa50], esi
inc esi
jne 0x462526
lea ecx, [ebp - 8]
mov dx, 0x2733
mov eax, ebx
call fcn.00462ac8
push 4
push 0x4625dc
push 0xff7f
push 0xffff
mov eax, dword [ebx + 0xa50]
push eax
call sub.wsock32.dll_setsockopt
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x462571
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, ebx
call fcn.00462ac8
mov byte [ebx + 0xa18], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46259a
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0040440c
ret

Function at 0x462624
Capabilities:
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4626f8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0xa50]
test eax, eax
je 0x462653
push eax
call sub.wsock32.dll_closesocket
call sub.wsock32.dll_WSACleanup
lea eax, [ebx + 0x874]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x4626bf
xor eax, eax
push ebp
push 0x4626a9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov dword [ebx + 0xa50], esi
inc esi
jne 0x46269f
lea ecx, [ebp - 8]
mov dx, 0x2733
mov eax, ebx
call fcn.00462ac8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4626cd
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, ebx
call fcn.00462ac8
mov eax, dword [ebp - 4]
mov dword [ebx + 0x840], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4626ff
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.0040440c
ret
Function at 0x462908
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffff7fc
mov esi, edx
mov ebx, eax
xor edi, edi
jmp 0x46298a
test edi, edi
jle 0x462935
mov ecx, 0x462a84
mov dl, 1
mov eax, dword [0x407898]
call fcn.0040b3ac
call fcn.00403da4
jmp 0x46298a
cmp word [ebx + 0xa42], 0
jne 0x462957
mov ecx, 0x462a84
mov dl, 1
mov eax, dword [0x407898]
call fcn.0040b3ac
call fcn.00403da4
jmp 0x46298a
mov byte [esp], 0
mov edx, esp
mov ecx, esi
mov eax, dword [ebx + 0xa44]
call dword [ebx + 0xa40]
cmp byte [esp], 0
jne 0x462989
mov ecx, 0x462a84
mov dl, 1
mov eax, dword [0x407898]
call fcn.0040b3ac
call fcn.00403da4
jmp 0x46298a
inc edi
mov eax, esi
call fcn.004181d4
cmp edx, 0
jne 0x462999
cmp eax, 0
je 0x462919
mov byte [ebx + 0x870], 0
mov eax, ebx
call fcn.00462794
cmp dword [ebx + 0x848], 0
jne 0x4629cc
mov ecx, 0x462a9c
mov dl, 1
mov eax, dword [0x46209c]
call fcn.0040b3ac
call fcn.00403da4
mov ecx, 0x462ab8
mov dl, 2
mov eax, ebx
call fcn.00462c8c
mov word [ebx + 0x844], 2
mov ax, word [ebx + 0x83c]
push eax
call sub.wsock32.dll_htons
mov word [ebx + 0x846], ax
mov edi, 0x10
push 0
push 0
mov eax, esi
call fcn.004181c0
mov eax, esi
call fcn.004181d4
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x462a1c
call fcn.00403518
mov ecx, eax
lea edx, [esp + 1]
mov eax, esi
call fcn.004183cc
push edi
lea eax, [ebx + 0x844]
push eax
push 0
mov eax, esi
call fcn.004181d4
push eax
sar eax, 0x1f
cmp eax, edx
pop eax
je 0x462a48
call fcn.00403518
push eax
lea eax, [esp + 0x11]
push eax
mov eax, dword [ebx + 0xa50]
push eax
call sub.wsock32.dll_sendto
cmp word [ebx + 0xa32], 0
je 0x462a72
mov edx, ebx
mov eax, dword [ebx + 0xa34]
call dword [ebx + 0xa30]
add esp, 0x804
pop edi
pop esi
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x462e20
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x800
lea eax, [ebx + 0x30]
push eax
mov eax, dword [ebx + 0xa50]
push eax
call sub.wsock32.dll_recvfrom
mov dword [ebx + 0x834], eax
cmp word [ebx + 0xa2a], 0
je 0x462e0a
lea eax, [ebp - 8]
push eax
xor eax, eax
mov al, byte [ebp - 0x14]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
xor eax, eax
mov al, byte [ebp - 0x13]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
xor eax, eax
mov al, byte [ebp - 0x12]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
xor eax, eax
mov al, byte [ebp - 0x11]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x38]
mov ecx, 3
mov eax, 0x462e34
call fcn.004094ec
mov ax, word [ebp - 0x16]
push eax
call sub.wsock32.dll_ntohs
mov edx, dword [ebp - 8]
push edx
movzx eax, ax
push eax
mov ecx, dword [ebx + 0x834]
mov edx, ebx
mov eax, dword [ebx + 0xa2c]
call dword [ebx + 0xa28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x462e27
lea eax, [ebp - 8]
call fcn.004043e8
ret
Function at 0x46cdcc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46cea4
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4bdcc4], 0
jne 0x46ce88
lea eax, [ebp - 4]
mov edx, 0x46cebc
call fcn.00404480
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404898
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x46ce88
mov eax, ebx
call fcn.0040277c
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x46ce81
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
push eax
push ebx
mov eax, dword [ebp - 8]
push eax
push esi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x46ce6b
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x46cecc
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x46ce6b
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
mov dword [0x4bdcc4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ce88
mov eax, dword [ebp - 0xc]
call fcn.0040279c
ret
mov ebx, dword [0x4bdcc4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46ceab
lea eax, [ebp - 4]
call fcn.004043e8
ret

Function at 0x47fde4
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x47fe6d
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4bdcf4
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x47fe57
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040ab4c
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x47fe84
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x4bc3bc]
mov dl, 1
mov eax, dword [0x47ef48]
call fcn.0040b4a4
call fcn.00403da4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47fe74
lea eax, [ebp - 0x1c]
call fcn.004043e8
ret

Function at 0x480538
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.0048045c
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004037d4
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x48059c
call fcn.0047fd2c
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x48058e
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.004037d4
pop esi
pop ebx
ret
Function at 0x4805c0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004802e0
xor eax, eax
push ebp
push 0x48063b
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
jne 0x4805f6
call fcn.00403e50
jmp 0x480642
mov dword [ebp - 0xc], 0x10
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_getsockname
test eax, eax
jne 0x480625
mov ax, word [ebp - 0x1a]
push eax
call sub.wsock32.dll_ntohs
movzx eax, ax
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x480642
mov eax, dword [ebp - 4]
call fcn.004802ec
ret
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x480798
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00404898
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.00402e8c
test ebx, ebx
je 0x4807e3
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4808f1
mov ecx, dword [0x4bc4bc]
mov dl, 1
mov eax, dword [0x47ef48]
call fcn.0040b468
call fcn.00403da4
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x48091e
mov ecx, dword [0x4bc27c]
mov dl, 1
mov eax, dword [0x47ef48]
call fcn.0040b468
call fcn.00403da4
xor eax, eax
push ebp
push 0x48099f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.004037d4
cmp byte [ebp + 8], 0
je 0x480979
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00480828
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004804b8
jmp 0x480995
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00480018
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4809bc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4809c8
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4809f9
mov ecx, dword [0x4bc2e0]
mov dl, 1
mov eax, dword [0x47ef48]
call fcn.0040b468
call fcn.00403da4
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x480a26
mov ecx, dword [0x4bc27c]
mov dl, 1
mov eax, dword [0x47ef48]
call fcn.0040b468
call fcn.00403da4
xor eax, eax
push ebp
push 0x480aa2
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.004037d4
cmp byte [ebp + 8], 0
je 0x480a7e
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00480828
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 4]
call fcn.00480538
jmp 0x480a98
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00480018
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x480abf
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc