Function at 0x1400169b0
Capabilities:
Delete file
Shutdown system

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x1402c9768]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 0x40004
lea r8, str.Asmedia_4242_Firmware_Upgrade_Tool
lea rdx, str.Update_or_erase_successfully._Reboot_now_
mov rcx, rdi
mov rsi, rax
call fcn.140026210
test eax, eax
je 0x140016cb5
mov dl, 1
mov qword [rsp + 0xb8], rbx
call fcn.14001a5b0
test eax, eax
jne 0x140016a29
xor r8d, r8d
lea rcx, str.ENABLE_PowerSaving_fail.
xor edx, edx
call fcn.140033ae0
call qword [0x1402ca459]
mov rcx, qword [0x1402ca449]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
add rdi, 0x26f1
mov qword [0x1402ca449], 0
mov rdx, rdi
mov byte [0x1402ca448], 0
lea r8, [0x1402807f0]
lea rcx, [rbp - 0x11]
call fcn.140009e30
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, qword [rbp - 0x11]
add rdx, 0xffffffffffffffe8
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140016a91
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, [0x140280800]
mov rdx, rdi
lea rcx, [rbp - 9]
call fcn.140009e30
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, qword [rbp - 9]
mov eax, ebx
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140016aca
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, str.asmfilter64.cat
mov rdx, rdi
lea rcx, [rbp - 1]
call fcn.140009e30
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, qword [rbp - 1]
mov eax, ebx
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140016b03
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, str.ASMXu424FW.rom
mov rdx, rdi
lea rcx, [rbp + 7]
call fcn.140009e30
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, qword [rbp + 7]
mov eax, ebx
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140016b3c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, [0x14027fed8]
mov rdx, rdi
lea rcx, [rbp + 0xf]
call fcn.140009e30
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, qword [rbp + 0xf]
mov eax, ebx
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140016b75
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, str.devconAMD64.exe
mov rdx, rdi
lea rcx, [rbp + 0x17]
call fcn.140009e30
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, qword [rbp + 0x17]
mov eax, ebx
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140016bae
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, [0x140280840]
mov rdx, rdi
lea rcx, [rbp + 0x1f]
call fcn.140009e30
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, qword [rbp + 0x1f]
mov eax, ebx
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140016be7
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, str.RemoteUSB4.ps1
mov rdx, rdi
lea rcx, [rbp + 0x27]
call fcn.140009e30
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rdx, qword [rbp + 0x27]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], ebx
sub ebx, 1
mov rbx, qword [rsp + 0xb8]
jg 0x140016c26
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, [rbp - 0x19]
mov edx, 0x28
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140016cab
lea r8, [rbp + 0x2f]
xor ecx, ecx
lea rdx, [0x140281f50]
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rax, qword [rbp + 0x2f]
lea r8, [rbp + 0x37]
mov rcx, qword [rbp - 0x19]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor edx, edx
mov qword [rbp + 0x3b], rax
mov dword [rbp + 0x37], 1
mov dword [rbp + 0x43], 2
mov qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov r9d, 4
mov dword [rsp + 0x20], 0x40000
lea rdx, str.Please_wait_to_restart_your_computer....
xor ecx, ecx
lea r8d, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_InitiateShutdownA]
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1401d7480
lea r11, [rsp + 0xa0]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret