Function at 0x140161030
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 [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x198], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x160]
mov qword [rdi + 0x10], r15
movaps xmm6, xmmword [0x1402ae190]
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.1400c0870
lea r8, [0x140314d1c]
mov rcx, rdi
mov rdx, rsi
call fcn.1401618c0
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.140161810
xor esi, esi
cmp byte [rbx + 0x7a], 0
mov ecx, 0
je 0x14016110d
call fcn.1400ec2f0
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 0x140161230
cmp byte [rbx + 0x7a], 0
je 0x140161136
call fcn.1400ec2f0
cmp eax, 0x10
jge 0x1401615cf
cmp dword [rbx + 0x24], 1
sete bpl
mov rdi, qword [rbx + 0x28]
mov r14, qword [rbx + 0x30]
cmp rdi, r14
jne 0x140161601
cmp byte [rbx + 0x21], 0
je 0x14016115d
or byte [rsp + 0x124], 0x80
cmp byte [rbx + 0x50], 0
jne 0x140161676
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 0x14016168a
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 0x1401611ad
test rdx, rdx
jne 0x1401611ad
test rdi, rdi
je 0x1401611d1
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 0x1401616b5
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 0x140161298
xorps xmm0, xmm0
movaps xmmword [rsp + 0xc0], xmm0
mov qword [rsp + 0xd0], 0
movzx eax, byte [rbx + 0x1f]
test al, al
jns 0x1401612ec
mov rax, qword [rbx + 0x10]
mov r14, qword [rbx + 8]
jmp 0x1401612f0
lea rcx, [rsp + 0xe0]
call fcn.140161b10
test al, al
jne 0x1401616cb
mov rcx, r13
xor edx, edx
call fcn.140009e00
lea rcx, [rsp + 0xe0]
call fcn.140161850
lea rcx, [rsp + 0x160]
call fcn.1401619e0
mov rcx, qword [rsp + 0x198]
xor rcx, rsp
call fcn.140115e50
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 0x140161245
lea rcx, [rsp + 0xe0]
mov edx, 1
call fcn.140161b10
test al, al
je 0x140161245
lea rcx, [rsp + 0xe0]
lea r8, [rsp + 0xdc]
mov edx, 0x20012
mov r9d, 4
call fcn.140161be0
test al, al
je 0x140161245
or edi, 0x80000
jmp 0x140161200
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 0x1401616d5
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 0x1401613a8
xorps xmm0, xmm0
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x90], 0
cmp byte [rbx + 0x98], 0
je 0x140161768
lea r8, [rbx + 0x80]
lea rdx, [0x1402bc960]
lea rsi, [rsp + 0x60]
mov rcx, rsi
call fcn.14000a250
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 0x1401613f7
mov rax, qword [rsp + 0x80]
jmp 0x1401613ff
lea rcx, [rsp + 0x80]
mov qword [rcx], 0
xor r8d, r8d
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x1401617be
or edi, 0x400
mov rdx, qword [rsp + 0x80]
movzx eax, bpl
cmp byte [rsp + 0xb7], 0
jns 0x140161480
mov rbp, rsi
mov r8, qword [rsp + 0xa0]
jmp 0x14016148b
lea rax, [rsp + 0x80]
or edi, 0x400
movzx ecx, bpl
cmp byte [rsp + 0xb7], 0
jns 0x14016141d
mov rdx, qword [rsp + 0xa0]
jmp 0x140161425
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 0x1401615ac
cmp byte [rsp + 0x97], 0
jns 0x1401614de
mov rcx, qword [rsp + 0x80]
call fcn.140112038
jmp 0x1401614de
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 0x1401617be
lea rcx, [rsp + 0x80]
mov qword [rcx + 0x10], r15
movaps xmmword [rcx], xmm6
lea rdx, [rsp + 0xc0]
call fcn.140161890
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x140161519
mov rdx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x140161721
cmp byte [rbx + 0x79], 0
je 0x140161534
mov rcx, qword [rsp + 0x80]
call fcn.14000b420
mov ecx, eax
call qword [sym.imp.USER32.dll_AllowSetForegroundWindow]
cmp byte [rbx], 0
je 0x14016154c
mov rcx, qword [rsp + 0x80]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [rsp + 0x90]
mov rcx, qword [0x140317e60]
test rcx, rcx
je 0x140161567
mov r8, r12
call fcn.140161fd0
lea rcx, [rsp + 0x80]
call fcn.1401619b0
mov rcx, r13
mov rdx, rax
call fcn.140009e00
lea rcx, [rsp + 0x80]
call fcn.140161c20
cmp byte [rsp + 0xb7], 0
jns 0x14016124f
mov rcx, qword [rsp + 0xa0]
call fcn.140112038
jmp 0x14016124f
mov rcx, r13
xor edx, edx
call fcn.140009e00
cmp byte [rsp + 0x97], 0
jns 0x14016158c
mov rcx, qword [rsp + 0x80]
call fcn.140112038
jmp 0x14016158c
lea r8, [rsp + 0x180]
or byte [r8 + 0xb], 0x20
lea rcx, [rsp + 0xe0]
mov edx, 0x20007
mov r9d, 0x10
call fcn.140161be0
test al, al
jne 0x140161136
jmp 0x140161245
mov rax, r14
sub rax, rdi
sar rax, 3
cmp rax, 0x1fffffff
ja 0x140161245
mov rbp, qword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov rcx, qword [rdi]
mov edx, 1
mov r8d, 1
call rbp
test eax, eax
je 0x140161640
add rdi, 8
cmp r14, rdi
jne 0x14016161e
jmp 0x1401616f0
lea rcx, [rsp + 0xc0]
lea rdx, str..._.._base_process_launch_win.cc
mov r8d, 0x132
call fcn.1401ce8d0
lea rcx, [rsp + 0xc0]
call fcn.1401ce8f0
lea rcx, [rsp + 0xc0]
call fcn.1401ce900
jmp 0x140161632
lea rax, [0x1402b0402]
mov qword [rsp + 0xf8], rax
jmp 0x140161167
mov cx, 0xa
cmp edx, 5
ja case.0x1401616a7.1
mov edx, edx
lea rdi, [0x1401617f0]
movsxd rdx, dword [rdi + rdx*4]
add rdx, rdi
jmp rdx
movzx ecx, byte [rbx + 0x20]
xor ecx, 1
jmp case.0x1401616a7.1
call fcn.1400ec2f0
lea ecx, [rsi + 0x1000000]
cmp eax, 5
cmovl esi, ecx
jmp 0x1401611dc
mov esi, 0x80000
jmp 0x140161122
mov rdx, qword [r12]
mov r8, qword [r12 + 8]
lea rcx, [rsp + 0xa0]
call fcn.1400e6dd4
jmp 0x14016132d
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.140161be0
mov bpl, 1
test al, al
jne 0x14016114f
jmp 0x140161245
lea rsi, [rsp + 0x60]
movaps xmmword [rsi], xmm6
lea rcx, [rsp + 0x80]
call fcn.1401619b0
mov rcx, rsi
mov rdx, rax
call fcn.140009e00
mov rcx, rsi
mov edx, 1
mov r8b, 1
call fcn.140019890
mov rcx, r13
xor edx, edx
call fcn.140009e00
mov rcx, rsi
call fcn.1400c87b0
jmp 0x14016157f
cmp qword [rbx + 0x90], 0
je 0x1401617e6
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
je 0x1401617be
mov rsi, rax
lea r8, [rbx + 0x80]
lea rcx, [rsp + 0x60]
mov rdx, rax
call fcn.14000a250
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 0x140161394
mov rcx, r13
xor edx, edx
call fcn.140009e00
jmp 0x14016158c
mov cx, 1
jmp case.0x1401616a7.1
mov cx, 7
jmp case.0x1401616a7.1
xor ecx, ecx
jmp case.0x1401616a7.1
xor eax, eax
jmp 0x140161405