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

Disassembly:
jmp 0x1400313e0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
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 [0x140074400]
xor rax, rbp
mov qword [rbp + 0x9e8], rax
lea rcx, [0x14007e5db]
call fcn.140016b68
nop
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.140016825
nop
mov r9, qword [rbp + 0xa28]
mov r8, qword [rbp + 0xa20]
mov edx, dword [rbp + 0xa18]
mov rcx, qword [rbp + 0xa10]
call fcn.14001620d
test eax, eax
jne 0x1400314c7
jmp 0x140031858
mov rax, qword [0x140074d18]
add rax, 0x272
mov rdx, rax
lea rcx, [rbp + 0x210]
call fcn.1400161f9
nop
lea rdx, str.osk.exe
lea rcx, [rbp + 0x210]
call fcn.140016af0
nop
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 0x14003153a
jmp 0x140031858
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 0x140031561
jmp 0x140031858
mov dword [rbp + 0x188], FCIFlushCabinet
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 0x14003160c
jmp 0x140031858
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ntdll.dll_NtClose]
nop
mov qword [rbp + 0x88], 0
xor edx, edx
mov rcx, qword [rbp + 0x118]
call qword [sym.imp.ntdll.dll_NtTerminateProcess]
nop
mov rcx, qword [rbp + 0x118]
call qword [sym.imp.ntdll.dll_NtClose]
nop
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 0x1400316ad
jmp 0x140031858
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 0x1400316f9
jmp 0x140031858
mov edx, 0x18
lea rcx, [rbp + 0x6c8]
call fcn.140016825
nop
mov edx, 0x68
lea rcx, [rbp + 0x640]
call fcn.140016825
nop
mov dword [rbp + 0x640], 0x68
lea rcx, [rbp + 0x640]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword [0x140074d18]
add rax, 0x47c
mov rdx, rax
lea rcx, [rbp + 0x210]
call fcn.1400161f9
nop
lea rdx, str.pkgmgr.exe
lea rcx, [rbp + 0x210]
call fcn.140016af0
nop
cmp dword [rbp + 0xa30], 0x37
jne 0x1400317a0
mov rax, qword [0x140074d18]
cmp dword [rax + 0x14], 0
jne 0x14003178f
mov rax, qword [0x140074d18]
add rax, 0xa9a
mov qword [rbp + 0x28], rax
jmp 0x1400317a0
mov rax, qword [0x140074d18]
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 0x14003184e
mov edx, 0x2710
mov rcx, qword [rbp + 0x6c8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14003182b
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x6c8]
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
mov rcx, qword [rbp + 0x6d0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp + 0x6c8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov dword [rbp + 4], 0
xor eax, eax
test eax, eax
jne 0x14003149e
cmp qword [rbp + 0x88], 0
je 0x140031870
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ntdll.dll_NtClose]
nop
cmp qword [rbp + 0x118], 0
je 0x140031898
xor edx, edx
mov rcx, qword [rbp + 0x118]
call qword [sym.imp.ntdll.dll_NtTerminateProcess]
nop
mov rcx, qword [rbp + 0x118]
call qword [sym.imp.ntdll.dll_NtClose]
nop
cmp qword [rbp + 0x68], 0
je 0x1400318aa
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ntdll.dll_NtClose]
nop
cmp qword [rbp + 0x48], 0
je 0x1400318bc
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ntdll.dll_RtlFreeSid]
nop
mov rax, qword [0x140074d18]
add rax, 0x47c
mov rdx, rax
lea rcx, [rbp + 0x210]
call fcn.1400161f9
nop
mov rdx, qword [rbp + 0xa28]
lea rcx, [rbp + 0x210]
call fcn.140016af0
nop
lea rcx, [rbp + 0x210]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x60]
lea rdx, reloc.Cabinet.dll_FCIAddFile
call fcn.1400169a6
mov eax, edi
mov rcx, qword [rbp + 0x9e8]
xor rcx, rbp
call fcn.1400165b9
lea rsp, [rbp + 0x9f8]
pop rdi
pop rbp
ret