Function at 0x14000c770
Capabilities:
Copy file
Create process on windows
Delete file

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x588
mov r14, rcx
mov rax, qword [0x140037010]
xor rax, rsp
mov qword [rsp + 0x580], rax
xor r12d, r12d
xor ecx, ecx
xor edx, edx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
je 0x14000c8b2
mov rbx, rax
lea rdx, str.MozillaMaintenance
mov rcx, rax
mov r8d, 0xf01ff
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rdi, rdi
je 0x14000c8b2
xor r12d, r12d
lea r9, [rsp + 0xdc]
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x14000c80b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000c8d6
lea rbx, [rsp + 0xdc]
mov esi, dword [rbx]
mov rcx, rsi
call fcn.14000e284
mov r15, rax
mov rcx, rax
xor edx, edx
mov r8, rsi
call fcn.14000feb0
mov rcx, rdi
mov rdx, r15
mov r8d, esi
mov r9, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
mov esi, eax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test esi, esi
je 0x14000c8aa
mov rcx, qword [r15 + 0x10]
call qword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
xor r12d, r12d
lea rcx, [rsp + 0x370]
mov r8d, 0x20a
xor edx, edx
call fcn.14000feb0
mov rdi, qword [r15 + 0x10]
mov rcx, rdi
call fcn.14001725c
cmp rax, 0x104
ja 0x14000c8aa
lea rsi, [rsp + 0x370]
mov r8d, 0x105
mov rcx, rsi
mov rdx, rdi
call fcn.140017724
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
test eax, eax
jne 0x14000c8e4
mov rcx, r15
call fcn.14000e28c
mov rcx, qword [rsp + 0x580]
xor rcx, rsp
call fcn.140019150
mov eax, r12d
add rsp, 0x588
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor r12d, r12d
jmp 0x14000c8b2
lea rdx, str.maintenanceservice_tmp.exe
lea rcx, [rsp + 0x370]
call fcn.14000d1a0
test eax, eax
je 0x14000c8aa
mov rcx, r14
call fcn.14001725c
cmp rax, 0x104
ja 0x14000c8aa
xor r12d, r12d
lea rsi, [rsp + 0x160]
mov r8d, 0x20a
mov rcx, rsi
xor edx, edx
call fcn.14000feb0
mov r8d, 0x104
mov rcx, rsi
mov rdx, r14
call fcn.140017724
lea rdx, [0x1400301e6]
mov rcx, rsi
call fcn.14000d1a0
lea rdx, [rsp + 0x370]
mov rcx, rsi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x14000c8aa
lea rdx, [rsp + 0x370]
mov rcx, r14
mov r8d, 1
call fcn.14000af80
test eax, eax
je 0x14000ca5a
xorps xmm0, xmm0
lea rdi, [rsp + 0x70]
movaps xmmword [rdi], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi + 0x50], xmm0
movaps xmmword [rdi + 0x40], xmm0
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
xor ebx, ebx
mov qword [rdi + 0x60], rbx
mov dword [rdi], 0x68
lea rax, [0x140030506]
mov qword [rdi + 0x10], rax
lea r12, [rsp + 0x50]
mov qword [r12 + 0x10], rbx
movaps xmmword [r12], xmm0
lea rsi, [rsp + 0xe0]
movaps xmmword [rsi + 0x70], xmm0
movaps xmmword [rsi + 0x60], xmm0
movaps xmmword [rsi + 0x50], xmm0
movaps xmmword [rsi + 0x40], xmm0
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.dummyparam.exe_upgrade
mov r8d, 0x3f
mov rcx, rsi
call fcn.140017724
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rsp + 0x370]
mov rdx, rsi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov r12d, eax
test eax, eax
je 0x14000c8aa
mov rcx, qword [rsp + 0x50]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rsp + 0x58]
call rsi
jmp 0x14000c8aa
lea rcx, [rsp + 0x370]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14000c8aa