Function at 0x180001d20
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27a0]
mov eax, 0x28a0
call fcn.18003f6a0
sub rsp, rax
mov rax, qword [0x1800892b8]
xor rax, rsp
mov qword [rbp + 0x2790], rax
mov r12, r8
mov r15, rdx
test rdx, rdx
je 0x180002146
test r8, r8
je 0x180002146
xor r13d, r13d
mov dword [rsp + 0x78], r13d
mov dword [rsp + 0x7c], 1
mov dword [rbp - 0x80], 3
mov esi, r13d
nop dword [rax + rax]
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], r13
mov qword [rsp + 0x68], 0xb
mov qword [rsp + 0x70], 0xf
movsd xmm0, qword [0x18006d3a8]
movsd qword [rsp + 0x58], xmm0
movzx eax, word [0x18006d3b0]
mov word [rsp + 0x60], ax
movzx eax, byte [0x18006d3b2]
mov byte [rsp + 0x62], al
mov byte [rsp + 0x63], 0
mov rdi, qword [0x180089258]
lea r9, [0x180089248]
cmp qword [0x180089260], 0x10
cmovae r9, qword [0x180089248]
mov r14, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
sub rax, r14
cmp rdi, rax
ja 0x180001e43
lea rax, [r14 + rdi]
mov qword [rsp + 0x68], rax
lea rbx, [rsp + 0x58]
cmp rcx, 0x10
cmovae rbx, qword [rsp + 0x58]
lea rcx, [rbx + r14]
mov r8, rdi
mov rdx, r9
call fcn.180040f80
lea rax, [rdi + rbx]
mov byte [rax + r14], 0
jmp 0x180001e58
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.1800073c0
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
mov rax, rdx
sub rax, rcx
cmp rax, 4
jb 0x180001e94
lea rax, [rcx + 4]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x58]
cmp rdx, 0x10
cmovae rax, qword [rsp + 0x58]
mov dword [rax + rcx], 0xa0d0a0d
mov byte [rax + rcx + 4], 0
jmp 0x180001eb5
mov qword [rsp + 0x20], 4
lea r9, [0x18006d3b4]
xor r8d, r8d
lea edx, [r8 + 4]
lea rcx, [rsp + 0x58]
call fcn.1800073c0
lea rcx, [0x180089248]
cmp qword [0x180089260], 0x10
cmovae rcx, qword [0x180089248]
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + rsi*4 + 0x78]
call qword [sym.imp.WININET.dll_InternetOpenA]
mov rdi, rax
test rax, rax
je 0x1800020fa
mov dword [rsp + 0x4c], 0x2710
mov r9d, 4
lea r8, [rsp + 0x4c]
lea edx, [r9 - 2]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetSetOptionA]
lea r8, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae r8, qword [rsp + 0x58]
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], 0x80000000
mov r9d, dword [rsp + 0x68]
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rbx, rax
test rax, rax
jne 0x180001f53
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
inc rsi
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x180001f93
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180001f8e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180002172
call fcn.18003ef28
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], 0xf
mov byte [rsp + 0x58], 0
test rbx, rbx
jne 0x180001fba
cmp rsi, 3
jge 0x180002146
jmp 0x180001d90
mov dword [rsp + 0x44], r13d
mov dword [rsp + 0x50], 4
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x44]
mov edx, 0x13
mov rcx, rbx
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
mov rdx, r13
lea rcx, [rsp + 0x44]
lea r8, [0x18006d374]
movzx eax, byte [rcx + rdx]
inc rdx
cmp al, byte [r8 + rdx - 1]
jne 0x1800020e6
cmp rdx, 4
jne 0x180001ff3
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10000000
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1800020e6
xor edx, edx
mov r8d, 0x2800
lea rcx, [rbp - 0x70]
call fcn.180041630
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x48], r13d
lea r9, [rsp + 0x40]
mov r8d, 0x2800
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x1800020c4
nop dword [rax]
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x48]
mov r8d, eax
lea rdx, [rbp - 0x70]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x48], r13d
lea r9, [rsp + 0x40]
mov r8d, 0x2800
lea rdx, [rbp - 0x70]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
mov eax, dword [rsp + 0x40]
test eax, eax
jne 0x180002080
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, 1
jmp 0x180002148
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x180002146
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x180002133
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000212e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180002172
call fcn.18003ef28
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], 0xf
mov byte [rsp + 0x58], 0
xor eax, eax
mov rcx, qword [rbp + 0x2790]
xor rcx, rsp
call fcn.18003f700
mov rbx, qword [rsp + 0x28e0]
add rsp, 0x28a0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1800459f0
int3