Function at 0x1400ff8d0
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x28]
sub rsp, 0x110
mov qword [rbp - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rax, qword [0x1410443b8]
xor rax, rsp
mov qword [rbp], rax
mov r14, rcx
mov rdx, rcx
lea rcx, [rbp - 0x80]
call fcn.14007b3c0
nop
mov dword [rbp - 0x68], 0x18
xor edi, edi
mov qword [rbp - 0x60], rdi
mov dword [rbp - 0x58], edi
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x80]
call fcn.14007bc70
nop
mov rcx, rax
call fcn.14002b720
mov rcx, rax
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 1
lea r9, [rbp - 0x68]
mov edx, 0x40000000
lea r8d, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx]
or ebx, 0xffffffff
test eax, eax
je 0x1400ff987
cmp eax, ebx
je 0x1400ff995
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400ff995
mov rcx, qword [rsp + 0x50]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140035d80
cmp rsi, 0xffffffffffffffff
jne 0x1400ffa5a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
sub ecx, 5
je 0x1400ff9fb
sub ecx, 0x1b
je 0x1400ff9f1
sub ecx, 0x30
je 0x1400ff9f1
cmp ecx, 0x67
je 0x1400ff9f1
mov qword [rbp - 0x50], 2
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x48], xmm0
lea rcx, [0x1402c4b50]
mov qword [rbp - 0x38], rcx
mov r8d, eax
lea rdx, [0x14029c190]
lea rcx, [rbp - 0x50]
call fcn.14001ead0
lea edi, [rsi + 4]
jmp 0x1400ffc1c
mov edi, 1
jmp 0x1400ffc1c
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x80]
call fcn.14007bc70
nop
mov rcx, rax
call fcn.14002b720
lea r8, [rbp - 0x28]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
neg eax
sbb edi, edi
add edi, 2
mov rcx, qword [rsp + 0x58]
mov eax, dword [rcx]
test eax, eax
je 0x1400ffa50
cmp eax, 0xffffffff
je 0x1400ffc1c
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400ffc1c
mov rcx, qword [rsp + 0x58]
mov edx, 2
jmp 0x1400ffc10
mov qword [r14 + 8], rsi
lea rax, [0x1401885d8]
mov qword [rsp + 0x40], rax
call fcn.140042cb0
mov rdx, rax
mov r8d, 0xa
lea rcx, [rsp + 0x60]
call fcn.1400377d0
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140036c30
nop
mov rcx, qword [rsp + 0x60]
mov eax, dword [rcx]
test eax, eax
je 0x1400ffab1
cmp eax, 0xffffffff
je 0x1400ffabf
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400ffabf
mov rcx, qword [rsp + 0x60]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.140035d80
mov dl, 0xa
lea rcx, [rsp + 0x40]
call fcn.140036d00
lea rcx, [rsp + 0x70]
call fcn.140042b80
nop
lea rdx, [rsp + 0x68]
mov rcx, rax
call fcn.14000dd40
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140036c30
nop
mov rcx, qword [rsp + 0x68]
mov eax, dword [rcx]
test eax, eax
je 0x1400ffb12
cmp eax, 0xffffffff
je 0x1400ffb21
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400ffb21
mov rcx, qword [rsp + 0x68]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.140035d80
nop
mov rcx, qword [rsp + 0x70]
mov eax, dword [rcx]
test eax, eax
je 0x1400ffb41
cmp eax, 0xffffffff
je 0x1400ffb4f
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400ffb4f
mov rcx, qword [rsp + 0x70]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140035d80
mov dl, 0xa
lea rcx, [rsp + 0x40]
call fcn.140036d00
lea rcx, [rsp + 0x78]
call fcn.1400ff6e0
nop
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140036c30
nop
mov rcx, qword [rsp + 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x1400ffb94
cmp eax, 0xffffffff
je 0x1400ffba2
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400ffba2
mov rcx, qword [rsp + 0x78]
mov edx, 1
lea r8d, [rdx + 7]
call fcn.140035d80
mov dl, 0xa
lea rcx, [rsp + 0x40]
call fcn.140036d00
mov dword [rsp + 0x48], edi
mov rax, qword [rsp + 0x40]
mov rdx, qword [rax + 0x10]
add rdx, rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x48]
mov r8d, dword [rax + 4]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400ffbe6
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x1400ffbeb
mov edi, 3
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx]
test eax, eax
je 0x1400ffc0b
cmp eax, 0xffffffff
je 0x1400ffc1c
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400ffc1c
mov rcx, qword [rsp + 0x40]
mov edx, 1
mov r8d, 8
call fcn.140035d80
nop
mov rcx, qword [rbp - 0x78]
mov eax, dword [rcx]
test eax, eax
je 0x1400ffc3a
cmp eax, 0xffffffff
je 0x1400ffc48
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400ffc48
mov rcx, qword [rbp - 0x78]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140035d80
mov rcx, qword [rbp - 0x80]
mov eax, dword [rcx]
test eax, eax
je 0x1400ffc64
cmp eax, 0xffffffff
je 0x1400ffc72
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x1400ffc72
mov rcx, qword [rbp - 0x80]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.140035d80
mov eax, edi
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140102b40
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret