Function at 0x14001e140
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, 0x3a8
movaps xmmword [rsp + 0x390], xmm6
mov r15, r8
mov r12, rdx
mov r14, rcx
mov rax, qword [0x1402cb038]
xor rax, rsp
mov qword [rsp + 0x388], rax
xor esi, esi
lea rcx, [rsp + 0x1f0]
mov r8d, 0x190
xor edx, edx
call fcn.1401d06e0
cmp byte [r12 + 0x17], 0
mov rax, r12
jns 0x14001e211
mov rax, qword [r12]
jmp 0x14001e211
call fcn.1401af1d0
cmp eax, 0x10
jl 0x14001e344
or byte [rsp + 0x1eb], 0x20
mov rcx, qword [rsp + 0x1b0]
test rcx, rcx
je 0x14001e824
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], 0x10
lea r9, [rsp + 0x1e0]
mov r8d, 0x20007
xor edx, edx
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
jne 0x14001e344
jmp 0x14001e824
mov word [rsp + 0x37e], 0
jmp 0x14001e222
inc rsi
cmp rsi, 0xc8
je 0x14001e1f9
movzx ecx, word [rax + rsi*2]
mov word [rsp + rsi*2 + 0x1f0], cx
test cx, cx
jne 0x14001e205
lea rcx, [rsp + 0x1f0]
call fcn.14014b4b0
cmp byte [r15 + 0x39], 0
mov qword [rsp + 0x60], r14
jne 0x14001e84e
mov bpl, byte [0x1402d90d0]
xor esi, esi
test bpl, 0x19
jne 0x14001eb4e
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
xor eax, eax
mov qword [rsp + 0x68], rax
movaps xmm6, xmmword [0x14029ca60]
lea rdi, [rsp + 0x1c0]
movaps xmmword [rdi], xmm6
lea rdx, str.LaunchProcess
lea r8, str.launch_win.cc
lea rbx, [rsp + 0x140]
mov rcx, rbx
mov r9d, 0x103
call fcn.140158eb0
lea r8, [0x1402e404c]
mov rcx, rdi
mov rdx, rbx
call fcn.140017d70
xorps xmm0, xmm0
movaps xmmword [rsp + 0x1e0], xmm0
movaps xmmword [rbx], xmm0
movaps xmmword [rbx + 0x60], xmm0
movaps xmmword [rbx + 0x50], xmm0
movaps xmmword [rbx + 0x40], xmm0
movaps xmmword [rbx + 0x30], xmm0
movaps xmmword [rbx + 0x20], xmm0
movaps xmmword [rbx + 0x10], xmm0
mov qword [rbx + 0x70], 0
mov dword [rbx + 8], 0x70
cmp byte [r15 + 0x8a], 0
je 0x14001e302
call fcn.1401af1d0
xor esi, esi
cmp eax, 0x10
setge sil
mov rax, qword [r15 + 0x40]
xor edx, edx
cmp rax, qword [r15 + 0x48]
setne dl
add edx, esi
je 0x14001eac6
lea rcx, [rsp + 0x140]
call fcn.14000c310
mov esi, 0x80000
test al, al
je 0x14001e74f
mov byte [rsp + 0x5f], bpl
cmp byte [r15 + 0x8a], 0
jne 0x14001e19e
cmp dword [r15 + 0x3c], 1
sete bpl
mov r14, qword [r15 + 0x40]
mov r13, qword [r15 + 0x48]
cmp r14, r13
je 0x14001e3f8
mov rax, r13
sub rax, r14
mov ecx, 0xfffffff8
cmp rax, rcx
ja 0x14001e78e
mov rbp, qword [sym.imp.KERNEL32.dll_SetHandleInformation]
lea rdi, [rsp + 0xa0]
lea rbx, [rsp + 0x138]
mov rcx, qword [r14]
mov edx, 1
mov r8d, 1
call rbp
test eax, eax
je 0x14001eaee
add r14, 8
cmp r14, r13
jne 0x14001e389
mov r9, qword [r15 + 0x40]
mov rax, qword [r15 + 0x48]
cmp rax, r9
je 0x14001eb22
mov rcx, qword [rsp + 0x1b0]
test rcx, rcx
je 0x14001e70b
sub eax, r9d
and eax, 0xfffffff8
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rax
mov r8d, 0x20002
xor edx, edx
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
mov bpl, 1
test eax, eax
je 0x14001e70b
cmp byte [r15 + 0x3a], 0
jne 0x14001eacd
cmp byte [r15 + 0x60], 0
jne 0x14001eada
mov eax, dword [rsp + 0x184]
mov ecx, eax
or ecx, 1
mov dword [rsp + 0x184], ecx
movzx ecx, byte [r15 + 0x38]
xor ecx, 1
mov word [rsp + 0x188], cx
mov rcx, qword [r15 + 0x70]
mov rdx, qword [r15 + 0x78]
mov r8, qword [r15 + 0x80]
test rcx, rcx
jne 0x14001ea78
test rdx, rdx
jne 0x14001ea78
test r8, r8
jne 0x14001ea78
cmp qword [r15 + 0x68], 0
jne 0x14001e4a1
mov r13d, esi
or r13d, 0x1000000
cmp byte [r15 + 0x88], 0
cmove r13d, esi
xorps xmm0, xmm0
movaps xmmword [rsp + 0x120], xmm0
mov qword [rsp + 0x130], 0
movzx eax, byte [r15 + 0x37]
test al, al
js 0x14001e4b6
lea rsi, [r15 + 0x20]
and eax, 0x7f
jmp 0x14001e4be
call fcn.1401af1d0
lea ecx, [rsi + 0x1000000]
cmp eax, 5
cmovge ecx, esi
mov esi, ecx
jmp 0x14001e462
mov rax, qword [r15 + 0x28]
mov rsi, qword [r15 + 0x20]
test rax, rax
cmove rsi, rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x110], rax
movaps xmmword [rsp + 0x100], xmm6
cmp byte [r12 + 0x17], 0
jns 0x14001e76f
mov rdx, qword [r12]
mov r8, qword [r12 + 8]
lea rcx, [rsp + 0x100]
call fcn.1400179f0
lea r12, [rsp + 0x148]
mov rdx, qword [r15 + 0x58]
test rdx, rdx
jne 0x14001e8b8
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xb0], 0
mov al, byte [r15 + 0xa8]
test al, al
jne 0x14001ea17
cmp qword [r15 + 0xa0], 0
jne 0x14001ea17
xor eax, eax
movzx ecx, bpl
cmp byte [rsp + 0x117], 0
js 0x14001e582
lea rdx, [rsp + 0x100]
jmp 0x14001e58a
mov rdi, qword [rsp + 0xe0]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x14001e60d
jmp 0x14001ec1d
mov rdx, qword [rsp + 0x100]
lea r8, [rsp + 0x120]
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r13d
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 0x14001e7b8
cmp byte [rsp + 0xb7], 0
mov r14, qword [rsp + 0x60]
mov bpl, byte [rsp + 0x5f]
js 0x14001e6f9
xorps xmm0, xmm0
lea rcx, [rsp + 0xe0]
movaps xmmword [rcx], xmm0
mov qword [rcx + 0x10], 0
lea rdx, [rsp + 0x120]
call fcn.140030940
mov rcx, qword [r15 + 0x68]
test rcx, rcx
jne 0x14001e564
cmp byte [r15 + 0x89], 0
jne 0x14001e735
cmp byte [r15], 0
jne 0x14001ebb1
mov rbx, qword [rsp + 0xe0]
mov dword [rsp + 0xf0], 0
mov qword [rsp + 0xe0], 0
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14001e653
call fcn.14017a3f0
mov rcx, r14
mov rdx, rbx
call fcn.14001ecd0
lea rcx, [rsp + 0xe0]
call fcn.14000af10
cmp byte [rsp + 0x117], 0
jns 0x14001e682
mov rcx, qword [rsp + 0x100]
call fcn.1401cbbbc
mov rcx, qword [rsp + 0x1b0]
test rcx, rcx
je 0x14001e695
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov rcx, qword [rsp + 0x140]
mov qword [rsp + 0x140], 0
test rcx, rcx
je 0x14001e6b3
call fcn.1401cbf84
lea rcx, [rsp + 0x1c0]
call fcn.140017ee0
test bpl, 0x19
jne 0x14001e7fd
mov rcx, qword [rsp + 0x388]
xor rcx, rsp
call fcn.1401ce5b0
mov rax, r14
movaps xmm6, xmmword [rsp + 0x390]
add rsp, 0x3a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0xa0]
call fcn.1401cbbbc
jmp 0x14001e5dd
mov r14, qword [rsp + 0x60]
mov qword [r14], 0
mov byte [r14 + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test rax, rax
mov bpl, byte [rsp + 0x5f]
jne 0x14001e682
jmp 0x14001eca5
mov rcx, qword [rsp + 0xe0]
call fcn.140122010
mov ecx, eax
call qword [sym.imp.USER32.dll_AllowSetForegroundWindow]
jmp 0x14001e61b
mov qword [r14], 0
mov byte [r14 + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test rax, rax
jne 0x14001e682
jmp 0x14001ecab
mov rax, qword [r12 + 0x10]
mov qword [rsp + 0x110], rax
movups xmm0, xmmword [r12]
movaps xmmword [rsp + 0x100], xmm0
jmp 0x14001e501
mov r14, qword [rsp + 0x60]
mov qword [r14], 0
mov byte [r14 + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test rax, rax
mov bpl, byte [rsp + 0x5f]
jne 0x14001e682
jmp 0x14001ecae
mov rax, qword [rsp + 0x60]
mov qword [rax], 0
mov byte [rax + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test rax, rax
je 0x14001ecc3
cmp byte [rsp + 0xb7], 0
jns 0x14001e7ee
mov rcx, qword [rsp + 0xa0]
call fcn.1401cbbbc
mov r14, qword [rsp + 0x60]
mov bpl, byte [rsp + 0x5f]
jmp 0x14001e66b
mov rax, qword [rsp + 0x68]
cmp byte [rax], 0
je 0x14001e6ca
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
call fcn.1402332a0
jmp 0x14001e6ca
mov r14, qword [rsp + 0x60]
mov qword [r14], 0
mov byte [r14 + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test rax, rax
mov bpl, byte [rsp + 0x5f]
jne 0x14001e682
jmp 0x14001ecb1
mov bl, byte [r15]
mov dil, byte [r15 + 0x38]
movzx r8d, byte [r12 + 0x17]
test r8b, r8b
js 0x14001e866
and r8d, 0x7f
jmp 0x14001e86f
mov r8, qword [r12 + 8]
mov r12, qword [r12]
lea r14, [rsp + 0x1d0]
mov rcx, r14
mov rdx, r12
call fcn.1401c8260
lea r15, [rsp + 0x140]
mov rcx, r15
mov rdx, r14
call fcn.140064810
mov r14, qword [rsp + 0x60]
mov rcx, r14
mov rdx, r15
mov r8d, edi
mov r9d, ebx
call fcn.140236060
mov rcx, r15
call fcn.14002ca30
jmp 0x14001e6ca
lea rcx, [rsp + 0xa0]
mov qword [rcx], 0
xor r8d, r8d
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x14001e8fa
or r13d, 0x400
mov rdx, qword [rsp + 0xa0]
movzx eax, bpl
cmp byte [rsp + 0x117], 0
js 0x14001e91e
lea r8, [rsp + 0x100]
jmp 0x14001e926
mov rax, qword [rsp + 0x60]
mov qword [rax], 0
mov byte [rax + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test rax, rax
jne 0x14001e7ee
jmp 0x14001ecc6
mov r8, qword [rsp + 0x100]
mov rcx, qword [r15 + 0x58]
lea r9, [rsp + 0x120]
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], 0
xor edx, edx
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, eax
mov rcx, qword [rsp + 0xa0]
call sub.USERENV.dll_DestroyEnvironmentBlock
test edi, edi
je 0x14001e985
mov r14, qword [rsp + 0x60]
mov bpl, byte [rsp + 0x5f]
jmp 0x14001e5dd
mov rax, qword [rsp + 0x60]
mov qword [rax], 0
mov byte [rax + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test rax, rax
jne 0x14001e7ee
jmp 0x14001ecb7
mov rax, qword [rsp + 0x60]
mov qword [rax], 0
mov byte [rax + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test rax, rax
jne 0x14001e7ee
jmp 0x14001ecb4
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
je 0x14001e9a9
mov rdi, rax
lea r8, [r15 + 0x90]
lea rbx, [rsp + 0x80]
mov rcx, rbx
mov rdx, rax
call fcn.140245220
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0xb0], rax
movups xmm0, xmmword [rbx]
movaps xmmword [rsp + 0xa0], xmm0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001ea50
test al, al
je 0x14001e9cd
lea r8, [r15 + 0x90]
lea rdx, [0x1402a8de4]
lea rdi, [rsp + 0x80]
mov rcx, rdi
call fcn.140245220
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0xb0], rax
movups xmm0, xmmword [rdi]
movaps xmmword [rsp + 0xa0], xmm0
cmp byte [rsp + 0xb7], 0
js 0x14001ea64
lea rax, [rsp + 0xa0]
jmp 0x14001ea6c
mov rax, qword [rsp + 0xa0]
or r13d, 0x400
jmp 0x14001e54c
mov r9, qword [r15 + 0x40]
cmp r9, qword [r15 + 0x48]
jne 0x14001ea9d
test rcx, rcx
je 0x14001ecbd
test rdx, rdx
je 0x14001ecc0
test r8, r8
je 0x14001eca8
or eax, 0x101
mov dword [rsp + 0x184], eax
mov qword [rsp + 0x198], rcx
mov qword [rsp + 0x1a0], rdx
mov qword [rsp + 0x1a8], r8
jmp 0x14001e45b
xor esi, esi
jmp 0x14001e331
or byte [rsp + 0x184], 0x80
jmp 0x14001e403
lea rax, [0x1402a21ae]
mov qword [rsp + 0x158], rax
jmp 0x14001e40e
mov rcx, rdi
lea rdx, str.LaunchProcess
lea r8, str.launch_win.cc
mov r9d, 0x13e
call fcn.140158eb0
mov rcx, rbx
mov rdx, rdi
call fcn.14023e730
mov rcx, rbx
call fcn.14023e760
jmp 0x14001e3a1
lea rax, str.vector___index_out_of_bounds
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s_n
lea rdx, str....._third_partylibc_srcinclude_vector
lea r9, [0x1402a1c81]
mov r8d, 0x60b
call fcn.140207060
lea rdi, [rsp + 0x140]
mov rcx, rdi
call fcn.1401c9410
call sub.KERNEL32.dll_GetCurrentThreadId
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov dword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
lea rdx, [0x1402d90d0]
lea r8, str.LaunchProcess
mov cl, 0x58
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x78], r8
xor r9d, r9d
call fcn.1402331d0
mov qword [rsp + 0x70], rax
jmp 0x14001e26d
lea rdi, [rsp + 0xa0]
movaps xmmword [rdi + 0x30], xmm6
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
lea rdx, str.LaunchProcess
lea r8, str.launch_win.cc
lea rbx, [rsp + 0x80]
mov rcx, rbx
mov r9d, 0x1c2
call fcn.140158eb0
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140181c40
mov rbx, qword [rsp + 0xe0]
mov rcx, rbx
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call fcn.140181760
jmp 0x14001e62d
movaps xmmword [rsp + 0xa0], xmm6
mov dword [rsp + 0xf0], 0
mov qword [rsp + 0xe0], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14001ec4b
call fcn.14017a3f0
lea rbx, [rsp + 0xa0]
mov rcx, rbx
mov rdx, rdi
call fcn.14001ecd0
mov rcx, rbx
mov edx, 1
mov r8b, 1
call fcn.140060ba0
mov rax, qword [rsp + 0x60]
mov qword [rax], 0
mov byte [rax + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test rax, rax
je 0x14001ecba
lea rcx, [rsp + 0xa0]
call fcn.14004ffb0
mov r14, qword [rsp + 0x60]
mov bpl, byte [rsp + 0x5f]
jmp 0x14001e65e
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3