Function at 0x140068840
Capabilities:
Create process on windows
Query environment variable
Resume thread

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x3b8
movaps xmmword [rsp + 0x3a0], xmm6
mov r15, r8
mov r12, rdx
mov r13, rcx
mov rax, qword [0x1402e0038]
xor rax, rsp
mov qword [rsp + 0x398], rax
xor esi, esi
lea rcx, [rsp + 0x200]
mov r8d, 0x190
xor edx, edx
call fcn.140111cd0
cmp byte [r12 + 0x17], 0
mov rax, r12
jns 0x14006889c
mov rax, qword [r12]
movzx ecx, word [rax + rsi*2]
mov word [rsp + rsi*2 + 0x200], cx
test cx, cx
je 0x140068926
inc rsi
cmp rsi, 0xc8
jne 0x14006889c
jmp 0x14006891c
lea rdi, [rsp + 0x150]
mov rcx, rdi
call fcn.14009a170
call qword [sym.imp.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, [0x1402e21a0]
lea r8, str.LaunchProcess
mov cl, 0x58
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x78], r8
xor r9d, r9d
call fcn.14016b830
mov qword [rsp + 0x70], rax
jmp 0x14006896c
mov word [rsp + 0x38e], 0
lea rcx, [rsp + 0x200]
call fcn.14008fa20
cmp byte [r15 + 0x21], 0
jne 0x14006903e
mov bpl, byte [0x1402e21a0]
xor esi, esi
test bpl, 0x19
jne 0x1400688bb
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rax
xor eax, eax
mov qword [rsp + 0x68], rax
movaps xmm6, xmmword [0x14029bb90]
lea rdi, [rsp + 0x1d0]
movaps xmmword [rdi], xmm6
lea rdx, str.LaunchProcess
lea r8, str....._baseprocesslaunch_win.cc
lea rbx, [rsp + 0x150]
mov rcx, rbx
mov r9d, 0x120
call fcn.14009b140
lea r8, [0x1402f3f74]
mov rcx, rdi
mov rdx, rbx
call fcn.14016e510
xorps xmm0, xmm0
movaps xmmword [rsp + 0x1f0], xmm0
mov dword [rsp + 0x1cc], 0
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 + 0x7a], 0
je 0x140068a09
call fcn.1400f1800
xor esi, esi
cmp eax, 0x10
setge sil
movzx eax, byte [r15 + 0x7b]
add esi, eax
mov rcx, qword [r15 + 0x28]
xor r8d, r8d
cmp rcx, qword [r15 + 0x30]
setne r8b
add r8d, esi
movzx edx, byte [r15 + 0x7c]
add edx, r8d
je 0x140068f5e
lea rcx, [rsp + 0x150]
call fcn.1400696f0
test al, al
je 0x14006934d
mov al, byte [r15 + 0x7b]
mov esi, 0x80000
mov dword [rsp + 0x14c], 2
test al, al
jne 0x14006936c
cmp byte [r15 + 0x7a], 0
je 0x140068aba
call fcn.1400f1800
cmp eax, 0x10
jl 0x140068aba
or byte [rsp + 0x1fb], 0x20
mov rcx, qword [rsp + 0x1c0]
test rcx, rcx
je 0x140068f9b
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], 0x10
lea r9, [rsp + 0x1f0]
mov r8d, 0x20007
xor edx, edx
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
je 0x140068f9b
mov byte [rsp + 0x5f], bpl
mov qword [rsp + 0x60], r13
cmp byte [r15 + 0x7c], 0
jne 0x140069409
cmp dword [r15 + 0x24], 1
sete bpl
mov r13, qword [r15 + 0x28]
mov rdi, qword [r15 + 0x30]
cmp r13, rdi
je 0x140068b83
mov rax, rdi
sub rax, r13
mov ecx, 0xfffffff8
cmp rax, rcx
ja 0x140069479
mov rbp, qword [sym.imp.KERNEL32.dll_SetHandleInformation]
lea r14, [0x1402a1d44]
lea rbx, [rsp + 0x140]
mov rcx, qword [r13]
mov edx, 1
mov r8d, 1
call rbp
test eax, eax
je 0x1400690ba
add r13, 8
cmp r13, rdi
jne 0x140068b13
mov r9, qword [r15 + 0x28]
mov rax, qword [r15 + 0x30]
cmp rax, r9
je 0x140068f65
mov rcx, qword [rsp + 0x1c0]
test rcx, rcx
je 0x140068fdc
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 0x140068fdc
cmp byte [r15 + 0x22], 0
jne 0x140068f68
cmp byte [r15 + 0x50], 0
jne 0x140068f75
mov eax, dword [rsp + 0x194]
mov ecx, eax
or ecx, 1
mov dword [rsp + 0x194], ecx
mov edx, dword [r15 + 0x40]
test edx, edx
jne 0x1400693c7
movzx ecx, byte [r15 + 0x20]
xor ecx, 1
mov word [rsp + 0x198], cx
mov rcx, qword [r15 + 0x60]
mov rdx, qword [r15 + 0x68]
mov r8, qword [r15 + 0x70]
test rcx, rcx
jne 0x140068f10
test rdx, rdx
jne 0x140068f10
test r8, r8
jne 0x140068f10
cmp byte [r15 + 0x78], 0
lea r14d, [rsi + 0x1000000]
cmove r14d, esi
xorps xmm0, xmm0
movaps xmmword [rsp + 0x120], xmm0
mov qword [rsp + 0x130], 0
movzx eax, byte [r15 + 0x1f]
test al, al
js 0x140068c28
lea rsi, [r15 + 8]
and eax, 0x7f
jmp 0x140068c30
mov rax, qword [r15 + 0x10]
mov rsi, qword [r15 + 8]
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 0x140069005
mov rdx, qword [r12]
mov r8, qword [r12 + 8]
lea rcx, [rsp + 0x100]
call fcn.1400a089a
cmp byte [r15 + 0x7d], 0
jne 0x140068fba
xor r12d, r12d
lea r13, [rsp + 0x158]
mov rdx, qword [r15 + 0x48]
test rdx, rdx
jne 0x1400690fb
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
mov qword [rsp + 0xb0], 0
mov al, byte [r15 + 0x98]
test al, al
jne 0x140069282
cmp qword [r15 + 0x90], 0
jne 0x140069282
xor eax, eax
movzx ecx, bpl
cmp byte [rsp + 0x117], 0
js 0x140068ce4
lea rdx, [rsp + 0x100]
jmp 0x140068cec
mov rdx, qword [rsp + 0x100]
mov bpl, byte [rsp + 0x5f]
lea r8, [rsp + 0x120]
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r14d
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 0x14006923d
cmp byte [rsp + 0xb7], 0
mov r13, qword [rsp + 0x60]
js 0x140068f89
xorps xmm0, xmm0
lea rcx, [rsp + 0xe0]
movaps xmmword [rcx], xmm0
mov qword [rcx + 0x10], 0
lea rdx, [rsp + 0x120]
call fcn.140069630
test r12, r12
je 0x140068d72
cmp byte [r15 + 0x7d], 0
jne 0x1400694a2
mov rcx, qword [r15 + 0x58]
test rcx, rcx
jne 0x140068e5e
cmp byte [r15 + 0x79], 0
jne 0x140069024
cmp byte [r15], 0
jne 0x1400694ca
mov dword [rsp + 0xf0], 0
mov rdi, qword [rsp + 0xe0]
mov qword [rsp + 0xe0], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140068dc2
call fcn.140096510
mov rcx, r13
mov rdx, rdi
call fcn.1400cc060
lea rcx, [rsp + 0xe0]
call fcn.1400695d0
cmp byte [rsp + 0x117], 0
jns 0x140068df1
mov rcx, qword [rsp + 0x100]
call fcn.14010cc0c
lea rcx, [rsp + 0x150]
call fcn.140069590
lea rcx, [rsp + 0x1d0]
call fcn.1400c7600
test bpl, 0x19
je 0x140068e2f
mov rax, qword [rsp + 0x68]
cmp byte [rax], 0
je 0x140068e2f
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
call fcn.14016b030
mov rcx, qword [rsp + 0x398]
xor rcx, rsp
call fcn.14010fba0
mov rax, r13
movaps xmm6, xmmword [rsp + 0x3a0]
add rsp, 0x3b8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdx, qword [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x140068d7f
movaps xmmword [rsp + 0xa0], xmm6
mov dword [rsp + 0xf0], 0
mov rdi, qword [rsp + 0xe0]
mov qword [rsp + 0xe0], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140068eaa
call fcn.140096510
lea rbx, [rsp + 0xa0]
mov rcx, rbx
mov rdx, rdi
call fcn.1400cc060
mov rcx, rbx
mov edx, 1
mov r8b, 1
call fcn.1401c80e0
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 0x140069577
mov rax, qword [rsp + 0xa0]
inc rax
cmp rax, 2
jae 0x140069541
mov r13, qword [rsp + 0x60]
mov bpl, byte [rsp + 0x5f]
jmp 0x140068dcd
mov r9, qword [r15 + 0x28]
cmp r9, qword [r15 + 0x30]
jne 0x140068f35
test rcx, rcx
je 0x14006957a
test rdx, rdx
je 0x14006957d
test r8, r8
je 0x140069580
or eax, 0x101
mov dword [rsp + 0x194], eax
mov qword [rsp + 0x1a8], rcx
mov qword [rsp + 0x1b0], rdx
mov qword [rsp + 0x1b8], r8
jmp 0x140068bef
xor esi, esi
jmp 0x140068a4e
int3
or byte [rsp + 0x194], 0x80
jmp 0x140068b8e
lea rax, [0x1402a1c72]
mov qword [rsp + 0x168], rax
jmp 0x140068b99
mov rcx, qword [rsp + 0xa0]
call fcn.14010cc0c
jmp 0x140068d3f
mov qword [r13], 0
mov byte [r13 + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test rax, rax
jne 0x140068df1
int3
call fcn.1401e19c0
test rax, rax
jne 0x140068fd0
or r14d, 0x8000
jmp 0x140068c7e
mov r12, rax
or r14d, 4
jmp 0x140068c81
mov r13, qword [rsp + 0x60]
mov qword [r13], 0
mov byte [r13 + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test rax, rax
mov bpl, byte [rsp + 0x5f]
jne 0x140068df1
int3
mov rax, qword [r12 + 0x10]
mov qword [rsp + 0x110], rax
movups xmm0, xmmword [r12]
movaps xmmword [rsp + 0x100], xmm0
jmp 0x140068c73
mov rcx, qword [rsp + 0xe0]
call fcn.1400f6ce0
mov ecx, eax
call qword [sym.imp.USER32.dll_AllowSetForegroundWindow]
jmp 0x140068d8a
movzx eax, byte [r12 + 0x17]
test al, al
js 0x14006904d
and eax, 0x7f
jmp 0x140069056
mov rax, qword [r12 + 8]
mov r12, qword [r12]
mov bl, byte [r15]
mov dil, byte [r15 + 0x20]
mov qword [rsp + 0x1e0], r12
mov qword [rsp + 0x1e8], rax
test rax, rax
js 0x140069586
test r12, r12
jne 0x140069084
test rax, rax
jne 0x140069589
lea r14, [rsp + 0x150]
lea rdx, [rsp + 0x1e0]
mov rcx, r14
call fcn.140101430
mov rcx, r13
mov rdx, r14
mov r8d, edi
mov r9d, ebx
call fcn.1401c81f0
mov rcx, r14
call fcn.1400f7650
jmp 0x140068e2f
lea rcx, [rsp + 0xa0]
lea rdx, str.LaunchProcess
lea r8, str....._baseprocesslaunch_win.cc
mov r9d, 0x17b
call fcn.14009b140
mov rcx, rbx
mov rdx, r14
lea r8, [rsp + 0xa0]
call fcn.1401cf310
mov rcx, rbx
call fcn.1401cf450
jmp 0x140068b2c
lea rcx, [rsp + 0xa0]
mov qword [rcx], 0
xor r8d, r8d
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
jne 0x14006913a
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 0x140069273
jmp 0x140069571
or r14d, 0x400
cmp byte [r15 + 0x7e], 0
mov rax, qword [rsp + 0xa0]
je 0x14006919e
cmp byte [rsp + 0x117], 0
js 0x140069164
lea r9, [rsp + 0x100]
jmp 0x14006916c
mov r9, qword [rsp + 0x100]
mov rcx, qword [r15 + 0x48]
lea rdx, [rsp + 0x120]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r14d
xor edx, edx
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
jmp 0x1400691fb
movzx edx, bpl
cmp byte [rsp + 0x117], 0
js 0x1400691b6
lea r8, [rsp + 0x100]
jmp 0x1400691be
mov r8, qword [rsp + 0x100]
mov rcx, qword [r15 + 0x48]
lea r9, [rsp + 0x120]
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], edx
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 0x14006921d
mov r13, qword [rsp + 0x60]
mov bpl, byte [rsp + 0x5f]
jmp 0x140068d3f
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 0x140069273
jmp 0x140069574
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 0x140069583
cmp byte [rsp + 0xb7], 0
jns 0x140069273
mov rcx, qword [rsp + 0xa0]
call fcn.14010cc0c
mov r13, qword [rsp + 0x60]
mov bpl, byte [rsp + 0x5f]
jmp 0x140068dda
test al, al
jne 0x1400692f0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
jne 0x1400692b1
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 0x140069273
jmp 0x14006956e
mov rdi, rax
lea r8, [r15 + 0x80]
lea rbx, [rsp + 0x80]
mov rcx, rbx
mov rdx, rax
call fcn.1401e1a30
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 0x140069325
lea r8, [r15 + 0x80]
lea rdx, [0x1402aaa16]
lea rdi, [rsp + 0x80]
mov rcx, rdi
call fcn.1401e1a30
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 0x140069339
lea rax, [rsp + 0xa0]
jmp 0x140069341
mov rax, qword [rsp + 0xa0]
or r14d, 0x400
jmp 0x140068ccc
mov qword [r13], 0
mov byte [r13 + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test rax, rax
jne 0x140068df1
int3
mov rcx, qword [rsp + 0x1c0]
test rcx, rcx
je 0x1400693a8
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], 4
lea r9, [rsp + 0x14c]
mov r8d, 0x20012
xor edx, edx
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
jne 0x140068a61
mov qword [r13], 0
mov byte [r13 + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test rax, rax
jne 0x140068df1
int3
mov cx, 0xa
add edx, 0xfffffffe
cmp edx, 3
ja case.default.0x1400693e5
lea rcx, [0x1402aaa3c]
movsxd rdx, dword [rcx + rdx*4]
add rdx, rcx
jmp rdx
mov cx, 1
jmp case.default.0x1400693e5
mov cx, 2
jmp case.default.0x1400693e5
mov cx, 7
jmp case.default.0x1400693e5
xor ecx, ecx
jmp case.default.0x1400693e5
mov dword [rsp + 0x1cc], 1
mov rcx, qword [rsp + 0x1c0]
test rcx, rcx
je 0x140069450
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], 4
lea r9, [rsp + 0x1cc]
mov r8d, 0x2001c
xor edx, edx
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
jne 0x140068acf
mov r13, qword [rsp + 0x60]
mov qword [r13], 0
mov byte [r13 + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test rax, rax
mov bpl, byte [rsp + 0x5f]
jne 0x140068df1
int3
mov r13, qword [rsp + 0x60]
mov qword [r13], 0
mov byte [r13 + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test rax, rax
mov bpl, byte [rsp + 0x5f]
jne 0x140068df1
int3
mov ecx, dword [rsp + 0xf0]
mov edx, 4
mov rax, r12
call qword [0x140318008]
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
jmp 0x140068d72
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....._baseprocesslaunch_win.cc
lea rbx, [rsp + 0x80]
mov rcx, rbx
mov r9d, 0x21e
call fcn.14009b140
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140059ca0
mov rcx, qword [rsp + 0xe0]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call fcn.140059e90
jmp 0x140068d94
call fcn.14004ba00
mov rcx, qword [0x1402f4238]
jmp 0x14006955a
call fcn.140096510
mov rdi, qword [rsp + 0xa0]
mov rcx, qword [0x1402f4238]
test rcx, rcx
je 0x140069533
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, rdi
call qword [0x140318008]
jmp 0x140068f01
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3