Function at 0x1800019d0
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Delete file
Get common file path

Disassembly:
push rsi
sub rsp, 0x310
mov rax, qword [0x18000b800]
xor rax, rsp
mov qword [rsp + 0x300], rax
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0xe0]
mov r8d, 0x101
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rsp + 0x1f0]
mov r8d, 0x105
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x1f0]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
dec eax
cmp eax, 0x103
ja 0x180001c55
mov qword [rsp + 0x328], rbx
mov ebx, dword [rsi + 0x14]
mov qword [rsp + 0x330], rdi
lea eax, [rbx + 1]
mov dword [rsi + 0x14], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r9, rsi
mov dword [rsp + 0x20], ebx
mov r8d, eax
lea rdx, str.vtkWin32OWP__u__p__u.exe
lea rcx, [rsp + 0xe0]
call fcn.1800010a0
or rax, 0xffffffffffffffff
lea rdx, [rsp + 0x1f0]
mov rcx, rax
inc rcx
cmp byte [rdx + rcx], 0
jne 0x180001a84
lea rdx, [rsp + 0xe0]
inc rax
cmp byte [rdx + rax], 0
jne 0x180001a95
add rax, 2
add rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x180001be2
lea r9, [rsp + 0xe0]
mov rcx, rax
lea r8, [rsp + 0x1f0]
lea rdx, str._s_s
call fcn.1800010a0
mov rcx, rdi
call fcn.180001310
test eax, eax
je 0x180001c4a
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x68]
call sub.VCRUNTIME140.dll_memset
or dword [rsp + 0xac], 0x101
lea rdx, [rsi + 8]
mov eax, 0xa
mov dword [rsp + 0x70], 0x68
xor r9d, r9d
mov word [rsp + 0xb0], ax
xor r8d, r8d
lea rcx, [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x180001c41
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rsp + 0xc0]
lea r9, [rsp + 0xc0]
mov dword [rsp + 0x30], 3
xor esi, esi
mov rcx, rax
mov dword [rsp + 0x28], 1
mov r8, rbx
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x180001c41
lea rax, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rsp + 0x70]
mov rdx, rdi
mov qword [rsp + 0x40], rax
xor ecx, ecx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x20
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x180001c0d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rbx, qword [rsp + 0x328]
mov rdi, qword [rsp + 0x330]
mov rcx, qword [rsp + 0x300]
xor rcx, rsp
call fcn.180001e00
add rsp, 0x310
pop rsi
ret
mov rcx, qword [rsp + 0xc0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 1
jmp 0x180001be4
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x180001be2
xor eax, eax
jmp 0x180001bf4