Function at 0x1400c1140
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1b8
movaps xmmword [rsp + 0x1a0], xmm6
mov rbx, r8
mov r12, rdx
mov r13, rcx
mov rax, qword [0x14017e028]
xor rax, rsp
mov qword [rsp + 0x198], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x160]
mov qword [rdi + 0x10], r15
movaps xmm6, xmmword [0x14015c320]
movaps xmmword [rdi], xmm6
lea rdx, str.LaunchProcess
lea r8, str..._.._base_process_launch_win.cc
lea rsi, [rsp + 0xe0]
mov rcx, rsi
mov r9d, 0xf7
call fcn.140048d60
lea r8, [0x140184544]
mov rcx, rdi
mov rdx, rsi
call fcn.1400c19d0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x180], xmm0
mov qword [rsi + 0x70], r15
movaps xmmword [rsi + 0x60], xmm6
movaps xmmword [rsi + 0x50], xmm6
movaps xmmword [rsi + 0x40], xmm6
movaps xmmword [rsi + 0x30], xmm6
movaps xmmword [rsi + 0x20], xmm6
movaps xmmword [rsi + 0x10], xmm6
movaps xmmword [rsi], xmm6
lea rcx, [rsp + 0xe0]
call fcn.1400c1920
xor esi, esi
cmp byte [rbx + 0x7a], 0
mov ecx, 0
je 0x1400c121d
call fcn.140058100
xor ecx, ecx
cmp eax, 0xf
setg cl
mov rax, qword [rbx + 0x28]
xor edx, edx
cmp rax, qword [rbx + 0x30]
setne dl
add edx, ecx
jne 0x1400c1340
cmp byte [rbx + 0x7a], 0
je 0x1400c1246
call fcn.140058100
cmp eax, 0x10
jge 0x1400c16df
cmp dword [rbx + 0x24], 1
sete bpl
mov rdi, qword [rbx + 0x28]
mov r14, qword [rbx + 0x30]
cmp rdi, r14
jne 0x1400c1711
cmp byte [rbx + 0x21], 0
je 0x1400c126d
or byte [rsp + 0x124], 0x80
cmp byte [rbx + 0x50], 0
jne 0x1400c1786
mov eax, dword [rsp + 0x124]
mov ecx, eax
or ecx, 1
mov dword [rsp + 0x124], ecx
mov edx, dword [rbx + 0x40]
cmp edx, 3
jne 0x1400c179a
mov cx, 2
mov word [rsp + 0x128], cx
mov rcx, qword [rbx + 0x60]
mov rdx, qword [rbx + 0x68]
mov rdi, qword [rbx + 0x70]
test rcx, rcx
jne 0x1400c12bd
test rdx, rdx
jne 0x1400c12bd
test rdi, rdi
je 0x1400c12e1
or eax, 0x101
mov dword [rsp + 0x124], eax
mov qword [rsp + 0x138], rcx
mov qword [rsp + 0x140], rdx
mov qword [rsp + 0x148], rdi
cmp qword [rbx + 0x58], 0
jne 0x1400c17c5
mov edi, esi
or edi, 0x1000000
cmp byte [rbx + 0x78], 0
cmove edi, esi
mov dword [rsp + 0xdc], 2
cmp byte [rbx + 0x7b], 0
jne 0x1400c13a8
xorps xmm0, xmm0
movaps xmmword [rsp + 0xc0], xmm0
mov qword [rsp + 0xd0], 0
movzx eax, byte [rbx + 0x1f]
test al, al
jns 0x1400c13fc
mov rax, qword [rbx + 0x10]
mov r14, qword [rbx + 8]
jmp 0x1400c1400
lea rcx, [rsp + 0xe0]
call fcn.1400c1c20
test al, al
jne 0x1400c17db
mov rcx, r13
xor edx, edx
call fcn.140005e10
lea rcx, [rsp + 0xe0]
call fcn.1400c1960
lea rcx, [rsp + 0x160]
call fcn.1400c1af0
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.14008fec0
mov rax, r13
movaps xmm6, xmmword [rsp + 0x1a0]
add rsp, 0x1b8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
cmp qword [rsp + 0x150], 0
jne 0x1400c1355
lea rcx, [rsp + 0xe0]
mov edx, 1
call fcn.1400c1c20
test al, al
je 0x1400c1355
lea rcx, [rsp + 0xe0]
lea r8, [rsp + 0xdc]
mov edx, 0x20012
mov r9d, 4
call fcn.1400c1cf0
test al, al
je 0x1400c1355
or edi, 0x80000
jmp 0x1400c1310
lea r14, [rbx + 8]
test rax, rax
cmove r14, rax
mov qword [rsp + 0xb0], r15
movaps xmmword [rsp + 0xa0], xmm6
cmp byte [r12 + 0x17], 0
js 0x1400c17e5
mov rax, qword [r12 + 0x10]
mov qword [rsp + 0xb0], rax
movups xmm0, xmmword [r12]
movaps xmmword [rsp + 0xa0], xmm0
lea rsi, [rsp + 0xe8]
mov rdx, qword [rbx + 0x48]
test rdx, rdx
jne 0x1400c14b8
xorps xmm0, xmm0
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x90], 0
cmp byte [rbx + 0x98], 0
je 0x1400c1878
lea r8, [rbx + 0x80]
lea rdx, [0x14015fd30]
lea rsi, [rsp + 0x60]
mov rcx, rsi
call fcn.140006290
mov rax, qword [rsi + 0x10]
mov qword [rsp + 0x90], rax
movups xmm0, xmmword [rsi]
movaps xmmword [rsp + 0x80], xmm0
cmp byte [rsp + 0x97], 0
jns 0x1400c1507
mov rax, qword [rsp + 0x80]
jmp 0x1400c150f
lea rcx, [rsp + 0x80]
mov qword [rcx], 0
xor r8d, r8d
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x1400c18ce
or edi, 0x400
mov rdx, qword [rsp + 0x80]
movzx eax, bpl
cmp byte [rsp + 0xb7], 0
jns 0x1400c1590
mov rbp, rsi
mov r8, qword [rsp + 0xa0]
jmp 0x1400c159b
lea rax, [rsp + 0x80]
or edi, 0x400
movzx ecx, bpl
cmp byte [rsp + 0xb7], 0
jns 0x1400c152d
mov rdx, qword [rsp + 0xa0]
jmp 0x1400c1535
lea rdx, [rsp + 0xa0]
lea rsi, [rsp + 0xc0]
mov qword [rsp + 0x48], rsi
lea rbp, [rsp + 0xe8]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], ecx
xor ecx, ecx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1400c16bc
cmp byte [rsp + 0x97], 0
jns 0x1400c15ee
mov rcx, qword [rsp + 0x80]
call fcn.14008d2a8
jmp 0x1400c15ee
mov rbp, rsi
lea r8, [rsp + 0xa0]
mov rcx, qword [rbx + 0x48]
lea rsi, [rsp + 0xc0]
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], 0
xor edx, edx
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov esi, eax
mov rcx, qword [rsp + 0x80]
call sub.USERENV.dll_DestroyEnvironmentBlock
test esi, esi
je 0x1400c18ce
lea rcx, [rsp + 0x80]
mov qword [rcx + 0x10], r15
movaps xmmword [rcx], xmm6
lea rdx, [rsp + 0xc0]
call fcn.1400c19a0
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x1400c1629
mov rdx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x1400c1831
cmp byte [rbx + 0x79], 0
je 0x1400c1644
mov rcx, qword [rsp + 0x80]
call fcn.140005eb0
mov ecx, eax
call qword [sym.imp.USER32.dll_AllowSetForegroundWindow]
cmp byte [rbx], 0
je 0x1400c165c
mov rcx, qword [rsp + 0x80]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [rsp + 0x90]
mov rcx, qword [0x1401845a0]
test rcx, rcx
je 0x1400c1677
mov r8, r12
call fcn.1400c20e0
lea rcx, [rsp + 0x80]
call fcn.1400c1ac0
mov rcx, r13
mov rdx, rax
call fcn.140005e10
lea rcx, [rsp + 0x80]
call fcn.1400c1d30
cmp byte [rsp + 0xb7], 0
jns 0x1400c135f
mov rcx, qword [rsp + 0xa0]
call fcn.14008d2a8
jmp 0x1400c135f
mov rcx, r13
xor edx, edx
call fcn.140005e10
cmp byte [rsp + 0x97], 0
jns 0x1400c169c
mov rcx, qword [rsp + 0x80]
call fcn.14008d2a8
jmp 0x1400c169c
lea r8, [rsp + 0x180]
or byte [r8 + 0xb], 0x20
lea rcx, [rsp + 0xe0]
mov edx, 0x20007
mov r9d, 0x10
call fcn.1400c1cf0
test al, al
jne 0x1400c1246
jmp 0x1400c1355
mov rax, r14
sub rax, rdi
sar rax, 3
cmp rax, 0x1fffffff
ja 0x1400c1355
mov rbp, qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov rcx, qword [rdi]
mov edx, 1
mov r8d, 1
call rbp
test eax, eax
je 0x1400c1750
add rdi, 8
cmp r14, rdi
jne 0x1400c172e
jmp 0x1400c1800
lea rcx, [rsp + 0xc0]
lea rdx, str..._.._base_process_launch_win.cc
mov r8d, 0x132
call fcn.14010d830
lea rcx, [rsp + 0xc0]
call fcn.14010d850
lea rcx, [rsp + 0xc0]
call fcn.14010d860
jmp 0x1400c1742
lea rax, [0x14015f832]
mov qword [rsp + 0xf8], rax
jmp 0x1400c1277
mov cx, 0xa
cmp edx, 5
ja case.0x1400c17b7.1
mov edx, edx
lea rdi, [0x1400c1900]
movsxd rdx, dword [rdi + rdx*4]
add rdx, rdi
jmp rdx
movzx ecx, byte [rbx + 0x20]
xor ecx, 1
jmp case.0x1400c17b7.1
call fcn.140058100
lea ecx, [rsi + 0x1000000]
cmp eax, 5
cmovl esi, ecx
jmp 0x1400c12ec
mov esi, 0x80000
jmp 0x1400c1232
mov rdx, qword [r12]
mov r8, qword [r12 + 8]
lea rcx, [rsp + 0xa0]
call fcn.14006ce30
jmp 0x1400c143d
mov r9d, dword [rbx + 0x30]
mov r8, qword [rbx + 0x28]
sub r9d, r8d
and r9d, 0xfffffff8
lea rcx, [rsp + 0xe0]
mov edx, 0x20002
call fcn.1400c1cf0
mov bpl, 1
test al, al
jne 0x1400c125f
jmp 0x1400c1355
lea rsi, [rsp + 0x60]
movaps xmmword [rsi], xmm6
lea rcx, [rsp + 0x80]
call fcn.1400c1ac0
mov rcx, rsi
mov rdx, rax
call fcn.140005e10
mov rcx, rsi
mov edx, 1
mov r8b, 1
call fcn.140010910
mov rcx, r13
xor edx, edx
call fcn.140005e10
mov rcx, rsi
call fcn.140087980
jmp 0x1400c168f
cmp qword [rbx + 0x90], 0
je 0x1400c18f6
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
je 0x1400c18ce
mov rsi, rax
lea r8, [rbx + 0x80]
lea rcx, [rsp + 0x60]
mov rdx, rax
call fcn.140006290
lea rcx, [rsp + 0x60]
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x90], rax
movups xmm0, xmmword [rcx]
movaps xmmword [rsp + 0x80], xmm0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400c14a4
mov rcx, r13
xor edx, edx
call fcn.140005e10
jmp 0x1400c169c
mov cx, 1
jmp case.0x1400c17b7.1
mov cx, 7
jmp case.0x1400c17b7.1
xor ecx, ecx
jmp case.0x1400c17b7.1
xor eax, eax
jmp 0x1400c1515