Function at 0x140013d5c
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xffe8]
mov eax, 0x100c0
call fcn.1400276e0
sub rsp, rax
mov rax, qword [0x14003f0b8]
xor rax, rsp
mov qword [rbp + 0xffb0], rax
xor esi, esi
lea rdx, [rsp + 0x58]
mov r13d, esi
mov qword [rsp + 0x58], rsi
mov r14d, esi
mov rbx, rcx
call fcn.14001452c
mov rdi, rax
test rax, rax
je 0x140014296
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
nop dword [rax + rax]
mov edx, 0x2000
mov rcx, rdi
mov dword [rsp + 0x50], eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop dword [rax + rax]
test eax, eax
je 0x140014248
mov qword [rsp + 0x30], rsi
lea r8d, [rsi + 7]
mov dword [rsp + 0x28], 0x2200000
xor r9d, r9d
mov edx, 0x10000
mov dword [rsp + 0x20], 3
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x140014233
xor ebx, ebx
mov byte [rsp + 0x40], 1
lea rdx, [rsp + 0x70]
mov dword [rsp + 0x48], ebx
mov rcx, rax
mov r15d, ebx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop dword [rax + rax]
lea rsi, [0x14003f810]
test eax, eax
je 0x14001410a
cmp dword [rbp - 0x68], 1
jbe 0x14001410a
cmp qword [0x14003f808], rbx
je 0x140013e7b
mov rax, qword [0x14003f800]
test rax, rax
jne 0x140013edb
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x140013ed2
lea rdx, str.FindFirstFileNameW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
lea rdx, str.FindNextFileNameW
mov rcx, rbx
mov qword [0x14003f808], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
mov qword [0x14003f800], rax
jmp 0x140013ed9
mov rax, qword [0x14003f800]
xor ebx, ebx
cmp qword [0x14003f808], rbx
je 0x14001410a
test rax, rax
je 0x14001410a
cmp qword [rsp + 0x58], rbx
je 0x14001410a
xor edx, edx
lea rcx, [rbp - 0x50]
mov r8d, 0x10000
call sub.msvcrt.dll_memset
xor r9d, r9d
lea r8, [rbp - 0x50]
mov edx, 0x8000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFullPathNameW]
nop dword [rax + rax]
mov dword [rsp + 0x44], eax
test eax, eax
je 0x1400140e3
movzx eax, word [rbp - 0x50]
cmp ax, 0x5c
jne 0x140013f6a
cmp word [rbp - 0x4e], ax
jne 0x140013f73
cmp word [rbp - 0x4c], 0x3f
jne 0x1400140e3
cmp word [rbp - 0x4a], ax
jne 0x1400140e3
cmp word [rbp - 0x48], bx
je 0x1400140e3
cmp word [rbp - 0x46], 0x3a
jmp 0x140013f78
test ax, ax
je 0x1400140e3
cmp word [rbp - 0x4e], 0x3a
jne 0x1400140e3
lea rcx, [rbp - 0x50]
or rax, 0xffffffffffffffff
inc rax
cmp word [rcx + rax*2], bx
jne 0x140013f86
mov rcx, qword gs:[0x60]
inc eax
mov edx, 8
mov r15d, eax
mov rcx, qword [rcx + 0x30]
lea r8, [rax + rax]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x1400140bb
lea r8, [rbp - 0x50]
mov edx, r15d
mov rcx, rax
call fcn.140004c70
mov r15d, eax
test eax, eax
jns 0x14001400a
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
xor eax, eax
movzx ecx, r15w
mov ebx, eax
mov rax, qword gs:[0x30]
mov dword [rax + 0x68], ecx
test rbx, rbx
je 0x1400140bb
mov rax, qword [0x14003f808]
lea r9, [rbp - 0x4c]
lea r8, [rsp + 0x44]
mov dword [rsp + 0x44], 0x7ffc
xor edx, edx
mov rcx, rdi
call qword [vtable._SH_.0]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x140014094
mov rdx, rbx
lea rcx, [rbp - 0x50]
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x14001407d
mov rax, qword [0x14003f800]
lea r8, [rbp - 0x4c]
lea rdx, [rsp + 0x44]
mov dword [rsp + 0x44], 0x7ffc
mov rcx, r15
call qword [vtable._SH_.0]
test eax, eax
je 0x140014085
jmp 0x14001403f
mov dword [rsp + 0x48], 1
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov r15d, dword [rsp + 0x48]
jmp 0x14001410a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea r8, str.DeleteFileEx:_Unable_to_allocate_memory_for_the_full_path_name__GLE__0x_x
mov edx, 0x3000000
mov r9d, eax
mov rcx, rsi
call fcn.140013654
mov r15d, r13d
jmp 0x14001410a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r9, rdi
lea r8, str.DeleteFileEx:_Unable_to_get_full_path_name_on___s___GLE__0x_x
mov edx, 0x3000000
mov dword [rsp + 0x20], eax
mov rcx, rsi
call fcn.140013654
mov r9d, 1
mov dword [rsp + 0x20], 0xd
lea r8, [rsp + 0x40]
mov rcx, r12
lea rdx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x1400141a0
mov r9d, 4
mov dword [rsp + 0x4c], 1
lea r8, [rsp + 0x4c]
mov dword [rsp + 0x20], 0x40
lea rdx, [rsp + 0x60]
mov rcx, r12
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
test eax, eax
jns 0x1400141a0
cmp eax, 0xc0000003
cmovne ebx, eax
mov ecx, ebx
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
nop dword [rax + rax]
mov r9, rdi
lea r8, str.DeleteFileEx:_Unable_to_remove___s___GLE__0x_x
mov edx, 0x3000000
mov dword [rsp + 0x20], eax
mov rcx, rsi
mov r14d, eax
call fcn.140013654
jmp 0x1400141a6
mov r13d, 1
test r15d, r15d
je 0x140014222
xor edx, edx
lea rcx, [rbp - 0x50]
call fcn.14001452c
mov r15d, 0x4000000
lea r9, [rbp - 0x50]
mov edx, r15d
lea r8, str.DeleteFileEx:_hardlink_given_to_us_is:__s
mov rcx, rsi
mov rbx, rax
call fcn.140013654
mov r9, rbx
lea r8, str.DeleteFileEx:_Trying_to_set_back_attributes_on:__s
mov edx, r15d
mov rcx, rsi
call fcn.140013654
mov edx, dword [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
nop dword [rax + rax]
test rbx, rbx
je 0x140014222
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
jmp 0x140014276
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea r8, str.DeleteFileEx:_Unable_to_delete___s___GLE__0x_x
jmp 0x14001425b
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea r8, str.DeleteFileEx:_Unable_to_clear_out_attributes_on___s___GLE__0x_x
mov r9, rbx
mov dword [rsp + 0x20], eax
mov edx, 0x3000000
lea rcx, [0x14003f810]
mov r14d, eax
call fcn.140013654
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rdi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov eax, r13d
mov rcx, qword [rbp + 0xffb0]
xor rcx, rsp
call fcn.140026f10
lea r11, [rsp + 0x100c0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret