Function at 0x1400031f0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x14000d0f8]
xor rax, rsp
mov qword [rbp + 0x140], rax
mov rsi, rcx
add rcx, 8
call fcn.1400052e0
mov r15, rax
xor r12d, r12d
mov qword [rbp + 0x80], r12
mov qword [rbp + 0x90], r12
mov qword [rbp + 0x98], r12
mov qword [rbp + 0x90], r12
mov qword [rbp + 0x98], 7
mov word [rbp + 0x80], r12w
xor r8d, r8d
lea rdx, [0x1400096fc]
lea rcx, [rbp + 0x80]
call fcn.140002520
nop
mov qword [rbp + 0x120], r12
mov qword [rbp + 0x130], r12
mov qword [rbp + 0x138], r12
mov qword [rbp + 0x130], r12
mov qword [rbp + 0x138], 7
mov word [rbp + 0x120], r12w
xor r8d, r8d
lea rdx, [0x1400096fc]
lea rcx, [rbp + 0x120]
call fcn.140002520
nop
lea rcx, [rsi + 8]
call fcn.1400052e0
lea r8, [rax + 0x1d18]
lea r9, [0x140009620]
lea rdx, str._s._s
lea rcx, [rbp + 0x80]
call fcn.1400050e0
lea rdx, [rbp + 0x80]
cmp qword [rbp + 0x98], 8
cmovae rdx, qword [rbp + 0x80]
lea r8, [rbp + 0x120]
mov rcx, rsi
call fcn.140002b00
test al, al
jne 0x14000334f
lea rbx, [rbp + 0x80]
cmp qword [rbp + 0x98], 8
cmovae rbx, qword [rbp + 0x80]
call fcn.1400066e0
lea edx, [r12 + 0x69]
mov rcx, rax
call fcn.140006750
mov rdx, rbx
mov rcx, rax
call fcn.140004f60
xor bl, bl
jmp 0x140003c30
mov qword [rbp + 0x60], r12
mov qword [rbp + 0x70], r12
mov qword [rbp + 0x78], r12
mov qword [rbp + 0x70], r12
mov qword [rbp + 0x78], 7
mov word [rbp + 0x60], r12w
xor r8d, r8d
lea rdx, [0x1400096fc]
lea rcx, [rbp + 0x60]
call fcn.140002520
nop
mov qword [rbp + 0xc0], r12
mov qword [rbp + 0xd0], r12
mov qword [rbp + 0xd8], r12
mov qword [rbp + 0xd0], r12
mov qword [rbp + 0xd8], 7
mov word [rbp + 0xc0], r12w
xor r8d, r8d
lea rdx, [0x1400096fc]
lea rcx, [rbp + 0xc0]
call fcn.140002520
nop
test dword [r15 + 0x2320], 0x400
jne 0x14000344d
lea rcx, [rsi + 8]
call fcn.1400052e0
lea r8, [rax + 0x1d18]
lea r9, [0x140009618]
lea rdx, str._s._s
lea rcx, [rbp + 0x60]
call fcn.1400050e0
lea rdx, [rbp + 0x60]
cmp qword [rbp + 0x78], 8
cmovae rdx, qword [rbp + 0x60]
lea r8, [rbp + 0xc0]
mov rcx, rsi
call fcn.140002b00
test al, al
jne 0x14000344d
lea rbx, [rbp + 0x60]
cmp qword [rbp + 0x78], 8
cmovae rbx, qword [rbp + 0x60]
call fcn.1400066e0
mov edx, 0x69
mov rcx, rax
call fcn.140006750
mov rdx, rbx
mov rcx, rax
call fcn.140004f60
xor bl, bl
jmp 0x140003bc8
mov qword [rbp + 0x20], r12
mov qword [rbp + 0x30], r12
mov qword [rbp + 0x38], r12
mov qword [rbp + 0x30], r12
mov qword [rbp + 0x38], 7
mov word [rbp + 0x20], r12w
xor r8d, r8d
lea rdx, [0x1400096fc]
lea rcx, [rbp + 0x20]
call fcn.140002520
nop
lea rcx, [rbp + 0x20]
call fcn.140004950
test al, al
jne 0x140003492
xor bl, bl
jmp 0x140003b9d
mov qword [rbp], r12
mov qword [rbp + 0x10], r12
mov qword [rbp + 0x18], r12
mov qword [rbp + 0x10], r12
mov qword [rbp + 0x18], 7
mov word [rbp], r12w
xor r8d, r8d
lea rdx, [0x1400096fc]
lea rcx, [rbp]
call fcn.140002520
nop
lea rdx, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae rdx, qword [rbp + 0x20]
mov r8, qword [rbp + 0x30]
lea rcx, [rbp]
call fcn.140002520
mov rcx, qword [rbp + 0x10]
mov rdx, qword [rbp + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 0xa
jb 0x140003524
lea rdi, [rcx + 0xa]
mov qword [rbp + 0x10], rdi
lea rbx, [rbp]
cmp rdx, 8
cmovae rbx, qword [rbp]
lea rcx, [rbx + rcx*2]
mov r8d, 0x14
lea rdx, str.3dsmax.exe
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r12w
jmp 0x140003544
mov qword [rsp + 0x20], 0xa
lea r9, str.3dsmax.exe
xor r8d, r8d
lea edx, [r8 + 0xa]
lea rcx, [rbp]
call fcn.140001380
lea rcx, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rcx, qword [rbp]
xor edx, edx
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__waccess]
test eax, eax
je 0x140003586
call fcn.1400066e0
mov edx, 0x69
mov rcx, rax
call fcn.140006750
mov rcx, rax
lea rdx, str.3dsmax.exe
call fcn.140004f60
xor bl, bl
jmp 0x140003b72
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x10], r12
mov qword [rbp - 8], r12
mov qword [rbp - 0x10], r12
mov qword [rbp - 8], 7
mov word [rbp - 0x20], r12w
xor r8d, r8d
lea rdx, [0x1400096fc]
lea rcx, [rbp - 0x20]
call fcn.140002520
nop
mov rcx, qword [rbp - 0x10]
mov rdx, qword [rbp - 8]
mov rax, rdx
sub rax, rcx
cmp rax, 8
jb 0x1400035fd
lea rdi, [rcx + 8]
mov qword [rbp - 0x10], rdi
lea rbx, [rbp - 0x20]
cmp rdx, 8
cmovae rbx, qword [rbp - 0x20]
lea rcx, [rbx + rcx*2]
mov r8d, 0x10
lea rdx, str.___pipe:
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r12w
jmp 0x14000361d
mov qword [rsp + 0x20], 8
lea r9, str.___pipe:
xor r8d, r8d
lea edx, [r8 + 8]
lea rcx, [rbp - 0x20]
call fcn.140001380
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 8]
mov r9, rax
mov rdx, 0xffffffffffffffff
inc rdx
cmp word [rax + rdx*2], 0
jne 0x140003630
mov rcx, qword [rbp - 0x10]
mov r8, qword [rbp - 8]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x140003679
lea rdi, [rcx + rdx]
mov qword [rbp - 0x10], rdi
lea rbx, [rbp - 0x20]
cmp r8, 8
cmovae rbx, qword [rbp - 0x20]
lea rcx, [rbx + rcx*2]
lea r8, [rdx + rdx]
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r12w
jmp 0x14000368a
mov qword [rsp + 0x20], rdx
xor r8d, r8d
lea rcx, [rbp - 0x20]
call fcn.140001380
mov rdx, qword [rbp - 0x10]
mov r8, qword [rbp - 8]
mov rax, r8
sub rax, rdx
cmp rax, 2
jb 0x1400036c1
lea rcx, [rdx + 2]
mov qword [rbp - 0x10], rcx
lea rax, [rbp - 0x20]
cmp r8, 8
cmovae rax, qword [rbp - 0x20]
mov dword [rax + rdx*2], 0x200022
mov word [rax + rcx*2], r12w
jmp 0x1400036e1
mov qword [rsp + 0x20], 2
lea r9, [0x140009784]
xor r8d, r8d
lea edx, [r8 + 2]
lea rcx, [rbp - 0x20]
call fcn.140001380
mov qword [rbp + 0xa0], r12
mov qword [rbp + 0xb0], r12
mov qword [rbp + 0xb8], r12
mov qword [rbp + 0xb0], r12
mov qword [rbp + 0xb8], 7
mov word [rbp + 0xa0], r12w
xor r8d, r8d
lea rdx, [0x1400096fc]
lea rcx, [rbp + 0xa0]
call fcn.140002520
nop
mov qword [rbp + 0x40], r12
mov qword [rbp + 0x50], r12
mov qword [rbp + 0x58], r12
mov qword [rbp + 0x50], r12
mov qword [rbp + 0x58], 7
mov word [rbp + 0x40], r12w
xor r8d, r8d
lea rdx, [0x1400096fc]
lea rcx, [rbp + 0x40]
call fcn.140002520
nop
lea rcx, [rbp + 0xa0]
cmp qword [rbp + 0xd0], 0
jne 0x14000377d
mov r8d, 7
lea rdx, str._server
call fcn.140002520
jmp 0x1400037a0
lea r8, [rbp + 0xc0]
cmp qword [rbp + 0xd8], 8
cmovae r8, qword [rbp + 0xc0]
lea rdx, str._server___s_
call fcn.1400050e0
lea rax, [rbp + 0xa0]
cmp qword [rbp + 0xb8], 8
cmovae rax, qword [rbp + 0xa0]
lea r9, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae r9, qword [rbp - 0x20]
lea r8, [rbp]
cmp qword [rbp + 0x18], 8
cmovae r8, qword [rbp]
mov qword [rsp + 0x20], rax
lea rdx, str._s__s__s
lea rcx, [rbp + 0x40]
call fcn.1400050e0
lea rbx, [rbp + 0x40]
cmp qword [rbp + 0x58], 8
cmovae rbx, qword [rbp + 0x40]
call fcn.1400066e0
mov edx, 0x6e
mov rcx, rax
call fcn.140006750
mov rdx, rbx
mov rcx, rax
call fcn.140004df0
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
mov dword [rsp + 0x70], 0x68
mov dword [rbp - 0x54], 0x101
mov eax, 5
mov word [rbp - 0x50], ax
mov qword [rbp - 0x30], r12
mov qword [rbp + 0x100], r12
mov qword [rbp + 0x110], r12
mov qword [rbp + 0x118], r12
mov qword [rbp + 0x110], r12
mov qword [rbp + 0x118], 7
mov word [rbp + 0x100], r12w
xor r8d, r8d
lea rdx, [0x1400096fc]
lea rcx, [rbp + 0x100]
call fcn.140002520
nop
mov qword [rbp + 0xe0], r12
mov qword [rbp + 0xf0], r12
mov qword [rbp + 0xf8], r12
mov qword [rbp + 0xf0], r12
mov qword [rbp + 0xf8], 7
mov word [rbp + 0xe0], r12w
xor r8d, r8d
lea rdx, [0x1400096fc]
lea rcx, [rbp + 0xe0]
call fcn.140002520
nop
mov r8d, dword [r15 + 0x3b78]
lea rdx, [0x140009768]
lea rcx, [rbp + 0x100]
call fcn.1400050e0
mov r8d, dword [r15 + 0x3b7c]
lea rdx, [0x140009768]
lea rcx, [rbp + 0xe0]
call fcn.1400050e0
lea rdx, [rbp + 0x100]
cmp qword [rbp + 0x118], 8
cmovae rdx, qword [rbp + 0x100]
lea rcx, str.RND_CLASSHI
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x140003a49
lea rdx, [rbp + 0xe0]
cmp qword [rbp + 0xf8], 8
cmovae rdx, qword [rbp + 0xe0]
lea rcx, str.RND_CLASSLO
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x140003a49
lea rax, [rbp + 0x20]
cmp qword [rbp + 0x38], 8
cmovae rax, qword [rbp + 0x20]
lea rdx, [rbp + 0x40]
cmp qword [rbp + 0x58], 8
cmovae rdx, qword [rbp + 0x40]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1400039e6
lea rbx, [rbp]
cmp qword [rbp + 0x18], 8
cmovae rbx, qword [rbp]
call fcn.1400066e0
mov edx, 0x70
mov rcx, rax
call fcn.140006750
mov rdx, rbx
mov rcx, rax
call fcn.140004f60
jmp 0x140003a63
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + 8]
mov r8, rax
mov edx, dword [rsp + 0x60]
mov rcx, rsi
call fcn.140003ce0
test al, al
je 0x140003a63
mov rdx, qword [rsp + 0x50]
mov rcx, rsi
call fcn.140005d30
lea rcx, [rsi + 8]
call fcn.1400052e0
imul edx, dword [rax + 0x3364], 0xea60
mov rcx, rsi
call fcn.140005d40
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [rsp + 0x60]
lea rcx, str._ServerMessage_ProcessStarted_processId_d_n
call fcn.140003f90
mov bl, 1
jmp 0x140003a65
call fcn.1400066e0
mov edx, 0x6f
mov rcx, rax
call fcn.140006750
mov rcx, rax
call fcn.140004f60
xor bl, bl
mov r8, qword [rbp + 0xf8]
cmp r8, 8
jb 0x140003a88
inc r8
mov rdx, qword [rbp + 0xe0]
lea rcx, [rbp + 0xe0]
call fcn.140003f40
mov qword [rbp + 0xf0], r12
mov qword [rbp + 0xf8], 7
mov word [rbp + 0xe0], r12w
mov r8, qword [rbp + 0x118]
cmp r8, 8
jb 0x140003ac5
inc r8
mov rdx, qword [rbp + 0x100]
lea rcx, [rbp + 0x100]
call fcn.140003f40
mov qword [rbp + 0x110], r12
mov qword [rbp + 0x118], 7
mov word [rbp + 0x100], r12w
mov r8, qword [rbp + 0x58]
cmp r8, 8
jb 0x140003af9
inc r8
mov rdx, qword [rbp + 0x40]
lea rcx, [rbp + 0x40]
call fcn.140003f40
mov qword [rbp + 0x50], r12
mov qword [rbp + 0x58], 7
mov word [rbp + 0x40], r12w
mov r8, qword [rbp + 0xb8]
cmp r8, 8
jb 0x140003b2d
inc r8
mov rdx, qword [rbp + 0xa0]
lea rcx, [rbp + 0xa0]
call fcn.140003f40
mov qword [rbp + 0xb0], r12
mov qword [rbp + 0xb8], 7
mov word [rbp + 0xa0], r12w
mov r8, qword [rbp - 8]
cmp r8, 8
jb 0x140003b61
inc r8
mov rdx, qword [rbp - 0x20]
lea rcx, [rbp - 0x20]
call fcn.140003f40
mov qword [rbp - 0x10], r12
mov qword [rbp - 8], 7
mov word [rbp - 0x20], r12w
mov r8, qword [rbp + 0x18]
cmp r8, 8
jb 0x140003b8c
inc r8
mov rdx, qword [rbp]
lea rcx, [rbp]
call fcn.140003f40
mov qword [rbp + 0x10], r12
mov qword [rbp + 0x18], 7
mov word [rbp], r12w
mov r8, qword [rbp + 0x38]
cmp r8, 8
jb 0x140003bb7
inc r8
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x20]
call fcn.140003f40
mov qword [rbp + 0x30], r12
mov qword [rbp + 0x38], 7
mov word [rbp + 0x20], r12w
mov r8, qword [rbp + 0xd8]
cmp r8, 8
jb 0x140003beb
inc r8
mov rdx, qword [rbp + 0xc0]
lea rcx, [rbp + 0xc0]
call fcn.140003f40
mov qword [rbp + 0xd0], r12
mov qword [rbp + 0xd8], 7
mov word [rbp + 0xc0], r12w
mov r8, qword [rbp + 0x78]
cmp r8, 8
jb 0x140003c1f
inc r8
mov rdx, qword [rbp + 0x60]
lea rcx, [rbp + 0x60]
call fcn.140003f40
mov qword [rbp + 0x70], r12
mov qword [rbp + 0x78], 7
mov word [rbp + 0x60], r12w
mov r8, qword [rbp + 0x138]
cmp r8, 8
jb 0x140003c53
inc r8
mov rdx, qword [rbp + 0x120]
lea rcx, [rbp + 0x120]
call fcn.140003f40
mov qword [rbp + 0x130], r12
mov qword [rbp + 0x138], 7
mov word [rbp + 0x120], r12w
mov r8, qword [rbp + 0x98]
cmp r8, 8
jb 0x140003c90
inc r8
mov rdx, qword [rbp + 0x80]
lea rcx, [rbp + 0x80]
call fcn.140003f40
mov qword [rbp + 0x90], r12
mov qword [rbp + 0x98], 7
mov word [rbp + 0x80], r12w
movzx eax, bl
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.140006f50
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret