Function at 0x180002180
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 0x1800025a6
test r8, r8
je 0x1800025a6
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 [0x18006d3c0]
movsd qword [rsp + 0x58], xmm0
movzx eax, word [0x18006d3c8]
mov word [rsp + 0x60], ax
movzx eax, byte [0x18006d3ca]
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 0x1800022a3
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 0x1800022b8
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 0x1800022f4
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 0x180002315
mov qword [rsp + 0x20], 4
lea r9, [0x18006d3cc]
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 0x18000255a
mov dword [rsp + 0x4c], 0x1388
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 0x1800023ad
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
inc rsi
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x1800023ed
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800023e8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800025d2
call fcn.18003ef28
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x70], 0xf
mov byte [rsp + 0x58], 0
test rbx, rbx
jne 0x180002414
cmp rsi, 3
jge 0x1800025a6
jmp 0x1800021f0
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, [0x18006d38c]
nop dword [rax]
movzx eax, byte [rcx + rdx]
inc rdx
cmp al, byte [r8 + rdx - 1]
jne 0x180002546
cmp rdx, 4
jne 0x180002450
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 0x180002546
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 0x180002524
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 0x1800024e0
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 0x1800025a8
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, rdi
call qword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x1800025a6
mov rdx, qword [rsp + 0x70]
cmp rdx, 0x10
jb 0x180002593
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000258e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800025d2
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