Function at 0x14003b780
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 [0x140135388]
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.140036f60
lea rcx, [rsp + 0x148]
mov rdx, rdi
call fcn.14004f380
mov eax, dword [0x140138bec]
mov ecx, dword [0x140138c48]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003bb37
lea rcx, [rsp + 0xd0]
call fcn.14004f650
cmp dword [rbx + 0x24], 1
sete r15b
mov rsi, qword [rbx + 0x28]
mov rbp, qword [rbx + 0x30]
cmp rsi, rbp
je 0x14003bbba
mov rax, rbp
sub rax, rsi
sar rax, 3
cmp rax, 0x1fffffff
ja 0x14003bbab
mov rcx, qword [rsi]
mov edx, 1
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x14003bbc1
lea rax, [rsi + 8]
cmp rax, rbp
je 0x14003b8b6
mov rcx, qword [rax]
mov edx, 1
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x14003beb6
lea rax, [rsi + 0x10]
cmp rax, rbp
je 0x14003b8b6
mov rcx, qword [rax]
mov edx, 1
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x14003bf2d
add rsi, 0x18
cmp rsi, rbp
jne 0x14003bb6e
lea rcx, [rsp + 0xd0]
mov edx, 1
call fcn.14004f6d0
test al, al
je 0x14003bbab
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.14004f790
test al, al
je 0x14003bbab
mov r15b, 1
mov edi, 0x80000
cmp byte [rbx + 0x21], 0
jne 0x14003bbf3
cmp byte [rbx + 0x48], 0
jne 0x14003bc00
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 0x14003bc14
mov rdx, qword [rbx + 0x60]
test rdx, rdx
jne 0x14003bc18
cmp qword [rbx + 0x68], 0
jne 0x14003bc18
cmp qword [rbx + 0x50], 0
jne 0x14003bc45
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 0x14003b99f
mov rax, qword [rbx + 0x10]
mov rbp, qword [rbx + 8]
jmp 0x14003b9a3
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.14002f020
mov rdx, qword [rbx + 0x40]
test rdx, rdx
jne 0x14003bc5b
xorps xmm0, xmm0
movaps xmmword [rsp + 0x80], xmm0
mov qword [rsp + 0x90], 0
cmp byte [rbx + 0x90], 0
jne 0x14003bd00
cmp qword [rbx + 0x88], 0
jne 0x14003bd65
xor eax, eax
movzx ecx, r15b
cmp byte [rsp + 0xaf], 0
jns 0x14003ba1e
mov rdx, qword [rsp + 0x98]
jmp 0x14003ba26
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 0x14003bdce
cmp byte [rsp + 0x97], 0
js 0x14003bdf8
lea rcx, [rsp + 0x80]
lea rdx, [rsp + 0xb0]
call fcn.14004f7d0
mov rcx, qword [rbx + 0x50]
test rcx, rcx
jne 0x14003be0a
cmp byte [rbx + 0x71], 0
jne 0x14003be64
cmp byte [rbx], 0
jne 0x14003be7e
mov edx, dword [rsp + 0x90]
mov rcx, qword [0x140139158]
test rcx, rcx
jne 0x14003be96
lea rcx, [rsp + 0x80]
call fcn.14004f9d0
mov rcx, r12
mov rdx, rax
call fcn.14003c040
lea rcx, [rsp + 0x80]
call fcn.14004f8d0
cmp byte [rsp + 0xaf], 0
jns 0x14003baf6
mov rcx, qword [rsp + 0x98]
call fcn.1400d8b70
lea rcx, [rsp + 0xd0]
call fcn.14004f690
lea rcx, [rsp + 0x148]
call fcn.14004f550
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1400d8ee0
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, [0x140138bec]
call fcn.1400d8c90
cmp dword [0x140138bec], 0xffffffff
jne 0x14003b807
lea rcx, [rsp + 0x148]
call fcn.14004f4a0
lea rcx, [0x140138bec]
call fcn.1400d8d28
jmp 0x14003b807
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 0x14003bfa4
add rsi, 8
cmp rbp, rsi
je 0x14003b8b6
jmp 0x14003bb84
mov rcx, r12
xor edx, edx
call fcn.14003c040
jmp 0x14003baf6
xor edi, edi
jmp 0x14003b901
lea rdx, str..._.._base_process_launch_win.cc
lea rdi, [rsp + 0xb0]
mov rcx, rdi
mov r8d, 0xe1
call fcn.14004fa50
mov rcx, rdi
call fcn.14004fa20
mov rcx, rdi
call fcn.14004fa30
jmp 0x14003b85f
or byte [rsp + 0x114], 0x80
jmp 0x14003b90b
lea rax, [0x140109cea]
mov qword [rsp + 0xe8], rax
jmp 0x14003b915
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 0x14003b95c
call fcn.140050290
lea ecx, [rdi + 0x1000000]
cmp eax, 5
cmovl edi, ecx
jmp 0x14003b967
lea rcx, [rsp + 0x80]
mov qword [rcx], 0
xor r8d, r8d
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x14003bcf1
or esi, 0x400
mov rdx, qword [rsp + 0x80]
movzx r8d, r15b
cmp byte [rsp + 0xaf], 0
jns 0x14003bc9a
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 0x14003ba6e
mov rcx, r12
xor edx, edx
call fcn.14003c040
jmp 0x14003badf
lea r8, [rbx + 0x78]
lea rdx, [0x140109cec]
lea rcx, [rsp + 0x68]
call fcn.1400502b0
cmp byte [rsp + 0x97], 0
js 0x14003bee8
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 0x14003bea3
mov rax, qword [rsp + 0x80]
jmp 0x14003beab
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14003bdce
lea r8, [rbx + 0x78]
lea rcx, [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
call fcn.1400502b0
cmp byte [rsp + 0x97], 0
js 0x14003bf5f
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 0x14003bd4e
mov rcx, r12
xor edx, edx
call fcn.14003c040
cmp byte [rsp + 0x97], 0
jns 0x14003badf
mov rcx, qword [rsp + 0x80]
call fcn.1400d8b70
jmp 0x14003badf
mov rcx, qword [rsp + 0x80]
call fcn.1400d8b70
jmp 0x14003ba6e
mov rdx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x14003ba90
lea rcx, [rsp + 0x80]
call fcn.14004f9d0
lea rdi, [rsp + 0x68]
mov rcx, rdi
mov rdx, rax
call fcn.14003c040
mov rcx, rdi
mov edx, 1
mov r8b, 1
call fcn.14003c2c0
mov rcx, r12
xor edx, edx
call fcn.14003c040
mov rcx, rdi
call fcn.14003c080
jmp 0x14003bad2
mov rcx, qword [rsp + 0x80]
call fcn.14004f2b0
mov ecx, eax
call qword [sym.imp.USER32.dll_AllowSetForegroundWindow]
jmp 0x14003ba9a
mov rcx, qword [rsp + 0x80]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x14003baa3
mov r8, r14
call fcn.14004bda0
jmp 0x14003baba
lea rax, [rsp + 0x80]
or esi, 0x400
jmp 0x14003ba06
lea rdx, str..._.._base_process_launch_win.cc
lea rdi, [rsp + 0xb0]
mov rcx, rdi
mov r8d, 0xe1
call fcn.14004fa50
mov rcx, rdi
call fcn.14004fa20
mov rcx, rdi
call fcn.14004fa30
jmp 0x14003b884
mov rax, qword [rsp + 0x80]
mov word [rax], 0
mov qword [rsp + 0x88], 0
cmp byte [rsp + 0x97], 0
jns 0x14003bd35
mov rcx, qword [rsp + 0x80]
call fcn.1400d8b70
mov qword [rsp + 0x90], 0
jmp 0x14003bd35
lea rdx, str..._.._base_process_launch_win.cc
lea rdi, [rsp + 0xb0]
mov rcx, rdi
mov r8d, 0xe1
call fcn.14004fa50
mov rcx, rdi
call fcn.14004fa20
mov rcx, rdi
call fcn.14004fa30
jmp 0x14003b8a9
mov rax, qword [rsp + 0x80]
mov word [rax], 0
mov qword [rsp + 0x88], 0
cmp byte [rsp + 0x97], 0
jns 0x14003bda8
mov rcx, qword [rsp + 0x80]
call fcn.1400d8b70
mov qword [rsp + 0x90], 0
jmp 0x14003bda8
mov rcx, r13
mov rdx, r15
mov r8d, 0xe1
call fcn.14004fa50
mov rcx, r13
call fcn.14004fa20
mov rcx, r13
call fcn.14004fa30
jmp 0x14003bb9c