Function at 0x1400024a0
Capabilities:
Create pipe
Create thread
Create two anonymous pipes
Terminate thread

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x70
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 8
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x50], 0x18
mov dword [rsp + 0x60], 1
mov qword [rsp + 0x58], 0
cmp dword [0x1400080f0], 0
je 0x140002574
lea rdx, str.__exit_n
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x140002574
mov dword [0x1400080f0], 0
xor edx, edx
mov rcx, qword [0x140007ce0]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [rsp + 0x38], eax
xor edx, edx
mov rcx, qword [0x140007ce8]
call qword [sym.imp.KERNEL32.dll_TerminateJobObject]
mov dword [rsp + 0x3c], eax
mov rcx, qword [0x140007cc8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140007cc0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140007cd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140007ce0], 0
mov al, 1
jmp 0x14000290b
cmp dword [0x1400080f0], 0
je 0x140002615
mov edx, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.140002400
test eax, eax
jne 0x14000260e
lea rdx, [0x140005a7c]
lea rcx, [0x140005ad0]
call fcn.140004390
mov dword [0x1400080f0], 0
xor edx, edx
mov rcx, qword [0x140007ce0]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov dword [rsp + 0x40], eax
xor edx, edx
mov rcx, qword [0x140007ce8]
call qword [sym.imp.KERNEL32.dll_TerminateJobObject]
mov dword [rsp + 0x44], eax
mov rcx, qword [0x140007cc8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140007cc0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140007cd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140007ce0], 0
mov al, 1
jmp 0x14000290b
cmp dword [0x1400080f0], 0
jne 0x140002909
xor edx, edx
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateJobObjectA]
mov qword [0x140007ce8], rax
cmp qword [0x140007ce8], 0xffffffffffffffff
jne 0x14000265a
lea rdx, [0x140005a9c]
lea rcx, str.CreateJobObjectA_failed_
call fcn.140004390
xor al, al
jmp 0x14000290b
xor r9d, r9d
lea r8, [rsp + 0x50]
lea rdx, [0x140007cd0]
lea rcx, [0x140007cc8]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x140002694
lea rdx, [0x140005abc]
lea rcx, str.CreatePipe_g_hChildStd_OUT_Rd__g_hChildStd_OUT_Wr_failed_
call fcn.140004390
xor al, al
jmp 0x14000290b
xor r8d, r8d
mov edx, 1
mov rcx, qword [0x140007cc8]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x1400026e1
mov rcx, qword [0x140007cd0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140007cc8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [0x140005acc]
lea rcx, str.SetHandleInformation_g_hChildStd_OUT_Rd_failed_
call fcn.140004390
xor al, al
jmp 0x14000290b
xor r9d, r9d
lea r8, [rsp + 0x50]
lea rdx, [0x140007cc0]
lea rcx, [0x140007cb8]
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x140002735
mov rcx, qword [0x140007cd0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140007cc8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [0x140005ae4]
lea rcx, str.CreatePipe_g_hChildStd_IN_Rd__g_hChildStd_IN_Wr_failed_
call fcn.140004390
xor al, al
jmp 0x14000290b
xor r8d, r8d
mov edx, 1
mov rcx, qword [0x140007cc0]
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
jne 0x14000279c
mov rcx, qword [0x140007cc0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140007cd0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140007cc8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140007cb8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [0x140005b04]
lea rcx, str.SetHandleInformation_g_hChildStd_IN_Wr_failed_
call fcn.140004390
xor al, al
jmp 0x14000290b
call section..text
mov qword [0x140007cd8], rax
cmp qword [0x140007cd8], 0
jne 0x1400027e6
mov rcx, qword [0x140007cc8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140007cc0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [0x140005b44]
lea rcx, str.create_cmd_failed
call fcn.140004390
xor al, al
jmp 0x14000290b
mov rdx, qword [0x140007cd8]
mov rcx, qword [0x140007ce8]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x14000285d
lea rdx, [0x140005bb4]
lea rcx, str.AssignProcessToJobObject_failed_
call fcn.140004390
xor edx, edx
mov rcx, qword [0x140007ce8]
call qword [sym.imp.KERNEL32.dll_TerminateJobObject]
mov dword [rsp + 0x48], eax
mov rcx, qword [0x140007cc8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140007cc0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140007cd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140007ce0], 0
xor al, al
jmp 0x14000290b
mov edx, dword [rsp + 0x88]
mov rcx, qword [rsp + 0x80]
call fcn.140002400
test eax, eax
jne 0x1400028d1
lea rdx, [0x140005bfc]
lea rcx, str.WriteToPipe_failed_
call fcn.140004390
xor edx, edx
mov rcx, qword [0x140007ce8]
call qword [sym.imp.KERNEL32.dll_TerminateJobObject]
mov dword [rsp + 0x4c], eax
mov rcx, qword [0x140007cc8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140007cc0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140007cd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140007ce0], 0
xor al, al
jmp 0x14000290b
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea r8, [0x140001eb0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x140007ce0], rax
mov dword [0x1400080f0], 1
mov al, 1
add rsp, 0x70
pop rdi
ret