Function at 0x1400829e0
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, 0x268
mov r13, r8
mov qword [rsp + 0x60], rdx
mov r12, rcx
mov rax, qword [0x140324948]
xor rax, rsp
mov qword [rsp + 0x260], rax
lea rcx, [rsp + 0x1f0]
call fcn.1400dfbc0
cmp dword [r13 + 0x24], 1
sete bl
mov r14, qword [r13 + 0x28]
mov r15, qword [r13 + 0x30]
cmp r14, r15
je 0x140082b28
mov rax, r15
sub rax, r14
sar rax, 3
cmp rax, 0x1fffffff
ja 0x140082d5d
mov qword [rsp + 0x58], r12
lea rdi, [rsp + 0xc0]
mov r12, qword [sym.imp.KERNEL32.dll_SetHandleInformation]
lea rsi, str..._.._base_process_launch_win.cc
lea rbx, [rsp + 0xb0]
lea rbp, str.Check_failed:_result.
nop word cs:[rax + rax]
mov rcx, qword [r14]
mov edx, 1
mov r8d, 1
call r12
test eax, eax
jne 0x140082ace
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
mov rcx, rbx
mov rdx, rsi
mov r8d, 0xdd
mov r9d, 3
call fcn.1400776a0
mov r8d, reloc.WS2_32.dll_shutdown
mov rcx, rdi
mov rdx, rbp
call fcn.1400047e0
mov rcx, rbx
call fcn.140077770
add r14, 8
cmp r15, r14
jne 0x140082a80
lea rcx, [rsp + 0x1f0]
mov edx, 1
call fcn.1400dfcb0
test al, al
je 0x140082d58
mov r9d, dword [r13 + 0x30]
mov r8, qword [r13 + 0x28]
sub r9d, r8d
and r9d, 0xfffffff8
lea rcx, [rsp + 0x1f0]
mov edx, 0x20002
call fcn.1400dfd50
test al, al
mov r12, qword [rsp + 0x58]
je 0x140082d5d
mov bl, 1
mov esi, 0x80000
jmp 0x140082b2a
xor esi, esi
cmp byte [r13 + 0x21], 0
mov r15, qword [rsp + 0x60]
je 0x140082b3e
or byte [rsp + 0x22c], 0x80
cmp byte [r13 + 0x48], 0
je 0x140082b54
lea rax, [0x1401d84f8]
mov qword [rsp + 0x200], rax
mov eax, dword [rsp + 0x22c]
mov ecx, eax
or ecx, 1
mov dword [rsp + 0x22c], ecx
movzx ecx, byte [r13 + 0x20]
xor ecx, 1
mov word [rsp + 0x230], cx
mov rcx, qword [r13 + 0x58]
test rcx, rcx
je 0x140082b86
mov rdx, qword [r13 + 0x60]
jmp 0x140082b96
mov rdx, qword [r13 + 0x60]
test rdx, rdx
jne 0x140082b96
cmp qword [r13 + 0x68], 0
je 0x140082bbe
or eax, 0x101
mov dword [rsp + 0x22c], eax
mov qword [rsp + 0x240], rcx
mov qword [rsp + 0x248], rdx
mov rax, qword [r13 + 0x68]
mov qword [rsp + 0x250], rax
cmp qword [r13 + 0x50], 0
je 0x140082bd6
call fcn.1400a12a0
lea ecx, [rsi + 0x1000000]
cmp eax, 5
cmovl esi, ecx
mov edi, esi
or edi, 0x1000000
cmp byte [r13 + 0x70], 0
cmove edi, esi
xorps xmm0, xmm0
movaps xmmword [rsp + 0xb0], xmm0
mov qword [rsp + 0xc0], 0
movzx eax, byte [r13 + 0x1f]
test al, al
jns 0x140082c10
mov rax, qword [r13 + 0x10]
mov rbp, qword [r13 + 8]
jmp 0x140082c14
lea rbp, [r13 + 8]
test rax, rax
cmove rbp, rax
lea rsi, [rsp + 0x98]
mov rcx, rsi
mov rdx, r15
call fcn.14006b420
mov rdx, qword [r13 + 0x40]
test rdx, rdx
je 0x140082cfd
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x80]
xor r8d, r8d
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x140082ce0
or edi, 0x400
mov rdx, qword [rsp + 0x80]
movzx eax, bl
cmp byte [rsp + 0xaf], 0
jns 0x140082c82
mov rsi, qword [rsp + 0x98]
mov rcx, qword [r13 + 0x40]
lea rbx, [rsp + 0xb0]
mov qword [rsp + 0x50], rbx
lea rbx, [rsp + 0x1f0]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], 0
xor edx, edx
mov r8, rsi
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
jne 0x140082f9e
mov rcx, r12
xor edx, edx
call fcn.140083740
cmp byte [rsp + 0xaf], 0
jns 0x140082f40
jmp 0x140083093
xorps xmm0, xmm0
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x90], 0
cmp byte [r13 + 0x90], 0
je 0x140082d6c
lea r8, [r13 + 0x78]
lea rdx, [0x1401d84fa]
lea rcx, [rsp + 0x68]
call fcn.1400dfd90
cmp byte [rsp + 0x97], 0
js 0x140082dc2
mov word [rsp + 0x80], 0
mov byte [rsp + 0x97], 0
jmp 0x140082dfe
mov r12, qword [rsp + 0x58]
mov rcx, r12
xor edx, edx
call fcn.140083740
jmp 0x140082f40
cmp qword [r13 + 0x88], 0
je 0x140082e37
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
je 0x140082f74
mov r14, rax
lea r8, [r13 + 0x78]
lea rcx, [rsp + 0x68]
mov rdx, rax
call fcn.1400dfd90
cmp byte [rsp + 0x97], 0
js 0x140082e46
mov word [rsp + 0x80], 0
mov byte [rsp + 0x97], 0
jmp 0x140082e82
mov rax, qword [rsp + 0x80]
mov word [rax], 0
mov qword [rsp + 0x88], 0
cmp byte [rsp + 0x97], 0
jns 0x140082dfe
mov rcx, qword [rsp + 0x80]
call fcn.140190860
mov qword [rsp + 0x90], 0
lea rsi, [rsp + 0x80]
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x90], rax
movups xmm0, xmmword [rsp + 0x68]
movaps xmmword [rsp + 0x80], xmm0
cmp byte [rsi + 0x17], 0
jns 0x140082eb7
mov rax, qword [rsp + 0x80]
jmp 0x140082ebf
xor eax, eax
lea rsi, [rsp + 0x1f0]
jmp 0x140082ecd
mov rax, qword [rsp + 0x80]
mov word [rax], 0
mov qword [rsp + 0x88], 0
cmp byte [rsp + 0x97], 0
jns 0x140082e82
mov rcx, qword [rsp + 0x80]
call fcn.140190860
mov qword [rsp + 0x90], 0
lea rsi, [rsp + 0x80]
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x90], rax
movups xmm0, xmmword [rsp + 0x68]
movaps xmmword [rsp + 0x80], xmm0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
cmp byte [rsi + 0x17], 0
js 0x140082e2a
lea rax, [rsp + 0x80]
lea rsi, [rsp + 0x1f0]
or edi, 0x400
movzx ecx, bl
cmp byte [rsp + 0xaf], 0
jns 0x140082ee4
mov rdx, qword [rsp + 0x98]
jmp 0x140082eec
lea rdx, [rsp + 0x98]
lea rbx, [rsp + 0xb0]
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], ecx
xor esi, esi
xor ecx, ecx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140082f74
cmp byte [rsp + 0x97], 0
js 0x140082f8d
test esi, esi
je 0x140082f9e
cmp byte [rsp + 0xaf], 0
js 0x140083093
lea rcx, [rsp + 0x1f0]
call fcn.1400dfc70
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140190ca0
mov rax, r12
add rsp, 0x268
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r12
xor edx, edx
call fcn.140083740
mov esi, 1
cmp byte [rsp + 0x97], 0
jns 0x140082f2e
mov rcx, qword [rsp + 0x80]
call fcn.140190860
test esi, esi
jne 0x140082f32
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0xb0]
call fcn.1400a0520
mov rcx, qword [r13 + 0x50]
test rcx, rcx
je 0x140082fce
mov rdx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x140083039
cmp byte [r13 + 0x71], 0
je 0x140082fea
mov rcx, qword [rsp + 0x80]
call fcn.140083140
mov ecx, eax
call qword [sym.imp.USER32.dll_AllowSetForegroundWindow]
cmp byte [r13], 0
je 0x140083004
mov rcx, qword [rsp + 0x80]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [rsp + 0x90]
mov rcx, qword [0x140347830]
test rcx, rcx
je 0x14008301f
mov r8, r15
call fcn.140072510
lea rcx, [rsp + 0x80]
call fcn.1400a08c0
mov rcx, r12
mov rdx, rax
call fcn.140083740
jmp 0x140083078
lea rcx, [rsp + 0x80]
call fcn.1400a08c0
lea rsi, [rsp + 0x68]
mov rcx, rsi
mov rdx, rax
call fcn.140083740
mov rcx, rsi
mov edx, 1
mov r8b, 1
call fcn.140083ba0
mov rcx, r12
xor edx, edx
call fcn.140083740
mov rcx, rsi
call fcn.140077e30
lea rcx, [rsp + 0x80]
call fcn.1400a05d0
cmp byte [rsp + 0xaf], 0
jns 0x140082f40
mov rcx, qword [rsp + 0x98]
call fcn.140190860
jmp 0x140082f40