Function at 0x180008680
Capabilities:
Delete file
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x90
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov r12, rdx
xor r13d, r13d
mov dword [rax + 0x18], r13d
mov rcx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp qword [0x1801489b8], r13
jne 0x1800086e6
mov rdx, qword [r12]
sub rdx, 0x18
or edi, 0xffffffff
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x180008a61
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x180008a61
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 1]
mov rcx, qword [r12]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x18000873e
mov rdx, qword [r12]
sub rdx, 0x18
or edi, eax
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x180008a61
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x180008a61
mov rsi, qword [0x1801489a8]
or edi, 0xffffffff
test rsi, rsi
je 0x1800088b9
mov rbx, rsi
mov rsi, qword [rsi]
mov rcx, qword [rbx + 0x10]
sub rcx, 0x18
call fcn.180001780
add rax, 0x18
mov qword [rsp + 0x70], rax
mov rcx, qword [rbx + 0x18]
sub rcx, 0x18
call fcn.180001780
lea rbx, [rax + 0x18]
mov qword [rsp + 0x78], rbx
lea rdx, [0x1800524a0]
mov rcx, rbx
call fcn.180034704
test eax, eax
sete al
test al, al
je 0x180008870
lea r8, [0x180051e68]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.1800076e0
nop
lea r8, [rsp + 0x78]
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.180007630
nop
lea r8, [0x18005249c]
mov rdx, rax
lea rcx, [rsp + 0xd8]
call fcn.1800076e0
nop
mov rdx, qword [rsp + 0x48]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180008801
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x50]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180008820
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0xd8]
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0xd0]
mov r8d, dword [rdx - 0x10]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rsp + 0xd8]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000886b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x78]
jmp 0x180008870
mov rbx, qword [rsp + 0x78]
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000888a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1800088a9
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test rsi, rsi
jne 0x180008751
mov rsi, qword [0x1801489a8]
test rsi, rsi
je 0x180008a2f
mov rbx, rsi
mov rsi, qword [rsi]
mov rcx, qword [rbx + 0x10]
sub rcx, 0x18
call fcn.180001780
add rax, 0x18
mov qword [rsp + 0x80], rax
mov rcx, qword [rbx + 0x18]
sub rcx, 0x18
call fcn.180001780
lea rbx, [rax + 0x18]
mov qword [rsp + 0x88], rbx
lea rdx, [0x180052498]
mov rcx, rbx
call fcn.180034704
test eax, eax
sete al
test al, al
je 0x1800089ea
lea r8, [0x180051e68]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x60]
call fcn.1800076e0
nop
lea r8, [rsp + 0x88]
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.180007630
nop
lea r8, [0x18005249c]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1800076e0
nop
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000897b
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x18000899a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x40]
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0xd0]
mov r8d, dword [rdx - 0x10]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdx, qword [rsp + 0x40]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x1800089e2
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0x88]
jmp 0x1800089ea
mov rbx, qword [rsp + 0x88]
lea rdx, [rbx - 0x18]
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180008a04
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rdx, qword [rsp + 0x80]
add rdx, 0xffffffffffffffe8
mov eax, edi
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x180008a26
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test rsi, rsi
jne 0x1800088c2
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x1801489a0]
call fcn.180006e10
nop
mov rdx, qword [r12]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], edi
dec edi
test edi, edi
jg 0x180008a61
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret