Function at 0x140067710
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, 0x158
mov rbx, r8
mov r14, rdx
mov r12, rcx
mov rax, qword [0x14020eb28]
xor rax, rsp
mov qword [rsp + 0x150], rax
lea rdx, str.LaunchProcess
lea r8, str..._.._base_process_launch_win.cc
lea rdi, [rsp + 0xd0]
mov rcx, rdi
mov r9d, 0xcd
call fcn.140054e50
lea rcx, [rsp + 0x148]
mov rdx, rdi
call fcn.1400b1040
mov eax, dword [0x1402125d8]
mov ecx, dword [0x140214838]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140067ac7
lea rcx, [rsp + 0xd0]
call fcn.1400b1520
cmp dword [rbx + 0x24], 1
sete r15b
mov rsi, qword [rbx + 0x28]
mov rbp, qword [rbx + 0x30]
cmp rsi, rbp
je 0x140067b4a
mov rax, rbp
sub rax, rsi
sar rax, 3
cmp rax, 0x1fffffff
ja 0x140067b3b
mov rcx, qword [rsi]
mov edx, 1
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x140067b51
lea rax, [rsi + 8]
cmp rax, rbp
je 0x140067846
mov rcx, qword [rax]
mov edx, 1
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x140067e46
lea rax, [rsi + 0x10]
cmp rax, rbp
je 0x140067846
mov rcx, qword [rax]
mov edx, 1
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x140067ebd
add rsi, 0x18
cmp rsi, rbp
jne 0x140067afe
lea rcx, [rsp + 0xd0]
mov edx, 1
call fcn.1400b15a0
test al, al
je 0x140067b3b
mov r9d, dword [rbx + 0x30]
mov r8, qword [rbx + 0x28]
sub r9d, r8d
and r9d, 0xfffffff8
lea rcx, [rsp + 0xd0]
mov edx, 0x20002
call fcn.1400b1660
test al, al
je 0x140067b3b
mov r15b, 1
mov edi, 0x80000
cmp byte [rbx + 0x21], 0
jne 0x140067b83
cmp byte [rbx + 0x48], 0
jne 0x140067b90
mov eax, dword [rsp + 0x114]
mov ecx, eax
or ecx, 1
mov dword [rsp + 0x114], ecx
movzx ecx, byte [rbx + 0x20]
xor ecx, 1
mov word [rsp + 0x118], cx
mov rcx, qword [rbx + 0x58]
test rcx, rcx
jne 0x140067ba4
mov rdx, qword [rbx + 0x60]
test rdx, rdx
jne 0x140067ba8
cmp qword [rbx + 0x68], 0
jne 0x140067ba8
cmp qword [rbx + 0x50], 0
jne 0x140067bd5
mov esi, edi
or esi, 0x1000000
cmp byte [rbx + 0x70], 0
cmove esi, edi
xorps xmm0, xmm0
movaps xmmword [rsp + 0xb0], xmm0
mov qword [rsp + 0xc0], 0
movzx eax, byte [rbx + 0x1f]
test al, al
jns 0x14006792f
mov rax, qword [rbx + 0x10]
mov rbp, qword [rbx + 8]
jmp 0x140067933
lea rbp, [rbx + 8]
lea r13, [rsp + 0xd8]
test rax, rax
cmove rbp, rax
lea rdi, [rsp + 0x98]
mov rcx, rdi
mov rdx, r14
call fcn.140037a70
mov rdx, qword [rbx + 0x40]
test rdx, rdx
jne 0x140067beb
xorps xmm0, xmm0
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x90], 0
cmp byte [rbx + 0x90], 0
jne 0x140067c90
cmp qword [rbx + 0x88], 0
jne 0x140067cf5
xor eax, eax
movzx ecx, r15b
cmp byte [rsp + 0xaf], 0
jns 0x1400679ae
mov rdx, qword [rsp + 0x98]
jmp 0x1400679b6
lea rdx, [rsp + 0x98]
lea rdi, [rsp + 0xb0]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], esi
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 0x140067d5e
cmp byte [rsp + 0x97], 0
js 0x140067d88
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0xb0]
call fcn.14009b460
mov rcx, qword [rbx + 0x50]
test rcx, rcx
jne 0x140067d9a
cmp byte [rbx + 0x71], 0
jne 0x140067df4
cmp byte [rbx], 0
jne 0x140067e0e
mov edx, dword [rsp + 0x90]
mov rcx, qword [0x140214d90]
test rcx, rcx
jne 0x140067e26
lea rcx, [rsp + 0x80]
call fcn.14009b660
mov rcx, r12
mov rdx, rax
call fcn.140068290
lea rcx, [rsp + 0x80]
call fcn.14009b560
cmp byte [rsp + 0xaf], 0
jns 0x140067a86
mov rcx, qword [rsp + 0x98]
call fcn.140180390
lea rcx, [rsp + 0xd0]
call fcn.1400b1560
lea rcx, [rsp + 0x148]
call fcn.1400b1210
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140180700
mov rax, r12
add rsp, 0x158
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x1402125d8]
call fcn.1401804b0
cmp dword [0x1402125d8], 0xffffffff
jne 0x140067797
lea rcx, [rsp + 0x148]
call fcn.1400b1160
lea rcx, [0x1402125d8]
call fcn.140180548
jmp 0x140067797
mov rdi, qword [sym.imp.KERNEL32.dll_SetHandleInformation]
lea r15, str..._.._base_process_launch_win.cc
lea r13, [rsp + 0xb0]
mov rcx, qword [rsi]
mov edx, 1
mov r8d, 1
call rdi
test eax, eax
je 0x140067f34
add rsi, 8
cmp rbp, rsi
je 0x140067846
jmp 0x140067b14
mov rcx, r12
xor edx, edx
call fcn.140068290
jmp 0x140067a86
xor edi, edi
jmp 0x140067891
lea rdx, str..._.._base_process_launch_win.cc
lea rdi, [rsp + 0xb0]
mov rcx, rdi
mov r8d, 0xe1
call fcn.1400b16b0
mov rcx, rdi
call fcn.1400b16a0
mov rcx, rdi
call fcn.140075f20
jmp 0x1400677ef
or byte [rsp + 0x114], 0x80
jmp 0x14006789b
lea rax, [0x1401b75aa]
mov qword [rsp + 0xe8], rax
jmp 0x1400678a5
mov rdx, qword [rbx + 0x60]
or eax, 0x101
mov dword [rsp + 0x114], eax
mov qword [rsp + 0x128], rcx
mov qword [rsp + 0x130], rdx
mov rax, qword [rbx + 0x68]
mov qword [rsp + 0x138], rax
jmp 0x1400678ec
call fcn.1400925d0
lea ecx, [rdi + 0x1000000]
cmp eax, 5
cmovl edi, ecx
jmp 0x1400678f7
lea rcx, [rsp + 0x80]
mov qword [rcx], 0
xor r8d, r8d
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x140067c81
or esi, 0x400
mov rdx, qword [rsp + 0x80]
movzx r8d, r15b
cmp byte [rsp + 0xaf], 0
jns 0x140067c2a
mov rdi, qword [rsp + 0x98]
mov rcx, qword [rbx + 0x40]
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], 0
xor edx, edx
mov r8, rdi
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, eax
mov rcx, qword [rsp + 0x80]
call sub.USERENV.dll_DestroyEnvironmentBlock
test edi, edi
jne 0x1400679fe
mov rcx, r12
xor edx, edx
call fcn.140068290
jmp 0x140067a6f
lea r8, [rbx + 0x78]
lea rdx, [0x1401bfca8]
lea rcx, [rsp + 0x68]
call fcn.1400b1740
cmp byte [rsp + 0x97], 0
js 0x140067e78
mov word [rsp + 0x80], 0
mov byte [rsp + 0x97], 0
lea rdi, [rsp + 0x80]
mov rax, qword [rsp + 0x78]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rsp + 0x68]
movaps xmmword [rdi], xmm0
cmp byte [rdi + 0x17], 0
jns 0x140067e33
mov rax, qword [rsp + 0x80]
jmp 0x140067e3b
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140067d5e
lea r8, [rbx + 0x78]
lea rcx, [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
call fcn.1400b1740
cmp byte [rsp + 0x97], 0
js 0x140067eef
mov word [rsp + 0x80], 0
mov byte [rsp + 0x97], 0
lea rdi, [rsp + 0x80]
mov rax, qword [rsp + 0x78]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rsp + 0x68]
movaps xmmword [rdi], xmm0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140067cde
mov rcx, r12
xor edx, edx
call fcn.140068290
cmp byte [rsp + 0x97], 0
jns 0x140067a6f
mov rcx, qword [rsp + 0x80]
call fcn.140180390
jmp 0x140067a6f
mov rcx, qword [rsp + 0x80]
call fcn.140180390
jmp 0x1400679fe
mov rdx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x140067a20
lea rcx, [rsp + 0x80]
call fcn.14009b660
lea rdi, [rsp + 0x68]
mov rcx, rdi
mov rdx, rax
call fcn.140068290
mov rcx, rdi
mov edx, 1
mov r8b, 1
call fcn.1400684b0
mov rcx, r12
xor edx, edx
call fcn.140068290
mov rcx, rdi
call fcn.140068120
jmp 0x140067a62
mov rcx, qword [rsp + 0x80]
call fcn.1400adb70
mov ecx, eax
call qword [sym.imp.USER32.dll_AllowSetForegroundWindow]
jmp 0x140067a2a
mov rcx, qword [rsp + 0x80]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x140067a33
mov r8, r14
call fcn.1400a50b0
jmp 0x140067a4a
lea rax, [rsp + 0x80]
or esi, 0x400
jmp 0x140067996
lea rdx, str..._.._base_process_launch_win.cc
lea rdi, [rsp + 0xb0]
mov rcx, rdi
mov r8d, 0xe1
call fcn.1400b16b0
mov rcx, rdi
call fcn.1400b16a0
mov rcx, rdi
call fcn.140075f20
jmp 0x140067814
mov rax, qword [rsp + 0x80]
mov word [rax], 0
mov qword [rsp + 0x88], 0
cmp byte [rsp + 0x97], 0
jns 0x140067cc5
mov rcx, qword [rsp + 0x80]
call fcn.140180390
mov qword [rsp + 0x90], 0
jmp 0x140067cc5
lea rdx, str..._.._base_process_launch_win.cc
lea rdi, [rsp + 0xb0]
mov rcx, rdi
mov r8d, 0xe1
call fcn.1400b16b0
mov rcx, rdi
call fcn.1400b16a0
mov rcx, rdi
call fcn.140075f20
jmp 0x140067839
mov rax, qword [rsp + 0x80]
mov word [rax], 0
mov qword [rsp + 0x88], 0
cmp byte [rsp + 0x97], 0
jns 0x140067d38
mov rcx, qword [rsp + 0x80]
call fcn.140180390
mov qword [rsp + 0x90], 0
jmp 0x140067d38
mov rcx, r13
mov rdx, r15
mov r8d, 0xe1
call fcn.1400b16b0
mov rcx, r13
call fcn.1400b16a0
mov rcx, r13
call fcn.140075f20
jmp 0x140067b2c