Function at 0x18013e6c0
Capabilities:
Clear file content
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xf0
mov qword [rbp - 0x71], 0xfffffffffffffffe
mov qword [rsp + 0x130], rbx
mov rax, qword [0x180268080]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rbx, rdx
mov rdi, rcx
xor eax, eax
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x39], rax
xor r15d, r15d
mov qword [rbp - 0x49], r15
mov qword [rbp - 0x41], r15
mov qword [rbp - 0x39], r15
lea rdx, [rbp - 0x49]
call fcn.18013db80
test al, al
jne 0x18013e72d
xor bl, bl
mov rdi, qword [rbp - 0x49]
jmp 0x18013ea04
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
movdqa xmmword [rbp - 9], xmm0
movdqa xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], r15
mov dword [rbp + 0x1f], 0xffffffff
mov rax, qword [rdi + 0x40]
cmp qword [rdi + 0x38], rax
je 0x18013e78c
lea rdx, [rdi + 0x38]
lea rcx, [rbp - 0x29]
call fcn.180140870
lea rdx, [rdi + 0x50]
lea rcx, [rbp - 0x11]
call fcn.180140870
lea rdx, [rdi + 0x68]
lea rcx, [rbp + 7]
call fcn.180140870
mov eax, dword [rdi + 0x80]
mov dword [rbp + 0x1f], eax
lea r8, [rbp - 0x49]
lea rdx, [rbp - 0x29]
call fcn.18013d200
mov rdi, qword [rbp - 0x49]
test al, al
jne 0x18013e7a8
xor bl, bl
jmp 0x18013e9fa
xor eax, eax
mov qword [rbp - 0x61], rax
mov qword [rbp - 0x59], rax
mov qword [rbp - 0x51], rax
mov qword [rbp - 0x61], r15
mov qword [rbp - 0x59], r15
mov qword [rbp - 0x51], r15
lea rdx, [rbp - 0x61]
lea rcx, [rbp - 0x29]
call fcn.18013c540
mov rax, qword [rbp - 0x59]
cmp qword [rbp - 0x61], rax
je 0x18013e9b2
mov rcx, rbx
call fcn.18001b8c0
test al, al
je 0x18013e9b2
mov dword [rbp - 0x69], r15d
mov rsi, qword [rbp - 0x59]
mov rdx, qword [rbp - 0x61]
sub rsi, rdx
mov rax, qword [rbx]
test rax, rax
je 0x18013e9b2
test rdx, rdx
je 0x18013e9b2
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x18013e9b2
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x69]
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18013e9b2
mov ecx, dword [rbp - 0x69]
cmp esi, ecx
jne 0x18013e9b2
mov eax, dword [rbp - 0x59]
sub eax, dword [rbp - 0x61]
cmp ecx, eax
jne 0x18013e9b2
mov rsi, qword [rbp - 0x41]
mov eax, esi
sub eax, edi
mov dword [rbp - 0x31], eax
mov rax, qword [rbx]
test rax, rax
je 0x18013e9b2
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x18013e9b2
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x69]
mov r8d, 4
lea rdx, [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18013e9b2
cmp dword [rbp - 0x69], 4
jne 0x18013e9b2
cmp rdi, rsi
je 0x18013e900
mov r14, rsi
sub r14, rdi
mov rax, qword [rbx]
test rax, rax
je 0x18013e9b2
test rdi, rdi
je 0x18013e9b2
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x18013e9b2
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x69]
mov r8d, r14d
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18013e9b2
mov eax, dword [rbp - 0x69]
cmp r14d, eax
jne 0x18013e9b2
sub esi, edi
cmp eax, esi
jne 0x18013e9b2
mov qword [rsp + 0x38], r15
cmp qword [rbx], 0
je 0x18013e9ae
lea r9, [rsp + 0x38]
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, rbx
call fcn.18001b840
test al, al
je 0x18013e9ae
cmp qword [rbx], 0
je 0x18013e9ae
mov qword [rbp - 0x79], r15
lea r9, [rbp - 0x79]
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, rbx
call fcn.18001b840
test al, al
je 0x18013e9ae
mov qword [rsp + 0x30], r15
cmp qword [rbx], 0
je 0x18013e9ae
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rsi, qword [rsp + 0x38]
mov rdx, rsi
mov rcx, rbx
call fcn.18001b840
test al, al
je 0x18013e9ae
cmp qword [rsp + 0x30], rsi
jne 0x18013e98f
mov rax, qword [rbx]
test rax, rax
je 0x18013e98f
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x18013e98f
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov qword [rsp + 0x30], r15
cmp qword [rbx], 0
je 0x18013e9ae
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, qword [rbp - 0x79]
mov rcx, rbx
call fcn.18001b840
mov bl, 1
jmp 0x18013e9b4
xor bl, bl
mov rcx, qword [rbp - 0x61]
test rcx, rcx
je 0x18013e9fa
mov rdx, qword [rbp - 0x51]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18013e9e9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18013ea71
call fcn.18017ebfc
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x61], xmm0
mov qword [rbp - 0x51], r15
lea rcx, [rbp - 0x29]
call fcn.18013ed90
nop
test rdi, rdi
je 0x18013ea45
mov rdx, qword [rbp - 0x39]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x18013ea31
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18013ea6b
mov rcx, rdi
call fcn.18017ebfc
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x39], r15
movzx eax, bl
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.18017e6e0
mov rbx, qword [rsp + 0x130]
add rsp, 0xf0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.18018341c
nop
call fcn.18018341c
nop
int3