Function at 0x14001d44c
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 [0x14003ba58]
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.14001f070
mov rdi, rax
test rax, rax
je 0x14001db36
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 0x14001dab1
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 0x14001d540
lea r9, [rsp + 0x58]
mov rdx, rdi
lea r8, [rsp + 0x40]
mov rcx, r15
call fcn.14001fdb4
mov rsi, qword [rsp + 0x58]
test eax, eax
mov eax, dword [rsp + 0x40]
jns 0x14001d545
mov eax, 1
test eax, eax
jne 0x14001d598
mov r9, rdi
mov qword [rsp + 0x20], rsi
lea r8, str.DeleteFileEx:_Spoofing_detected_deleting___s_______s_
mov edx, 0x3000000
lea rcx, [0x14003c1d0]
call fcn.14001cc5c
test rsi, rsi
je 0x14001d58e
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 0x14001da9c
lea rdx, [rbp - 0x31]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
nop dword [rax + rax]
test eax, eax
je 0x14001da6f
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 0x14001da6f
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 0x14001da5a
movups xmm0, xmmword [str._Volume]
mov rsi, qword [rsp + 0x48]
xor edx, edx
movsd xmm1, qword [0x14002bd60]
movsd qword [rbp + 0x17], xmm1
mov dword [rsp + 0x40], r14d
mov byte [rsp + 0x44], 1
movups xmmword [rbp + 7], xmm0
test rsi, rsi
je 0x14001d654
movzx ecx, word [rsi]
lea eax, [rcx - 0x61]
cmp ax, 0x19
jbe 0x14001d643
sub cx, 0x41
cmp cx, 0x19
ja 0x14001d654
cmp word [rsi + 2], 0x3a
jne 0x14001d654
mov dword [rsp + 0x40], 1
jmp 0x14001d6a3
or rcx, 0xffffffffffffffff
lea rax, [rbp + 7]
mov r8, rcx
inc r8
cmp word [rax + r8*2], dx
jne 0x14001d65f
mov rax, rcx
inc rax
cmp word [rdi + rax*2], dx
jne 0x14001d66c
cmp r8, rax
mov ecx, edx
setbe cl
ja 0x14001d69b
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 0x14001d888
cmp qword [0x14003c1c0], rdx
je 0x14001d6b8
mov rax, qword [0x14003c1c8]
test rax, rax
jne 0x14001d71f
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 0x14001d713
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 [0x14003c1c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
nop dword [rax + rax]
mov qword [0x14003c1c8], rax
xor edx, edx
jmp 0x14001d71a
mov rax, qword [0x14003c1c8]
mov rsi, qword [rsp + 0x48]
cmp qword [0x14003c1c0], rdx
je 0x14001d888
test rax, rax
je 0x14001d888
cmp dword [rbp - 9], 1
jbe 0x14001d888
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 0x14001d870
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.140019df8
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 [0x14003c1c0]
call qword [0x140025fc8]
mov qword [rsp + 0x58], rax
cmp rax, 0xffffffffffffffff
je 0x14001d888
xor esi, esi
mov rdx, qword [rbp - 0x79]
mov rcx, r14
call sub.msvcrt.dll__wcsicmp
test eax, eax
jne 0x14001d831
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 [0x14003c1c8]
call qword [0x140025fc8]
test eax, eax
je 0x14001d836
jmp 0x14001d7f8
mov esi, 1
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
test esi, esi
jne 0x14001d888
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 0x14001d888
lea r8, str.DeleteFileEx:_Unable_to_allocate_hardlink_path_buffer
mov edx, 0x3000000
lea rcx, [0x14003c1d0]
call fcn.14001cc5c
mov r9d, 1
mov dword [rsp + 0x20], 0xd
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 0x14001d91f
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 0x14001d91f
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, [0x14003c1d0]
mov dword [rsp + 0x20], eax
mov edx, 0x3000000
mov ebx, eax
call fcn.14001cc5c
jmp 0x14001d927
mov dword [rsp + 0x50], 1
test r14, r14
je 0x14001da9c
xor edx, edx
mov rcx, r14
call fcn.14001f070
mov rsi, rax
test r12b, 4
jne 0x14001d97b
mov r12d, 0x4000000
lea r8, str.DeleteFileEx:_hardlink_given_to_us_is:__s
mov edx, r12d
lea rcx, [0x14003c1d0]
mov r9, r14
call fcn.14001cc5c
mov r9, rsi
lea r8, str.DeleteFileEx:_Trying_to_set_back_attributes_on:__s
mov edx, r12d
lea rcx, [0x14003c1d0]
call fcn.14001cc5c
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 0x14001da13
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 0x14001da04
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, [0x14003c1d0]
mov dword [rsp + 0x20], eax
mov edx, 0x3000000
call fcn.14001cc5c
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
test rsi, rsi
je 0x14001da38
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 0x14001da9c
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 0x14001da82
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, [0x14003c1d0]
mov ebx, eax
call fcn.14001cc5c
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov esi, dword [rsp + 0x50]
jmp 0x14001db16
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 5
jne 0x14001daf7
and r12d, 0x20
test r12b, r12b
jne 0x14001daf7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
test eax, eax
jne 0x14001db16
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 0x14001dafe
lea r8, str.DeleteFileEx:_Unable_to_open___s___GLE__0x_x
mov r9, rdi
mov dword [rsp + 0x20], eax
mov edx, 0x3000000
lea rcx, [0x14003c1d0]
call fcn.14001cc5c
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.140021520
mov rbx, qword [rsp + 0x150]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret