Function at 0x140018270
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x140023128]
xor rax, rsp
mov qword [rbp + 0x70], rax
xor edi, edi
mov dword [rbp + 0x68], 1
xorps xmm0, xmm0
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rdi
mov eax, edi
mov byte [rsp + 0x68], dil
mov r14, r8
mov qword [rbp + 0x28], rdi
mov rbx, rdx
mov qword [rbp - 0x20], rdi
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x18], rdi
mov dword [rbp - 0x10], edi
mov qword [rbp - 8], rdi
mov qword [rbp], rdi
mov qword [rbp + 0x30], rdi
mov dword [rbp + 0x38], edi
movdqa xmmword [rbp + 0x40], xmm0
mov dword [rbp + 0x50], edi
mov qword [rbp + 0x58], rdi
mov qword [rbp + 0x60], rdi
mov qword [rsp + rax*8 + 0x70], rdi
mov dword [rbp + rax*4 - 0x70], edi
mov dword [rbp + rax*4 - 0x60], edi
mov qword [rbp + rax*8 + 8], rdi
mov qword [rbp + rax*8 - 0x40], rdi
inc rax
cmp rax, 4
jl 0x1400182f1
mov r8, qword [rcx + 0x88]
mov edx, r9d
lea rcx, [rsp + 0x30]
call fcn.14001984c
test al, al
je 0x1400184c8
mov r8, r14
lea rcx, [rsp + 0x30]
mov rdx, rbx
call fcn.1400199bc
test al, al
je 0x1400184c8
mov r8, qword [rbp - 0x48]
lea rdx, [rsp + 0x30]
lea rcx, [0x140019b00]
call qword [sym.imp.ADVAPI32.dll_ReadEncryptedFileRaw]
nop dword [rax + rax]
cmp dword [0x1400245c4], edi
mov esi, eax
je 0x140018380
mov edx, eax
lea rcx, str._nEFS:__ReadEncryptedFileRaw___returned__d
call qword [sym.imp.msvcrt.dll_wprintf]
nop dword [rax + rax]
test esi, esi
je 0x140018397
mov rcx, qword [rbp - 0x20]
mov dword [rbp - 0x18], esi
call qword [sym.imp.KERNEL32.dll_SetEvent]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x30]
mov edx, 0x2710
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop dword [rax + rax]
test eax, eax
je 0x1400183d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edx, eax
lea rcx, str._nEFS:_ERROR__d_Waiting_for_Writer_thread_n
mov ebx, eax
call qword [sym.imp.msvcrt.dll_wprintf]
nop dword [rax + rax]
test esi, esi
cmove esi, ebx
cmp dword [0x1400245c4], edi
je 0x1400183f4
lea rcx, str._nEFS:_Closing_files
call qword [sym.imp.msvcrt.dll_wprintf]
nop dword [rax + rax]
lea rcx, [rsp + 0x30]
call fcn.140019664
mov eax, dword [0x1400245c4]
test eax, eax
je 0x140018456
lea rcx, str._nEFS:_Files_Closed
call qword [sym.imp.msvcrt.dll_wprintf]
nop dword [rax + rax]
mov eax, dword [0x1400245c4]
test eax, eax
je 0x140018456
test esi, esi
je 0x14001845a
mov eax, dword [rsp + 0x38]
lea rcx, str._n_nEFS:_ERROR:_LastError_d_readError_d_writeError_d__exitCode_d_n
mov r9d, dword [rbp + 0x30]
mov edx, esi
mov r8d, dword [rbp - 0x18]
mov dword [rsp + 0x20], eax
call qword [sym.imp.msvcrt.dll_wprintf]
nop dword [rax + rax]
mov eax, dword [0x1400245c4]
jmp 0x140018472
test esi, esi
jne 0x140018472
mov edx, dword [rsp + 0x38]
mov esi, edx
test edx, edx
jne 0x140018472
mov esi, dword [rbp - 0x18]
test esi, esi
jne 0x140018472
mov esi, dword [rbp + 0x30]
test esi, esi
je 0x14001849c
test eax, eax
je 0x140018489
lea rcx, str._nEFS:_Deleting_Target
call qword [sym.imp.msvcrt.dll_wprintf]
nop dword [rax + rax]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop dword [rax + rax]
mov edx, dword [rsp + 0x38]
cmp esi, 0x1d
jne 0x1400184a6
test edx, edx
cmovne esi, edx
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
test esi, esi
lea rcx, [rsp + 0x30]
sete dil
call fcn.140019560
mov eax, edi
jmp 0x1400184d4
lea rcx, [rsp + 0x30]
call fcn.140019560
xor eax, eax
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140001800
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret