Function at 0x140022c30
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Terminate process

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x918
mov qword [rsp + 0xf8], 0xfffffffffffffffe
mov rax, qword [0x14031f2d0]
xor rax, rsp
mov qword [rsp + 0x900], rax
movzx eax, byte [rsp + 0x950]
test eax, eax
je 0x140022c88
lea rax, [0x1402a96e8]
mov qword [rsp + 0x88], rax
jmp 0x140022c97
lea rax, [0x1402a96f8]
mov qword [rsp + 0x88], rax
mov rcx, qword [rsp + 0x930]
call fcn.1400ce874
mov qword [rsp + 0xb0], rax
call fcn.14000aa60
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x948]
mov rcx, qword [rsp + 0xb0]
mov r8, rcx
lea rdx, [0x1402a9720]
mov rcx, rax
call fcn.140009ef0
movzx eax, byte [rsp + 0x950]
test eax, eax
je 0x140022cfd
lea rax, [0x1402a97c0]
mov qword [rsp + 0x90], rax
jmp 0x140022d0c
lea rax, [0x1402a97b0]
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x930]
call fcn.1400ce874
mov qword [rsp + 0xb8], rax
call fcn.14000a9d0
mov rcx, qword [rsp + 0x90]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x948]
mov rcx, qword [rsp + 0xb8]
mov r8, rcx
lea rdx, [0x1402a9850]
mov rcx, rax
call fcn.140009ef0
mov dword [rsp + 0x5c], 0
mov dword [rsp + 0x64], 0
mov edx, 0x88
lea rcx, [rsp + 0x660]
call fcn.140004bc0
lea rcx, [rsp + 0x660]
call fcn.1400ce610
nop
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x68], 0
mov dword [rsp + 0x5b0], 0x18
mov qword [rsp + 0x5b8], 0
mov dword [rsp + 0x5c0], 1
mov dword [rsp + 0x5c0], 1
mov edx, 0x20
lea rcx, [rsp + 0x640]
call fcn.140004bc0
lea rcx, [rsp + 0x640]
call fcn.140029730
nop
mov qword [rsp + 0x5a8], 0
mov dword [rsp + 0x5d0], 0x68
lea rcx, [rsp + 0x5d0]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [rsp + 0x60c], 0x101
xor eax, eax
mov word [rsp + 0x610], ax
mov rcx, qword [rsp + 0x938]
call fcn.1400ce874
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x5b0]
mov r8d, 3
mov edx, 0x40000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0xffffffffffffffff
jne 0x140022f32
mov edx, dword [rsp + 0x50]
lea rcx, [rsp + 0x230]
call fcn.140016650
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0xc8], rax
lea rax, [rsp + 0x1a0]
mov rdi, rax
mov rsi, qword [rsp + 0xc8]
mov ecx, 0x88
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x1a0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x50]
mov r8, qword [rsp + 0x68]
lea rdx, str.CreateFile_failed__return_:__d__ErrorCode_:__d__ErrorMsg:__s
mov rcx, qword [rsp + 0x940]
call fcn.1400ceddc
nop
lea rcx, [rsp + 0x230]
call fcn.1400ce724
mov byte [rsp + 0x54], 0
lea rcx, [rsp + 0x640]
call fcn.140029760
nop
lea rcx, [rsp + 0x660]
call fcn.1400ce724
nop
mov rcx, qword [rsp + 0x930]
call fcn.1400ce724
nop
mov rcx, qword [rsp + 0x938]
call fcn.1400ce724
movzx eax, byte [rsp + 0x54]
jmp 0x14002351c
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x628], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x620], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x630], rax
mov rcx, qword [rsp + 0x930]
call fcn.1400ce874
mov qword [rsp + 0x80], rax
lea rax, [rsp + 0x6f0]
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x100], rax
mov rax, qword [rsp + 0x80]
movzx eax, word [rax]
mov word [rsp + 0x60], ax
mov rax, qword [rsp + 0x78]
movzx ecx, word [rsp + 0x60]
mov word [rax], cx
mov rax, qword [rsp + 0x80]
add rax, 2
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x78]
add rax, 2
mov qword [rsp + 0x78], rax
cmp word [rsp + 0x60], 0
jne 0x140022f88
movzx eax, byte [rsp + 0x950]
test eax, eax
je 0x140022fff
xor edx, edx
lea rcx, [rsp + 0x640]
call fcn.1400297a0
lea rdx, [rsp + 0x5a8]
lea rcx, [rsp + 0x640]
call fcn.140029970
lea rax, [rsp + 0x590]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x5d0]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x6f0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x5c], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
movzx eax, byte [rsp + 0x950]
test eax, eax
je 0x140023080
mov rdx, qword [rsp + 0x5a8]
lea rcx, [rsp + 0x640]
call fcn.1400299a0
cmp dword [rsp + 0x5c], 0
jne 0x140023158
mov edx, dword [rsp + 0x50]
lea rcx, [rsp + 0x110]
call fcn.140016650
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0xd8], rax
lea rax, [rsp + 0x2c0]
mov rdi, rax
mov rsi, qword [rsp + 0xd8]
mov ecx, 0x88
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x2c0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x50]
mov r8d, dword [rsp + 0x5c]
lea rdx, str.CreateProcess_failed__return_:__d__ErrorCode_:__d__ErrorMsg:__s
mov rcx, qword [rsp + 0x940]
call fcn.1400ceddc
nop
lea rcx, [rsp + 0x110]
call fcn.1400ce724
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [rsp + 0x55], 0
lea rcx, [rsp + 0x640]
call fcn.140029760
nop
lea rcx, [rsp + 0x660]
call fcn.1400ce724
nop
mov rcx, qword [rsp + 0x930]
call fcn.1400ce724
nop
mov rcx, qword [rsp + 0x938]
call fcn.1400ce724
movzx eax, byte [rsp + 0x55]
jmp 0x14002351c
mov edx, dword [rsp + 0x948]
mov rcx, qword [rsp + 0x590]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x64], eax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
je 0x1400231c1
cmp dword [rsp + 0x70], 0x80
je 0x1400231a8
cmp dword [rsp + 0x70], 0x102
je 0x140023230
cmp dword [rsp + 0x70], 0xffffffff
je 0x140023320
jmp 0x140023473
lea rdx, [0x1402a98e0]
lea rcx, [rsp + 0x660]
call fcn.1400ceddc
jmp 0x14002348c
lea rdx, [0x1402a9a60]
lea rcx, [rsp + 0x660]
call fcn.1400ceddc
movzx eax, byte [rsp + 0x958]
test eax, eax
je 0x14002322b
xor edx, edx
mov rcx, qword [rsp + 0x590]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [rsp + 0x5c], eax
mov edx, 0x320
mov rcx, qword [rsp + 0x590]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x5c], 0
jne 0x14002322b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x98], eax
mov dword [rsp + 0x9c], 0
jmp 0x14002348c
lea rdx, [0x1402a9a10]
lea rcx, [rsp + 0x660]
call fcn.1400ceddc
lea rdx, str.Time_out__r_n_CSMTP::WaitSocket
mov rcx, qword [rsp + 0x940]
call fcn.1400ceddc
movzx eax, byte [rsp + 0x958]
test eax, eax
je 0x1400232ae
xor edx, edx
mov rcx, qword [rsp + 0x590]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [rsp + 0x5c], eax
mov edx, 0x320
mov rcx, qword [rsp + 0x590]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rsp + 0x64], eax
cmp dword [rsp + 0x5c], 0
jne 0x1400232ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0xa0], eax
mov dword [rsp + 0xa4], 0
mov rcx, qword [rsp + 0x598]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x590]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [rsp + 0x56], 0
lea rcx, [rsp + 0x640]
call fcn.140029760
nop
lea rcx, [rsp + 0x660]
call fcn.1400ce724
nop
mov rcx, qword [rsp + 0x930]
call fcn.1400ce724
nop
mov rcx, qword [rsp + 0x938]
call fcn.1400ce724
movzx eax, byte [rsp + 0x56]
jmp 0x14002351c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
mov edx, dword [rsp + 0x50]
lea rcx, [rsp + 0x3e0]
call fcn.140016650
mov qword [rsp + 0xe0], rax
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xe8], rax
lea rax, [rsp + 0x350]
mov rdi, rax
mov rsi, qword [rsp + 0xe8]
mov ecx, 0x88
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0x350]
lea rdx, str.WaitForSingleObject_return_WAIT_FAILED__Error_Code_:__s
lea rcx, [rsp + 0x660]
call fcn.1400ceddc
nop
lea rcx, [rsp + 0x3e0]
call fcn.1400ce724
mov edx, dword [rsp + 0x50]
lea rcx, [rsp + 0x500]
call fcn.140016650
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0xa8], rax
lea rax, [rsp + 0x470]
mov rdi, rax
mov rsi, qword [rsp + 0xa8]
mov ecx, 0x88
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0x470]
lea rdx, [0x1402a9be0]
mov rcx, qword [rsp + 0x940]
call fcn.1400ceddc
nop
lea rcx, [rsp + 0x500]
call fcn.1400ce724
mov rcx, qword [rsp + 0x598]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x590]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [rsp + 0x57], 0
lea rcx, [rsp + 0x640]
call fcn.140029760
nop
lea rcx, [rsp + 0x660]
call fcn.1400ce724
nop
mov rcx, qword [rsp + 0x930]
call fcn.1400ce724
nop
mov rcx, qword [rsp + 0x938]
call fcn.1400ce724
movzx eax, byte [rsp + 0x57]
jmp 0x14002351c
mov r8d, dword [rsp + 0x64]
lea rdx, [0x1402a9ba0]
lea rcx, [rsp + 0x660]
call fcn.1400ceddc
mov rcx, qword [rsp + 0x598]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x590]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.14000aa60
lea rdx, [0x1402a9c60]
mov rcx, rax
call fcn.140009ef0
call fcn.14000a9d0
lea rdx, [0x1402a9c50]
mov rcx, rax
call fcn.140009ef0
mov byte [rsp + 0x58], 1
lea rcx, [rsp + 0x640]
call fcn.140029760
nop
lea rcx, [rsp + 0x660]
call fcn.1400ce724
nop
mov rcx, qword [rsp + 0x930]
call fcn.1400ce724
nop
mov rcx, qword [rsp + 0x938]
call fcn.1400ce724
movzx eax, byte [rsp + 0x58]
mov rcx, qword [rsp + 0x900]
xor rcx, rsp
call fcn.14013a450
add rsp, 0x918
pop rdi
pop rsi
ret