Function at 0x140001538
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 r14, r8
mov r15, 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 0x14000157b
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 0x1400015bd
test rsi, rsi
je 0x14000159e
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 0x1400017b3
mov eax, 0x80000000
cmp r14, rax
jae 0x1400016a7
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], r15
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 0x1400017b3
mov rbx, qword [rsp + 0x70]
jmp 0x1400017ab
movabs rax, 0x200000005
mul r14
mov r13, r14
sub r13, rdx
shr r13, 1
add r13, rdx
shr r13, 0x1e
mov qword [rsp + 0x88], r12
cmp r12, r13
jae 0x140001739
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 0x7fffffff
mov qword [rsp + 0x28], r15
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 0x1400017b3
add r15, 0x7fffffff
mov qword [rsp + 0xa0], r15
add rbx, qword [rsp + 0x70]
mov qword [rsp + 0x80], rbx
inc r12
jmp 0x1400016c4
movabs rax, 0x200000005
mul r14
mov rax, r14
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 0x1e
imul rax, rax, 0x7fffffff
sub r14, rax
xor r12d, r12d
test r14d, r14d
je 0x1400017b3
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], r15
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 0x1400017b3
add rbx, qword [rsp + 0x70]
mov qword [rsp + 0x80], rbx
mov rcx, qword [rsp + 0x118]
test rcx, rcx
je 0x1400017d9
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 0x1400017ee
mov dword [rsi], edi
mov rax, rbx
jmp 0x1400015a0