Function at 0x140161a20
Capabilities:
Create process on windows
Query environment variable
Terminate process

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x148
movaps xmmword [rsp + 0x130], xmm7
movaps xmmword [rsp + 0x120], xmm6
mov r14, r9
mov rdi, r8
mov r12, rdx
mov r15, rcx
mov rax, qword [0x140297028]
xor rax, rsp
mov qword [rsp + 0x118], rax
mov rcx, rdx
call fcn.140181734
mov rdx, qword [r15 + 0x48]
mov qword [r15 + 0x48], rax
test rdx, rdx
jne 0x1401620fd
mov r13, qword [r14]
mov rcx, rdi
call fcn.140181734
xor edi, edi
cmp qword [r13 + 0xa0], 0
mov rbx, rax
setne r9b
xorps xmm6, xmm6
movaps xmmword [rsp + 0xe0], xmm6
mov qword [rsp + 0xf0], 0
mov rdx, qword [r14]
cmp byte [rdx + 0x21], 0
jne 0x140161ac2
xor eax, eax
xor ecx, ecx
xor r8d, r8d
jmp 0x140161bbb
mov byte [rsp + 0x67], r9b
mov qword [rsp + 0x80], r13
mov qword [rsp + 0x88], r12
mov qword [rsp + 0x90], r15
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], r14
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
je 0x14016215f
xorps xmm7, xmm7
movaps xmmword [rsp + 0xc0], xmm7
mov qword [rsp + 0xd0], 0
mov qword [rsp + 0x78], rax
movzx eax, word [rax]
test ax, ax
je 0x140161b43
lea r12, [rsp + 0x100]
lea rsi, str.SystemRoot
lea r15, str.CHROME_CRASHPAD_PIPE_NAME
lea r13, str.SystemDrive
mov rbp, qword [rsp + 0x78]
jmp 0x140161f68
lea rdi, [rsp + 0xc0]
mov rcx, rdi
xor edx, edx
call fcn.14015f7f0
mov rax, qword [rdi + 0x10]
mov qword [rsp + 0xf0], rax
movaps xmm0, xmmword [rdi]
movaps xmmword [rsp + 0xe0], xmm0
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov r14, qword [rsp + 0x70]
mov rdx, qword [r14]
mov r8b, byte [rsp + 0xf7]
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0xe8]
mov rbx, qword [rsp + 0x68]
mov r15, qword [rsp + 0x90]
mov r12, qword [rsp + 0x88]
mov r13, qword [rsp + 0x80]
xor edi, edi
mov r9b, byte [rsp + 0x67]
mov rsi, qword [rsp + 0x1b8]
mov dil, r9b
shl edi, 0x13
or edi, 0x40c
movzx edx, byte [rdx + 0x20]
xor r9d, r9d
lea r10, [rsp + 0xc0]
mov qword [r10 + 0x10], r9
add r13, 0x38
mov r11d, r8d
and r11b, 0x7f
test r8b, r8b
movzx r8d, r11b
cmovs r8, rcx
movaps xmmword [r10], xmm6
lea r11, [rsp + 0xe0]
cmovs r11, rax
test r8, r8
cmove r11, r8
mov rcx, qword [r15 + 0x18]
mov qword [rsp + 0x50], r10
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x38], r11
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], r9
mov rdx, r12
mov r8, rbx
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x140162111
xorps xmm0, xmm0
lea rdi, [rsp + 0xa0]
movaps xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
lea rdx, [rsp + 0xc0]
mov rcx, rdi
call fcn.1400361c0
mov rax, qword [rdi + 8]
lea rcx, [rsp + 0x98]
mov qword [rcx], rax
mov rdx, qword [r15 + 0x20]
call qword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
je 0x1401620b1
mov rdx, qword [rsp + 0xa8]
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x100]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x140268c70]
movaps xmmword [rdi], xmm0
mov rcx, rdi
mov r8b, 1
xor r9d, r9d
call fcn.14003fe50
cmp byte [rdi], 0
je 0x1401620bb
lea rdi, [rsp + 0x108]
mov rcx, rdi
call fcn.14003ff20
mov ebp, eax
cmp byte [rdi - 8], 0
je 0x140161cf1
mov rcx, rdi
call fcn.140041720
test bpl, bpl
jne 0x1401620bb
mov rdi, qword [rsp + 0x1b0]
mov rcx, qword [rsp + 0xa0]
mov rdx, rdi
call fcn.1400366b0
test al, al
je 0x1401620db
lea rdx, [rdi + 8]
mov rcx, qword [rsp + 0xa8]
call fcn.1400366b0
test al, al
je 0x1401620db
mov eax, dword [rsp + 0xb0]
mov dword [rdi + 0x10], eax
mov eax, dword [rsp + 0xb4]
mov dword [rdi + 0x14], eax
mov rcx, qword [rsp + 0xa0]
call fcn.140040010
mov qword [r15 + 0x40], rax
test rax, rax
je 0x14016213d
lea rcx, [0x140000000]
cmp rax, rcx
jne 0x140162123
mov rsi, qword [rsp + 0xa0]
mov qword [rsp + 0xa0], 0
lea rax, [rsi + 1]
cmp rax, 2
jb 0x140161d94
call fcn.1400e62c0
mov qword [rsp + 0x100], rsi
mov rsi, qword [rsp + 0xa8]
mov qword [rsp + 0xa8], 0
lea rax, [rsi + 1]
cmp rax, 2
jb 0x140161dbf
call fcn.1400e62c0
lea rdx, [rsp + 0x100]
mov qword [rdx + 8], rsi
mov rax, qword [rsp + 0xb0]
mov qword [rdx + 0x10], rax
mov qword [rsp + 0xb0], 0
mov rcx, r15
call fcn.1400361c0
xor edi, edi
lea rcx, [rsp + 0xa0]
call fcn.14003e850
cmp byte [rsp + 0xf7], 0
jns 0x140161e11
mov rcx, qword [rsp + 0xe0]
call fcn.14018039c
test rbx, rbx
je 0x140161e28
lea rcx, fcn.1400edfe0
mov rdx, rbx
xor r8d, r8d
call fcn.1400e9510
mov rbx, qword [r14]
mov qword [r14], 0
test rbx, rbx
je 0x140161e47
mov rcx, rbx
call fcn.14003fd80
mov rcx, rbx
call fcn.14018039c
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.1401830b0
mov eax, edi
movaps xmm6, xmmword [rsp + 0x120]
movaps xmm7, xmmword [rsp + 0x130]
add rsp, 0x148
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor edx, edx
lea r8, [0x1402825be]
movzx r9d, word [r8]
cmp r9w, word [rcx + rdx*2]
jne 0x140161ee7
add r8, 2
inc rdx
cmp rax, rdx
jne 0x140161e86
jmp 0x140162099
cmp rax, 4
jne 0x140161ee1
cmp word [rcx], 0x54
jne 0x140161ee1
test bl, bl
mov r8, r12
cmovs r8, rdx
cmp word [r8 + 2], 0x45
jne 0x140161ee1
test bl, bl
mov r8, r12
cmovs r8, rdx
cmp word [r8 + 4], 0x4d
jne 0x140161ee1
test bl, bl
cmovns rdx, r12
cmp word [rdx + 6], 0x50
je 0x140162099
cmp rax, 3
je 0x140161e7d
cmp rax, 0xc
je 0x140161f1a
cmp rax, 0x19
jne 0x140161f4a
xor edx, edx
nop word cs:[rax + rax]
movzx r8d, word [rdx + r15]
cmp r8w, word [rcx + rdx]
jne 0x140161f4a
add rdx, 2
dec rax
jne 0x140161f00
jmp 0x140162099
xor edx, edx
lea r8, str.LOCALAPPDATA
movzx r9d, word [r8]
cmp r9w, word [rcx + rdx*2]
jne 0x140161f3f
add r8, 2
inc rdx
cmp rax, rdx
jne 0x140161f23
jmp 0x140162099
cmp rax, 0x19
mov eax, 0x19
je 0x140161ef3
test bl, bl
jns 0x140161f5b
mov rcx, qword [rsp + 0x100]
call fcn.14018039c
movzx eax, word [rbp]
test ax, ax
je 0x140161b43
mov r14, rbp
movaps xmmword [rsp + 0x100], xmm7
mov qword [rsp + 0x110], 0
xor edi, edi
jmp 0x140161f9d
movzx eax, word [r14 + rdi*2 + 2]
inc rdi
add rbp, 2
test ax, ax
je 0x140161faa
movzx eax, ax
cmp eax, 0x3d
jne 0x140161f90
mov rcx, r12
mov rdx, r14
mov r8, rdi
call fcn.14003fcd0
nop dword [rax + rax]
inc rdi
cmp word [rbp], 0
lea rbp, [rbp + 2]
jne 0x140161fc0
movzx ebx, byte [rsp + 0x117]
mov eax, ebx
and eax, 0x7f
test bl, bl
cmovs rax, qword [rsp + 0x108]
mov rdx, qword [rsp + 0x100]
mov rcx, r12
cmovs rcx, rdx
cmp rax, 4
jne 0x140162034
cmp word [rcx], 0x50
jne 0x140162034
test bl, bl
mov r8, r12
cmovs r8, rdx
cmp word [r8 + 2], 0x61
jne 0x140162034
test bl, bl
mov r8, r12
cmovs r8, rdx
cmp word [r8 + 4], 0x74
jne 0x140162034
test bl, bl
mov r8, r12
cmovs r8, rdx
cmp word [r8 + 6], 0x68
je 0x140162099
mov r8, rax
cmp rax, 0xa
je 0x140162076
cmp rax, 0xb
jne 0x140161ea2
xor r8d, r8d
mov r9, r13
movzx r10d, word [r9]
cmp r10w, word [rcx + r8*2]
jne 0x140162066
add r9, 2
inc r8
cmp rax, r8
jne 0x14016204d
jmp 0x140162099
mov r8d, 0xa
cmp rax, 0xa
jne 0x140161ea2
xor r9d, r9d
nop dword [rax]
movzx r10d, word [r9 + rsi]
cmp r10w, word [rcx + r9]
jne 0x140161ea2
add r9, 2
dec r8
jne 0x140162080
lea rcx, [rsp + 0xc0]
mov rdx, r14
mov r8, rdi
call fcn.14001e0f0
jmp 0x140161f4a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
jmp 0x1401620c1
mov dword [rsi], 0x542
mov rcx, qword [rsp + 0xa0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x15
jmp 0x140161ded
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
mov rcx, qword [rsp + 0xa0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x17
jmp 0x140161ded
lea rcx, fcn.1400edfe0
xor r8d, r8d
call fcn.1400e9510
jmp 0x140161a7a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
mov edi, 0x12
jmp 0x140161dfa
mov rcx, qword [rsp + 0xa0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x41
jmp 0x140161ded
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsi], eax
mov rcx, qword [rsp + 0xa0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x2b
jmp 0x140161ded
mov edi, 0x46
mov r14, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x68]
jmp 0x140161e11