Function at 0x180015bd0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp - 0x51], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x18012b010]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rcx
xor r12d, r12d
lea rcx, [rbp - 0x31]
call fcn.180007c80
lea r13, [rsi + 8]
mov rdx, r13
lea rcx, [rbp - 0x31]
call fcn.180007c20
nop
cmp qword [rsi + 0x30], r12
jne 0x180015ec0
lea rdx, [rbp + 7]
mov rcx, rsi
call fcn.180016840
nop
lea rcx, [rbp + 7]
call fcn.180005da8
test al, al
jne 0x180015eb6
xor eax, eax
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x49], r12
mov qword [rbp - 0x41], r12
xor r8d, r8d
xor edx, edx
call fcn.180017050
mov r15, rax
mov qword [rbp - 0x49], rax
lea rbx, [rsi + 0x10]
lea rcx, [rbp - 0x49]
cmp rcx, rbx
je 0x180015c9d
mov r15, qword [rbx]
mov qword [rbp - 0x49], r15
mov qword [rbx], rax
mov rax, qword [rbp - 0x41]
mov r14, qword [rbx + 8]
mov qword [rbp - 0x41], r14
mov qword [rbx + 8], rax
jmp 0x180015ca1
mov r14, qword [rbp - 0x41]
test r14, r14
je 0x180015e9d
lea rcx, [rbp + 7]
call fcn.18000618c
mov rcx, rax
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
nop
cmp byte [rsi], 0
jne 0x180015d45
cmp rdi, 0xffffffffffffffff
jne 0x180015d4f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x180015e7e
lea ecx, [rdi + 0x33]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rbp + 7]
call fcn.18000618c
mov rcx, rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
inc r12
cmp r12, 0xa
jb 0x180015ce0
cmp rdi, 0xffffffffffffffff
je 0x180015e7e
test rdi, rdi
je 0x180015e7e
mov rax, qword [rbp - 0x31]
test rax, rax
je 0x180015d77
mov rcx, qword [rax]
test rcx, rcx
je 0x180015d6f
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
mov qword [rbp - 0x31], rsi
jmp 0x180015d79
xor esi, esi
xor eax, eax
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], rax
mov qword [rbp - 0x29], rsi
mov qword [rbp - 0x21], rsi
mov qword [rbp - 0x19], rsi
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x49]
call fcn.18001e1e0
xor eax, eax
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], rax
mov qword [rbp - 1], rax
mov qword [rbp - 0x11], rsi
mov qword [rbp - 9], rsi
mov qword [rbp - 1], rsi
lea r9d, [rax + 2]
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rdx, qword [rbp - 0x29]
mov rax, qword [rbp - 0x21]
cmp rdx, rax
je 0x180015df8
mov dword [rbp - 0x39], esi
sub rax, rdx
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x39]
mov r8d, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x180015e2c
lea rcx, [rbp - 0x39]
call fcn.180007c80
mov rdx, r13
lea rcx, [rbp - 0x39]
call fcn.180007c20
nop
mov rdx, qword [rbx]
mov r9, r15
mov r8, qword [r15]
mov rdx, qword [rdx]
mov rcx, rbx
call fcn.1800173a0
nop
lea rcx, [rbp - 0x39]
call fcn.180007c50
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x180015e9d
mov rdx, qword [rbp - 0x19]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180015e6b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180015ef6
call fcn.1800a0284
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], rsi
jmp 0x180015e9d
lea rax, [rbp - 0x49]
cmp rbx, rax
je 0x180015e9d
mov rax, qword [rbx]
mov qword [rbx], r15
mov qword [rbp - 0x49], rax
mov rax, qword [rbx + 8]
mov qword [rbx + 8], r14
mov qword [rbp - 0x41], rax
lea rcx, [rbp - 0x49]
call fcn.180016ef0
nop
mov edx, 0x88
mov rcx, qword [rbp - 0x49]
call fcn.1800a0284
nop
lea rcx, [rbp + 7]
call fcn.180005de4
nop
lea rcx, [rbp - 0x31]
call fcn.180007c50
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1800a0260
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.1800a6cbc
nop
int3