Function at 0x140060050
Capabilities:
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x1f0
mov rax, qword [0x1400d5028]
xor rax, rsp
mov qword [rsp + 0x1e0], rax
cmp qword [0x14019d010], 0x10
lea rbx, str.1234ABCD
lea rdi, str.1234
mov ecx, 0x101
cmovae rbx, qword [str.1234ABCD]
lea rsi, str.192.168.2.188
cmp qword [0x14019cf68], 0x10
lea rdx, [rsp + 0x40]
cmovae rdi, qword [str.1234]
cmp qword [0x14019cf88], 0x10
cmovae rsi, qword [str.192.168.2.188]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400602ac
movzx eax, word [rsp + 0x40]
cmp al, 1
jne 0x14006029b
shr ax, 8
cmp al, 1
jne 0x14006029b
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov ebp, 2
xor r8d, r8d
mov edx, ebp
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_socket]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 0x1388
mov rcx, rax
mov qword [0x14019eb40], rax
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1006
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1400602ac
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_inet_addr]
mov rcx, rdi
mov word [0x14019eb30], bp
mov dword [0x14019eb34], eax
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
mov ecx, eax
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, rbx
mov word [0x14019eb32], ax
call fcn.14004a050
mov dword [0x14019e2f0], eax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov rcx, qword [0x14019eb40]
lea rbx, [0x14019eb30]
xorps xmm0, xmm0
mov dword [0x14019e2f4], eax
xor eax, eax
mov dword [rsp + 0x28], socket
xor r9d, r9d
mov qword [0x14019e2e8], rax
lea r8d, [rbp + 0xe]
mov qword [0x14019e700], rax
lea rdx, [0x14019e2f0]
mov dword [0x14019e708], eax
mov dword [0x14019e2f8], 0
mov dword [0x14019e2fc], 0xaf3c2828
movups xmmword [0x14019e2b8], xmm0
mov qword [rsp + 0x20], rbx
movups xmmword [0x14019e2c8], xmm0
movups xmmword [0x14019e2d8], xmm0
call qword [sym.imp.WS2_32.dll_sendto]
lea ecx, [rbp + 0x12]
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x14019eb40]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rdx, [0x14019e710]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov r8d, 0x400
mov dword [rsp + 0x34], socket
call qword [sym.imp.WS2_32.dll_recvfrom]
test eax, eax
js 0x1400602ac
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x1400445f0]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rax
lea rdx, [0x1400be8b0]
call fcn.1400482e0
lea rdx, [0x1400446e0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rax
lea rdx, str.Kmbox_net_connected
call fcn.1400482e0
lea rdx, [0x1400484b0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov al, 1
jmp 0x140060300
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov qword [0x14019eb40], 0xffffffffffffffff
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [0x140044690]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rax
lea rdx, [0x1400be890]
call fcn.1400482e0
lea rdx, [0x1400446e0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rax
lea rdx, str.Failed_to_connect_to_kmbox_net
call fcn.1400482e0
lea rdx, [0x1400484b0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor al, al
mov rcx, qword [rsp + 0x1e0]
xor rcx, rsp
call fcn.140093620
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret