Function at 0x14000a89c
Capabilities:
Copy file
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
lea rbp, [rax - 0x498]
sub rsp, 0x590
mov rax, qword [0x14003c008]
xor rax, rsp
mov qword [rbp + 0x480], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
test rax, rax
jne 0x14000a8ea
xor eax, eax
jmp 0x14000a98f
mov r8d, 0xf01ff
lea rdx, str.MozillaMaintenance
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
mov rcx, rbx
test rax, rax
jne 0x14000a913
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000a8e3
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea r9, [rsp + 0x50]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x14000a940
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x14000a940
mov rcx, rdi
jmp 0x14000a90b
mov ebx, dword [rsp + 0x50]
mov ecx, ebx
call fcn.14000f9c0
mov r8d, ebx
xor edx, edx
mov rcx, rax
mov rsi, rax
call fcn.140010e20
mov r8d, dword [rsp + 0x50]
lea r9, [rsp + 0x50]
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
mov rcx, rdi
test eax, eax
jne 0x14000a9b7
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ebx, ebx
test rsi, rsi
je 0x14000a98d
mov rcx, rsi
call fcn.14000fca4
mov eax, ebx
mov rcx, qword [rbp + 0x480]
xor rcx, rsp
call fcn.14000f700
lea r11, [rsp + 0x590]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
mov ebx, 0x20a
lea rcx, [rbp + 0x270]
mov r8d, ebx
xor edx, edx
call fcn.140010e20
mov rdx, qword [rsi + 0x10]
lea r8, str.maintenanceservice_tmp.exe
lea rcx, [rbp + 0x270]
call fcn.14000a804
test eax, eax
je 0x14000a97e
mov r8d, ebx
lea rcx, [rbp + 0x60]
xor edx, edx
call fcn.140010e20
lea rbx, [0x14003eea0]
mov r8d, 0x104
mov rdx, rbx
lea rcx, [rbp + 0x60]
call fcn.140013fb8
lea rdx, str.maintenanceservice.exe
lea rcx, [rbp + 0x60]
call fcn.14000ac54
xor r8d, r8d
lea rdx, [rbp + 0x270]
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14000a97e
xor edx, edx
lea rcx, [rsp + 0x78]
lea r8d, [rdx + 0x60]
call fcn.140010e20
and qword [rsp + 0x58], 0
lea rax, [0x140033a48]
mov qword [rbp - 0x80], rax
lea rcx, [rbp - 0x20]
xor eax, eax
mov dword [rsp + 0x70], 0x68
xor edx, edx
mov qword [rsp + 0x60], rax
mov r8d, 0x80
mov qword [rsp + 0x68], rax
call fcn.140010e20
mov r8d, 0x3f
lea rdx, str.dummyparam.exe_upgrade
lea rcx, [rbp - 0x20]
call fcn.140013fb8
lea rax, [rsp + 0x58]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rdx, [rbp - 0x20]
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rcx, [rbp + 0x270]
mov qword [rsp + 0x38], rbx
and qword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test eax, eax
je 0x14000a980
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000a980