Function at 0x1400011c0
Capabilities:
Check http status code
Initialize winhttp library
Prepare http request
Read http header
Receive http response
Reference http user-agent string

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
push r14
push r15
sub rsp, 0x5a0
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x590], rax
movups xmm0, xmmword [str.103.81.86.115]
movups xmmword [rsp + 0x70], xmm0
movsd xmm1, qword [0x1400033f0]
movsd qword [rsp + 0x80], xmm1
mov eax, dword [0x1400033f8]
mov dword [rsp + 0x88], eax
lea rdx, str.Hello_World__n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400015c0
xor ebx, ebx
mov dword [rsp + 0x44], ebx
mov dword [rsp + 0x48], 4
lea rax, [rsp + 0x90]
lea rcx, str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_42.0.2311.135_Safari_537.36_Edge_12.246
lea edx, [rbx + 2]
nop dword [rax + rax]
movups xmm0, xmmword [rcx]
movups xmmword [rax], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rax + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rax + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rax + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rax + 0x40], xmm0
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rax + 0x50], xmm1
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rax + 0x60], xmm0
lea rax, [rax + 0x80]
movups xmm1, xmmword [rcx + 0x70]
movups xmmword [rax - 0x10], xmm1
lea rcx, [rcx + 0x80]
sub rdx, 1
jne 0x140001250
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rcx, [rsp + 0x90]
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov r15, rax
test rax, rax
je 0x140001525
mov r8d, 0x50
xor r9d, r9d
lea rdx, [rsp + 0x70]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov r12, rax
test rax, rax
je 0x14000151e
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8, str.test.txt
lea rdx, [0x140003528]
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov r14, rax
test rax, rax
je 0x140001517
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
je 0x140001510
xor edx, edx
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x140001509
mov qword [rsp + 0x28], rbx
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
mov edx, 0x20000013
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x1400014e7
cmp dword [rsp + 0x44], 0xc8
je 0x1400013b2
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, 0xffffffff
jmp 0x140001531
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rbx
mov esi, 0xf
mov qword [rsp + 0x68], rsi
mov byte [rsp + 0x50], 0
mov dword [rsp + 0x40], ebx
lea r9, [rsp + 0x40]
mov r8d, 0x400
lea rdx, [rsp + 0x190]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x14000147d
mov edi, dword [rsp + 0x40]
mov rax, rsi
sub rax, rbx
cmp rdi, rax
ja 0x140001439
lea rax, [rbx + rdi]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x50]
cmp rsi, 0x10
cmovae rax, qword [rsp + 0x50]
add rbx, rax
mov r8d, edi
lea rdx, [rsp + 0x190]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], 0
jmp 0x140001453
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x190]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.140001790
lea rdx, [rsp + 0x190]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400015c0
mov rsi, qword [rsp + 0x68]
cmp dword [rsp + 0x40], 0
jbe 0x14000147d
mov rbx, qword [rsp + 0x60]
jmp 0x1400013d2
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
nop
cmp rsi, 0x10
jb 0x1400014e0
lea rdx, [rsi + 1]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400014db
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400014db
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400019fc
mov eax, 1
jmp 0x140001531
mov rcx, r14
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r12
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov rcx, r15
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov eax, 1
jmp 0x140001531
mov eax, 1
jmp 0x140001531
mov eax, 1
jmp 0x140001531
mov eax, 1
jmp 0x140001531
mov eax, 1
jmp 0x140001531
mov eax, 1
jmp 0x140001531
mov rcx, qword [rsp + 0x590]
xor rcx, rsp
call fcn.1400019a0
lea r11, [rsp + 0x5a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop r12
ret