Function at 0x140001450
Capabilities:
Create http request
Get http content length
Read data from internet
Receive data

Disassembly:
sub rsp, 0xe8
mov qword [rsp + 0xd8], rcx
mov qword [rsp + 0xd0], rdx
mov dword [rsp + 0xb8], 0
mov dword [rsp + 0xb4], 0
mov dword [rsp + 0xb0], 0
mov dword [rsp + 0xac], 4
lea rcx, str.User_Agent
mov edx, 1
xor eax, eax
mov r9d, eax
xor eax, eax
mov r8, r9
mov dword [rsp + 0x20], 0
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [rsp + 0xc8], rax
cmp qword [rsp + 0xc8], 0
jne 0x140001518
mov rcx, qword [0x1400a8f50]
lea rdx, str.InternetOpen_failed._Error:
call method.std::__1::basic_ostream_char__std::__1::char_traits_char____std::__1::operator___abi:ne180100__std::__1.char_traits_char____std::__1::basic_ostream_char__std::__1::char_traits_char_____char_const_
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x70]
mov edx, eax
call method.std::__1::basic_ostream_char__std::__1::char_traits_char___.operator___unsigned_long_
mov rcx, rax
lea rdx, [method.std::__1::basic_ostream_char__std::__1::char_traits_char____std::__1::endl_abi:ne180100__char__std::__1.char_traits_char____std::__1::basic_ostream_char__std::__1::char_traits_char____]
call method.std::__1::basic_ostream_char__std::__1::char_traits_char___.operator___abi:ne180100__std::__1::basic_ostream_char__std::__1::char_traits_char_______std::__1::basic_ostream_char__std::__1::char_traits_char_____
mov qword [rsp + 0xe0], 0
jmp 0x140001767
mov rcx, qword [rsp + 0xc8]
mov rdx, qword [rsp + 0xd8]
xor eax, eax
mov r8d, eax
xor r9d, r9d
mov dword [rsp + 0x20], 0x80000000
mov qword [rsp + 0x28], 0
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov qword [rsp + 0xc0], rax
cmp qword [rsp + 0xc0], 0
jne 0x1400015b6
mov rcx, qword [0x1400a8f50]
lea rdx, str.InternetOpenUrlA_failed._Error:
call method.std::__1::basic_ostream_char__std::__1::char_traits_char____std::__1::operator___abi:ne180100__std::__1.char_traits_char____std::__1::basic_ostream_char__std::__1::char_traits_char_____char_const_
mov qword [rsp + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x68]
mov edx, eax
call method.std::__1::basic_ostream_char__std::__1::char_traits_char___.operator___unsigned_long_
mov rcx, rax
lea rdx, [method.std::__1::basic_ostream_char__std::__1::char_traits_char____std::__1::endl_abi:ne180100__char__std::__1.char_traits_char____std::__1::basic_ostream_char__std::__1::char_traits_char____]
call method.std::__1::basic_ostream_char__std::__1::char_traits_char___.operator___abi:ne180100__std::__1::basic_ostream_char__std::__1::char_traits_char_______std::__1::basic_ostream_char__std::__1::char_traits_char_____
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [rsp + 0xe0], 0
jmp 0x140001767
mov rcx, qword [rsp + 0xc0]
mov rax, rsp
lea rdx, [rsp + 0xb0]
mov qword [rax + 0x20], rdx
mov rax, qword [sym.imp.WININET.dll_HttpQueryInfoA]
mov edx, 0x20000005
lea r8, [rsp + 0xb4]
lea r9, [rsp + 0xac]
call rax
mov eax, dword [rsp + 0xb4]
mov edx, eax
mov byte [rsp + 0x8f], 0
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x50], rcx
lea r8, [rsp + 0x8f]
call method.std::__1::vector_unsigned_char__std::__1::allocator_unsigned_char___.vector_unsigned_long_long__unsigned_char_const_
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x58], rax
xor eax, eax
mov edx, eax
call method.std::__1::vector_unsigned_char__std::__1::allocator_unsigned_char___.operator___abi:ne180100__unsigned_long_long_
mov rcx, qword [rsp + 0x58]
mov rdx, rax
mov r8d, dword [rsp + 0xb4]
mov rax, qword [sym.imp.WININET.dll_InternetReadFile]
lea r9, [rsp + 0xbc]
call rax
mov dword [rsp + 0x64], eax
jmp 0x14000165b
mov eax, dword [rsp + 0x64]
cmp eax, 0
jne 0x1400016ed
mov rcx, qword [0x1400a8f50]
lea rdx, str.InternetReadFile_failed._Error:
call method.std::__1::basic_ostream_char__std::__1::char_traits_char____std::__1::operator___abi:ne180100__std::__1.char_traits_char____std::__1::basic_ostream_char__std::__1::char_traits_char_____char_const_
mov qword [rsp + 0x48], rax
jmp 0x140001685
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov dword [rsp + 0x44], eax
jmp 0x140001697
mov edx, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x48]
call method.std::__1::basic_ostream_char__std::__1::char_traits_char___.operator___unsigned_long_
mov qword [rsp + 0x38], rax
jmp 0x1400016af
mov rcx, qword [rsp + 0x38]
lea rdx, [method.std::__1::basic_ostream_char__std::__1::char_traits_char____std::__1::endl_abi:ne180100__char__std::__1.char_traits_char____std::__1::basic_ostream_char__std::__1::char_traits_char____]
call method.std::__1::basic_ostream_char__std::__1::char_traits_char___.operator___abi:ne180100__std::__1::basic_ostream_char__std::__1::char_traits_char_______std::__1::basic_ostream_char__std::__1::char_traits_char_____
jmp 0x1400016c5
jmp 0x14000171f
cmp dword [rsp + 0xbc], 0
jbe 0x14000171a
mov rdx, qword [rsp + 0xd0]
lea rcx, [rsp + 0x90]
call sym.xorDecrypt_std::__1::vector_unsigned_char__std::__1::allocator_unsigned_char____const__std::__1::vector_unsigned_char__std::__1::allocator_unsigned_char____
jmp 0x140001715
jmp 0x14000171a
jmp 0x14000171f
mov rcx, qword [rsp + 0xc0]
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
jmp 0x140001735
mov rcx, qword [rsp + 0xc8]
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
jmp 0x14000174b
mov eax, dword [rsp + 0xbc]
mov qword [rsp + 0xe0], rax
lea rcx, [rsp + 0x90]
call fcn.140002040
mov rax, qword [rsp + 0xe0]
add rsp, 0xe8
ret