Function at 0x14000a910
Capabilities:
Get file attributes
Read file on windows

Disassembly:
push rbp
push rdi
lea rbp, [rsp - 0x28]
sub rsp, 0x128
mov rax, qword [0x14000f090]
xor rax, rsp
mov qword [rbp], rax
cmp dword [0x14000f17c], 0
mov rdi, rcx
jne 0x14000b0fd
mov qword [rsp + 0x148], rbx
mov r9d, 0x400000
xor ebx, ebx
mov dword [rsp + 0x28], 0x24
mov r8d, ebx
mov dword [rsp + 0x20], 1
mov ecx, ebx
lea rdx, [rbx - 1]
call qword [sym.imp.ntoskrnl.exe_MmAllocatePagesForMdlEx]
mov qword [0x14000f3d0], rax
test rax, rax
je 0x14000b0f5
mov qword [rsp + 0x150], rsi
lea r8d, [rbx + 1]
mov qword [rsp + 0x158], r12
xor r9d, r9d
mov qword [rsp + 0x120], r13
xor edx, edx
mov qword [rsp + 0x118], r14
mov rcx, rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x110], r15
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ntoskrnl.exe_MmMapLockedPagesSpecifyCache]
mov ecx, 0x90909090
mov qword [0x140017d38], 0x76543210
mov qword [0x140017d28], rcx
mov qword [0x14000f450], rax
mov dword [0x140017d30], 0xfedcba98
test rax, rax
je 0x14000b0be
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_MmGetPhysicalAddress]
mov qword [0x14000f3e0], rax
xor edx, edx
mov rax, qword [0x14000f3d0]
mov r8d, 0x400000
mov rcx, qword [rax + 0x30]
shl rcx, 0xc
mov qword [0x14000f3e0], rcx
mov rcx, qword [0x14000f450]
call fcn.14000c580
mov rdx, rdi
lea rcx, [rbp - 0x58]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x50], ebx
lea rax, [rbp - 0x58]
mov qword [rsp + 0x48], rbx
lea r9, [rsp + 0x78]
mov dword [rsp + 0x40], ebx
lea r8, [rbp - 0x48]
mov dword [rsp + 0x38], 1
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x30], ebx
xorps xmm0, xmm0
mov dword [rsp + 0x28], 0xa0
mov edx, 0x120000
mov qword [rsp + 0x20], rbx
mov dword [rbp - 0x48], 0x30
mov qword [rbp - 0x40], rbx
mov dword [rbp - 0x30], ebx
mov qword [rbp - 0x38], rax
movdqu xmmword [rbp - 0x28], xmm0
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
test eax, eax
jne 0x14000b0aa
mov rcx, qword [rsp + 0x68]
lea r9d, [rbx + 0x18]
lea r8, [rbp - 0x18]
mov dword [rsp + 0x20], 5
lea rdx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
cmp qword [rbp - 0x10], 0x400000
jg 0x14000b0cd
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rbx
xor r9d, r9d
mov qword [rsp + 0x38], rax
xor r8d, r8d
lea rax, [rsp + 0x60]
mov dword [rsp + 0x30], 2
mov qword [rsp + 0x28], rax
xor edx, edx
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], 8
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
cmp eax, 0x103
jne 0x14000ab2f
mov rcx, qword [rsp + 0x68]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ZwWaitForSingleObject]
test eax, eax
jne 0x14000b0cd
cmp dword [rsp + 0x78], ebx
jne 0x14000b09f
movzx eax, word [rsp + 0x60]
xor r9d, r9d
mov r14, qword [rbp - 0x10]
xor r8d, r8d
mov rcx, qword [rsp + 0x68]
xor edx, edx
shl eax, 9
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rax
mov rax, qword [0x14000f450]
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
cmp eax, 0x103
jne 0x14000ab9e
mov rcx, qword [rsp + 0x68]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ZwWaitForSingleObject]
cmp dword [rsp + 0x78], ebx
jne 0x14000b09f
add r14d, 0x1000
mov eax, 0xfffff000
and r14, rax
mov rax, qword [0x14000f450]
add r14, rax
add rax, 0x10
and r14, 0xfffffffffffff000
mov qword [0x14000f3c8], rax
lea r13, [r14 + 0x1000]
lea r15, [r14 + 0x11000]
mov qword [rbp - 0x60], r13
lea rdi, [r14 + 0x12000]
lea rsi, [r14 + 0x13000]
add r14, 0x14000
mov r12, r14
lea rax, [r14 + 0x2000]
mov rcx, rax
mov qword [rbp - 0x68], rax
call qword [sym.imp.ntoskrnl.exe_MmGetPhysicalAddress]
mov rcx, rdi
mov qword [0x14000f3f8], rax
call qword [sym.imp.ntoskrnl.exe_MmGetPhysicalAddress]
mov qword [r14 + 0x2000], rax
mov rcx, rsi
or dword [r14 + 0x2000], 3
call qword [sym.imp.ntoskrnl.exe_MmGetPhysicalAddress]
mov qword [rdi], rax
mov rcx, r14
or dword [rdi], 3
mov qword [rsi], rbx
mov qword [rsi + 8], 0x200000
mov dword [rsi], 0x81
mov dword [rsi + 8], 0x200081
call qword [sym.imp.ntoskrnl.exe_MmGetPhysicalAddress]
mov qword [rsi + 0x10], rax
lea rcx, [r14 + 0x1000]
btr eax, 7
or eax, 3
mov dword [rsi + 0x10], eax
call qword [sym.imp.ntoskrnl.exe_MmGetPhysicalAddress]
mov qword [rsi + 0x18], rax
mov rdi, r14
btr eax, 7
mov r14d, 0x400
or eax, 3
mov dword [rsi + 0x18], eax
mov rsi, rbx
nop word [rax + rax]
mov rcx, qword [0x14000f450]
add rcx, rsi
call qword [sym.imp.ntoskrnl.exe_MmGetPhysicalAddress]
mov qword [rdi], rax
add rsi, 0x1000
or dword [rdi], 3
lea rdi, [rdi + 8]
sub r14, 1
jne 0x14000aca0
mov rax, r13
mov edx, 0x3fffff
sub rax, qword [0x14000f450]
mov ecx, 0x1000
shr rax, 0xc
cdqe
and dword [r12 + rax*8], 0xfffffffe
movabs rax, 0xcf92000000ffff
mov qword [r15 + 8], rax
movabs rax, 0xcf96000000ffff
mov qword [r15 + 0x10], rax
movabs rax, 0xcf9b000000ffff
mov qword [r15 + 0x18], rax
movabs rax, 0x9a000000ffff
mov qword [r15 + 0x20], rax
movabs rax, 0x92000000ffff
mov qword [r15 + 0x28], rax
movabs rax, 0x9a030000ffff
mov qword [r15 + 0x30], rax
movabs rax, 0xaf9b000000ffff
mov qword [r15 + 0x50], rax
mov eax, 0x6f
mov qword [r15], rbx
mov qword [r15 + 0x38], rbx
mov qword [r15 + 0x40], rbx
mov qword [r15 + 0x48], rbx
mov qword [r15 + 0x58], rbx
mov qword [r15 + 0x60], rbx
mov qword [r15 + 0x68], rbx
sub r15, qword [0x14000f450]
mov word [0x14000f440], ax
add r15, 0x400000
lea rax, [0x14000f440]
mov qword [0x14000f442], r15
mov qword [0x14000f3e8], rax
call qword [sym.imp.ntoskrnl.exe_MmAllocateContiguousMemory]
mov qword [0x14000f438], rax
test rax, rax
je 0x14000b0cd
xor edx, edx
mov r8d, 0x1000
mov rcx, rax
call fcn.14000c580
mov rcx, qword [0x14000f438]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov edx, 0x1000
call qword [sym.imp.ntoskrnl.exe_IoAllocateMdl]
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov qword [0x14000f430], rax
call qword [sym.imp.ntoskrnl.exe_MmProbeAndLockPages]
lea rdx, [0x14000bbc2]
mov r9, 0xfffffffffffffffe
lea rax, [rdx + 2]
sub r9, rdx
mov r8d, ebx
cmp byte [rax - 2], 0xce
jne 0x14000ae1f
cmp byte [rax - 1], 0xce
jne 0x14000ae1f
cmp byte [rax], 0xce
jne 0x14000ae1f
cmp byte [rax + 1], 0xce
jne 0x14000ae1f
cmp byte [rax + 2], 0xce
je 0x14000ae32
inc rax
inc r8d
lea rcx, [r9 + rax]
cmp rcx, 0x1000
jl 0x14000ae02
mov rcx, qword [0x14000f438]
movsxd r8, r8d
call fcn.14000c780
mov edx, 0x4000
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [0x14000f410], rax
test rax, rax
je 0x14000b0cd
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
mov edx, 0x4000
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_IoAllocateMdl]
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov qword [0x14000f400], rax
call qword [sym.imp.ntoskrnl.exe_MmProbeAndLockPages]
mov rcx, qword [0x14000f410]
xor edx, edx
mov r8d, 0x4000
call fcn.14000c580
mov r14, qword [0x14000f410]
mov esi, 0x200
mov rax, qword [0x14000f400]
lea r15, [r14 + 0x1000]
mov rcx, qword [rax + 0x30]
mov rdi, r15
mov rax, qword [0x14000f430]
shl rcx, 0xc
mov qword [0x14000f408], rcx
mov rcx, qword [rax + 0x30]
lea rax, [r14 + 0x2000]
shl rcx, 0xc
mov r12, rax
mov qword [0x14000f418], rcx
sub r12, r15
lea rcx, [r14 + 0x3000]
mov rbx, rax
mov r13, rcx
mov qword [rbp - 0x70], rcx
sub r14, r15
sub r13, r15
nop dword [rax]
mov rcx, r15
call qword [sym.imp.ntoskrnl.exe_MmGetPhysicalAddress]
mov qword [r14 + rdi], rax
mov rcx, rbx
or dword [r14 + rdi], 1
call qword [sym.imp.ntoskrnl.exe_MmGetPhysicalAddress]
mov rcx, qword [rbp - 0x70]
mov qword [rdi], rax
or dword [rdi], 1
call qword [sym.imp.ntoskrnl.exe_MmGetPhysicalAddress]
mov qword [r12 + rdi], rax
lea rdi, [rdi + 8]
btr eax, 7
or eax, 1
mov dword [r12 + rdi - 8], eax
mov rax, qword [0x14000f418]
mov qword [rdi + r13 - 8], rax
or dword [rdi + r13 - 8], 1
sub rsi, 1
jne 0x14000af10
mov edx, 0x1000
lea ecx, [rsi + 1]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
xor ebx, ebx
xor r9d, r9d
mov rcx, rax
mov qword [0x14000f428], rax
xor r8d, r8d
mov qword [rsp + 0x20], rbx
mov edx, 0x1000
call qword [sym.imp.ntoskrnl.exe_IoAllocateMdl]
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov qword [0x14000f420], rax
call qword [sym.imp.ntoskrnl.exe_MmProbeAndLockPages]
mov rcx, qword [0x14000f428]
xor edx, edx
mov r8d, 0x1000
call fcn.14000c580
mov rax, qword [0x14000f420]
lea rdx, [rsi - 1]
mov dword [rsp + 0x28], 0x24
mov r9d, 0x8000
mov r8d, ebx
mov dword [rsp + 0x20], 1
mov rcx, qword [rax + 0x30]
mov rax, qword [0x14000f3c8]
shl rcx, 0xc
mov qword [0x14000f3f0], rcx
mov qword [rax], rcx
mov rax, qword [0x14000f3c8]
mov rcx, qword [0x14000f3e0]
mov qword [rax + 8], rcx
mov rax, qword [0x14000f3c8]
mov rcx, qword [rbp - 0x68]
sub rcx, qword [0x14000f450]
add rcx, 0x400000
mov qword [rax + 0x10], rcx
mov rax, qword [0x14000f3c8]
mov rcx, qword [rbp - 0x60]
sub rcx, qword [0x14000f450]
add rcx, 0x40ffc0
mov qword [rax + 0x18], rcx
mov ecx, ebx
mov rax, qword [0x14000f3c8]
mov qword [rax + 0x30], rbx
call qword [sym.imp.ntoskrnl.exe_MmAllocatePagesForMdlEx]
test rax, rax
je 0x14000b08e
mov rcx, qword [0x14000f3c8]
mov rdx, qword [rax + 0x30]
shl rdx, 0xc
mov qword [rcx + 0x30], rdx
xor edx, edx
mov rcx, qword [0x14000f3c8]
mov qword [rcx + 0x38], 8
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov dword [0x14000f17c], 1
mov qword [0x14000f3d8], rbx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rdx, qword [0x14000f3d0]
mov rcx, qword [0x14000f450]
call qword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
mov rcx, qword [0x14000f3d0]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov r14, qword [rsp + 0x118]
mov r13, qword [rsp + 0x120]
mov r12, qword [rsp + 0x158]
mov rsi, qword [rsp + 0x150]
mov r15, qword [rsp + 0x110]
mov rbx, qword [rsp + 0x148]
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.14000c4e0
add rsp, 0x128
pop rdi
pop rbp
ret