Function at 0x140003940
Capabilities:
Get file attributes
Read file on windows
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xf0
mov rax, qword [0x14003cf48]
xor rax, rsp
mov qword [rbp + 0x3f], rax
xorps xmm0, xmm0
xor esi, esi
mov rdi, rdx
mov dword [rbp - 0x25], esi
mov rdx, rcx
mov dword [rbp - 0xd], esi
xorps xmm1, xmm1
mov qword [rbp - 0x49], rsi
xor eax, eax
mov qword [rbp - 0x41], rsi
lea rcx, [rbp + 7]
mov qword [rbp + 0x37], rax
movups xmmword [rbp + 7], xmm0
movups xmmword [rbp + 0x17], xmm1
movups xmmword [rbp + 0x27], xmm0
movups xmmword [rbp - 0x39], xmm0
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rbp + 7]
mov dword [rsp + 0x28], 0x40
xorps xmm0, xmm0
mov qword [rbp - 0x19], rax
lea r9, [rbp - 0x39]
mov dword [rbp - 0x29], 0x30
lea r8, [rbp - 0x29]
mov qword [rbp - 0x21], rsi
mov edx, 0x80000000
mov dword [rbp - 0x11], 0x240
lea rcx, [rbp - 0x49]
mov dword [rsp + 0x20], 3
movdqu xmmword [rbp - 9], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwOpenFile]
test eax, eax
js 0x140003a13
mov rcx, qword [rbp - 0x49]
lea r9d, [rsi + 0x18]
lea r8, [rbp + 0x27]
mov dword [rsp + 0x20], 5
lea rdx, [rbp - 0x39]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
jns 0x140003a1a
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor al, al
jmp 0x140003b8b
mov edx, dword [rbp + 0x2f]
xor ecx, ecx
mov r8d, 0x66696c65
mov qword [rsp + 0x120], rbx
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rbx, rax
test rax, rax
je 0x140003a8d
mov r8d, dword [rbp + 0x2f]
xor edx, edx
mov rcx, rax
call fcn.1400101c0
mov rcx, qword [rbp - 0x49]
lea rax, [rbp - 0x41]
mov qword [rsp + 0x40], rsi
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov eax, dword [rbp + 0x2f]
xor edx, edx
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x39]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
test eax, eax
jns 0x140003a9e
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor al, al
jmp 0x140003b83
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rdx, rdi
lea rcx, [rbp + 0x17]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x50], esi
lea rax, [rbp + 0x17]
mov qword [rsp + 0x48], rsi
lea r9, [rbp - 0x39]
mov dword [rsp + 0x40], 0x20
lea r8, [rbp - 0x29]
mov dword [rsp + 0x38], esi
lea rcx, [rbp - 0x49]
mov dword [rsp + 0x30], 3
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0x80
mov edx, 0x10000000
mov qword [rsp + 0x20], rsi
mov dword [rbp - 0x29], 0x30
mov qword [rbp - 0x21], rsi
mov dword [rbp - 0x11], 0x240
mov qword [rbp - 0x19], rax
movdqu xmmword [rbp - 9], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
jns 0x140003b2b
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
xor al, al
jmp 0x140003b83
mov rcx, qword [rbp - 0x49]
lea rax, [rbp - 0x41]
mov qword [rsp + 0x40], rsi
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov eax, dword [rbp + 0x2f]
xor edx, edx
mov dword [rsp + 0x30], eax
lea rax, [rbp - 0x39]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x41], rsi
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
xor edx, edx
mov rcx, rbx
test eax, eax
js 0x140003a87
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov al, 1
mov rbx, qword [rsp + 0x120]
mov rcx, qword [rbp + 0x3f]
xor rcx, rsp
call fcn.14000ed70
add rsp, 0xf0
pop rdi
pop rsi
pop rbp
ret