Function at 0x1400154f1
Capabilities:
Create process on windows
Delete file
Terminate process

Disassembly:
jmp 0x14002d9a0
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xa58
lea rbp, [rsp + 0x60]
lea rdi, [rsp + 0x60]
mov ecx, 0x1be
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0xa78]
mov rax, qword [0x140070328]
xor rax, rbp
mov qword [rbp + 0x9e8], rax
lea rcx, [0x1400794a4]
call fcn.140015b09
mov dword [rbp + 4], 0xc0000022
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x68], 0
mov qword [rbp + 0x88], 0
mov byte [rbp + 0x134], 0
mov byte [rbp + 0x135], 0
mov byte [rbp + 0x136], 0
mov byte [rbp + 0x137], 0
mov byte [rbp + 0x138], 0
mov byte [rbp + 0x139], InitCommonControls
mov edx, 0x70
lea rcx, [rbp + 0xb0]
call fcn.1400157e4
mov edx, dword [rbp + 0xa18]
mov rcx, qword [rbp + 0xa10]
call fcn.1400151fe
test eax, eax
jne 0x14002da6d
jmp 0x14002dde8
mov rax, qword [0x140070bf8]
add rax, 0x272
mov rdx, rax
lea rcx, [rbp + 0x210]
call fcn.1400151ea
lea rdx, str.osk.exe
lea rcx, [rbp + 0x210]
call fcn.140015a96
mov dword [rbp + 0xb0], 0x70
mov dword [rbp + 0xb4], 0x40
lea rax, [rbp + 0x210]
mov qword [rbp + 0xc8], rax
mov dword [rbp + 0xe0], 0
lea rcx, [rbp + 0xb0]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x14002dade
jmp 0x14002dde8
lea r8, [rbp + 0x88]
mov edx, 0xa
mov rcx, qword [rbp + 0x118]
call qword [sym.imp.ntdll.dll_NtOpenProcessToken]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jge 0x14002db05
jmp 0x14002dde8
mov dword [rbp + 0x188], FCIDestroy
mov dword [rbp + 0x18c], 2
mov byte [rbp + 0x190], 0
mov byte [rbp + 0x191], 0
mov dword [rbp + 0x1b8], 0x30
mov qword [rbp + 0x1c0], 0
mov dword [rbp + 0x1d0], 0
mov qword [rbp + 0x1c8], 0
mov qword [rbp + 0x1d8], 0
mov qword [rbp + 0x1e0], 0
lea rax, [rbp + 0x188]
mov qword [rbp + 0x1e0], rax
lea rax, [rbp + 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
xor r9d, r9d
lea r8, [rbp + 0x1b8]
mov edx, 0xf01ff
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ntdll.dll_NtDuplicateToken]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jge 0x14002dbb0
jmp 0x14002dde8
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [rbp + 0x88], 0
xor edx, edx
mov rcx, qword [rbp + 0x118]
call qword [sym.imp.ntdll.dll_NtTerminateProcess]
mov rcx, qword [rbp + 0x118]
call qword [sym.imp.ntdll.dll_NtClose]
mov qword [rbp + 0x118], 0
lea rax, [rbp + 0x48]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 0x2000
mov dl, 1
lea rcx, [rbp + 0x134]
call qword [sym.imp.ntdll.dll_RtlAllocateAndInitializeSid]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jge 0x14002dc4e
jmp 0x14002dde8
mov dword [rbp + 0x160], 0x20
mov rax, qword [rbp + 0x48]
mov qword [rbp + 0x158], rax
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ntdll.dll_RtlLengthSid]
mov eax, eax
add rax, 0x10
mov r9d, eax
lea r8, [rbp + 0x158]
mov edx, 0x19
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ntdll.dll_NtSetInformationToken]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jge 0x14002dc9a
jmp 0x14002dde8
mov edx, 0x18
lea rcx, [rbp + 0x6c8]
call fcn.1400157e4
mov edx, 0x68
lea rcx, [rbp + 0x640]
call fcn.1400157e4
mov dword [rbp + 0x640], 0x68
lea rcx, [rbp + 0x640]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov rax, qword [0x140070bf8]
add rax, 0x47c
mov rdx, rax
lea rcx, [rbp + 0x210]
call fcn.1400151ea
lea rdx, str.pkgmgr.exe
lea rcx, [rbp + 0x210]
call fcn.140015a96
mov rax, qword [0x140070bf8]
cmp dword [rax + 0x14], 0
jne 0x14002dd22
mov rax, qword [0x140070bf8]
add rax, 0xa9a
mov qword [rbp + 0x28], rax
jmp 0x14002dd33
mov rax, qword [0x140070bf8]
add rax, 0x890
mov qword [rbp + 0x28], rax
lea rax, [rbp + 0x6c8]
mov qword [rsp + 0x50], rax
lea rax, [rbp + 0x640]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x4000020
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rbp + 0x28]
lea rdx, [rbp + 0x210]
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x14002ddde
mov edx, 0x2710
mov rcx, qword [rbp + 0x6c8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14002ddbd
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x6c8]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x6d0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x6c8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbp + 4], 0
xor eax, eax
test eax, eax
jne 0x14002da52
cmp qword [rbp + 0x88], 0
je 0x14002ddff
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ntdll.dll_NtClose]
cmp qword [rbp + 0x118], 0
je 0x14002de25
xor edx, edx
mov rcx, qword [rbp + 0x118]
call qword [sym.imp.ntdll.dll_NtTerminateProcess]
mov rcx, qword [rbp + 0x118]
call qword [sym.imp.ntdll.dll_NtClose]
cmp qword [rbp + 0x68], 0
je 0x14002de36
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ntdll.dll_NtClose]
cmp qword [rbp + 0x48], 0
je 0x14002de47
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ntdll.dll_RtlFreeSid]
mov rax, qword [0x140070bf8]
add rax, 0x47c
mov rdx, rax
lea rcx, [rbp + 0x210]
call fcn.1400151ea
lea rdx, str.pkgmgr.exe
lea rcx, [rbp + 0x210]
call fcn.140015a96
lea rcx, [rbp + 0x210]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x60]
lea rdx, reloc.Cabinet.dll_FCIAddFile
call fcn.14001595b
mov eax, edi
mov rcx, qword [rbp + 0x9e8]
xor rcx, rbp
call fcn.140015582
lea rsp, [rbp + 0x9f8]
pop rdi
pop rbp
ret