Function at 0x140009dd8
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 [0x140034758], rdi
jne 0x140009e5e
mov rcx, qword [0x1400346c0]
xor r8d, r8d
mov edx, 0x300
call fcn.140015584
mov qword [0x140034758], rax
test rax, rax
je 0x140009e5e
mov rcx, qword [0x140034218]
lea r8, [0x14002b160]
mov r9, qword [0x1400346c8]
mov edx, 0x300
mov qword [rsp + 0x38], rcx
add r9, 8
lea rcx, [0x14002b140]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], rcx
mov rcx, rax
call fcn.14000b458
lea rax, [rbp - 0x19]
mov dword [rbp + 0x1f], 0x30
mov qword [rbp + 0x2f], rax
lea r8, [rbp - 9]
mov rax, qword [0x1400346e0]
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 0x140009ed7
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 [0x140034758], rdi
je 0x140009f94
lea rdx, [0x14002b1c0]
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 0x140009f94
cmp qword [rbp - 0x21], 2
jne 0x140009f94
mov rcx, qword [0x140034758]
mov rax, rbx
inc rax
cmp byte [rcx + rax], dil
jne 0x140009f53
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, [0x14002b1e0]
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 0x14000a039
cmp qword [rbp - 0x21], 2
jne 0x14000a039
mov rax, qword [0x140034218]
inc rbx
cmp byte [rax + rbx], dil
jne 0x140009ff8
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