Function at 0x140011078
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
jmp 0x1400149a0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x2b8
lea rbp, [rsp + 0x60]
lea rdi, [rsp + 0x60]
mov ecx, 0x66
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x2d8]
mov rax, qword [0x140026080]
xor rax, rbp
mov qword [rbp + 0x248], rax
lea rcx, [0x14002c19a]
call fcn.1400114d3
nop
mov rcx, qword [rbp + 0x270]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x140014a00
jmp 0x140014ec0
mov qword [rbp + 8], 0
mov qword [rbp + 0x28], 0
mov byte [rbp + 0x44], 0
mov byte [rbp + 0x45], 0
mov byte [rbp + 0x46], 0
mov byte [rbp + 0x47], 0
mov byte [rbp + 0x48], 0
mov byte [rbp + 0x49], 1
lea rax, [rbp + 8]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x44]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x140014a99
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, qword [rbp + 0x270]
lea rcx, str.Failed_to_initialize_all_SID_for__ws:__d_n_n
call fcn.140011235
nop
jmp 0x140014ec0
mov byte [rbp + 0x64], 0
mov byte [rbp + 0x65], 0
mov byte [rbp + 0x66], 0
mov byte [rbp + 0x67], 0
mov byte [rbp + 0x68], 0
mov byte [rbp + 0x69], 5
lea rax, [rbp + 0x28]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rbp + 0x64]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x140014b33
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, qword [rbp + 0x270]
lea rcx, str.Failed_to_initialize_admin_SID_for__ws:__d_n_n
call fcn.140011235
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
nop
jmp 0x140014ec0
lea rax, [rbp + 0x90]
mov rdi, rax
xor eax, eax
mov ecx, 0x60
rep stosb byte [rdi], al
mov eax, 0x30
imul rax, rax, 0
mov dword [rbp + rax + 0x90], 0x10000000
mov eax, 0x30
imul rax, rax, 0
mov dword [rbp + rax + 0x94], 2
mov eax, 0x30
imul rax, rax, 0
mov dword [rbp + rax + 0x98], 0
mov eax, 0x30
imul rax, rax, 0
mov dword [rbp + rax + 0xac], 0
mov eax, 0x30
imul rax, rax, 0
mov dword [rbp + rax + 0xb0], 2
mov eax, 0x30
imul rax, rax, 0
mov rcx, qword [rbp + 8]
mov qword [rbp + rax + 0xb8], rcx
mov eax, 0x30
imul rax, rax, 1
mov dword [rbp + rax + 0x90], 0x10000000
mov eax, 0x30
imul rax, rax, 1
mov dword [rbp + rax + 0x94], 2
mov eax, 0x30
imul rax, rax, 1
mov dword [rbp + rax + 0x98], 0
mov eax, 0x30
imul rax, rax, 1
mov dword [rbp + rax + 0xac], 0
mov eax, 0x30
imul rax, rax, 1
mov dword [rbp + rax + 0xb0], 2
mov eax, 0x30
imul rax, rax, 1
mov rcx, qword [rbp + 0x28]
mov qword [rbp + rax + 0xb8], rcx
mov qword [rbp + 0x108], 0
lea r9, [rbp + 0x108]
xor r8d, r8d
lea rdx, [rbp + 0x90]
mov ecx, 2
call qword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
mov dword [rbp + 0x124], eax
cmp dword [rbp + 0x124], 0
je 0x140014ca4
mov r8d, dword [rbp + 0x124]
mov rdx, qword [rbp + 0x270]
lea rcx, str.Failed_to_set_ACL_entries_for__ws:__d_n_n
call fcn.140011235
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
nop
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
nop
jmp 0x140014ec0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9, qword [rbp + 0x28]
mov r8d, 1
mov edx, 1
mov rcx, qword [rbp + 0x270]
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov dword [rbp + 0x124], eax
cmp dword [rbp + 0x124], 0
je 0x140014d2e
mov r8d, dword [rbp + 0x124]
mov rdx, qword [rbp + 0x270]
lea rcx, str.Failed_to_set_owner_security_info_for__ws:__d_n_n
call fcn.140011235
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
nop
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
nop
mov rcx, qword [rbp + 0x108]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
jmp 0x140014ec0
mov qword [rsp + 0x30], 0
mov rax, qword [rbp + 0x108]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, 4
mov edx, 1
mov rcx, qword [rbp + 0x270]
call qword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoW]
mov dword [rbp + 0x124], eax
cmp dword [rbp + 0x124], 0
je 0x140014dba
mov r8d, dword [rbp + 0x124]
mov rdx, qword [rbp + 0x270]
lea rcx, str.Failed_to_set_DACL_info_for__ws:__d_n_n
call fcn.140011235
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
nop
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
nop
mov rcx, qword [rbp + 0x108]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
jmp 0x140014ec0
mov edx, 0x80
mov rcx, qword [rbp + 0x270]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop
lea rax, [rbp + 0x148]
mov rdi, rax
xor eax, eax
mov ecx, 0x38
rep stosb byte [rdi], al
mov dword [rbp + 0x150], 3
mov rcx, qword [rbp + 0x270]
call qword [sym.imp.ucrtbased.dll_wcslen]
xor ecx, ecx
mov rdx, qword [rbp + 0x270]
mov word [rdx + rax*2 + 2], cx
mov rax, qword [rbp + 0x270]
mov qword [rbp + 0x158], rax
lea rax, [0x140022e70]
mov qword [rbp + 0x160], rax
mov eax, 0x414
mov word [rbp + 0x168], ax
lea rax, [0x140022e74]
mov qword [rbp + 0x178], rax
mov rcx, qword [rbp + 0x270]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140014e5d
lea rcx, [rbp + 0x148]
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x140014e7f
mov r9d, 0xc4
mov r8d, 0xc0
mov rdx, qword [rbp + 0x270]
lea rcx, str._ws_n_c_c_deleted_n_n
call fcn.140011235
nop
jmp 0x140014e9c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov rdx, qword [rbp + 0x270]
lea rcx, str.Failed_to_delete_file__ws:__d_n_n
call fcn.140011235
nop
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
nop
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
nop
mov rcx, qword [rbp + 0x108]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
lea rcx, [rbp - 0x60]
lea rdx, [0x140022860]
call fcn.14001142e
mov rcx, qword [rbp + 0x248]
xor rcx, rbp
call fcn.140011253
lea rsp, [rbp + 0x258]
pop rdi
pop rbp
ret