Function at 0x140001180
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x550]
sub rsp, 0x650
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x540], rax
mov ecx, 0x202
lea rdx, [rbp - 0x60]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x1400011db
lea rdx, str.WSAStartup_failed._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400015f0
mov eax, 1
jmp 0x1400014f1
mov edx, 1
lea ecx, [rdx + 1]
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140001217
lea rdx, str.Socket_creation_failed._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400015f0
call qword [sym.imp.WS2_32.dll_WSACleanup]
lea eax, [rbx + 2]
jmp 0x1400014f1
xor edi, edi
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x68], edi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x78], xmm1
mov dword [rsp + 0x6c], 2
mov dword [rsp + 0x70], 1
mov dword [rsp + 0x74], 6
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x68]
lea rdx, str.8000
lea rcx, str.94.241.143.125
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x1400012e4
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x400
lea rdi, [0x140005710]
mov qword [rsp + 0x20], rdi
mov r9d, 0x400
mov r8d, eax
xor edx, edx
mov ecx, 0x12ff
call qword [sym.imp.KERNEL32.dll_FormatMessageW]
lea rdx, str.getaddrinfo_failed:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400015f0
mov rcx, rax
mov rdx, rdi
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___void_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [0x1400017c0]
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]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x1400014f1
mov rdx, qword [rsp + 0x40]
mov r8d, dword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
jns 0x140001335
lea rdx, str.Connection_failed._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400015f0
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
jmp 0x1400014f1
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x60], send
mov ecx, 0x50
call fcn.140001acc
mov rdx, rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x58], 0x44
mov qword [rsp + 0x60], 0x4f
movaps xmm0, xmmword [str.GET__api__HTTP_1.1_r_nHost:_94.241.143.125:8000_r_nConnection:_close_r_n_r_n]
movups xmmword [rax], xmm0
movaps xmm1, xmmword [0x140003490]
movups xmmword [rax + 0x10], xmm1
movaps xmm0, xmmword [0x1400034a0]
movups xmmword [rax + 0x20], xmm0
movaps xmm1, xmmword [0x1400034b0]
movups xmmword [rax + 0x30], xmm1
mov eax, dword [0x1400034c0]
mov dword [rdx + 0x40], eax
mov byte [rdx + 0x44], dil
xor r9d, r9d
mov r8d, dword [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x1400013d1
lea rdx, str.Send_failed._n
jmp 0x140001443
xor r9d, r9d
mov r8d, 0x3ff
lea rdx, [rbp + 0x140]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x140001437
nop
mov ecx, eax
cmp rcx, 0x400
jae 0x140001515
mov byte [rbp + rcx + 0x140], 0
lea rdx, [rbp + 0x140]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400015f0
xor r9d, r9d
mov r8d, 0x3ff
lea rdx, [rbp + 0x140]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x1400013f0
cmp eax, 0xffffffff
jne 0x14000149f
lea rdx, str.Receive_failed._n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.1400015f0
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x140001498
inc rdx
mov rcx, qword [rsp + 0x48]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140001493
mov rcx, qword [rcx - 8]
sub rax, rcx
add rdx, 0x27
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400014e3
call fcn.140001b08
mov eax, 1
jmp 0x1400014f1
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0xf
jbe 0x1400014ef
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400014ea
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400014ea
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140001b08
xor eax, eax
mov rcx, qword [rbp + 0x540]
xor rcx, rsp
call fcn.140001810
lea r11, [rsp + 0x650]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
call fcn.140001938
nop
int3