Function at 0x140009db8
Capabilities:
Get file attributes
Set file attributes
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
xor edi, edi
mov rbx, rcx
cmp qword [0x140033758], rdi
jne 0x140009e3e
mov rcx, qword [0x1400336c0]
xor r8d, r8d
mov edx, 0x300
call fcn.1400152d4
mov qword [0x140033758], rax
test rax, rax
je 0x140009e3e
mov rcx, qword [0x140033210]
lea r8, [0x14002a1f0]
mov r9, qword [0x1400336c8]
mov edx, 0x300
mov qword [rsp + 0x38], rcx
add r9, 8
lea rcx, [0x14002a1d0]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.14000b438
lea rax, [rbp - 0x19]
mov dword [rbp + 0x1f], 0x30
mov qword [rbp + 0x2f], rax
lea r8, [rbp - 9]
mov rax, qword [0x1400336e0]
lea rdx, [rbp - 0x29]
mov r9d, 0x28
mov qword [rbp + 0x3f], rax
mov rcx, rbx
mov qword [rbp + 0x27], rbx
mov dword [rbp + 0x37], 0x240
mov qword [rbp + 0x47], rdi
mov dword [rsp + 0x20], 4
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
js 0x140009eb7
mov eax, dword [rbp + 0x17]
lea r8, [rbp - 9]
and eax, 0xffffff79
mov dword [rsp + 0x20], 4
or eax, 1
lea rdx, [rbp - 0x29]
mov r9d, 0x28
mov dword [rbp + 0x17], eax
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
or rbx, 0xffffffffffffffff
cmp qword [0x140033758], rdi
je 0x140009f74
lea rdx, [0x14002a250]
lea rcx, [rbp - 0x19]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x50], edi
lea r9, [rbp - 0x29]
mov qword [rsp + 0x48], rdi
lea r8, [rbp + 0x1f]
mov dword [rsp + 0x40], 0x60
lea rcx, [rbp + 0x67]
mov dword [rsp + 0x38], 3
mov edx, 0x12019f
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], 6
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
js 0x140009f74
cmp qword [rbp - 0x21], 2
jne 0x140009f74
mov rcx, qword [0x140033758]
mov rax, rbx
inc rax
cmp byte [rcx + rax], dil
jne 0x140009f33
mov qword [rsp + 0x40], rdi
xor r9d, r9d
mov qword [rsp + 0x38], rdi
xor r8d, r8d
mov dword [rsp + 0x30], eax
xor edx, edx
mov qword [rsp + 0x28], rcx
lea rax, [rbp - 0x29]
mov rcx, qword [rbp + 0x67]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov rcx, qword [rbp + 0x67]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea rdx, [0x14002a270]
lea rcx, [rbp - 0x19]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x50], edi
lea r9, [rbp - 0x29]
mov qword [rsp + 0x48], rdi
lea r8, [rbp + 0x1f]
mov dword [rsp + 0x40], 0x60
lea rcx, [rbp + 0x67]
mov dword [rsp + 0x38], 3
mov edx, 0x12019f
mov dword [rsp + 0x30], 7
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
js 0x14000a019
cmp qword [rbp - 0x21], 2
jne 0x14000a019
mov rax, qword [0x140033210]
inc rbx
cmp byte [rax + rbx], dil
jne 0x140009fd8
mov rcx, qword [rbp + 0x67]
xor r9d, r9d
mov qword [rsp + 0x40], rdi
xor r8d, r8d
mov qword [rsp + 0x38], rdi
xor edx, edx
mov dword [rsp + 0x30], ebx
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov rcx, qword [rbp + 0x67]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret