joyce8/EMBER2024-capa huggingface dataset:
Function at 0x415470
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436ddd
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x543040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [0x54420c]
lea esi, [edi + 4]
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x4154b9
push 5
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov eax, dword [esi + 0x2c]
cmp eax, 0x7fffffff
jne 0x4154cf
dec eax
push 6
mov dword [esi + 0x2c], eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push 0
push 0
push 0
push dword [ebp + 8]
mov dword [ebp - 4], 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 8], eax
test eax, eax
jne 0x415506
push str.CreateThread_failed
call fcn.00406040
add esp, 4
mov dword [ebp + 8], 0
jmp 0x415549
push 0x20
call fcn.0043471f
mov ecx, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x14], eax
add esp, 4
mov dword [ebp - 0x14], eax
movups xmmword [eax], xmm0
mov dword [ebp - 0x18], ecx
movups xmmword [eax + 0x10], xmm0
mov dword [eax + 8], ecx
lea ecx, [edi + 0x34]
mov dword [eax], vtable.ACE::ThreadData.0
mov word [eax + 0xc], 0
movups xmmword [eax + 0x10], xmm0
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00415980
push esi
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov eax, dword [ebp + 8]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x415570
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, ecx
lea esi, [edi + 4]
push esi
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x415593
push 5
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov eax, dword [esi + 0x2c]
cmp eax, 0x7fffffff
jne 0x4155a9
dec eax
push 6
mov dword [esi + 0x2c], eax
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push ebx
xor ebx, ebx
cmp dword [edi + 0x3c], ebx
je 0x415606
mov edx, dword [ebp + 8]
movzx eax, byte [edx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 1]
xor ecx, eax
movzx eax, byte [edx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
lea ecx, [edi + 0x34]
push eax
push edx
lea eax, [ebp - 8]
push eax
call fcn.00415ce0
mov eax, dword [eax + 4]
test eax, eax
jne 0x4155fe
mov eax, dword [edi + 0x38]
cmp eax, dword [edi + 0x38]
je 0x415606
mov ebx, dword [eax + 0xc]
push esi
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
add esp, 4
mov eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x415620
Capabilities:
Hash data using fnv
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [0x54420c]
mov ecx, ebx
push esi
push edi
push eax
mov dword [ebp - 4], eax
call fcn.00415570
mov esi, eax
test esi, esi
je 0x415757
push 0
push dword [esi + 8]
mov byte [esi + 0xd], 1
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
je 0x415757
push 0xa
mov byte [esi + 0xc], 1
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edi, [ebx + 4]
push edi
call dword [sym.imp.MSVCP140.dll__Mtx_lock]
add esp, 4
test eax, eax
je 0x415683
push 5
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
cmp dword [edi + 0x2c], 0x7fffffff
jne 0x41569b
push 6
mov dword [edi + 0x2c], accept
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov esi, dword [ebp - 4]
movzx eax, byte [esi]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 1]
xor ecx, eax
movzx eax, byte [esi + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
lea ecx, [ebx + 0x34]
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.00415ce0
mov edx, dword [eax + 4]
test edx, edx
je 0x41573c
mov ecx, dword [ebx + 0x4c]
and ecx, dword [ebp - 4]
mov eax, dword [ebx + 0x40]
lea ecx, [eax + ecx*8]
mov eax, dword [ecx]
cmp dword [ecx + 4], edx
jne 0x415719
cmp eax, edx
jne 0x415711
mov eax, dword [ebx + 0x38]
mov dword [ecx], eax
mov dword [ecx + 4], eax
jmp 0x415721
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
jmp 0x415721
cmp eax, edx
jne 0x415721
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
dec dword [ebx + 0x3c]
mov eax, dword [edx + 4]
push 0x10
push edx
mov dword [eax], ecx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
call fcn.0043474f
add esp, 8
push edi
call dword [sym.imp.MSVCP140.dll__Mtx_unlock]
add esp, 4
mov dword [esi], 0
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4157f0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x18
mov edx, dword [ebp + 8]
push ebx
mov ebx, ecx
cmp edx, eax
je 0x415946
mov eax, dword [ebx + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [edx + 4]
mov dword [ebp - 8], eax
movzx eax, byte [edx + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 9]
push esi
push edi
mov edi, dword [ebx + 0xc]
mov esi, edx
xor ecx, eax
mov dword [ebp - 0x18], edi
movzx eax, byte [edx + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
mov eax, dword [ebx + 0x18]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [edi + eax*8]
mov dword [ebp - 4], ecx
lea eax, [edi + eax*8]
mov dword [ebp - 0xc], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, esi
mov edi, esi
mov esi, dword [esi]
push 0x10
push eax
call fcn.0043474f
dec dword [ebx + 8]
add esp, 8
cmp edi, dword [ebp - 0x10]
je 0x4158a9
mov eax, dword [ebp + 0xc]
cmp esi, eax
jne 0x415867
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jne 0x41593c
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
pop edi
mov dword [edx], esi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 8]
jne 0x4158bd
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov dword [edx], eax
jmp 0x4158c0
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 0xc]
mov dword [edx + 4], ecx
cmp esi, eax
je 0x41593c
nop word [eax + eax]
movzx eax, byte [esi + 8]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [esi + 9]
xor ecx, eax
movzx eax, byte [esi + 0xa]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [esi + 0xb]
imul ecx, ecx, 0x1000193
xor ecx, eax
mov eax, dword [ebx + 0x18]
imul ecx, ecx, 0x1000193
and eax, ecx
mov ecx, dword [ebp - 0x18]
lea eax, [ecx + eax*8]
mov dword [ebp - 4], eax
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, esi
mov edi, esi
mov esi, dword [esi]
push 0x10
push eax
call fcn.0043474f
dec dword [ebx + 8]
add esp, 8
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp - 0x10]
je 0x41594d
cmp esi, eax
jne 0x415917
mov ecx, dword [ebp - 4]
mov dword [ecx], esi
mov ecx, dword [ebp - 8]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x14]
mov dword [ecx], edx
mov dword [ecx + 4], edx
cmp esi, eax
jne 0x4158d0
mov ecx, dword [ebp - 8]
pop edi
mov dword [ecx], esi
mov dword [esi + 4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x415980
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436e15
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x543040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x20], edi
movzx eax, byte [edx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [edx + 1]
xor ecx, eax
movzx eax, byte [edx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [edx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, ebx
push eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push edx
push eax
call fcn.00415ce0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x415a0a
mov dword [edi], eax
mov byte [edi + 4], 0
jmp 0x415b37
cmp dword [ebx + 8], 0xfffffff
jne 0x415a1e
push str.unordered_map_set_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
lea eax, [ebx + 4]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
push 0x10
mov dword [ebp - 0x24], 0
call fcn.0043471f
mov edx, dword [ebp - 0x10]
mov esi, eax
add esp, 4
mov dword [ebp - 0x24], esi
mov ecx, dword [edx]
mov edx, dword [edx + 4]
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
mov dword [ebp - 4], 1
mov eax, dword [ebx + 8]
inc eax
movss xmm3, dword [ebx]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x53b750]
mov eax, dword [ebx + 0x1c]
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
cvtpd2ps xmm0, xmm0
addsd xmm1, qword [eax*8 + 0x53b750]
movaps xmm2, xmm0
cvtpd2ps xmm1, xmm1
divss xmm2, xmm1
comiss xmm2, xmm3
jbe 0x415aea
divss xmm0, xmm3
call fcn.004153c0
call fcn.004355f0
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [ebx + 0x1c]
cmp eax, ecx
jae 0x415acc
cmp eax, 0x200
jae 0x415aca
shl eax, 3
cmp eax, ecx
jae 0x415acc
mov eax, ecx
push eax
mov ecx, ebx
call fcn.00415b70
push dword [ebp - 0x14]
lea eax, [esi + 8]
mov ecx, ebx
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00415ce0
mov edx, dword [eax]
jmp 0x415aed
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 4]
inc dword [ebx + 8]
mov edi, dword [ebp - 0x28]
mov dword [esi + 4], eax
mov dword [esi], edx
mov dword [eax], esi
mov dword [edx + 4], esi
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
and eax, dword [ebp - 0x14]
mov ebx, dword [ecx + eax*8]
cmp ebx, dword [edi]
jne 0x415b18
mov dword [ecx + eax*8], esi
jmp 0x415b2a
cmp ebx, edx
jne 0x415b21
mov dword [ecx + eax*8], esi
jmp 0x415b2e
mov edx, dword [ebp - 0x10]
cmp dword [ecx + eax*8 + 4], edx
jne 0x415b2e
mov dword [ecx + eax*8 + 4], esi
mov edi, dword [ebp - 0x20]
mov dword [edi], esi
mov byte [edi + 4], 1
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x415ee0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x436e85
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x543040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x415f96
imul eax, dword [ebp + 8], 0x3e8
push 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
push eax
push 0x1006
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x415fb4
push 0x1006
lea eax, [ebp - 0x30]
push str.setsockopt_failed__option__d
push eax
call fcn.004176a0
add esp, 0xc
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00405f80
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x415f96
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x415f8c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x415f8c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0043474f
add esp, 8
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00434711
mov esp, ebp
pop ebp
ret 4
push 4
lea eax, [ebp - 0x18]
push eax
push 0x1005
push 0xffff
push dword [esi + 0x20]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x416026
push 0x1005
lea eax, [ebp - 0x48]
push str.setsockopt_failed__option__d
push eax
call fcn.004176a0
add esp, 0xc
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.00405f80
mov ecx, dword [ebp - 0x34]
cmp ecx, 0xf
jbe 0x415f96
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x415f8c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x415f8c
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov al, 1
jmp 0x415f98

Function at 0x416360
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x543040]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4163ae
push str.WSAStartup_failed
call fcn.00406040
add esp, 4
xor al, al
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.00434711
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x194]
mov al, 1
xor ecx, esp
call fcn.00434711
mov esp, ebp
pop ebp
ret

Function at 0x4163d0
Capabilities:
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
je 0x41640a
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
call fcn.004163d0
test al, al
je 0x41640a
push str.WSACleanup_failed
call fcn.00406040
add esp, 4
xor al, al
mov esp, ebp
pop ebp
ret
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x416410
Capabilities:
Convert ip address from string
Create tcp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x543040]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push 6
push 1
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x20], eax
cmp eax, 0xffffffff
jne 0x41645a
push str.socket_failed
call fcn.00406040
add esp, 4
xor al, al
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00434711
mov esp, ebp
pop ebp
ret
mov eax, 2
mov word [esp + 0xc], ax
movzx eax, word [esi + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [esi + 0x18], 0xf
mov word [esp + 0xe], ax
lea eax, [esi + 4]
jbe 0x41647f
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x4164b0
push str.inet_pton_failed
call fcn.00406040
add esp, 4
xor al, al
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00434711
mov esp, ebp
pop ebp
ret
push 4
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 1
push eax
push 4
push 0xffff
push dword [esi + 0x20]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x4164f3
push str.setsockopt_failed
call fcn.00406040
add esp, 4
xor al, al
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00434711
mov esp, ebp
pop ebp
ret
push 0x10
lea eax, [esp + 0x10]
push eax
push dword [esi + 0x20]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x416527
push str.bind_failed
call fcn.00406040
add esp, 4
xor al, al
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00434711
mov esp, ebp
pop ebp
ret
push accept
push dword [esi + 0x20]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x416559
push str.listen_failed
call fcn.00406040
add esp, 4
xor al, al
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00434711
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x1c]
mov al, 1
mov byte [esi + 0x24], 1
pop esi
xor ecx, esp
call fcn.00434711
mov esp, ebp
pop ebp
ret
Function at 0x416570
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Convert ip address from string
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x543040]
xor eax, esp
mov dword [esp + 0x10], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
test eax, eax
je 0x41659c
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x20], 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x20], eax
cmp eax, 0xffffffff
jne 0x4165cf
push str.socket_failed
call fcn.00406040
add esp, 4
xor al, al
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00434711
mov esp, ebp
pop ebp
ret
mov eax, 2
mov word [esp + 4], ax
movzx eax, word [esi + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [esi + 0x18], 0xf
mov word [esp + 6], ax
lea eax, [esi + 4]
jbe 0x4165f4
mov eax, dword [eax]
lea ecx, [esp + 8]
push ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x416625
push str.inet_pton_failed
call fcn.00406040
add esp, 4
xor al, al
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00434711
mov esp, ebp
pop ebp
ret
push 0x10
lea eax, [esp + 8]
push eax
push dword [esi + 0x20]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x416659
push str.connect_failed
call fcn.00406040
add esp, 4
xor al, al
pop esi
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.00434711
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x14]
mov al, 1
mov byte [esi + 0x24], 1
pop esi
xor ecx, esp
call fcn.00434711
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
test edx, edx
je 0x4166a0
mov eax, dword [ebp + 0xc]
test eax, eax
jle 0x4166a0
push dword [ebp + 0x10]
push eax
push edx
push dword [ecx + 0x20]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x4166a6
push str.send_failed
call fcn.00406040
add esp, 4
xor al, al
pop ebp
ret 0xc
mov al, 1
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
test edi, edi
je 0x4166f1
mov esi, dword [ebp + 0xc]
test esi, esi
jle 0x4166f1
push esi
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push dword [ebp + 0x10]
push esi
push edi
push dword [ebx + 0x20]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x4166fa
push str.recv_failed
call fcn.00406040
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 0xc
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 0xc
Function at 0x416710
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
test edi, edi
je 0x41675a
mov esi, dword [ebp + 0xc]
test esi, esi
jle 0x41675a
push esi
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push dword [ebp + 0x10]
push esi
push edi
push dword [ebx + 0x20]
call dword [sym.imp.WS2_32.dll_recv]
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x416749
mov dword [ecx], eax
test eax, eax
jg 0x416763
push str.recv_failed
call fcn.00406040
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 0x10
pop edi
pop esi
mov al, 1
pop ebx
pop ebp
ret 0x10

Function at 0x416770
Capabilities:
Convert ip address from string
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x543040]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
test eax, eax
je 0x41679c
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x20], 0
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x20], eax
cmp eax, 0xffffffff
jne 0x4167cf
push str.socket_failed
call fcn.00406040
add esp, 4
xor al, al
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00434711
mov esp, ebp
pop ebp
ret
mov eax, 2
mov word [esp + 0xc], ax
movzx eax, word [esi + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_htons]
cmp dword [esi + 0x18], 0xf
mov word [esp + 0xe], ax
lea eax, [esi + 4]
jbe 0x4167f4
mov eax, dword [eax]
lea ecx, [esp + 0x10]
push ecx
push eax
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x416825
push str.inet_pton_failed
call fcn.00406040
add esp, 4
xor al, al
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00434711
mov esp, ebp
pop ebp
ret
push 4
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 1
push eax
push 4
push 0xffff
push dword [esi + 0x20]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x416868
push str.setsockopt_failed
call fcn.00406040
add esp, 4
xor al, al
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00434711
mov esp, ebp
pop ebp
ret
push 0x10
lea eax, [esp + 0x10]
push eax
push dword [esi + 0x20]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x41689c
push str.bind_failed
call fcn.00406040
add esp, 4
xor al, al
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00434711
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x1c]
mov al, 1
mov byte [esi + 0x24], 1
pop esi
xor ecx, esp
call fcn.00434711
mov esp, ebp
pop ebp
ret
Function at 0x4168c0
Capabilities:
Convert ip address from string
Create udp socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x20]
test eax, eax
je 0x4168df
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 0x20], 0
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x20], eax
cmp eax, 0xffffffff
jne 0x416907
push str.socket_failed
call fcn.00406040
add esp, 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 2
mov word [esi + 0x28], ax
movzx eax, word [esi + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_htons]
lea ecx, [esi + 4]
mov word [esi + 0x2a], ax
cmp dword [ecx + 0x14], 0xf
jbe 0x41692a
mov ecx, dword [ecx]
lea eax, [esi + 0x2c]
push eax
push ecx
push 2
call dword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
jg 0x41694f
push str.inet_pton_failed
call fcn.00406040
add esp, 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x24], 1
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
je 0x416997
mov edx, dword [ebp + 0xc]
test edx, edx
jle 0x416997
push 0x10
lea eax, [ecx + 0x28]
push eax
push dword [ebp + 0x10]
push edx
push dword [ebp + 8]
push dword [ecx + 0x20]
call dword [sym.imp.WS2_32.dll_sendto]
test eax, eax
jg 0x41699d
push str.sendto_failed
call fcn.00406040
add esp, 4
xor al, al
pop ebp
ret 0xc
mov al, 1
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x543040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
test edi, edi
je 0x416a0d
mov esi, dword [ebp + 0xc]
test esi, esi
jle 0x416a0d
push esi
push 0
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 8], 0x10
lea eax, [ebp - 8]
push eax
lea eax, [ebx + 0x28]
push eax
push dword [ebp + 0x10]
push esi
push edi
push dword [ebx + 0x20]
call dword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
jg 0x416a22
push str.recvfrom_failed
call fcn.00406040
add esp, 4
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00434711
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00434711
mov esp, ebp
pop ebp
ret 0xc