joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462300
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f852b
mov eax, dword fs:[0]
push eax
sub esp, 0x134
mov eax, dword [0x541a34]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x13c], ecx
mov eax, dword [ebp + 8]
mov byte [eax + 0xc4], 1
push str.SYSTEMCurrentControlSetServicesTcpip6ParametersInterfaces_
lea ecx, [ebp - 0x128]
call fcn.00439760
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x128]
call fcn.0043ac10
lea edx, [ebp - 0x134]
push edx
push 0x20019
push 0
lea ecx, [ebp - 0x128]
call fcn.0043ccc0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4623ae
mov dword [ebp - 0x12c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.0043a380
mov eax, dword [ebp - 0x12c]
jmp 0x462426
mov dword [ebp - 0x130], 0x100
lea eax, [ebp - 0x130]
push eax
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x140]
push edx
push 0
push str.NameServer
mov eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x462404
lea ecx, [ebp - 0x110]
push ecx
mov ecx, dword [ebp + 8]
add ecx, 0xc8
call fcn.0043a9c0
mov edx, dword [ebp + 8]
mov byte [edx + 0xc4], 0
mov dword [ebp - 0x138], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.0043a380
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d219c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4634d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0x14], 0
je 0x4634e5
mov dword [ebp - 4], 5
jmp 0x4634ec
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x506020
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jl 0x463517
mov dword [ebp - 8], 1
jmp 0x46351e
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x463be0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x102
jne 0x463c24
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [ebp - 8], eax
jmp 0x463c2b
mov dword [ebp - 8], 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x463e60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x463e84
xor eax, eax
jmp 0x463f04
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x463e9b
xor eax, eax
jmp 0x463f04
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x463ee7
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x463ee7
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x463ebe
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x463ef3
xor eax, eax
jmp 0x463f04
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x463f01
xor eax, eax
jmp 0x463f04
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x46b270
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], 0x811c9dc5
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
call fcn.004432d0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
xor edx, edx
mov ecx, 0xa
div ecx
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
call fcn.0044e020
mov dword [ebp - 0x14], eax
jmp 0x46b2ba
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jae 0x46b2da
imul ecx, dword [ebp - 8], 0x1000193
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
movzx edx, word [eax + edx*2]
xor ecx, edx
mov dword [ebp - 8], ecx
jmp 0x46b2b1
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x46b460
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 4], ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 8], eax
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x2c], 0x46b950
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconW]
mov dword [ebp - 0x1c], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x18], eax
push 0
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 8]
mov dword [ebp - 0xc], ecx
lea edx, [ebp - 0x30]
push edx
call dword [sym.imp.USER32.dll_RegisterClassW]
movzx eax, ax
test eax, eax
jne 0x46b4e3
xor eax, eax
jmp 0x46b546
push 0
mov ecx, dword [ebp - 8]
push ecx
push 0
push 0
push closesocket
push closesocket
push closesocket
push closesocket
push 0xcf0000
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
cmp dword [edx], 0
jne 0x46b527
xor eax, eax
jmp 0x46b546
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp - 4]
mov eax, dword [edx]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x46e130
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x541a34]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ecx
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketW]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0xc], eax
push 0
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x14]
push eax
call fcn.0045f960
add esp, 0xc
push 0x10
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_bind]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0xc]
push edx
call fcn.00471470
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0xc]
push edx
call fcn.0045dc20
mov ecx, eax
call fcn.0046de70
xor eax, eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x10
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x24], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 4]
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx + eax + 4]
mov eax, dword [ebp - 0x18]
mov edx, dword [eax + edx + 4]
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0xc0], 0
mov edx, dword [ebp - 0x18]
mov eax, dword [0x543f30]
mov dword [edx + 0xf0], eax
mov ecx, dword [0x543f34]
mov dword [edx + 0xf4], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [0x543f30]
mov dword [edx + 0xf8], eax
mov ecx, dword [0x543f34]
mov dword [edx + 0xfc], ecx
mov edx, dword [ebp - 0x18]
add edx, 0x10
push edx
mov eax, dword [ebp - 0x18]
add eax, 0x24
push eax
push 0
push 0
push 0x10
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
push eax
call fcn.0045dc20
mov ecx, dword [eax + 0x10]
call ecx
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x46e26f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x46e26f
xor eax, eax
jmp 0x46e274
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d219c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46e4a0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x541a34]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x88], 0
push 0x78
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0xffffffff
je 0x46e56f
lea ecx, [ebp - 0x7c]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
je 0x46e56f
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x94], 0
jmp 0x46e51a
mov edx, dword [ebp - 0x94]
add edx, 1
mov dword [ebp - 0x94], edx
mov eax, dword [ebp - 0x98]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x94]
cmp dword [ecx + edx*4], 0
je 0x46e540
mov eax, dword [ebp - 0x90]
add eax, 1
mov dword [ebp - 0x90], eax
jmp 0x46e50b
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 0x90]
jl 0x46e55c
xor eax, eax
jmp 0x46e571
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + ecx*4]
mov eax, dword [edx]
jmp 0x46e571
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d219c
mov esp, ebp
pop ebp
ret
Function at 0x471470
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov byte [ebp - 1], 1
push 1
lea eax, [ebp - 1]
push eax
push 1
push 6
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4714a0
mov dword [ebp - 8], 1
jmp 0x4714a7
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc0], 1
je 0x471bac
xor al, al
jmp 0x471d12
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0xb0], 0
jne 0x471bc4
mov edx, dword [ebp - 4]
cmp dword [edx + 0xbc], 0
jne 0x471bcb
xor al, al
jmp 0x471d12
mov eax, dword [ebp - 4]
cmp dword [eax + 0xac], 0
jne 0x471bf4
push str.CWtIocpTcp::recvData
push 0x1000
mov ecx, 0x543418
call fcn.0046eac0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xac], eax
push 0
push 0x1000
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0xac]
call fcn.0044e840
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xac]
call fcn.004714b0
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0xac]
call fcn.0043ffc0
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xac]
call fcn.004b15c0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x2c], eax
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x18], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x24], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x28], 0
push 0
mov eax, dword [ebp - 4]
add eax, 0x10
push eax
mov ecx, dword [ebp - 4]
add ecx, 0x28
push ecx
mov edx, dword [ebp - 4]
add edx, 0x24
push edx
push 1
mov eax, dword [ebp - 4]
add eax, 0x2c
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_WSARecv]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x471d03
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x471d03
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 8]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx + 4]
call fcn.00463bc0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 8]
mov ecx, dword [ebp - 4]
lea ecx, [ecx + eax + 4]
call fcn.00460f20
xor al, al
jmp 0x471d12
mov edx, dword [ebp - 4]
mov dword [edx + 0xb0], 1
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x471d20
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc0], 1
je 0x471d3c
xor al, al
jmp 0x471ed4
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0xb4], 0
jne 0x471d54
mov edx, dword [ebp - 4]
cmp dword [edx + 0xb8], 0
jne 0x471d5b
xor al, al
jmp 0x471ed4
mov ecx, dword [ebp - 4]
add ecx, 0xc4
call fcn.00471ee0
test eax, eax
jne 0x471d74
xor al, al
jmp 0x471ed4
mov dword [ebp - 8], 0
jmp 0x471d86
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xc
jge 0x471df7
mov ecx, dword [ebp - 4]
add ecx, 0xc4
call fcn.00471ee0
test eax, eax
je 0x471df7
mov ecx, dword [ebp - 4]
add ecx, 0xc4
call fcn.00471920
mov ecx, dword [eax]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 4]
add ecx, 0xc4
call fcn.00471960
mov ecx, dword [ebp - 0xc]
call fcn.0043ffc0
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [ecx + edx*8 + 0x38], eax
mov ecx, dword [ebp - 0xc]
call fcn.004b15c0
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [ecx + edx*8 + 0x34], eax
lea edx, [ebp - 0xc]
push edx
mov ecx, dword [ebp - 4]
add ecx, 0xd8
call fcn.00471a30
jmp 0x471d7d
mov eax, dword [ebp - 4]
mov dword [eax + 0xa8], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x98], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x9c], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0xa0], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xa4], 0
mov edx, dword [ebp - 4]
mov dword [edx + 0x94], 0
push 0
mov eax, dword [ebp - 4]
add eax, 0x98
push eax
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x94
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
add eax, 0x34
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_WSASend]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x471ec5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x471ec5
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov edx, dword [ecx + 8]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx + 4]
call fcn.00463bc0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov ecx, dword [ebp - 4]
mov eax, dword [edx + 0x14]
call eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov eax, dword [edx + 8]
mov ecx, dword [ebp - 4]
lea ecx, [ecx + eax + 4]
call fcn.00460f20
xor al, al
jmp 0x471ed4
mov edx, dword [ebp - 4]
mov dword [edx + 0xb4], 1
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x476230
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f9762
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x541a34]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], vtable.CWtHttp.0
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.0044dc60
mov dword [ebp - 4], 0
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 8
call fcn.0044dc60
mov byte [ebp - 4], 1
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call fcn.0044dc60
mov byte [ebp - 4], 2
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.0044dc60
mov byte [ebp - 4], 3
push 1
push 1
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.0044dab0
mov byte [ebp - 4], 4
push 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.0044dcc0
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x10]
add ecx, 0x34
call fcn.004764e0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x68], 0x2710
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x70], 0x1388
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x6c], 0x1388
mov ecx, dword [ebp - 0x10]
add ecx, 0x80
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x78], ecx
mov eax, dword [ebp - 0x10]
add eax, 0x84
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x7c], eax
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x74], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x88], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x4770a0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], 0x811c9dc5
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
call fcn.004432d0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
xor edx, edx
mov ecx, 0xa
div ecx
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
call fcn.004432f0
mov dword [ebp - 0x14], eax
jmp 0x4770ea
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jae 0x477109
imul ecx, dword [ebp - 8], 0x1000193
mov edx, dword [ebp - 0x14]
add edx, dword [ebp - 4]
movsx eax, byte [edx]
xor ecx, eax
mov dword [ebp - 8], ecx
jmp 0x4770e1
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x477d80
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x541a34]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x220], ecx
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x68], ecx
mov edx, dword [ebp - 0x220]
mov eax, dword [ebp + 0x10]
mov dword [edx + 0x6c], eax
mov ecx, dword [ebp - 0x220]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x70], edx
mov ecx, dword [ebp - 0x220]
add ecx, 0x34
call fcn.0047a090
test eax, eax
je 0x477e91
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp - 0x220]
add ecx, 0x34
call fcn.0047dec0
mov dword [ebp - 0x21c], 0
mov dword [ebp - 0x118], 0
lea edx, [ebp - 0x21c]
push edx
mov ecx, dword [ebp - 0x220]
add ecx, 0x34
call fcn.00477430
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp - 0x220]
add ecx, 0x34
call fcn.00477430
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0x228], 1
lea ecx, [ebp - 0x22c]
push ecx
lea edx, [ebp - 0x118]
push edx
push 0
lea eax, [ebp - 0x21c]
push eax
mov ecx, dword [ebp - 0x220]
add ecx, 0x34
call fcn.00479660
add eax, 1
push eax
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
jne 0x477e83
mov eax, 1
jmp 0x477fd6
mov ecx, dword [ebp - 0x220]
add ecx, 0x34
call fcn.00477d40
push 0
mov ecx, dword [ebp - 0x220]
add ecx, 0x34
call fcn.00478780
test eax, eax
jne 0x477ebc
push str.Create_Socket_Fail_
mov ecx, dword [ebp - 0x220]
call fcn.0047de50
xor eax, eax
jmp 0x477fd6
push 0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x220]
add ecx, 4
call fcn.004432f0
push eax
call fcn.00478ef0
add esp, 0xc
mov edx, dword [ebp - 0x220]
mov dword [edx + 0x88], eax
mov eax, dword [ebp - 0x220]
cmp dword [eax + 0x88], 0
jne 0x477f0b
push str.Get_Host_ip_Fail_
mov ecx, dword [ebp - 0x220]
call fcn.0047de50
xor eax, eax
jmp 0x477fd6
mov ecx, dword [ebp - 0x220]
movzx edx, word [ecx + 0x14]
push edx
mov eax, dword [ebp - 0x220]
mov ecx, dword [eax + 0x88]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.0045f960
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x220]
add ecx, 0x34
call fcn.004784a0
test eax, eax
jne 0x477fbb
push str.connect_server_fail_
mov ecx, dword [ebp - 0x220]
call fcn.0047de50
mov ecx, dword [ebp - 0x220]
add ecx, 4
call fcn.004432f0
push eax
mov ecx, dword [ebp - 0x220]
call fcn.004772b0
push 0x5060a4
mov ecx, dword [ebp - 0x220]
call fcn.004772b0
mov edx, dword [ebp - 0x220]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 0x220]
call fcn.00477280
push str.Time_out:
mov ecx, dword [ebp - 0x220]
call fcn.004772b0
mov ecx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp - 0x220]
call fcn.00477280
xor eax, eax
jmp 0x477fd6
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0x220]
add ecx, 0x34
call fcn.0047dec0
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d219c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x478780
Capabilities:
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], ecx
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x30], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x30], 0xffffffff
jne 0x4787a8
xor eax, eax
jmp 0x478816
cmp dword [ebp + 8], 0
je 0x478811
mov eax, dword [ebp - 4]
add eax, 0x20
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
push 0x10
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x30]
push ecx
call dword [sym.imp.WS2_32.dll_bind]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x478805
mov edx, dword [ebp - 4]
add edx, 0x20
push edx
push 0x20
mov eax, dword [ebp - 4]
push eax
call fcn.0045fa00
add esp, 0xc
mov eax, 1
jmp 0x478816
mov ecx, dword [ebp - 4]
call fcn.00477d40
xor eax, eax
jmp 0x478816
mov eax, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x47de00
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
lea eax, [ebp + 8]
push eax
push 0x8004667e
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x30]
push edx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x47de2c
xor eax, eax
jmp 0x47de45
cmp dword [ebp - 4], 0
jne 0x47de3b
mov dword [ebp - 8], 1
jmp 0x47de42
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x47dec0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 8], 0xffffffff
jne 0x47ded6
mov dword [ebp + 8], 0
cmp dword [ebp + 0xc], 0xffffffff
jne 0x47dee3
mov dword [ebp + 0xc], 0
push 4
lea eax, [ebp + 8]
push eax
push 0x1005
push 0xffff
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x30]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x47df0e
mov dword [ebp - 8], 1
jmp 0x47df15
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
push 4
lea ecx, [ebp + 0xc]
push ecx
push 0x1006
push 0xffff
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x30]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x47df46
mov dword [ebp - 0x10], 1
jmp 0x47df4d
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 4]
and ecx, dword [ebp - 0x10]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8