Function at 0x140256968
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rax - 0x518]
sub rsp, 0x5f0
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x14045cbf0]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov r13, rcx
movups xmm0, xmmword [str.Text_Files__.txt_]
movaps xmmword [rbp + 0x490], xmm0
movups xmm1, xmmword [0x140351eb0]
movaps xmmword [rbp + 0x4a0], xmm1
movups xmm0, xmmword [0x140351ec0]
movaps xmmword [rbp + 0x4b0], xmm0
mov eax, dword [0x140351ed0]
mov dword [rbp + 0x4c0], eax
movzx eax, word [0x140351ed4]
mov word [rbp + 0x4c4], ax
xor eax, eax
mov qword [rbp + 0x4c6], rax
mov qword [rbp + 0x4ce], rax
mov rax, qword [0x14048abe8]
mov rcx, qword [rax + 0x18]
mov qword [rsp + 0x30], rcx
lea rax, [rbp + 0x490]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x802
lea r9, str.duplicate.txt
lea r8, [0x140351ee8]
xor edx, edx
lea rcx, [rbp - 0x60]
call fcn.14001f440
nop
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov rdx, rax
lea rcx, [rbp - 0x60]
call fcn.14001f614
cmp rax, 1
jne 0x140256def
or r14, 0xffffffffffffffff
mov qword [rsp + 0x40], r14
lea esi, [rax + 1]
mov dword [rsp + 0x20], esi
xor r9d, r9d
mov r8d, 0x40000000
lea rdx, [rbp + 0x27c]
lea rcx, [rsp + 0x40]
call fcn.140021fb8
test eax, eax
je 0x140256dde
mov dil, 1
call fcn.1400046d0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x40]
cmp dword [rax + 0x10], 1
jbe 0x140256ad8
call fcn.14023ddcc
test al, al
jne 0x140256ad8
xor dil, dil
mov eax, 0xfeff
mov word [rsp + 0x50], ax
and dword [rsp + 0x54], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x54]
mov r8d, esi
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, section..data
mov rax, qword [section..data]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
mov edx, 0x2d
lea r8d, [rdx + 0x69]
lea rcx, [rsp + 0x58]
call fcn.140022858
nop
xor esi, esi
mov rax, qword [r13 + 0x698]
lea rcx, [r13 + 0x698]
call qword [rax]
test eax, eax
jle 0x140256d7e
mov r8d, esi
lea rdx, [rbp - 0x80]
lea rcx, [r13 + 0x7c8]
call fcn.14029e208
nop
mov rax, qword [rbp - 0x80]
test rax, rax
je 0x140256d2a
cmp qword [rax + 0x18], 0
jne 0x140256b52
lea rdx, [rsp + 0x58]
jmp 0x140256d08
mov rax, qword [r13 + 0x698]
mov r9d, 1
mov r8d, esi
lea rdx, [rsp + 0x78]
lea rcx, [r13 + 0x698]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14000c244
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140256ba1
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8b, dil
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.14001fbc0
mov r8b, dil
lea rdx, [0x140351efc]
lea rcx, [rsp + 0x40]
call fcn.14001fc74
mov r11, qword [r13 + 0x698]
mov r9d, 2
mov r8d, esi
lea rdx, [rsp + 0x60]
lea rcx, [r13 + 0x698]
call qword [r11 + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14000c244
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140256c17
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8b, dil
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.14001fbc0
mov r8b, dil
lea rdx, [0x140351efc]
lea rcx, [rsp + 0x40]
call fcn.14001fc74
mov r11, qword [r13 + 0x698]
mov r9d, 3
mov r8d, esi
lea rdx, [rsp + 0x68]
lea rcx, [r13 + 0x698]
call qword [r11 + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14000c244
nop
mov rdx, qword [rsp + 0x68]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140256c8d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8b, dil
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.14001fbc0
mov r8b, dil
lea rdx, [0x140351efc]
lea rcx, [rsp + 0x40]
call fcn.14001fc74
mov r11, qword [r13 + 0x698]
mov r9d, 4
mov r8d, esi
lea rdx, [rsp + 0x70]
lea rcx, [r13 + 0x698]
call qword [r11 + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.14000c244
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140256d03
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
lea rdx, [rsp + 0x48]
mov r8b, dil
lea rcx, [rsp + 0x40]
call fcn.14001fbc0
mov r8b, dil
lea rdx, [0x14034fb84]
lea rcx, [rsp + 0x40]
call fcn.14001fc74
nop
mov rbx, qword [rbp - 0x78]
test rbx, rbx
je 0x140256d5f
mov eax, r14d
lock xadd dword [rbx + 8], eax
add eax, r14d
jne 0x140256d5f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, r14d
lock xadd dword [rbx + 0xc], eax
add eax, r14d
jne 0x140256d5f
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
inc esi
mov rax, qword [r13 + 0x698]
lea rcx, [r13 + 0x698]
call qword [rax]
cmp esi, eax
jl 0x140256b20
mov rbx, qword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp rbx, r14
je 0x140256d9a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x40], r14
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140256dbc
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, r14d
lock xadd dword [rdx + 0x10], eax
add eax, r14d
test eax, eax
jg 0x140256dde
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x40]
cmp rcx, r14
je 0x140256def
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140256dfd
call fcn.1400b80bc
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.1400be110
lea r11, [rsp + 0x5f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret