Function at 0x14000152c
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xe0
mov r15, r8
mov r14, rdx
mov eax, 0xc0000001
mov dword [rsp + 0x60], eax
xor r12d, r12d
mov qword [r11 + 0x10], r12
mov ebx, r12d
mov rsi, qword [rsp + 0x138]
test rsi, rsi
je 0x14000156f
mov dword [rsi], eax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x90]
call qword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
jne 0x1400015b1
test rsi, rsi
je 0x140001592
mov dword [rsi], 0xc00000ef
xor eax, eax
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov dword [rsp + 0xa8], 0x30
mov qword [rsp + 0xb0], r12
mov dword [rsp + 0xc0], 0x40
lea rax, [rsp + 0x90]
mov qword [rsp + 0xb8], rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0xc8], xmm0
mov dword [rsp + 0x50], r12d
mov qword [rsp + 0x48], r12
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 5
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x68]
lea r8, [rsp + 0xa8]
mov edx, 0x100002
lea rcx, [rsp + 0x118]
call qword [sym.imp.ntdll.dll_NtCreateFile]
mov edi, eax
mov dword [rsp + 0x60], eax
test eax, eax
js 0x140001786
mov eax, 0x80000000
cmp r15, rax
jae 0x14000169b
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x118]
call qword [sym.imp.ntdll.dll_NtWriteFile]
mov edi, eax
mov dword [rsp + 0x60], eax
test eax, eax
js 0x140001786
mov rbx, qword [rsp + 0x70]
jmp 0x14000177e
movabs rax, 0x200000005
mul r15
mov r13, r15
sub r13, rdx
shr r13, 1
add r13, rdx
shr r13, 0x1e
imul rax, r13, 0x7fffffff
sub r15, rax
mov qword [rsp + 0x88], r12
cmp r12, r13
jae 0x140001733
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x7fffffff
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x118]
call qword [sym.imp.ntdll.dll_NtWriteFile]
mov edi, eax
mov dword [rsp + 0x60], eax
test eax, eax
js 0x140001786
add r14, 0x7fffffff
mov qword [rsp + 0xa0], r14
add rbx, qword [rsp + 0x70]
mov qword [rsp + 0x80], rbx
inc r12
jmp 0x1400016c2
xor r12d, r12d
test r15d, r15d
je 0x140001786
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x118]
call qword [sym.imp.ntdll.dll_NtWriteFile]
mov edi, eax
mov dword [rsp + 0x60], eax
test eax, eax
js 0x140001786
add rbx, qword [rsp + 0x70]
mov qword [rsp + 0x80], rbx
mov rcx, qword [rsp + 0x118]
test rcx, rcx
je 0x1400017ac
lea rdx, [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtFlushBuffersFile]
mov rcx, qword [rsp + 0x118]
call qword [sym.imp.ntdll.dll_NtClose]
lea rcx, [rsp + 0x90]
call qword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
test rsi, rsi
je 0x1400017c1
mov dword [rsi], edi
mov rax, rbx
jmp 0x140001594