Function at 0x140021100
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, 0x388
movaps xmmword [rsp + 0x370], xmm6
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
mov rax, qword [0x14010c040]
xor rax, rsp
mov qword [rsp + 0x368], rax
xor r14d, r14d
lea rcx, [rsp + 0x1d0]
mov r8d, 0x190
xor edx, edx
call fcn.1400bf160
cmp byte [rbx + 0x17], 0
mov rax, rbx
jns 0x14002115a
mov rax, qword [rbx]
movzx ecx, word [rax + r14*2]
mov word [rsp + r14*2 + 0x1d0], cx
test cx, cx
je 0x140021226
inc r14
cmp r14, 0xc8
jne 0x14002115a
jmp 0x14002121c
mov bpl, byte [rdi]
mov dil, byte [rdi + 0x20]
movzx eax, byte [rbx + 0x17]
test al, al
jns 0x140021198
mov rax, qword [rbx + 8]
mov rbx, qword [rbx]
lea rdx, [rsp + 0x1b0]
mov qword [rdx], rbx
mov qword [rdx + 8], rax
lea rbx, [rsp + 0x120]
mov rcx, rbx
call fcn.1400da280
mov rcx, rsi
mov rdx, rbx
mov r8d, edi
mov r9d, ebp
call fcn.1400d8c20
lea rdi, [rsp + 0x150]
mov rdx, qword [rdi + 8]
mov rcx, rdi
call fcn.14001a120
mov rdi, qword [rdi - 0x18]
test rdi, rdi
je 0x140021a66
mov rbx, qword [rsp + 0x140]
mov rcx, rdi
cmp rbx, rdi
jne 0x140021214
jmp 0x140021a9d
mov rcx, qword [rbx - 0x18]
call fcn.14008ed54
add rbx, 0xffffffffffffffe8
cmp rbx, rdi
je 0x140021a95
cmp byte [rbx - 1], 0
jns 0x140021207
jmp 0x1400211fe
mov word [rsp + 0x35e], 0
lea rcx, [rsp + 0x1d0]
call fcn.140053a10
cmp byte [rdi + 0x21], 0
jne 0x140021182
mov qword [rsp + 0x80], 0xa
mov al, byte [0x14011d67a]
test al, al
jne 0x140021b98
movaps xmm6, xmmword [0x1400efde0]
lea r14, [rsp + 0x1a0]
movaps xmmword [r14], xmm6
lea rdx, str.LaunchProcess
lea r8, str....._baseprocesslaunch_win.cc
lea r15, [rsp + 0x120]
mov rcx, r15
mov r9d, 0x100
call fcn.140055660
lea r8, [0x14011d5dc]
mov rcx, r14
mov rdx, r15
call fcn.140021db0
xorps xmm0, xmm0
movaps xmmword [rsp + 0x1c0], xmm0
movaps xmmword [r15], xmm0
movaps xmmword [r15 + 0x60], xmm0
movaps xmmword [r15 + 0x50], xmm0
movaps xmmword [r15 + 0x40], xmm0
movaps xmmword [r15 + 0x30], xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
mov qword [r15 + 0x70], 0
mov dword [r15 + 8], 0x70
xor r14d, r14d
cmp byte [rdi + 0x72], 0
mov ebp, 0
je 0x140021300
call fcn.140017610
mov rax, qword [0x14011d7d8]
xor ebp, ebp
cmp dword [rax], 0x10
setge bpl
mov rax, qword [rdi + 0x28]
xor r15d, r15d
cmp rax, qword [rdi + 0x30]
setne r12b
call fcn.140017610
mov rax, qword [0x14011d7d8]
cmp dword [rax], 3
jl 0x140021345
mov r15b, r12b
add ebp, r15d
je 0x140021345
lea rcx, [rsp + 0x120]
mov edx, ebp
call fcn.140027590
mov r14d, 0x80000
test al, al
je 0x1400219f4
cmp byte [rdi + 0x72], 0
je 0x1400213a4
call fcn.140017610
mov rax, qword [0x14011d7d8]
cmp dword [rax], 0x10
jl 0x1400213a4
or byte [rsp + 0x1cb], 0x20
mov rcx, qword [rsp + 0x190]
test rcx, rcx
je 0x1400219d9
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], 0x10
lea r9, [rsp + 0x1c0]
mov r8d, 0x20007
xor edx, edx
call qword [sym.imp.progwrp.dll_UpdateProcThreadAttribute]
test eax, eax
je 0x1400219d9
mov eax, dword [rdi + 0x24]
cmp eax, 1
sete bpl
mov rcx, qword [rdi + 0x28]
cmp rcx, qword [rdi + 0x30]
je 0x1400214d2
cmp eax, 1
sete r15b
call fcn.140017610
mov rax, qword [0x14011d7d8]
cmp dword [rax], 3
setl bpl
or bpl, r15b
mov rax, qword [rdi + 0x28]
cmp rax, qword [rdi + 0x30]
je 0x1400214d2
call fcn.140017610
mov rax, qword [0x14011d7d8]
cmp dword [rax], 3
jl 0x1400214d2
mov r15, qword [rdi + 0x28]
mov r12, qword [rdi + 0x30]
mov rax, r12
sub rax, r15
mov ecx, 0xfffffff8
cmp rax, rcx
jbe 0x140021433
mov qword [rsi], 0
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test rax, rax
jne 0x140021a0e
jmp 0x140021be0
cmp r15, r12
je 0x140021bcb
mov r13, qword [sym.imp.KERNEL32.dll_SetHandleInformation]
lea rbp, [rsp + 0x118]
mov rcx, qword [r15]
mov edx, 1
mov r8d, 1
call r13
test eax, eax
je 0x140021b29
add r15, 8
cmp r15, r12
jne 0x14002144b
mov r9, qword [rdi + 0x28]
mov rax, qword [rdi + 0x30]
cmp rax, r9
je 0x140021bcb
mov rcx, qword [rsp + 0x190]
test rcx, rcx
je 0x1400214b3
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.progwrp.dll_UpdateProcThreadAttribute]
mov bpl, 1
test eax, eax
jne 0x1400214d2
mov qword [rsi], 0
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test rax, rax
jne 0x140021a0e
jmp 0x140021bff
cmp byte [rdi + 0x22], 0
je 0x1400214e0
or byte [rsp + 0x164], 0x80
cmp byte [rdi + 0x48], 0
je 0x1400214f5
lea rax, [0x1400fe378]
mov qword [rsp + 0x138], rax
mov eax, dword [rsp + 0x164]
mov ecx, eax
or ecx, 1
mov dword [rsp + 0x164], ecx
movzx ecx, byte [rdi + 0x20]
xor ecx, 1
mov word [rsp + 0x168], cx
mov rcx, qword [rdi + 0x58]
mov rdx, qword [rdi + 0x60]
mov r8, qword [rdi + 0x68]
test rcx, rcx
jne 0x140021532
test rdx, rdx
jne 0x140021532
test r8, r8
je 0x14002157b
mov r9, qword [rdi + 0x28]
cmp r9, qword [rdi + 0x30]
jne 0x140021557
test rcx, rcx
je 0x140021bce
test rdx, rdx
je 0x140021bd1
test r8, r8
je 0x140021bd4
or eax, 0x101
mov dword [rsp + 0x164], eax
mov qword [rsp + 0x178], rcx
mov qword [rsp + 0x180], rdx
mov qword [rsp + 0x188], r8
cmp byte [rdi + 0x70], 0
lea r15d, [r14 + 0x1000000]
cmove r15d, r14d
xorps xmm0, xmm0
movaps xmmword [rsp + 0x100], xmm0
mov qword [rsp + 0x110], 0
movzx eax, byte [rdi + 0x1f]
test al, al
js 0x1400215c5
lea r12, [rdi + 8]
jmp 0x1400215cd
mov rdx, qword [rbx]
mov r8, qword [rbx + 8]
lea rcx, [rsp + 0xe0]
call fcn.140006fa0
jmp 0x14002160b
mov rax, qword [rdi + 0x10]
mov r12, qword [rdi + 8]
test rax, rax
cmove r12, rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0xf0], rax
movaps xmmword [rsp + 0xe0], xmm6
cmp byte [rbx + 0x17], 0
js 0x1400215af
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0xf0], rax
movups xmm0, xmmword [rbx]
movaps xmmword [rsp + 0xe0], xmm0
lea r13, [rsp + 0x128]
mov rdx, qword [rdi + 0x40]
test rdx, rdx
je 0x140021669
lea rcx, [rsp + 0x80]
mov qword [rcx], 0
xor r8d, r8d
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x14002180e
or r15d, 0x400
mov rdx, qword [rsp + 0x80]
movzx eax, bpl
cmp byte [rsp + 0xf7], 0
js 0x14002182d
lea r8, [rsp + 0xe0]
jmp 0x140021835
xorps xmm0, xmm0
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x90], 0
mov al, byte [rdi + 0x90]
test al, al
jne 0x1400216b5
cmp qword [rdi + 0x88], 0
jne 0x1400216b5
xor eax, eax
movzx ecx, bpl
cmp byte [rsp + 0xf7], 0
js 0x140021756
lea rdx, [rsp + 0xe0]
jmp 0x14002175e
test al, al
je 0x14002170d
lea r8, [rdi + 0x78]
lea rdx, [0x1400f1f1c]
lea rbx, [rsp + 0x60]
mov rcx, rbx
call fcn.1400db100
mov rax, qword [rbx + 0x10]
mov qword [rsp + 0x90], rax
movups xmm0, xmmword [rbx]
movaps xmmword [rsp + 0x80], xmm0
cmp byte [rsp + 0x97], 0
jns 0x140021703
mov rax, qword [rsp + 0x80]
or r15d, 0x400
jmp 0x140021696
lea rax, [rsp + 0x80]
jmp 0x1400216fa
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
je 0x1400217ef
mov rbx, rax
lea r8, [rdi + 0x78]
lea r14, [rsp + 0x60]
mov rcx, r14
mov rdx, rax
call fcn.1400db100
mov rax, qword [r14 + 0x10]
mov qword [rsp + 0x90], rax
movups xmm0, xmmword [r14]
movaps xmmword [rsp + 0x80], xmm0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400216e8
mov rdx, qword [rsp + 0xe0]
lea r8, [rsp + 0x100]
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r15d
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 0x1400217b5
cmp byte [rsp + 0x97], 0
jns 0x140021889
mov rcx, qword [rsp + 0x80]
call fcn.14008ed54
jmp 0x140021889
mov qword [rsi], 0
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test rax, rax
je 0x140021bdd
cmp byte [rsp + 0x97], 0
jns 0x1400219a5
mov rcx, qword [rsp + 0x80]
call fcn.14008ed54
jmp 0x1400219a5
mov qword [rsi], 0
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test rax, rax
jne 0x1400219a5
jmp 0x140021c02
mov qword [rsi], 0
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test rax, rax
jne 0x1400219a5
jmp 0x140021bc8
mov r8, qword [rsp + 0xe0]
mov rcx, qword [rdi + 0x40]
lea r9, [rsp + 0x100]
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], 0
xor edx, edx
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov ebx, eax
mov rcx, qword [rsp + 0x80]
call sub.USERENV.dll_DestroyEnvironmentBlock
test ebx, ebx
je 0x1400219be
xorps xmm0, xmm0
lea rcx, [rsp + 0xc0]
movaps xmmword [rcx], xmm0
mov qword [rcx + 0x10], 0
lea rdx, [rsp + 0x100]
call fcn.14001c960
mov rcx, qword [rdi + 0x50]
test rcx, rcx
je 0x1400218ce
mov rbx, qword [rsp + 0xc0]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x140021aac
cmp byte [rdi + 0x71], 0
je 0x1400218f9
mov rcx, qword [rsp + 0xc0]
xor eax, eax
test rcx, rcx
je 0x1400218f1
call qword [sym.imp.progwrp.dll_GetProcessId]
test eax, eax
je 0x140021be6
mov ecx, eax
call qword [sym.imp.USER32.dll_AllowSetForegroundWindow]
cmp byte [rdi], 0
je 0x14002195f
lea rdi, [rsp + 0x80]
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 + 0x60]
mov rcx, rbx
mov r9d, 0x1ba
call fcn.140055660
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140078520
mov rcx, qword [rsp + 0xc0]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call fcn.140078040
mov dword [rsp + 0xd0], 0
mov rdi, qword [rsp + 0xc0]
mov qword [rsp + 0xc0], 0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14002198d
call fcn.140066340
mov rcx, rsi
mov rdx, rdi
call fcn.1400271e0
lea rcx, [rsp + 0xc0]
call fcn.140027660
cmp byte [rsp + 0xf7], 0
jns 0x140021a0e
mov rcx, qword [rsp + 0xe0]
call fcn.14008ed54
jmp 0x140021a0e
mov qword [rsi], 0
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test rax, rax
jne 0x1400219a5
jmp 0x140021bda
mov qword [rsi], 0
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test rax, rax
jne 0x140021a0e
jmp 0x140021bd7
mov qword [rsi], 0
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test rax, rax
je 0x140021bc5
mov rcx, qword [rsp + 0x190]
test rcx, rcx
je 0x140021a21
call qword [sym.imp.progwrp.dll_DeleteProcThreadAttributeList]
mov rcx, qword [rsp + 0x120]
mov qword [rsp + 0x120], 0
test rcx, rcx
je 0x140021a3f
call fcn.14008eef8
lea rcx, [rsp + 0x1a0]
call fcn.140027400
mov qword [rsp + 0x80], 0xa
mov al, byte [0x14011d67a]
test al, al
jne 0x140021b6e
mov rcx, qword [rsp + 0x368]
xor rcx, rsp
call fcn.1400909a0
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x370]
add rsp, 0x388
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x138]
mov qword [rsp + 0x140], rdi
call fcn.14008ed54
jmp 0x140021a66
movaps xmmword [rsp + 0x80], xmm6
mov dword [rsp + 0xd0], 0
mov qword [rsp + 0xc0], 0
lea rax, [rbx + 1]
cmp rax, 2
jb 0x140021ada
call fcn.140066340
lea rdi, [rsp + 0x80]
mov rcx, rdi
mov rdx, rbx
call fcn.1400271e0
mov rcx, rdi
mov edx, 1
mov r8b, 1
call fcn.1400d8b40
mov qword [rsi], 0
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test rax, rax
je 0x140021be3
lea rcx, [rsp + 0x80]
call fcn.140021c10
jmp 0x140021998
lea rcx, [rsp + 0x80]
lea rdx, str.LaunchProcess
lea r8, str....._baseprocesslaunch_win.cc
mov r9d, 0x142
call fcn.140055660
mov rcx, rbp
lea rdx, [0x1400fe0b3]
lea r8, [rsp + 0x80]
call fcn.1400daea0
mov rcx, rbp
call fcn.1400daff0
jmp 0x140021464
movzx ecx, al
lea r8, [rsp + 0x120]
mov qword [r8], 0
lea rdx, [rsp + 0x80]
mov r9d, 2
call fcn.140055680
jmp 0x140021a66
movzx ecx, al
lea rax, str.LaunchProcess
lea r8, [rsp + 0x120]
mov qword [r8], rax
lea rdx, [rsp + 0x80]
mov r9d, 1
call fcn.140056bc0
jmp 0x140021257
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3
int3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
mov eax, 0
cmp ecx, 6
jne 0x1400218f1
int3
int3
int3