Function at 0x140001230
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request

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 - 0x370]
sub rsp, 0x470
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x360], rax
xor r12d, r12d
lea rdi, [r12 - 1]
mov qword [rsp + 0x50], r12
mov ecx, 0x202
lea rdx, [rbp - 0x40]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x14000129e
mov edx, eax
lea rcx, str.WSAStartup_failed_with_error:__d_n
call fcn.140001010
lea eax, [rdi + 2]
jmp 0x14000181e
mov qword [rbp - 0x70], r12
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x60], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x50], xmm1
mov dword [rbp - 0x68], 1
mov dword [rbp - 0x64], 6
lea r9, [rsp + 0x50]
lea r8, [rbp - 0x70]
lea rdx, str.8000
lea rcx, str.192.168.38.1
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x1400012ff
lea rcx, str.getaddrinfo_failed_with_error:__d_n
mov edx, eax
call fcn.140001010
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x14000181e
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x14000137b
nop dword [rax]
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 0x1400013a4
mov r8d, dword [rbx + 0x10]
mov rdx, qword [rbx + 0x20]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x140001376
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x140001310
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
lea rcx, str.Unable_to_connect_to_server__n
call fcn.140001010
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea eax, [rbx + 1]
jmp 0x14000181e
mov rbx, qword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp rdi, 0xffffffffffffffff
jne 0x1400013b6
lea rcx, str.Unable_to_connect_to_server__n
call fcn.140001010
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea eax, [rdi + 2]
jmp 0x14000181e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rcx, str.socket_failed_with_error:__ld_n
jmp 0x1400012e8
xor r9d, r9d
lea r8d, [r9 + 0x1c]
lea rdx, str.GET__etc_passwd_HTTP_1.1_r_n_r_n
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1400013ff
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.send_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 0x14000181e
mov edx, eax
lea rcx, str.Bytes_Sent:__ld_n
call fcn.140001010
mov edx, 1
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_shutdown]
cmp eax, 0xffffffff
jne 0x14000144d
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 0x14000181e
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
mov qword [rbp - 0x78], r12
nop word [rax + rax]
xor r9d, r9d
mov r8d, 0x200
lea rdx, [rbp + 0x160]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
test eax, eax
jle 0x1400014a8
mov edx, ebx
lea rcx, str.Bytes_received:__d_n
call fcn.140001010
mov r9, rbx
lea r8, [rbp + 0x160]
mov rdx, qword [rbp - 0x80]
lea rcx, [rsp + 0x78]
call fcn.140001ee0
jmp 0x140001460
je 0x1400014c0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
lea rcx, str.recv_failed_with_error:__d_n
call fcn.140001010
jmp 0x1400014cc
lea rcx, str.Connection_closed_n
call fcn.140001010
mov r15, qword [rsp + 0x78]
mov rbx, r15
mov r14, qword [rbp - 0x80]
cmp r15, r14
je 0x1400014f7
nop dword [rax]
movzx edx, byte [rbx]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001b00
inc rbx
cmp rbx, r14
jne 0x1400014e0
mov rsi, r14
sub rsi, r15
lea rdx, str.Length:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001cd0
mov rcx, rax
mov rdx, rsi
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_long_unsigned___int64_____ptr64]
mov rcx, rax
lea rdx, [0x140001ea0]
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]
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], r12
cmp r15, r14
jne 0x14000155d
mov rax, r12
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], shutdown
mov byte [rsp + 0x58], al
jmp 0x14000163b
movabs rbx, 0x7fffffffffffffff
cmp rsi, rbx
ja 0x14000184e
mov qword [rsp + 0x70], shutdown
cmp rsi, 0xf
ja 0x14000159e
mov qword [rsp + 0x68], rsi
mov r8, rsi
mov rdx, r15
lea rcx, [rsp + 0x58]
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rsi + 0x58], 0
jmp 0x140001636
mov rax, rsi
or rax, 0xf
cmp rax, rbx
jbe 0x1400015d7
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140002330
test rax, rax
je 0x1400017c1
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x140001614
mov rbx, rax
mov ecx, reloc.WS2_32.dll_shutdown
cmp rax, rcx
cmovb rbx, rcx
lea rcx, [rbx + 1]
cmp rcx, 0x1000
jb 0x140001602
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001854
jmp 0x1400015b8
test rcx, rcx
je 0x140001611
call fcn.140002330
mov r14, rax
jmp 0x140001614
mov r14, r12
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], rbx
mov r8, rsi
mov rdx, r15
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
mov byte [r14 + rsi], 0
mov rax, qword [rsp + 0x68]
lea rsi, [rsp + 0x58]
cmp qword [rsp + 0x70], 0xf
cmova rsi, qword [rsp + 0x58]
cmp rax, 4
jb 0x14000177d
lea r14, [rax + rsi]
lea r8, [r14 - 3]
sub r8, rsi
mov edx, recv
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x14000177d
lea r13, str._r_n_r_n
mov rcx, r12
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [rcx + r13 - 1]
jne 0x1400016a9
cmp rcx, 4
jne 0x140001690
mov eax, r12d
jmp 0x1400016ae
sbb eax, eax
or eax, 1
test eax, eax
je 0x1400016d6
inc rbx
lea r8, [r14 - 3]
sub r8, rbx
mov edx, recv
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x140001681
jmp 0x14000177d
sub rbx, rsi
cmp rbx, 0xffffffffffffffff
je 0x14000177d
lea rdx, str.Response_body_until_the_first_occurrence_of__r_n_r_n:_n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140001cd0
lea r8, [rbx + 4]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x30]
call fcn.140001960
nop
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rdx, qword [rsp + 0x30]
mov r8, qword [rsp + 0x40]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140002120
mov rcx, rax
lea rdx, [0x140001ea0]
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]
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x14000177d
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001778
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001778
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000236c
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x1400017cd
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400017c8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400017c8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000236c
mov qword [rsp + 0x68], r12
mov qword [rsp + 0x70], shutdown
mov byte [rsp + 0x58], 0
test r15, r15
je 0x14000181c
mov rdx, qword [rbp - 0x78]
sub rdx, r15
mov rax, r15
cmp rdx, 0x1000
jb 0x140001814
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001814
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call fcn.14000236c
xor eax, eax
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.140002310
lea r11, [rsp + 0x470]
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.140001210
nop
call fcn.140001170
int3