Function at 0x14002d3a0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Create process suspended
Create two anonymous pipes

Disassembly:
push rbp
push rbx
push rdi
push r15
lea rbp, [rsp - 0x448]
sub rsp, 0x548
mov rax, qword [0x14009b3f8]
xor rax, rsp
mov qword [rbp + 0x430], rax
xor r15d, r15d
mov qword [rsp + 0x68], rcx
mov qword [rcx + 8], r15
lea rax, vtable.cMemThread.0
mov qword [rcx], rax
lea rdx, str.cMemThread_create
mov word [rcx + 0x10], r15w
mov rbx, rcx
mov qword [rcx + 0x18], r15
mov qword [rcx + 0x20], r15
mov dword [rcx + 0x28], r15d
mov qword [rcx + 0x30], r15
mov qword [rcx + 0x60], r15
mov qword [rcx + 0x68], r15
mov rcx, qword [0x1400a7130]
mov rax, qword [rcx]
call qword [rax + 0x50]
call fcn.14002af40
mov qword [rbx + 0x58], rax
mov rax, qword [0x1400a7130]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov ecx, 0xffff
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetActiveProcessorCount]
mov dword [rbx + 8], eax
test eax, eax
je 0x14002db56
call qword [sym.imp.KERNEL32.dll_GetActiveProcessorGroupCount]
mov word [rbx + 0x10], ax
test ax, ax
je 0x14002db6b
lea rcx, [rbx + 0xc]
call qword [sym.imp.KERNEL32.dll_GetNumaHighestNodeNumber]
test eax, eax
je 0x14002db80
inc dword [rbx + 0xc]
mov ecx, dword [rbx + 8]
mov qword [rsp + 0x578], rsi
mov qword [rsp + 0x580], r12
mov qword [rsp + 0x588], r13
mov qword [rsp + 0x540], r14
mov r14d, 4
mov dword [rsp + 0x54], r14d
shl ecx, 2
imul rsi, rcx, 0x460
mov dword [rbx + 0x28], ecx
xor r9d, r9d
xor edx, edx
lea rcx, [0x1400680e8]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
lea r8d, [r9 + 4]
lea rcx, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
test rax, rax
je 0x14002db3d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14002db3d
xor r9d, r9d
mov qword [rsp + 0x20], r15
xor r8d, r8d
mov rcx, rdi
lea edx, [r9 + 2]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
test rax, rax
je 0x14002dc1e
mov r8, rsi
mov qword [rbx + 0x20], rdi
xor edx, edx
mov qword [rbx + 0x30], rax
mov rcx, rax
call fcn.140035c20
mov edx, dword [rbx + 0xc]
mov r13d, r15d
mov word [rsp + 0x50], r15w
movzx esi, r15w
test edx, edx
je 0x14002d847
lea rdx, [rsp + 0x60]
movzx edi, si
movzx ecx, si
call qword [sym.imp.KERNEL32.dll_GetNumaAvailableMemoryNodeEx]
test eax, eax
je 0x14002dbad
mov rcx, qword [0x1400a7130]
lea rdx, str.Numa_Node__d__mPN0x_llx
mov r9, qword [rsp + 0x60]
mov r8d, edi
mov rax, qword [rcx]
call qword [rax + 0x50]
mov r8, qword [rsp + 0x60]
mov rax, r8
shr rax, 3
cmp rax, 0x40000000
jbe 0x14002d587
add r8, 0xffffffffc0000000
jmp 0x14002d58a
sub r8, rax
mov rcx, qword [0x1400a7130]
lea rdx, str._____mod_mPN0x_llx
mov qword [rsp + 0x60], r8
mov rax, qword [rcx]
call qword [rax + 0x50]
lea rdx, [rbp - 0x78]
movzx ecx, si
call qword [sym.imp.KERNEL32.dll_GetNumaNodeProcessorMaskEx]
test eax, eax
je 0x14002db95
mov rcx, qword [0x1400a7130]
lea rdx, str.GroupAffinity__d__0x_llx
movzx r8d, word [rbp - 0x70]
mov r9, qword [rbp - 0x78]
mov rax, qword [rcx]
call qword [rax + 0x50]
cmp qword [rsp + 0x60], 0
je 0x14002d82c
mov r8, qword [rbp - 0x78]
mov ecx, 1
mov edi, r15d
lea edx, [rcx + 0x1f]
test r8, rcx
lea eax, [rdi + 1]
cmove eax, edi
add rcx, rcx
test r8, rcx
lea edi, [rax + 1]
cmove edi, eax
add rcx, rcx
sub rdx, 1
jne 0x14002d5f0
mov rcx, qword [0x1400a7130]
lea rdx, str.MaskCount___d
mov r8d, edi
mov rax, qword [rcx]
call qword [rax + 0x50]
mov rsi, qword [rsp + 0x60]
xor edx, edx
mov rax, rsi
movsxd r12, edi
div r12
movabs rcx, 0x400000000
mov qword [rsp + 0x58], rax
cmp rax, rcx
jbe 0x14002d6a6
mov r14, r12
movabs rax, 0xfffffffc00000000
imul r14, rax
mov rbx, rcx
nop dword [rax]
mov rcx, qword [0x1400a7130]
xor edx, edx
add rsi, r14
add r15d, edi
mov rax, rsi
mov qword [rsp + 0x20], rsi
div r12
mov r9d, r15d
mov rdx, rax
mov qword [rsp + 0x58], rax
mov rax, qword [rcx]
mov r8, rdx
lea rdx, str._______mPP__0x_llx__eP_d__mL0x_llx
call qword [rax + 0x50]
cmp qword [rsp + 0x58], rbx
jb 0x14002d6a1
test rsi, rsi
jne 0x14002d660
mov rbx, qword [rsp + 0x68]
mov rcx, qword [0x1400a7130]
lea r8d, [r15 + rdi]
mov eax, r8d
mov dword [rsp + 0x28], r15d
mov r15, qword [rsp + 0x58]
cdq
idiv edi
mov r10, qword [rcx]
lea rdx, str.Process_Setup___pN_d__pPP_d__mPP0x_llx__eP_d
mov r9d, eax
mov qword [rsp + 0x20], r15
mov r14d, eax
call qword [r10 + 0x50]
xor r8d, r8d
mov eax, 1
mov esi, r8d
mov qword [rsp + 0x58], rax
nop word [rax + rax]
test qword [rbp - 0x78], rax
je 0x14002d806
mov edi, r8d
test r14d, r14d
jle 0x14002d806
lea r12d, [r14 - 1]
nop word [rax + rax]
movzx ecx, word [rsp + 0x50]
mov eax, r13d
imul rdx, rax, 0x460
mov rax, qword [rbx + 0x30]
mov word [rdx + rax], cx
mov rcx, qword [rbx + 0x30]
movzx eax, word [rbp - 0x70]
mov word [rdx + rcx + 2], ax
mov rax, qword [rbx + 0x30]
mov dword [rdx + rax + 4], edi
mov rax, qword [rbx + 0x30]
mov dword [rdx + rax + 8], esi
mov rcx, qword [rbx + 0x30]
cmp edi, r12d
jge 0x14002d76a
movabs rax, 0x400000000
mov qword [rcx + rdx + 0x10], rax
mov rax, qword [rbx + 0x30]
mov dword [rdx + rax + 0xc], 1
jmp 0x14002d778
mov qword [rcx + rdx + 0x10], r15
mov rax, qword [rbx + 0x30]
mov dword [rdx + rax + 0xc], r8d
mov r8, qword [rbx + 0x30]
mov rcx, qword [0x1400a7130]
add r8, rdx
mov rax, qword [r8 + 0x10]
movzx edx, word [r8 + 2]
movzx r9d, word [r8]
mov r10, qword [rcx]
mov qword [rsp + 0x38], rax
mov eax, dword [r8 + 4]
mov r8d, r13d
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], edx
lea rdx, str.Pinfo__d__N_G_P_d__d__d_bc_d_size0x_016llx
call qword [r10 + 0x50]
inc r13d
cmp r13d, dword [rbx + 0x28]
jb 0x14002d7f3
mov rcx, qword [rbx + 0x30]
mov edi, r14d
inc dword [rsp + 0x54]
mov esi, 0x41
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, qword [rbx + 0x20]
mov qword [rbx + 0x30], 0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r8d, r8d
mov qword [rbx + 0x20], r8
jmp 0x14002d7f6
xor r8d, r8d
inc edi
cmp edi, r14d
jl 0x14002d710
mov rax, qword [rsp + 0x58]
add rax, rax
inc esi
mov qword [rsp + 0x58], rax
cmp esi, 0x40
jl 0x14002d6f0
jle 0x14002d824
movzx esi, word [rbx + 0xc]
inc si
jmp 0x14002d829
movzx esi, word [rsp + 0x50]
xor r15d, r15d
mov edx, dword [rbx + 0xc]
inc si
movzx eax, si
mov word [rsp + 0x50], si
cmp eax, edx
jb 0x14002d535
mov r14d, dword [rsp + 0x54]
movzx eax, si
mov ecx, r15d
cmp eax, edx
cmovne ecx, r14d
mov dword [rsp + 0x54], ecx
mov r14d, ecx
test ecx, ecx
je 0x14002d86a
mov ecx, dword [rbx + 8]
imul ecx, r14d
jmp 0x14002d49d
mov dword [rbx + 0x28], r13d
lea rdx, str.Max_process_count___d
mov rcx, qword [0x1400a7130]
mov r8d, r13d
mov rax, qword [rcx]
call qword [rax + 0x50]
mov rcx, qword [0x1400a7130]
lea rdx, str.MemThread:_Create_Semaphores
mov rax, qword [rcx]
call qword [rax + 0x50]
mov r9d, 0x1000
mov dword [rsp + 0x70], SafeArrayPutElement
lea r8, [rsp + 0x70]
mov dword [rbp - 0x80], 1
lea rdx, [rbx + 0x40]
mov qword [rsp + 0x78], r15
lea rcx, [rbx + 0x38]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x14002dbc5
mov rcx, qword [rbx + 0x40]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov r9d, 0x1000
lea r8, [rsp + 0x70]
lea rdx, [rbx + 0x50]
lea rcx, [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x14002dbda
mov rcx, qword [rbx + 0x48]
xor r8d, r8d
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
xor r12d, r12d
mov esi, r12d
cmp dword [rbx + 0x28], r12d
jbe 0x14002d990
nop dword [rax]
mov r9d, esi
lea r8, str.memTESTsemaphore_03d
mov edx, 0x40
lea rcx, [rbp - 0x60]
call fcn.140001150
xor edx, edx
mov eax, esi
lea r9, [rbp - 0x60]
lea rcx, [rsp + 0x70]
imul rdi, rax, 0x460
lea r8d, [rdx + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov rcx, qword [rbx + 0x30]
lea r9, [rbp - 0x60]
mov r8d, esi
lea rdx, str._____Proc__d_____s
mov qword [rdi + rcx + 0x28], rax
mov rcx, qword [0x1400a7130]
mov rax, qword [rcx]
call qword [rax + 0x50]
mov rax, qword [rbx + 0x30]
cmp qword [rdi + rax + 0x28], r12
je 0x14002dbef
inc esi
cmp esi, dword [rbx + 0x28]
jb 0x14002d920
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x1400a7130]
lea rdx, str.MemThread:_Create_Processes
mov rax, qword [rcx]
call qword [rax + 0x50]
xor edx, edx
lea r13, [0x1400a55e0]
mov rcx, r13
lea r8d, [rdx + 0x68]
call fcn.140035c20
mov dword [0x1400a55e0], 0x68
mov edi, r12d
mov word [0x1400a5620], r12w
mov rax, qword [rbx + 0x38]
mov qword [0x1400a5630], rax
mov rax, qword [rbx + 0x50]
mov qword [0x1400a5638], rax
mov rax, qword [rbx + 0x50]
or dword [0x1400a561c], 0x101
mov qword [0x1400a5640], rax
cmp dword [rbx + 0x28], r12d
jbe 0x14002dacd
nop
mov r9, qword [rbx + 0x18]
lea r8, str._s__myInstance:_d
xor eax, eax
mov dword [rsp + 0x20], edi
mov edx, 0x1ff
mov qword [rbp - 0x78], rax
lea rcx, [rbp + 0x30]
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
call fcn.140001150
mov eax, edi
lea rdx, [rbp + 0x30]
imul rsi, rax, 0x460
mov rax, qword [rbx + 0x30]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov dword [rsi + rax + 0x34], 4
lea rax, [rbp - 0x78]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x4000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x14002dc04
mov rcx, qword [rbp - 0x78]
mov edx, 0xffffffff
call qword [sym.imp.USER32.dll_WaitForInputIdle]
mov rcx, qword [rbx + 0x30]
mov rax, qword [rbp - 0x78]
mov qword [rsi + rcx + 0x20], rax
mov rcx, rbx
mov rax, qword [rbx + 0x30]
mov dword [rsi + rax + 0x18], 1
call fcn.14002e550
inc edi
cmp edi, dword [rbx + 0x28]
jb 0x14002da10
mov edi, 0x1e
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
call fcn.14002e550
sub edi, 1
jne 0x14002dad2
mov rcx, qword [0x1400a7130]
lea rdx, str.MemThread:_Init_complete
mov rax, qword [rcx]
call qword [rax + 0x50]
mov r13, qword [rsp + 0x588]
mov rax, rbx
mov r12, qword [rsp + 0x580]
mov rsi, qword [rsp + 0x578]
mov r14, qword [rsp + 0x540]
mov rcx, qword [rbp + 0x430]
xor rcx, rsp
call fcn.1400303d0
add rsp, 0x548
pop r15
pop rdi
pop rbx
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rdx, rdi
lea rcx, str.CreateFileMapping_error__h_e__0x_x_0x_x_
mov r8d, eax
call fcn.14002e4d0
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetActiveProcessorCount_error__0x_x_
call fcn.14002e4d0
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetActiveProcessorGroupCount_error__0x_x_
call fcn.14002e4d0
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.GetNumaHighestNodeNumber_error__0x_x_
call fcn.14002e4d0
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, edi
lea rcx, str.GetNumaNodeProcessorMaskEx__error__n_e__0x_x_0x_x_
mov r8d, eax
call fcn.14002e4d0
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, edi
lea rcx, str.GetNumaAvailableMemoryNodeEx__error__n_e__0x_x_0x_x_
mov r8d, eax
call fcn.14002e4d0
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, [0x1400684c0]
call fcn.14002e4d0
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreatePipe_error__0x_x_
call fcn.14002e4d0
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.CreateSemaphore_error__0x_x_
call fcn.14002e4d0
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, [rbp + 0x30]
lea rcx, str.CreateProcess___s__error__0x_x_
call fcn.14002e4d0
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.MapViewOfFile_error__0x_x_
call fcn.14002e4d0
int3