Function at 0x14002ae08
Capabilities:
Delete file
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x100
mov rax, qword [0x1400c5a08]
xor rax, rsp
mov qword [rbp + 0x1f], rax
xor r14d, r14d
mov eax, edx
and al, 1
mov dword [rsp + 0x50], r14d
neg al
mov qword [rsp + 0x48], r14
mov r12d, edx
mov esi, r14d
sbb r13d, r13d
lea rdx, [rsp + 0x48]
not r13d
mov ebx, r14d
and r13d, 7
call fcn.14002bad0
mov rdi, rax
test rax, rax
je 0x14002b4f9
mov qword [rsp + 0x30], r14
xor r9d, r9d
mov dword [rsp + 0x28], 0x2200000
mov r8d, r13d
mov edx, 0x10180
mov dword [rsp + 0x20], 3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x14002b474
xorps xmm0, xmm0
mov dword [rsp + 0x40], r14d
xor eax, eax
mov qword [rsp + 0x58], r14
mov dword [rbp - 1], eax
mov qword [rbp - 0x39], rax
movups xmmword [rbp - 0x31], xmm0
movups xmmword [rbp - 0x21], xmm0
movups xmmword [rbp - 0x11], xmm0
movups xmmword [rbp - 0x59], xmm0
movups xmmword [rbp - 0x49], xmm0
test r12b, 0x20
je 0x14002aefc
lea r9, [rsp + 0x58]
mov rdx, rdi
lea r8, [rsp + 0x40]
mov rcx, r15
call fcn.14002f23c
mov rsi, qword [rsp + 0x58]
test eax, eax
mov eax, dword [rsp + 0x40]
jns 0x14002af01
mov eax, 1
test eax, eax
jne 0x14002af54
mov r9, rdi
mov qword [rsp + 0x20], rsi
lea r8, str.DeleteFileEx:_Spoofing_detected_deleting___s_______s_
mov edx, 0x3000000
lea rcx, [0x1400c8aa0]
call fcn.14002a5d8
test rsi, rsi
je 0x14002af4a
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
mov ebx, 0x2a9
jmp 0x14002b45f
lea rdx, [rbp - 0x31]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
nop dword [rax + rax]
test eax, eax
je 0x14002b432
mov esi, 0x28
lea r8, [rbp - 0x59]
mov r9d, esi
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandleEx]
nop dword [rax + rax]
test eax, eax
je 0x14002b432
mov r9d, esi
mov dword [rbp - 0x39], 0x2000
lea r8, [rbp - 0x59]
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetFileInformationByHandle]
nop dword [rax + rax]
test eax, eax
je 0x14002b41d
movups xmm0, xmmword [str._Volume]
mov rsi, qword [rsp + 0x48]
xor edx, edx
movsd xmm1, qword [0x1400a95a0]
movsd qword [rbp + 0x17], xmm1
mov dword [rsp + 0x40], r14d
mov byte [rsp + 0x44], 1
movups xmmword [rbp + 7], xmm0
test rsi, rsi
je 0x14002b010
movzx ecx, word [rsi]
lea eax, [rcx - 0x61]
cmp ax, 0x19
jbe 0x14002afff
sub cx, 0x41
cmp cx, 0x19
ja 0x14002b010
cmp word [rsi + 2], 0x3a
jne 0x14002b010
mov dword [rsp + 0x40], 1
jmp 0x14002b05f
or rcx, 0xffffffffffffffff
lea rax, [rbp + 7]
mov r8, rcx
inc r8
cmp word [rax + r8*2], dx
jne 0x14002b01b
mov rax, rcx
inc rax
cmp word [rdi + rax*2], dx
jne 0x14002b028
cmp r8, rax
mov ecx, edx
setbe cl
ja 0x14002b057
lea rdx, [rbp + 7]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__wcsnicmp]
nop dword [rax + rax]
xor edx, edx
test eax, eax
mov ecx, edx
sete cl
test ecx, ecx
je 0x14002b24b
cmp qword [0x1400c8a90], rdx
je 0x14002b074
mov rax, qword [0x1400c8a98]
test rax, rax
jne 0x14002b0db
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
nop dword [rax + rax]
xor edx, edx
mov rsi, rax
test rax, rax
je 0x14002b0cf
lea rdx, str.FindFirstFileNameW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
lea rdx, str.FindNextFileNameW
mov rcx, rsi
mov qword [0x1400c8a90], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
mov qword [0x1400c8a98], rax
xor edx, edx
jmp 0x14002b0d6
mov rax, qword [0x1400c8a98]
mov rsi, qword [rsp + 0x48]
cmp qword [0x1400c8a90], rdx
je 0x14002b24b
test rax, rax
je 0x14002b24b
cmp dword [rbp - 9], 1
jbe 0x14002b24b
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov edx, 8
mov r8d, 0x10000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
nop dword [rax + rax]
mov r14, rax
test rax, rax
je 0x14002b233
cmp dword [rsp + 0x40], ebx
mov rcx, rdi
mov edx, 0x8000
cmovne rcx, rsi
mov esi, dword [rsp + 0x40]
mov eax, esi
mov qword [rbp - 0x79], rcx
neg eax
mov r8, rcx
mov rcx, r14
sbb r9, r9
and r9, 0xffffffffffffffd2
add r9, 0x30
call fcn.14000274c
mov eax, esi
lea r8, [rsp + 0x40]
neg eax
mov rcx, rdi
sbb eax, eax
and eax, 0x2e
add eax, 0x7fd0
mov dword [rsp + 0x48], eax
neg esi
mov dword [rsp + 0x40], eax
sbb rax, rax
xor edx, edx
and rax, 0xffffffffffffffa4
add rax, 0x60
add rax, r14
mov qword [rbp - 0x71], rax
mov r9, rax
mov rax, qword [0x1400c8a90]
call qword [str.PN_t_]
mov qword [rsp + 0x58], rax
cmp rax, 0xffffffffffffffff
je 0x14002b24b
xor esi, esi
mov rdx, qword [rbp - 0x79]
mov rcx, r14
call qword [sym.imp.msvcrt.dll__wcsicmp]
nop dword [rax + rax]
test eax, eax
jne 0x14002b1f4
mov eax, dword [rsp + 0x48]
lea rdx, [rsp + 0x40]
mov r8, qword [rbp - 0x71]
mov rcx, qword [rsp + 0x58]
mov dword [rsp + 0x40], eax
mov rax, qword [0x1400c8a98]
call qword [str.PN_t_]
test eax, eax
je 0x14002b1f9
jmp 0x14002b1b4
mov esi, 1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
test esi, esi
jne 0x14002b24b
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
xor r14d, r14d
jmp 0x14002b24b
lea r8, str.DeleteFileEx:_Unable_to_allocate_hardlink_path_buffer
mov edx, 0x3000000
lea rcx, [0x1400c8aa0]
call fcn.14002a5d8
mov r9d, 1
mov dword [rsp + 0x20], FDICreate
lea r8, [rsp + 0x44]
mov rcx, r15
lea rdx, [rbp - 0x69]
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
mov esi, eax
test eax, eax
jns 0x14002b2e2
mov r9d, 4
mov dword [rsp + 0x48], 1
lea r8, [rsp + 0x48]
mov dword [rsp + 0x20], 0x40
lea rdx, [rbp - 0x69]
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtSetInformationFile]
nop dword [rax + rax]
test eax, eax
jns 0x14002b2e2
cmp eax, 0xc0000003
cmovne esi, eax
mov ecx, esi
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
lea rcx, [0x1400c8aa0]
mov dword [rsp + 0x20], eax
mov edx, 0x3000000
mov ebx, eax
call fcn.14002a5d8
jmp 0x14002b2ea
mov dword [rsp + 0x50], 1
test r14, r14
je 0x14002b45f
xor edx, edx
mov rcx, r14
call fcn.14002bad0
mov rsi, rax
test r12b, 4
jne 0x14002b33e
mov r12d, 0x4000000
lea r8, str.DeleteFileEx:_hardlink_given_to_us_is:__s
mov edx, r12d
lea rcx, [0x1400c8aa0]
mov r9, r14
call fcn.14002a5d8
mov r9, rsi
lea r8, str.DeleteFileEx:_Trying_to_set_back_attributes_on:__s
mov edx, r12d
lea rcx, [0x1400c8aa0]
call fcn.14002a5d8
and qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 0x2200000
mov r8d, r13d
mov edx, 0x100
mov dword [rsp + 0x20], 3
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x14002b3d6
mov eax, dword [rbp - 0x31]
lea r8, [rbp - 0x59]
mov r9d, 0x28
mov dword [rbp - 0x39], eax
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetFileInformationByHandle]
nop dword [rax + rax]
test eax, eax
jne 0x14002b3c7
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r9, rsi
lea r8, str.DeleteFileEx:_Unable_to_restore_attributes_on___s___GLE__0x_x
lea rcx, [0x1400c8aa0]
mov dword [rsp + 0x20], eax
mov edx, 0x3000000
call fcn.14002a5d8
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test rsi, rsi
je 0x14002b3fb
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
nop dword [rax + rax]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop dword [rax + rax]
jmp 0x14002b45f
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
jmp 0x14002b445
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
lea r8, str.DeleteFileEx:_Unable_to_get_information_on___s___GLE__0x_x
mov r9, rdi
mov dword [rsp + 0x20], eax
mov edx, 0x3000000
lea rcx, [0x1400c8aa0]
mov ebx, eax
call fcn.14002a5d8
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov esi, dword [rsp + 0x50]
jmp 0x14002b4d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 5
jne 0x14002b4ba
and r12d, 0x20
test r12b, r12b
jne 0x14002b4ba
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14002b4d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
lea r8, str.DeleteFileEx:_Unable_to_delete___s___GLE__0x_x
jmp 0x14002b4c1
lea r8, str.DeleteFileEx:_Unable_to_open___s___GLE__0x_x
mov r9, rdi
mov dword [rsp + 0x20], eax
mov edx, 0x3000000
lea rcx, [0x1400c8aa0]
call fcn.14002a5d8
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, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
mov eax, esi
mov rcx, qword [rbp + 0x1f]
xor rcx, rsp
call fcn.140094220
mov rbx, qword [rsp + 0x150]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret