Function at 0x180002150
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.18003ef20
sub rsp, rax
mov rax, qword [0x1800882a8]
xor rax, rsp
mov qword [rbp + 0x2790], rax
mov r12, r8
mov r15, rdx
test rdx, rdx
je 0x180002576
test r8, r8
je 0x180002576
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 [str.User_Agent:]
movsd qword [rsp + 0x58], xmm0
movzx eax, word [0x18006c410]
mov word [rsp + 0x60], ax
movzx eax, byte [0x18006c412]
mov byte [rsp + 0x62], al
mov byte [rsp + 0x63], 0
mov rdi, qword [0x180088258]
lea r9, [0x180088248]
cmp qword [0x180088260], 0x10
cmovae r9, qword [0x180088248]
mov r14, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
sub rax, r14
cmp rdi, rax
ja 0x180002273
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.180040800
lea rax, [rdi + rbx]
mov byte [rax + r14], 0
jmp 0x180002288
mov qword [rsp + 0x20], rdi
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.180007290
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
mov rax, rdx
sub rax, rcx
cmp rax, 4
jb 0x1800022c4
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 0x1800022e5
mov qword [rsp + 0x20], 4
lea r9, str._r_n_r_n
xor r8d, r8d
lea edx, [r8 + 4]
lea rcx, [rsp + 0x58]
call fcn.180007290
lea rcx, [0x180088248]
cmp qword [0x180088260], 0x10
cmovae rcx, qword [0x180088248]
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 0x18000252a
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], 0x80ff9200
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 0x18000237d
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
inc rsi
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x1800023bd
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800023b8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800025a2
call fcn.18003e7a4
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], 0xf
mov byte [rsp + 0x58], 0
test rbx, rbx
jne 0x1800023e4
cmp rsi, 3
jge 0x180002576
jmp 0x1800021c0
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, [0x18006c3b4]
nop dword [rax]
movzx eax, byte [rcx + rdx]
inc rdx
cmp al, byte [r8 + rdx - 1]
jne 0x180002516
cmp rdx, 4
jne 0x180002420
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 0x180002516
xor edx, edx
mov r8d, 0x2800
lea rcx, [rbp - 0x70]
call fcn.180040eb0
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 0x1800024f4
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 0x1800024b0
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 0x180002578
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x180002576
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x180002563
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000255e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800025a2
call fcn.18003e7a4
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.18003ef80
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.180045270
int3