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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x490]
sub rsp, 0x590
mov rax, qword [0x14002c008]
xor rax, rsp
mov qword [rbp + 0x480], rax
mov r14, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
test rax, rax
jne 0x14000670c
xor eax, eax
jmp 0x1400067b1
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 0x140006735
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140006705
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 0x140006762
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x140006762
mov rcx, rdi
jmp 0x14000672d
mov ebx, dword [rsp + 0x50]
mov ecx, ebx
call fcn.14000762c
mov r8d, ebx
xor edx, edx
mov rcx, rax
mov rsi, rax
call fcn.140008760
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 0x1400067d8
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ebx, ebx
test rsi, rsi
je 0x1400067af
mov rcx, rsi
call fcn.140007668
mov eax, ebx
mov rcx, qword [rbp + 0x480]
xor rcx, rsp
call fcn.140007360
lea r11, [rsp + 0x590]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
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.140008760
mov rdx, qword [rsi + 0x10]
lea r8, str.maintenanceservice_tmp.exe
lea rcx, [rbp + 0x270]
call fcn.140006624
test eax, eax
je 0x1400067a0
mov r8d, ebx
lea rcx, [rbp + 0x60]
xor edx, edx
call fcn.140008760
mov r8d, 0x104
lea rcx, [rbp + 0x60]
mov rdx, r14
call fcn.1400094a0
lea rdx, [0x140026ae0]
lea rcx, [rbp + 0x60]
call fcn.140006928
xor r8d, r8d
lea rdx, [rbp + 0x270]
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1400067a0
xor edx, edx
lea rcx, [rsp + 0x78]
lea r8d, [rdx + 0x60]
call fcn.140008760
and qword [rsp + 0x58], 0
lea rax, [0x140027708]
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.140008760
mov r8d, 0x3f
lea rdx, str.dummyparam.exe_upgrade
lea rcx, [rbp - 0x20]
call fcn.1400094a0
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], r14
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 0x1400067a2
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 0x1400067a2