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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], r9
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x908]
sub rsp, 0x9e0
xor r12d, r12d
mov word [rbp + 0x92c], 0x1000
mov r15, rcx
mov qword [rsp + 0x70], r12
xor eax, eax
mov qword [rsp + 0x68], r12
lea rdi, [rbp - 0x20]
mov qword [rsp + 0x60], r12
lea r9d, [r12 + 1]
mov dword [rbp + 0x928], r12d
mov r14d, edx
mov ebx, 0xc0000022
lea ecx, [rax + 0x70]
mov esi, r12d
rep stosb byte [rdi], al
mov rcx, r15
call fcn.14000eda8
test eax, eax
je 0x14000bb83
mov rdx, qword [0x14002eae0]
lea rdi, [rbp + 0x4d0]
xor eax, eax
mov ecx, 0x410
rep stosb byte [rdi], al
lea rcx, [rbp + 0x4d0]
add rdx, 0x47c
call fcn.140001b00
lea rdx, str.pkgmgr.exe
lea rcx, [rbp + 0x4d0]
call fcn.140001ac4
mov r8d, r14d
lea rcx, [rbp + 0x4d0]
mov rdx, r15
call fcn.14000db60
test eax, eax
je 0x14000bb83
mov rdx, qword [0x14002eae0]
lea rcx, [rbp + 0xc0]
add rdx, 0x272
call fcn.140001b00
lea rdx, str.osk.exe
lea rcx, [rbp + 0xc0]
call fcn.140001ac4
lea rax, [rbp + 0xc0]
mov dword [rbp - 0x20], 0x70
lea rcx, [rbp - 0x20]
mov qword [rbp - 8], rax
mov dword [rbp - 0x1c], 0x40
mov dword [rbp + 0x10], r12d
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x14000bb83
mov rcx, qword [rbp + 0x48]
lea r8, [rsp + 0x60]
lea edx, [r12 + 0xa]
call qword [sym.imp.ntdll.dll_NtOpenProcessToken]
mov ebx, eax
test eax, eax
js 0x14000bb83
mov rcx, qword [rsp + 0x60]
lea rax, [rsp + 0x78]
mov qword [rbp - 0x28], rax
lea r8, [rbp - 0x50]
lea rax, [rsp + 0x68]
mov dword [rsp + 0x78], FCIFlushCabinet
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov edx, 0xf01ff
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x7c], 2
mov word [rbp - 0x80], r12w
mov dword [rbp - 0x50], 0x30
mov qword [rbp - 0x48], r12
mov dword [rbp - 0x38], r12d
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x30], r12
call qword [sym.imp.ntdll.dll_NtDuplicateToken]
mov ebx, eax
test eax, eax
js 0x14000bb83
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rbp + 0x48]
xor edx, edx
mov qword [rsp + 0x60], r12
call qword [sym.imp.ntdll.dll_NtTerminateProcess]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ntdll.dll_NtClose]
lea rax, [rsp + 0x70]
mov qword [rbp + 0x48], r12
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0x928]
mov dword [rsp + 0x48], r12d
xor r9d, r9d
mov dword [rsp + 0x40], r12d
mov r8d, 0x2000
mov dword [rsp + 0x38], r12d
mov dl, 1
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ntdll.dll_RtlAllocateAndInitializeSid]
mov ebx, eax
test eax, eax
js 0x14000bb83
mov rcx, qword [rsp + 0x70]
mov qword [rbp - 0x60], rcx
mov dword [rbp - 0x58], 0x20
call qword [sym.imp.ntdll.dll_RtlLengthSid]
mov rcx, qword [rsp + 0x68]
lea r8, [rbp - 0x60]
lea edx, [r12 + 0x19]
lea r9d, [rax + 0x10]
call qword [sym.imp.ntdll.dll_NtSetInformationToken]
mov ebx, eax
test eax, eax
js 0x14000bb83
xor eax, eax
lea rdi, [rbp - 0x78]
lea edx, [rax + 0x68]
lea ecx, [rax + 0x18]
rep stosb byte [rdi], al
mov ecx, edx
lea rdi, [rbp + 0x50]
rep stosb byte [rdi], al
lea rcx, [rbp + 0x50]
mov dword [rbp + 0x50], edx
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov rdi, qword [0x14002eae0]
lea rcx, [rbp + 0xc0]
lea rdx, [rdi + 0x47c]
call fcn.140001b00
lea rdx, str.pkgmgr.exe
lea rcx, [rbp + 0xc0]
call fcn.140001ac4
cmp dword [rbp + 0x930], 0x37
jne 0x14000baff
lea rsi, [rdi + 0xa9a]
cmp dword [rdi + 0x14], r12d
je 0x14000baff
lea rsi, [rdi + 0x890]
mov rcx, qword [rsp + 0x68]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x50], rax
lea rdx, [rbp + 0xc0]
lea rax, [rbp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x48], rax
mov r8, rsi
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], 0x4000020
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x14000bb83
mov rcx, qword [rbp - 0x78]
mov edx, 0x2710
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14000bb6c
mov rcx, qword [rbp - 0x78]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, r12d
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000bb93
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rbp + 0x48]
test rcx, rcx
je 0x14000bbae
xor edx, edx
call qword [sym.imp.ntdll.dll_NtTerminateProcess]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000bbbe
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14000bbce
call qword [sym.imp.ntdll.dll_RtlFreeSid]
mov rdx, qword [0x14002eae0]
lea rcx, [rbp + 0xc0]
add rdx, 0x47c
call fcn.140001b00
lea rdx, str.pkgmgr.exe
lea rcx, [rbp + 0xc0]
call fcn.140001ac4
lea rcx, [rbp + 0xc0]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea r11, [rsp + 0x9e0]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret