Function at 0x140001180
Capabilities:
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 rbx, rcx
mov qword [rsp + 0x50], r14
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 0x1400011ef
lea r8, str._INFO__Clearing_MFT_record...
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
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80000000
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r14 + 2]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400013be
mov qword [rsp + 0x80], rbp
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x58], rsi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp eax, 0xffffffff
je 0x14000134c
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 0x14000130b
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 0x1400012e8
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 0x1400012e8
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 0x1400013a6
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 0x1400013a6
lea r8, [0x1400044a0]
jmp 0x14000138b
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 0x1400013a6
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 rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x80]
jmp 0x140001418
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 0x140001418
mov r9d, ebx
lea r8, [0x140004510]
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]
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 r14, qword [rsp + 0x50]
mov rdi, rax
mov rbx, qword [rsp + 0x78]
test rax, rax
je 0x14000146a
lea r8, str._INFO__MFT_record_cleared.
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