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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0xb8
mov rax, qword [0x180050010]
xor rax, rsp
mov qword [rbp - 1], rax
mov rdi, r9
mov rbx, r8
mov qword [rbp - 0x11], rdx
mov r13, rcx
xor esi, esi
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], 0x80
mov dword [rsp + 0x28], 2
mov qword [rsp + 0x20], rsi
mov r8d, 0xc0000000
mov rdx, rbx
add rcx, 0x40
call fcn.180002390
mov r14, rax
test rax, rax
jne 0x180006c06
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x180006c06
lea rsi, vtable.std::_Func_impl_no_alloc_class__lambda_8b1ed8403dfdad1ed48623a3f72d488c___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____.0
mov qword [rbp - 0x61], rsi
mov dword [rbp - 0x59], eax
lea rax, [rbp - 0x61]
mov qword [rbp - 0x29], rax
mov rdx, r13
lea rcx, [rbp - 0x61]
call fcn.18000b640
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x180006bff
mov rax, qword [rcx]
lea rdx, [rbp - 0x61]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
xor al, al
jmp 0x1800070e6
mov dword [rbp - 9], esi
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 9]
mov r8d, dword [rbp + 0x7f]
mov rdx, rdi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rsi, vtable.std::_Func_impl_no_alloc_class__lambda_8b1ed8403dfdad1ed48623a3f72d488c___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____.0
test eax, eax
jne 0x180006c70
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x180006c70
mov qword [rbp - 0x61], rsi
mov dword [rbp - 0x59], eax
lea rax, [rbp - 0x61]
mov qword [rbp - 0x29], rax
mov rdx, r13
lea rcx, [rbp - 0x61]
call fcn.18000b640
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x180006c6b
mov rax, qword [rcx]
lea rdx, [rbp - 0x61]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
xor r12b, r12b
jmp 0x180006c73
mov r12b, 1
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x180006cc3
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x180006cc3
mov qword [rbp - 0x61], rsi
mov dword [rbp - 0x59], eax
lea rax, [rbp - 0x61]
mov qword [rbp - 0x29], rax
mov rdx, r13
lea rcx, [rbp - 0x61]
call fcn.18000b640
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x180006cbe
mov rax, qword [rcx]
lea rdx, [rbp - 0x61]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
xor dil, dil
jmp 0x180006cc6
mov dil, 1
and dil, r12b
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x180006d76
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x180006d76
mov qword [rbp - 0x61], rsi
mov dword [rbp - 0x59], eax
lea rax, [rbp - 0x61]
mov qword [rbp - 0x29], rax
mov rdx, r13
lea rcx, [rbp - 0x61]
call fcn.18000b640
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x180006d25
mov rax, qword [rcx]
lea rdx, [rbp - 0x61]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [r13 + 0x40], 0
je 0x1800070d4
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800070e4
lea rdx, str.DeleteFileTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800070e4
mov rdx, qword [r13 + 0x40]
mov rcx, rbx
call rax
jmp 0x1800070e4
test dil, dil
je 0x180006d25
lea rsi, [r13 + 0x70]
mov rdi, qword [rsi]
mov rax, qword [rdi + 8]
mov qword [rbp - 0x61], rax
xor r12d, r12d
mov dword [rbp - 0x59], r12d
mov rcx, rdi
cmp byte [rax + 0x19], r12b
jne 0x180006dc7
nop word [rax + rax]
mov qword [rbp - 0x61], rax
cmp qword [rax + 0x20], r14
jae 0x180006db4
mov dword [rbp - 0x59], r12d
mov rax, qword [rax + 0x10]
jmp 0x180006dc1
mov dword [rbp - 0x59], 1
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], r12b
je 0x180006da0
cmp byte [rcx + 0x19], r12b
jne 0x180006dd3
cmp r14, qword [rcx + 0x20]
jae 0x180006e39
movabs rax, 0x38e38e38e38e38e
cmp qword [rsi + 8], rax
je 0x18000710c
mov qword [rbp - 0x21], rsi
mov qword [rbp - 0x19], r12
mov ecx, 0x48
call fcn.18000e568
nop
mov qword [rax + 0x20], r14
mov qword [rax + 0x28], r12
mov qword [rax + 0x38], r12
mov qword [rax + 0x40], 7
mov qword [rax], rdi
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rdi
mov word [rax + 0x18], 0
movups xmm0, xmmword [rbp - 0x61]
movaps xmmword [rbp - 0x21], xmm0
mov r8, rax
lea rdx, [rbp - 0x21]
mov rcx, rsi
call fcn.18000b3c0
mov rcx, rax
add rcx, 0x28
mov rdi, 0xffffffffffffffff
mov r8, rdi
nop word [rax + rax]
inc r8
cmp word [rbx + r8*2], 0
jne 0x180006e50
mov rdx, rbx
call fcn.180009230
mov qword [rbp - 0x61], r12
mov qword [rbp - 0x51], r12
mov qword [rbp - 0x49], 7
mov word [rbp - 0x61], r12w
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp word [rbx + r8*2], 0
jne 0x180006e80
mov rdx, rbx
lea rcx, [rbp - 0x61]
call fcn.180009230
nop
lea r8, [rbp - 0x61]
lea rdx, [rbp - 0x21]
lea rcx, [r13 + 0x50]
call fcn.18000a130
mov rcx, qword [rax]
mov qword [rcx + 0x40], r14
mov rdx, qword [rbp - 0x49]
cmp rdx, 8
jb 0x180006ef0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x61]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180006eeb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180007112
call fcn.18000e2f8
mov qword [rbp - 0x61], r12
mov qword [rbp - 0x51], r12
mov qword [rbp - 0x49], 7
mov word [rbp - 0x61], r12w
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp word [rbx + r8*2], 0
jne 0x180006f10
mov rdx, rbx
lea rcx, [rbp - 0x61]
call fcn.180009230
nop
lea r8, [rbp - 0x61]
lea rdx, [rbp - 0x21]
lea rcx, [r13 + 0x60]
call fcn.180009ee0
mov rcx, qword [rax]
add rcx, 0x40
mov r8, rdi
inc r8
cmp word [rbx + r8*2], 0
jne 0x180006f43
mov rdx, rbx
call fcn.180009230
nop
mov rdx, qword [rbp - 0x49]
cmp rdx, 8
jb 0x180006f97
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x61]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180006f92
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180007118
call fcn.18000e2f8
mov rsi, qword [rbp - 0x11]
test rsi, rsi
je 0x1800070e4
mov qword [rbp - 0x61], r12
mov qword [rbp - 0x51], r12
mov qword [rbp - 0x49], 7
mov word [rbp - 0x61], r12w
mov r8, rdi
nop dword [rax]
inc r8
cmp word [rsi + r8*2], 0
jne 0x180006fc0
mov rdx, rsi
lea rcx, [rbp - 0x61]
call fcn.180009230
nop
lea r8, [rbp - 0x61]
lea rdx, [rbp - 0x21]
lea rcx, [r13 + 0x50]
call fcn.18000a130
mov rcx, qword [rax]
mov qword [rcx + 0x40], r14
mov rdx, qword [rbp - 0x49]
cmp rdx, 8
jb 0x180007030
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x61]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000702b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18000711e
call fcn.18000e2f8
mov qword [rbp - 0x61], r12
mov qword [rbp - 0x51], r12
mov qword [rbp - 0x49], 7
mov word [rbp - 0x61], r12w
mov r8, rdi
nop dword [rax + rax]
inc r8
cmp word [rsi + r8*2], 0
jne 0x180007050
mov rdx, rsi
lea rcx, [rbp - 0x61]
call fcn.180009230
nop
lea r8, [rbp - 0x61]
lea rdx, [rbp - 0x21]
lea rcx, [r13 + 0x60]
call fcn.180009ee0
mov rcx, qword [rax]
add rcx, 0x40
inc rdi
cmp word [rbx + rdi*2], 0
jne 0x180007080
mov r8, rdi
mov rdx, rbx
call fcn.180009230
nop
mov rdx, qword [rbp - 0x49]
cmp rdx, 8
jb 0x1800070e4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x61]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800070cd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180007106
call fcn.18000e2f8
jmp 0x1800070e4
cmp dword [r13 + 0x48], 0
je 0x1800070e4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, 1
mov rcx, qword [rbp - 1]
xor rcx, rsp
call fcn.18000e2d0
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
call fcn.18001e6b8
int3
call fcn.1800026f0
int3
call fcn.18001e6b8
int3
call fcn.18001e6b8
int3
call fcn.18001e6b8
int3