Function at 0x180006c24
Capabilities:
Copy file
Delete file
Delete registry value
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], r8
push rbp
push rdi
push r12
push r13
push r15
lea rbp, [rax - 0xbe8]
sub rsp, 0xcc0
mov rcx, qword [0x1800080b8]
lea rdx, [rbp + 0x280]
mov r15, r8
mov r12d, 0x104
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, r12d
lea rcx, [rbp + 0x4a0]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, 0x2e
lea rcx, [rbp + 0x280]
call fcn.180001db4
lea rcx, [rbp + 0x280]
mov edx, 0x5c
mov rdi, rax
call fcn.180001db4
xor r13d, r13d
mov rsi, rax
test rdi, rdi
je 0x180007189
test rax, rax
je 0x180007189
lea rdx, [0x1800015b0]
mov rcx, rdi
call fcn.180007718
test eax, eax
jne 0x180007045
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
test rax, rax
jne 0x180006cfc
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x180006cfc
lea rdx, [0x1800015b8]
jmp 0x180007190
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test r15, r15
jne 0x180006d16
lea rdx, [0x1800015d0]
jmp 0x180007190
or rax, 0xffffffffffffffff
inc rax
cmp byte [r15 + rax], r13b
jne 0x180006d1a
cmp rax, 0x20
jne 0x180007039
mov rcx, r15
call fcn.180006780
test eax, eax
je 0x180006d4e
cmp eax, 2
jne 0x180007039
lea rdx, [0x1800015f8]
jmp 0x180007190
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x100
call fcn.1800076f4
lea r8, [rsi + 1]
mov rcx, rdi
sub rcx, rsi
mov qword [rsp + 0x40], r8
lea rdx, [rsp + 0x50]
mov ebx, 1
test r8, r8
je 0x180006dbf
test rcx, rcx
je 0x180006dbf
mov r9, rcx
lea rax, [rsp + 0x50]
sub r9, rdi
mov r10, r8
add r9, 0x100
add r9, rsi
sub r10, rax
test rcx, rcx
je 0x180006dbb
mov al, byte [r10 + rdx]
sub rcx, rbx
mov byte [rdx], al
sub r9, rbx
add rdx, rbx
test al, al
je 0x180006dbf
test r9, r9
jne 0x180006d9e
mov byte [rdx - 1], r13b
lea rdx, [rbp + 0x390]
lea rcx, [rsp + 0x50]
call fcn.1800066cc
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
je 0x180006df2
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.180006b24
cmp byte [rsp + 0x50], r13b
je 0x180006f61
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x400
lea r9, [rbp + 0x7c0]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x390]
lea rdx, [0x180001518]
call fcn.180001940
cmp eax, 7
jne 0x180006f61
lea rdx, [rbp + 0x7c0]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov r8d, dword [rsp + 0x30]
test eax, eax
jne 0x180006ebf
lea rax, [rsp + 0x50]
or rdx, 0xffffffffffffffff
inc rdx
cmp byte [rax + rdx], r13b
jne 0x180006e56
lea ecx, [r8 - 2]
cmp rcx, rdx
jne 0x180006ebf
lea rax, [rsp + 0x38]
mov qword [rsp + 0x38], r13
mov r9d, 2
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x180001518]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180006f61
lea rdx, [rbp + 0x390]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x180006f61
lea rsi, [rbp + 0x7c0]
mov r15d, r13d
test r8d, r8d
je 0x180006f5a
or rdi, 0xffffffffffffffff
inc rdi
cmp byte [rsi + rdi], r13b
jne 0x180006ed6
test edi, edi
je 0x180006f5a
add edi, ebx
lea rdx, [rsp + 0x50]
mov r13d, edi
mov rcx, rsi
add r13, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x180006f12
add r15d, edi
mov rsi, r13
mov r13d, 0
cmp r15d, dword [rsp + 0x30]
jb 0x180006ed2
jmp 0x180006f5a
mov eax, dword [rsp + 0x30]
mov rdx, r13
sub eax, edi
mov rcx, rsi
mov dword [rsp + 0x30], eax
sub eax, r15d
mov r8d, eax
call fcn.1800076c8
mov eax, dword [rsp + 0x30]
lea r8, [rbp + 0x390]
mov dword [rsp + 0x28], eax
lea rdx, [0x180001518]
lea rax, [rbp + 0x7c0]
mov r9d, 7
mov qword [rsp + 0x20], rax
call fcn.1800019fc
mov r15, qword [rbp + 0xc00]
lea r8, [rsp + 0x50]
lea rdx, [0x1800013c8]
lea rcx, [rbp + 0x5b0]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rcx, [rbp + 0x5b0]
call fcn.1800069f8
mov cl, bl
call fcn.180006484
lea rdx, [rbp + 0x60]
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
mov rdx, qword [rsp + 0x40]
lea r9, [rbp + 0x60]
mov r8, r12
lea rcx, [rbp + 0x60]
call fcn.180001668
lea r9, [rbp + 0x60]
mov r8, r12
lea rdx, [0x18000142c]
lea rcx, [rbp + 0x60]
call fcn.180001668
xor r8d, r8d
lea rdx, [rbp + 0x60]
lea rcx, [rbp + 0x280]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
je 0x1800071a5
lea r8, [rbp + 0x4a0]
lea rdx, [0x180001460]
lea rcx, [rbp + 0x170]
call qword [sym.imp.USER32.dll_wsprintfA]
lea r9, [rbp + 0x60]
mov qword [rsp + 0x20], r15
lea r8, [rbp + 0x170]
lea rdx, [0x180001618]
lea rcx, [rbp + 0x7c0]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rdx, [rbp + 0x7c0]
lea rcx, [rbp + 0x170]
call fcn.180006120
jmp 0x1800071a5
lea rdx, [0x1800015e0]
jmp 0x180007190
lea rdx, [rbp + 0x4a0]
mov ebx, 1
lea rax, [rsp + 0x50]
sub rdx, rax
lea rcx, [rsp + 0x50]
mov al, byte [rdx + rcx]
sub r12, rbx
mov byte [rcx], al
add rcx, rbx
test al, al
je 0x180007076
test r12, r12
jne 0x18000705e
mov byte [rcx - 1], r13b
lea rcx, [rsp + 0x50]
mov r8, rbx
cmp byte [rsp + 0x50], r13b
je 0x18000708d
add rcx, rbx
cmp byte [rcx], r13b
jne 0x180007085
lea rdx, section..text
sub rdx, rcx
mov al, byte [rdx + rcx]
sub r8, rbx
mov byte [rcx], al
add rcx, rbx
test al, al
je 0x1800070ae
test r8, r8
jne 0x180007097
mov byte [rcx], r13b
sub rdi, rsi
lea rcx, [rsp + 0x50]
cmp byte [rsp + 0x50], r13b
je 0x1800070c5
add rcx, rbx
cmp byte [rcx], r13b
jne 0x1800070bd
test rdi, rdi
je 0x1800070e2
sub rsi, rcx
mov al, byte [rsi + rcx + 1]
sub rdi, rbx
mov byte [rcx], al
add rcx, rbx
test al, al
je 0x1800070e5
test rdi, rdi
jne 0x1800070cd
mov byte [rcx], r13b
xor edx, edx
lea rcx, [rsp + 0x50]
or r8d, 0xffffffff
call fcn.180004e7c
test eax, eax
jne 0x1800071a5
lea rcx, [rsp + 0x50]
call fcn.18000601c
mov edi, r13d
jmp 0x180007131
mov eax, edi
mov esi, edi
add edi, ebx
test eax, eax
je 0x180007140
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0xa
jge 0x180007140
cmp eax, 2
je 0x180007140
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x18000710c
lea r8, [rbp + 0x4a0]
lea rdx, [0x1800014a8]
lea rcx, [rbp + 0x170]
call qword [sym.imp.USER32.dll_wsprintfA]
lea r9, [rbp + 0x280]
lea r8, [rbp + 0x170]
lea rdx, [0x1800014b8]
lea rcx, [rbp + 0x5b0]
call qword [sym.imp.USER32.dll_wsprintfA]
lea rdx, [rbp + 0x5b0]
jmp 0x180007028
lea rdx, [0x180001598]
mov r9d, 0x40
lea r8, [0x180001568]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
lea r11, [rsp + 0xcc0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret