Function at 0x14000c040
Capabilities:
Check if file exists
Copy file
Enumerate files on windows
Get common file path
Get file attributes

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x420
mov qword [rsp + 0x190], 0xfffffffffffffffe
mov rax, qword [0x1400425e0]
xor rax, rsp
mov qword [rsp + 0x410], rax
mov r8, qword [str.SynRemoveUserSettings.dat]
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x430]
call fcn.1400075e0
nop
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0xe8], rax
mov rcx, qword [rsp + 0xe8]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x14000c0d4
mov dword [rsp + 0x48], 0
mov rax, qword [rsp + 0x30]
sub rax, 0x18
mov qword [rsp + 0x128], rax
mov rcx, qword [rsp + 0x128]
call fcn.140009650
mov eax, dword [rsp + 0x48]
jmp 0x14000c5b6
mov byte [rsp + 0x300], 0
lea rax, [rsp + 0x301]
mov rdi, rax
xor eax, eax
mov ecx, 0x103
rep stosb byte [rdi], al
mov dword [rsp + 0x68], 0x104
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x300]
call qword [sym.imp.USERENV.dll_GetProfilesDirectoryA]
test eax, eax
jne 0x14000c13e
mov dword [rsp + 0x78], 0
mov rax, qword [rsp + 0x30]
sub rax, 0x18
mov qword [rsp + 0xa8], rax
mov rcx, qword [rsp + 0xa8]
call fcn.140009650
mov eax, dword [rsp + 0x78]
jmp 0x14000c5b6
lea rdx, [rsp + 0x300]
lea rcx, [rsp + 0x138]
call fcn.140001a10
mov qword [rsp + 0x188], rax
mov rax, qword [rsp + 0x188]
mov qword [rsp + 0xb8], rax
lea r8, [0x1400332e0]
mov rdx, qword [rsp + 0xb8]
lea rcx, [rsp + 0x40]
call fcn.1400027d0
nop
mov rax, qword [rsp + 0x138]
sub rax, 0x18
mov qword [rsp + 0xc8], rax
mov rcx, qword [rsp + 0xc8]
call fcn.140009650
lea r8, [0x1400331a8]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x148]
call fcn.1400027d0
mov qword [rsp + 0x180], rax
mov rax, qword [rsp + 0x180]
mov rax, qword [rax]
mov qword [rsp + 0xd8], rax
lea rdx, [rsp + 0x1c0]
mov rcx, qword [rsp + 0xd8]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rsp + 0x70], rax
mov rax, qword [rsp + 0x148]
sub rax, 0x18
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call fcn.140009650
cmp qword [rsp + 0x70], 0xffffffffffffffff
jne 0x14000c26c
mov dword [rsp + 0x7c], 0
mov rax, qword [rsp + 0x40]
sub rax, 0x18
mov qword [rsp + 0x170], rax
mov rcx, qword [rsp + 0x170]
call fcn.140009650
nop
mov rax, qword [rsp + 0x30]
sub rax, 0x18
mov qword [rsp + 0xf8], rax
mov rcx, qword [rsp + 0xf8]
call fcn.140009650
mov eax, dword [rsp + 0x7c]
jmp 0x14000c5b6
lea rdx, str.AppDataRoamingMicrosoftWindowsStart_MenuProgramsStartup_
lea rcx, [rsp + 0x88]
call fcn.140001a10
nop
lea r9, [0x1400332e0]
lea r8, [0x140033390]
xor edx, edx
lea rcx, [rsp + 0x1a0]
call fcn.140017550
mov qword [rsp + 0x158], rax
mov rax, qword [rsp + 0x158]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
cmp qword [rax + 0x18], 0x10
jb 0x14000c2db
mov rax, qword [rsp + 0x198]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
jmp 0x14000c2e5
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x118]
call fcn.140001a10
mov qword [rsp + 0x108], rax
mov rax, qword [rsp + 0x108]
mov qword [rsp + 0x178], rax
lea r8, str.SynRemoveUserSettings.bat
mov rdx, qword [rsp + 0x178]
lea rcx, [rsp + 0x80]
call fcn.1400027d0
nop
mov rax, qword [rsp + 0x118]
sub rax, 0x18
mov qword [rsp + 0x168], rax
mov rcx, qword [rsp + 0x168]
call fcn.140009650
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x1a0]
call fcn.14000e180
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x1c0]
and eax, 0x10
test eax, eax
je 0x14000c503
lea rdx, [0x140033b9c]
lea rcx, [rsp + 0x1ec]
call fcn.14001b2a4
test eax, eax
je 0x14000c503
lea rdx, [0x140033ba0]
lea rcx, [rsp + 0x1ec]
call fcn.14001b2a4
test eax, eax
je 0x14000c503
lea r8, [rsp + 0x1ec]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xb0]
call fcn.1400027d0
mov qword [rsp + 0x98], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xa0], rax
lea r8, [rsp + 0x88]
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x28]
call fcn.1400026b0
nop
mov rax, qword [rsp + 0xb0]
sub rax, 0x18
mov qword [rsp + 0xc0], rax
mov rcx, qword [rsp + 0xc0]
call fcn.140009650
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0xd0], rax
mov rcx, qword [rsp + 0xd0]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14000c4e5
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0xe0], rax
mov edx, 0x80
mov rcx, qword [rsp + 0xe0]
call fcn.14001b6c4
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x28]
call fcn.1400028f0
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0xf0], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x100], rax
xor r8d, r8d
mov rdx, qword [rsp + 0xf0]
mov rcx, qword [rsp + 0x100]
call qword [sym.imp.KERNEL32.dll_CopyFileA]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
je 0x14000c4e5
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x110], rax
mov edx, 0xc0
mov rcx, qword [rsp + 0x110]
call fcn.14001b6c4
nop
mov rax, qword [rsp + 0x28]
sub rax, 0x18
mov qword [rsp + 0x120], rax
mov rcx, qword [rsp + 0x120]
call fcn.140009650
lea rdx, [rsp + 0x1c0]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x14000c370
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x58], eax
mov rax, qword [rsp + 0x80]
sub rax, 0x18
mov qword [rsp + 0x130], rax
mov rcx, qword [rsp + 0x130]
call fcn.140009650
nop
mov rax, qword [rsp + 0x88]
sub rax, 0x18
mov qword [rsp + 0x140], rax
mov rcx, qword [rsp + 0x140]
call fcn.140009650
nop
mov rax, qword [rsp + 0x40]
sub rax, 0x18
mov qword [rsp + 0x150], rax
mov rcx, qword [rsp + 0x150]
call fcn.140009650
nop
mov rax, qword [rsp + 0x30]
sub rax, 0x18
mov qword [rsp + 0x160], rax
mov rcx, qword [rsp + 0x160]
call fcn.140009650
mov eax, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x410]
xor rcx, rsp
call fcn.14001c4b0
add rsp, 0x420
pop rdi
ret