Function at 0x14001807c
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x100
mov al, byte [0x140057d71]
lea rdx, [0x140057c30]
neg al
mov rdi, rcx
sbb rcx, rcx
or ebx, 0xffffffff
and rcx, rdx
je 0x1400180dc
mov r8d, ebx
mov qword [rbp - 0x49], rcx
mov dword [rbp - 0x41], 7
mov dword [rbp - 0x3d], ebx
call fcn.140008450
mov r8, qword [rdi]
lea rdx, str._StartProcessWithNoExceptionHandler___s_
lea rcx, [rbp - 0x49]
mov dword [rbp - 0x39], eax
call fcn.140004194
and qword [rbp - 0x51], 0
mov ecx, 0x30
call fcn.140038700
lea rdx, [0x14004e534]
lea rcx, [rbp + 0x77]
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbp - 0x59], rax
call fcn.140005938
lea rdx, str.GOOGLE_UPDATE_NO_CRASH_HANDLER
lea rcx, [rbp + 0x6f]
call fcn.140005938
lea r8, [rbp + 0x77]
lea rdx, [rbp + 0x6f]
lea rcx, [rbp - 0x59]
call fcn.140013830
mov rdx, qword [rbp + 0x6f]
mov eax, ebx
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14001814f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rbp + 0x77]
mov eax, ebx
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
add eax, ebx
test eax, eax
jg 0x14001816d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
and qword [rbp - 0x39], 0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x49], xmm0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rbx, rax
test rax, rax
je 0x140018241
lea r8, [rbp - 0x49]
mov rdx, rax
lea rcx, [rbp - 0x59]
call fcn.14001395c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rbx, qword [rbp - 0x49]
cmp rbx, qword [rbp - 0x41]
je 0x140018245
xor edx, edx
mov dword [rbp - 0x19], 0x68
lea rcx, [rbp - 0x11]
lea r8d, [rdx + 0x60]
call fcn.140021320
mov rdx, qword [rdi]
xor eax, eax
xorps xmm0, xmm0
mov qword [rbp - 0x21], rax
movups xmmword [rbp - 0x31], xmm0
cmp dword [rdx - 8], 1
jle 0x1400181ed
mov edx, dword [rdx - 0x10]
mov rcx, rdi
call fcn.140001bdc
mov rdx, qword [rdi]
lea rax, [rbp - 0x31]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rbp - 0x19]
xor ecx, ecx
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], 0
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x400
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140018245
mov rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
jmp 0x14001824c
mov rbx, qword [rbp - 0x49]
call fcn.14000c0dc
mov edi, eax
test rbx, rbx
je 0x140018287
mov rdx, qword [rbp - 0x39]
mov rax, rbx
sub rdx, rbx
sar rdx, 1
add rdx, rdx
cmp rdx, 0x1000
jb 0x14001827f
mov rbx, qword [rbx - 8]
add rdx, 0x27
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400182c1
mov rcx, rbx
call fcn.140020968
mov r8, qword [rbp - 0x59]
lea rdx, [rbp - 0x59]
lea rcx, [rbp - 0x59]
mov r8, qword [r8 + 8]
call fcn.14000c03c
mov rcx, qword [rbp - 0x59]
mov edx, 0x30
call fcn.140020968
lea r11, [rsp + 0x100]
mov eax, edi
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.1400268b4
int3