Function at 0x140001480
Capabilities:
Delete file
Get file size
Write file on windows

Disassembly:
push rdi
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x78], rbx
mov edx, 0xffffffff
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r15
mov r15, rcx
mov rcx, qword [0x140007660]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [0x1400043d8]
lea rcx, str.deletion_log.txt
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdi, rax
test rax, rax
je 0x1400014f4
lea r8, str._INFO__Securely_deleting_file...
mov rcx, rax
lea rdx, [0x1400043f4]
call fcn.1400010d0
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor r14d, r14d
xor r9d, r9d
mov qword [rsp + 0x30], r14
xor r8d, r8d
mov dword [rsp + 0x28], 0x80
mov edx, 0x40000000
mov rcx, r15
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001718
mov qword [rsp + 0x80], rbp
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x88], rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
je 0x140001653
mov ebp, edi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, edi
lea edx, [r14 + 8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x140001612
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], r14
mov r8d, edi
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400015ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____WriteFile_Failed_With_Error:__d__n
call fcn.140001120
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x1400043d8]
mov r14d, eax
lea rcx, str.deletion_log.txt
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdi, rax
test rax, rax
je 0x1400015ef
mov r9d, r14d
lea r8, [0x140004468]
lea rdx, str._ERROR___s_failed_with_error_code__lu_n
mov rcx, rax
call fcn.1400010d0
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rdi, rsi
mov rcx, rbp
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x1400016ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____HeapAlloc_Failed_With_Error:__d__n
call fcn.140001120
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x1400043d8]
mov esi, eax
lea rcx, str.deletion_log.txt
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdi, rax
test rax, rax
je 0x1400016ad
lea r8, [0x1400044a0]
jmp 0x140001692
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____GetFileSize_Failed_With_Error:__d__n
call fcn.140001120
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x1400043d8]
mov esi, eax
lea rcx, str.deletion_log.txt
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdi, rax
test rax, rax
je 0x1400016ad
lea r8, [0x1400044d8]
mov r9d, esi
lea rdx, str._ERROR___s_failed_with_error_code__lu_n
mov rcx, rdi
call fcn.1400010d0
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rsi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x80]
test eax, eax
jne 0x140001772
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____DeleteFileW_Failed_With_Error:__d__n
call fcn.140001120
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x1400043d8]
mov ebx, eax
lea rcx, str.deletion_log.txt
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdi, rax
test rax, rax
je 0x140001772
lea r8, [0x140004590]
jmp 0x140001757
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateFileW_Failed_With_Error:__d__n
call fcn.140001120
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [0x1400043d8]
mov ebx, eax
lea rcx, str.deletion_log.txt
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdi, rax
test rax, rax
je 0x140001772
lea r8, [0x140004510]
mov r9d, ebx
lea rdx, str._ERROR___s_failed_with_error_code__lu_n
mov rcx, rdi
call fcn.1400010d0
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [0x140007660]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
lea rdx, [0x1400043d8]
lea rcx, str.deletion_log.txt
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov r15, qword [rsp + 0x50]
mov rdi, rax
mov r14, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x78]
test rax, rax
je 0x1400017c9
lea r8, str._INFO__File_securely_deleted.
mov rcx, rax
lea rdx, [0x1400043f4]
call fcn.1400010d0
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140002f80
add rsp, 0x60
pop rdi
ret