Function at 0x140009310
Capabilities:
Copy file

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x4a0]
mov eax, 0x5a0
call fcn.1400100f0
sub rsp, rax
mov rax, qword [0x14001b018]
xor rax, rsp
mov qword [rbp + 0x490], rax
mov rsi, rcx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
test rax, rax
je 0x1400093b1
mov r8d, 0xf01ff
lea rdx, str.LibreOfficeMaintenance
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
mov rcx, rbx
test rax, rax
je 0x1400093ab
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 0x1400093b5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1400093b5
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x140009404
mov ebx, dword [rsp + 0x50]
mov ecx, ebx
call fcn.14000ef7c
mov r14, rax
mov r8d, ebx
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x70], r14
lea r9, [rsp + 0x50]
mov r8d, dword [rsp + 0x50]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
mov rcx, rdi
test eax, eax
jne 0x14000942b
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor ebx, ebx
mov rcx, r14
call fcn.14000ef74
mov eax, ebx
mov rcx, qword [rbp + 0x490]
xor rcx, rsp
call fcn.14000e7a0
lea r11, [rsp + 0x5a0]
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]
nop
mov rcx, qword [r14 + 0x10]
call qword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp + 0x70]
call sub.VCRUNTIME140.dll_memset
lea r8, str.update_service_tmp.exe
mov rdx, qword [r14 + 0x10]
lea rcx, [rbp + 0x70]
call int.140008bf0
test eax, eax
je 0x1400093f8
mov rbx, 0xffffffffffffffff
mov rax, rbx
nop
inc rax
cmp word [rsi + rax*2], 0
jne 0x140009470
cmp rax, 0x104
ja 0x1400093f8
xor edx, edx
mov r8d, 0x20a
lea rcx, [rbp + 0x280]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x104
mov rdx, rsi
lea rcx, [rbp + 0x280]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
lea rax, [rbp + 0x280]
nop word [rax + rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1400094c0
add rbx, 0x12
cmp rbx, 0x104
jae 0x1400094eb
lea rdx, [0x140013a78]
lea rcx, [rbp + 0x280]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
xor r8d, r8d
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x280]
call qword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1400093f8
mov r8d, 1
lea rdx, [rbp + 0x70]
mov rcx, rsi
call fcn.140006d70
test eax, eax
jne 0x14000952c
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1400093f8
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rax
mov dword [rbp - 0x80], 0x68
lea rax, [0x140014670]
mov qword [rbp - 0x70], rax
xor eax, eax
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x68], rax
xorps xmm1, xmm1
movups xmmword [rbp - 0x10], xmm1
movups xmmword [rbp], xmm1
movups xmmword [rbp + 0x10], xmm1
movups xmmword [rbp + 0x20], xmm1
movups xmmword [rbp + 0x30], xmm1
movups xmmword [rbp + 0x40], xmm1
movups xmmword [rbp + 0x50], xmm1
movups xmmword [rbp + 0x60], xmm1
lea r8d, [rax + 0x3f]
lea rdx, str.dummyparam.exe_upgrade
lea rcx, [rbp - 0x10]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x70]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test eax, eax
je 0x1400093fa
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 0x1400093fa