Function at 0x140017920
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 [0x1402cb768]
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.140027544
test eax, eax
je 0x140017c25
mov dl, 1
mov qword [rsp + 0xb8], rbx
call fcn.14001b4e0
test eax, eax
jne 0x140017999
xor r8d, r8d
lea rcx, str.ENABLE_PowerSaving_fail.
xor edx, edx
call fcn.140034e9c
call qword [0x1402cc459]
mov rcx, qword [0x1402cc449]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
add rdi, 0x26f1
mov qword [0x1402cc449], 0
mov rdx, rdi
mov byte [0x1402cc448], 0
lea r8, [0x1402816d8]
lea rcx, [rbp - 0x11]
call fcn.14000a670
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 0x140017a01
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, [0x1402816e8]
mov rdx, rdi
lea rcx, [rbp - 9]
call fcn.14000a670
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 0x140017a3a
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.14000a670
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 0x140017a73
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.14000a670
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 0x140017aac
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, [0x140280ee8]
mov rdx, rdi
lea rcx, [rbp + 0xf]
call fcn.14000a670
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 0x140017ae5
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.14000a670
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 0x140017b1e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea r8, [0x140281728]
mov rdx, rdi
lea rcx, [rbp + 0x1f]
call fcn.14000a670
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 0x140017b57
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.14000a670
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 0x140017b96
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 0x140017c1b
lea r8, [rbp + 0x2f]
xor ecx, ecx
lea rdx, [0x140283340]
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.1401d87c0
lea r11, [rsp + 0xa0]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret