Function at 0x1400f61bc
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov qword [rbp - 0x49], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1401a7d98]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rax, rdx
mov rdi, rcx
xor r15d, r15d
mov qword [rbp - 0x11], r15
xorps xmm0, xmm0
movups xmmword [rbp + 0x17], xmm0
lea rdx, [rbp + 0x17]
mov rcx, rax
call fcn.1400c6504
mov ebx, eax
test eax, eax
js 0x1400f6675
mov dword [rbp - 0x41], 0x30
mov qword [rbp - 0x39], r15
mov dword [rbp - 0x29], 0x40
lea rax, [rbp + 0x17]
mov qword [rbp - 0x31], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
or dword [rbp - 5], 0xffffffff
or dword [rbp - 9], 0xffffffff
movups xmmword [rbp - 1], xmm0
mov dword [rsp + 0x50], r15d
mov qword [rsp + 0x48], r15
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], r15
lea r9, [rbp - 1]
lea r8, [rbp - 0x41]
mov edx, 0xc0100000
lea rcx, [rbp - 0x11]
call qword [sym.imp.NTDLL.dll_NtCreateFile]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x1400f6675
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
mov qword [rsp + 0x40], r15
lea rax, [rbp - 9]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x4c
mov qword [rsp + 0x28], rdi
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.NTDLL.dll_NtWriteFile]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x1400f6675
mov eax, dword [rdi + 0x14]
test al, 1
je 0x1400f6409
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
lea rax, [rdi + 0x7d0]
mov qword [rsp + 0x40], r15
lea rcx, [rbp - 9]
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], 2
mov qword [rsp + 0x28], rax
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.NTDLL.dll_NtWriteFile]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x1400f6675
mov esi, r15d
cmp dword [rdi + 0x8cc], r15d
jle 0x1400f63b0
lea r14, [rdi + 0x7e8]
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
mov eax, dword [r14 - 0x10]
mov rcx, qword [r14]
mov qword [rsp + 0x40], r15
lea rdx, [rbp - 9]
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rcx
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.NTDLL.dll_NtWriteFile]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x1400f6675
inc esi
add r14, 0x18
cmp esi, dword [rdi + 0x8cc]
jl 0x1400f6352
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
mov word [rbp + 0xf], r15w
mov qword [rsp + 0x40], r15
lea rax, [rbp - 9]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 2
lea rax, [rbp + 0xf]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.NTDLL.dll_NtWriteFile]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x1400f6675
mov eax, dword [rdi + 0x14]
test al, 4
je 0x1400f642c
mov r8d, 4
mov rdx, qword [rbp - 0x11]
mov rcx, rdi
call fcn.1400f67bc
mov ebx, eax
test eax, eax
js 0x1400f6675
mov eax, dword [rdi + 0x14]
mov esi, 8
test sil, al
je 0x1400f6452
mov r8d, esi
mov rdx, qword [rbp - 0x11]
mov rcx, rdi
call fcn.1400f67bc
mov ebx, eax
test eax, eax
js 0x1400f6675
mov eax, dword [rdi + 0x14]
mov r8d, 0x10
test r8b, al
je 0x1400f6476
mov rdx, qword [rbp - 0x11]
mov rcx, rdi
call fcn.1400f67bc
mov ebx, eax
test eax, eax
js 0x1400f6675
mov eax, dword [rdi + 0x14]
test al, 0x20
je 0x1400f6499
mov r8d, 0x20
mov rdx, qword [rbp - 0x11]
mov rcx, rdi
call fcn.1400f67bc
mov ebx, eax
test eax, eax
js 0x1400f6675
mov eax, dword [rdi + 0x14]
test al, 0x40
je 0x1400f64b9
mov r8d, 0x40
mov rdx, qword [rbp - 0x11]
mov rcx, rdi
call fcn.1400f67bc
mov ebx, eax
test eax, eax
js 0x1400f6675
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
lea rax, [rdi + 0x404]
mov qword [rsp + 0x40], r15
lea rcx, [rbp - 9]
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rax
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.NTDLL.dll_NtWriteFile]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x1400f6675
mov esi, r15d
cmp dword [rdi + 0x8c8], r15d
jle 0x1400f657a
lea r14, [rdi + 0x428]
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
mov eax, dword [r14 - 0x10]
mov rcx, qword [r14]
mov qword [rsp + 0x40], r15
lea rdx, [rbp - 9]
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], rcx
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.NTDLL.dll_NtWriteFile]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x1400f6675
inc esi
add r14, 0x20
cmp esi, dword [rdi + 0x8c8]
jl 0x1400f651c
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
mov dword [rbp + 0x13], r15d
mov qword [rsp + 0x40], r15
lea rax, [rbp - 9]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 4
lea rax, [rbp + 0x13]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.NTDLL.dll_NtWriteFile]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x1400f6675
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
test dword [rdi + 0x14], 0x200
je 0x1400f6628
lea rax, [rdi + 0xf0]
mov qword [rsp + 0x40], r15
lea rcx, [rbp - 9]
mov qword [rsp + 0x38], rcx
mov dword [rsp + 0x30], 0x314
mov qword [rsp + 0x28], rax
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.NTDLL.dll_NtWriteFile]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
js 0x1400f6675
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
mov qword [rsp + 0x40], r15
lea rax, [rbp - 9]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 4
lea rax, [rbp + 0x13]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 1]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.NTDLL.dll_NtWriteFile]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
jns 0x1400f66a2
lea rcx, [rbp + 0x17]
call fcn.140031510
nop
mov rcx, qword [rbp - 0x11]
lea rdx, [rcx - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x1400f669e
mov qword [rbp - 0x11], r15
call qword [sym.imp.NTDLL.dll_NtClose]
nop dword [rax + rax]
nop
mov eax, ebx
jmp 0x1400f66cd
lea rcx, [rbp + 0x17]
call fcn.140031510
nop
mov rcx, qword [rbp - 0x11]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400f66cb
mov qword [rbp - 0x11], r15
call qword [sym.imp.NTDLL.dll_NtClose]
nop dword [rax + rax]
nop
xor eax, eax
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140109af0
mov rbx, qword [rsp + 0x120]
add rsp, 0xe0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret