Function at 0x140001770
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
lea rbp, [rsp - 0xf70]
mov eax, 0x1070
call fcn.1400070d0
sub rsp, rax
mov rax, qword [0x14000c040]
xor rax, rsp
mov qword [rbp + 0xf60], rax
mov r13, r8
mov r12, rdx
mov r14, rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
mov edx, 1
lea rcx, str.Downloader
call qword [sym.imp.WININET.dll_InternetOpenA]
mov r15, rax
test rax, rax
jne 0x140001889
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov ecx, 0x20
call fcn.140006180
mov rdx, rax
mov qword [rsp + 0x30], rax
movdqa xmm0, xmmword [0x140008df0]
movdqu xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [str.Failed_to_initialize_WinINet.]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x1400086a0]
movsd qword [rax + 0x10], xmm0
mov ecx, dword [0x1400086a8]
mov dword [rax + 0x18], ecx
movzx eax, byte [0x1400086ac]
mov byte [rdx + 0x1c], al
mov byte [rdx + 0x1d], bl
lea rcx, [rsp + 0x30]
call fcn.140001290
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140001d2d
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001d28
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001d28
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, r14
cmp qword [r14 + 0x18], 0xf
jbe 0x140001896
mov rdx, qword [r14]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rsi, rax
test rax, rax
jne 0x140001a0e
mov r13, qword [r14 + 0x10]
movabs rcx, 0x7fffffffffffffff
mov rax, rcx
sub rax, r13
cmp rax, 0x14
jb 0x140001d59
cmp qword [r14 + 0x18], 0xf
jbe 0x1400018e6
mov r14, qword [r14]
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea r12, [r13 + 0x14]
mov edi, 0xf
lea rsi, [rsp + 0x30]
cmp r12, rdi
jbe 0x140001985
mov rdi, r12
or rdi, 0xf
cmp rdi, rcx
jbe 0x140001946
mov rdi, rcx
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140006180
test rax, rax
je 0x1400019f4
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140001980
mov eax, 0x16
cmp rdi, rax
cmovb rdi, rax
lea rcx, [rdi + 1]
test rcx, rcx
jne 0x140001960
mov rsi, rbx
jmp 0x140001980
cmp rcx, 0x1000
jb 0x140001978
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001d5f
jmp 0x140001927
call fcn.140006180
mov rsi, rax
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x48], rdi
movups xmm0, xmmword [str.Failed_to_open_URL:]
movups xmmword [rsi], xmm0
mov ecx, dword [0x1400086c0]
mov dword [rsi + 0x10], ecx
lea rcx, [rsi + 0x14]
mov r8, r13
mov rdx, r14
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + r12], bl
lea rcx, [rsp + 0x30]
call fcn.140001290
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140001a00
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400019fb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400019fb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400061bc
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x140001d2d
mov rdi, rbx
lea r9, [rsp + 0x50]
mov r8d, 0x1000
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140001b73
mov r14, 0xffffffffffffffff
nop dword [rax]
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x140001b73
mov rdx, rdi
add rdx, rax
cmovb rdx, r14
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x140001ab5
mov rbx, rax
mov r8d, dword [rsp + 0x50]
lea rcx, [rax + rdi]
lea rdx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x50]
add rdi, rax
lea r9, [rsp + 0x50]
mov r8d, 0x1000
lea rdx, [rsp + 0x60]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140001a40
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x140001b8e
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov ecx, 0x20
call fcn.140006180
mov qword [rsp + 0x30], rax
movdqa xmm0, xmmword [0x140008dd0]
movdqu xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [str.Memory_allocation_failed.]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x1400086d8]
movsd qword [rax + 0x10], xmm0
movzx ecx, byte [0x1400086e0]
mov byte [rax + 0x18], cl
mov byte [rax + 0x19], 0
lea rcx, [rsp + 0x30]
call fcn.140001290
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140001b53
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001b4e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001b4e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400061bc
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x140001d2d
mov rcx, rsi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
test rbx, rbx
je 0x140001c81
test rdi, rdi
je 0x140001c81
mov r9, r13
mov r8, r12
mov rdx, rdi
mov rcx, rbx
call fcn.140001420
test al, al
jne 0x140001c71
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov ecx, 0x30
call fcn.140006180
mov rdx, rax
mov qword [rsp + 0x30], rax
movdqa xmm0, xmmword [0x140008e10]
movdqu xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [str.Failed_to_write_file_to_temporary_file.]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x140008728]
movups xmmword [rax + 0x10], xmm1
mov ecx, dword [0x140008738]
mov dword [rax + 0x20], ecx
movzx eax, word [0x14000873c]
mov word [rdx + 0x24], ax
movzx eax, byte [0x14000873e]
mov byte [rdx + 0x26], al
mov byte [rdx + 0x27], 0
lea rcx, [rsp + 0x30]
call fcn.140001290
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140001c63
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001c5e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001c5e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400061bc
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140001d2d
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov al, 1
jmp 0x140001d2f
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
mov ecx, 0x30
call fcn.140006180
mov rcx, rax
mov qword [rsp + 0x30], rax
movdqa xmm0, xmmword [0x140008e20]
movdqu xmmword [rsp + 0x40], xmm0
movups xmm0, xmmword [str.Failed_to_download_file_or_file_is_empty.]
movups xmmword [rax], xmm0
movups xmm1, xmmword [0x1400086f8]
movups xmmword [rax + 0x10], xmm1
movsd xmm0, qword [0x140008708]
movsd qword [rax + 0x20], xmm0
movzx eax, byte [0x140008710]
mov byte [rcx + 0x28], al
mov byte [rcx + 0x29], 0
lea rcx, [rsp + 0x30]
call fcn.140001290
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x140001d2d
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001d28
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001d28
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400061bc
xor al, al
mov rcx, qword [rbp + 0xf60]
xor rcx, rsp
call fcn.140006160
mov rbx, qword [rsp + 0x10c8]
add rsp, 0x1070
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1400011b0
int3
call fcn.140001110
int3