Function at 0x1400153f4
Capabilities:
Create process on windows
Query environment variable
Spoof parent pid

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14002a6d8]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov r12d, r8d
mov r14, rdx
xor r13d, r13d
mov ebx, r13d
lea rdx, str.SystemSetting
mov rcx, qword [r14 + 0x28]
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x1400154cd
mov rcx, qword [r14 + 0x18]
call qword [sym.imp.msvcrt.dll__wtoi]
nop dword [rax + rax]
cmp eax, 0x16
jae 0x1400154fb
mov r9, qword [r14]
mov ecx, eax
shl rcx, 5
lea r10, str.filterkeys
mov rax, qword [rcx + r10]
sub r9, rax
movzx edx, word [rax]
movzx r8d, word [rax + r9]
sub edx, r8d
jne 0x140015495
add rax, 2
test r8d, r8d
jne 0x14001547f
test edx, edx
jne 0x1400154fb
cmp dword [rcx + r10 + 0x10], 2
jne 0x1400154fb
mov edx, dword [rcx + r10 + 0x14]
mov dword [rbp + 0x10], edx
xor r9d, r9d
lea r8, [rbp + 0x10]
mov ecx, dword [rcx + r10 + 8]
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
nop dword [rax + rax]
test eax, eax
je 0x1400154fb
mov ebx, dword [rbp + 0x14]
and ebx, 1
jmp 0x1400154fb
mov rcx, qword [r14 + 0x38]
cmp dword [rcx - 0x10], r13d
je 0x140015506
lea rdx, [rsp + 0x50]
call fcn.140017498
test eax, eax
je 0x1400154fb
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov ebx, 1
test ebx, ebx
je 0x140015506
xor eax, eax
jmp 0x1400158dd
mov r8d, 0x7fffffff
mov ecx, r8d
lea rax, str._SystemRoot_System32ATBroker.exe
cmp word [rax], r13w
je 0x140015526
add rax, 2
sub rcx, 1
jne 0x140015516
mov rax, rcx
sub r8, rcx
neg rax
sbb rdx, rdx
and rdx, r8
test rcx, rcx
je 0x1400158d8
lea rbx, [rdx + 0x104]
cmp rbx, rdx
jb 0x1400158d8
mov rdi, r13
mov qword [rsp + 0x50], r13
or r15, 0xffffffffffffffff
test rbx, rbx
jne 0x140015564
mov rcx, r13
jmp 0x14001557a
xor edx, edx
mov rax, r15
div rbx
cmp rax, 2
jb 0x1400158bb
lea rcx, [rbx + rbx]
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
mov rdi, rax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x1400158bb
mov r8d, ebx
mov rdx, rax
lea rcx, str._SystemRoot_System32ATBroker.exe
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
nop dword [rax + rax]
test eax, eax
jne 0x1400155d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x1400158c0
mov eax, eax
cmp rax, rbx
jbe 0x1400155e4
mov esi, 0x8007007a
jmp 0x1400158c0
lea rax, [rbx + 0x16]
cmp rax, rbx
jb 0x1400158b4
lea rsi, [rax + 0x104]
cmp rsi, rax
jb 0x1400158b4
mov rbx, r13
mov qword [rsp + 0x70], rbx
test rsi, rsi
jne 0x140015613
mov rcx, r13
jmp 0x140015629
xor edx, edx
mov rax, r15
div rsi
cmp rax, 2
jb 0x140015899
lea rcx, [rsi + rsi]
call qword [sym.imp.msvcrt.dll_malloc]
nop dword [rax + rax]
mov rbx, rax
mov qword [rsp + 0x70], rax
test rax, rax
je 0x140015899
mov r9, qword [r14]
lea rax, str._launchnarratorhome
lea r8, [0x1400203bc]
mov rcx, r8
cmp byte [r14 + 0x56], r13b
cmovne rcx, rax
lea rdx, str._launchquickstart
mov rax, r8
cmp byte [r14 + 0x55], r13b
cmovne rax, rdx
lea rdx, [0x140021870]
cmp byte [r14 + 0x54], r13b
cmovne r8, rdx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r9
mov r9, rdi
lea r8, str._s__start__s__s__s__s
mov rdx, rsi
mov rcx, rbx
call fcn.140004b04
test eax, eax
jns 0x1400156ba
mov esi, 0x80004005
jmp 0x14001589e
xor edx, edx
lea r8d, [rdx + 0x6c]
lea rcx, [rbp - 0x5c]
call sub.msvcrt.dll_memset
mov dword [rbp - 0x60], 0x70
mov r15d, r13d
mov r14, r13
mov qword [rsp + 0x60], r13
mov esi, r13d
test r12d, r12d
je 0x1400157f2
mov qword [rsp + 0x68], r13
call qword [sym.imp.USER32.dll_GetShellWindow]
nop dword [rax + rax]
test rax, rax
je 0x1400157f2
lea rdx, [rsp + 0x58]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
nop dword [rax + rax]
test eax, eax
je 0x1400157f2
mov r8d, dword [rsp + 0x58]
xor edx, edx
mov ecx, 0x80
call qword [sym.imp.KERNEL32.dll_OpenProcess]
nop dword [rax + rax]
mov qword [rsp + 0x68], rax
test rax, rax
je 0x1400157f2
lea r9, [rsp + 0x60]
xor r8d, r8d
lea edx, [r8 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, qword [rsp + 0x60]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov r14, rax
mov eax, r13d
test r14, r14
setne al
test r14, r14
je 0x1400157ab
lea r9, [rsp + 0x60]
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
nop dword [rax + rax]
test eax, eax
je 0x1400157f2
mov r15d, 1
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], 8
lea r9, [rsp + 0x68]
xor edx, edx
mov r8d, 0x20000
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
nop dword [rax + rax]
mov rcx, qword [rbp + 8]
test eax, eax
cmovne rcx, r14
mov qword [rbp + 8], rcx
lea rax, [rbp - 0x80]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x1080000
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
nop dword [rax + rax]
test eax, eax
je 0x140015859
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x14001585e
mov esi, 0x80004005
test r15d, r15d
je 0x140015872
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
nop dword [rax + rax]
test r14, r14
je 0x14001589e
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov rcx, rax
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
jmp 0x14001589e
mov esi, 0x8007000e
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov qword [rsp + 0x70], r13
jmp 0x1400158c0
mov esi, 0x80004005
jmp 0x1400158c0
mov esi, 0x8007000e
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
nop dword [rax + rax]
mov qword [rsp + 0x50], r13
mov eax, esi
jmp 0x1400158dd
mov eax, 0x80004005
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.14001c9c0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret