Function at 0x140006728
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 0x140006778
xor eax, eax
jmp 0x14000681d
mov r8d, 0xf01ff
lea rdx, str.MozillaMaintenance
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
mov rcx, rbx
test rax, rax
jne 0x1400067a1
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140006771
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 0x1400067ce
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1400067ce
mov rcx, rdi
jmp 0x140006799
mov ebx, dword [rsp + 0x50]
mov ecx, ebx
call fcn.1400075cc
mov r8d, ebx
xor edx, edx
mov rcx, rax
mov rsi, rax
call fcn.140008490
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 0x140006844
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ebx, ebx
test rsi, rsi
je 0x14000681b
mov rcx, rsi
call fcn.140007608
mov eax, ebx
mov rcx, qword [rbp + 0x480]
xor rcx, rsp
call fcn.140007300
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.140008490
mov rdx, qword [rsi + 0x10]
lea r8, str.maintenanceservice_tmp.exe
lea rcx, [rbp + 0x270]
call fcn.140006690
test eax, eax
je 0x14000680c
mov r8d, ebx
lea rcx, [rbp + 0x60]
xor edx, edx
call fcn.140008490
mov r8d, 0x104
lea rcx, [rbp + 0x60]
mov rdx, r14
call fcn.14000903c
lea rdx, [0x140026a10]
lea rcx, [rbp + 0x60]
call fcn.140006994
xor r8d, r8d
lea rdx, [rbp + 0x270]
lea rcx, [rbp + 0x60]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14000680c
xor edx, edx
lea rcx, [rsp + 0x78]
lea r8d, [rdx + 0x60]
call fcn.140008490
and qword [rsp + 0x58], 0
lea rax, [0x140027638]
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.140008490
mov r8d, 0x3f
lea rdx, str.dummyparam.exe_upgrade
lea rcx, [rbp - 0x20]
call fcn.14000903c
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 0x14000680e
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 0x14000680e