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

Disassembly:
push rbp
push rdi
lea rbp, [rsp - 0x28]
sub rsp, 0x128
mov rax, qword [0x140010030]
xor rax, rsp
mov qword [rbp], rax
cmp dword [0x14001015c], 0
mov rdi, rcx
jne 0x14000b8e3
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 [0x140011138], rax
test rax, rax
je 0x14000b8db
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 [0x14001a878], 0x76543210
mov qword [0x14001a868], rcx
mov qword [0x1400111c0], rax
mov dword [0x14001a870], 0xfedcba98
test rax, rax
je 0x14000b8a4
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_MmGetPhysicalAddress]
mov qword [0x140011148], rax
xor edx, edx
mov rax, qword [0x140011138]
mov r8d, 0x400000
mov rcx, qword [rax + 0x30]
shl rcx, 0xc
mov qword [0x140011148], rcx
mov rcx, qword [0x1400111c0]
call fcn.14000d100
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 0x14000b890
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 0x14000b8b3
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 0x14000b30f
mov rcx, qword [rsp + 0x68]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ZwWaitForSingleObject]
test eax, eax
jne 0x14000b8b3
cmp dword [rsp + 0x78], ebx
jne 0x14000b885
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 [0x1400111c0]
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 0x14000b37e
mov rcx, qword [rsp + 0x68]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ZwWaitForSingleObject]
cmp dword [rsp + 0x78], ebx
jne 0x14000b885
add r14d, 0x1000
mov eax, 0xfffff000
and r14, rax
mov rax, qword [0x1400111c0]
add r14, rax
add rax, 0x10
and r14, 0xfffffffffffff000
mov qword [0x140011130], 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 [0x140011160], 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 [0x1400111c0]
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 0x14000b480
mov rax, r13
mov edx, 0x3fffff
sub rax, qword [0x1400111c0]
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 [0x1400111c0]
mov word [0x1400111b0], ax
add r15, 0x400000
lea rax, [0x1400111b0]
mov qword [0x1400111b2], r15
mov qword [0x140011150], rax
call qword [sym.imp.ntoskrnl.exe_MmAllocateContiguousMemory]
mov qword [0x1400111a0], rax
test rax, rax
je 0x14000b8b3
xor edx, edx
mov r8d, 0x1000
mov rcx, rax
call fcn.14000d100
mov rcx, qword [0x1400111a0]
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 [0x140011198], rax
call qword [sym.imp.ntoskrnl.exe_MmProbeAndLockPages]
lea rdx, [0x140001432]
mov r9, 0xfffffffffffffffe
lea rax, [rdx + 2]
sub r9, rdx
mov r8d, ebx
cmp byte [rax - 2], 0xce
jne 0x14000b5ff
cmp byte [rax - 1], 0xce
jne 0x14000b5ff
cmp byte [rax], 0xce
jne 0x14000b5ff
cmp byte [rax + 1], 0xce
jne 0x14000b5ff
cmp byte [rax + 2], 0xce
je 0x14000b612
inc rax
inc r8d
lea rcx, [r9 + rax]
cmp rcx, 0x1000
jl 0x14000b5e2
mov rcx, qword [0x1400111a0]
movsxd r8, r8d
call fcn.14000d200
mov edx, 0x4000
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov qword [0x140011178], rax
test rax, rax
je 0x14000b8b3
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 [0x140011168], rax
call qword [sym.imp.ntoskrnl.exe_MmProbeAndLockPages]
mov rcx, qword [0x140011178]
xor edx, edx
mov r8d, 0x4000
call fcn.14000d100
mov r14, qword [0x140011178]
mov esi, 0x200
mov rax, qword [0x140011168]
lea r15, [r14 + 0x1000]
mov rcx, qword [rax + 0x30]
mov rdi, r15
mov rax, qword [0x140011198]
shl rcx, 0xc
mov qword [0x140011170], rcx
mov rcx, qword [rax + 0x30]
lea rax, [r14 + 0x2000]
shl rcx, 0xc
mov r12, rax
mov qword [0x140011180], 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 [0x140011180]
mov qword [rdi + r13 - 8], rax
or dword [rdi + r13 - 8], 1
sub rsi, 1
jne 0x14000b6f0
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 [0x140011190], 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 [0x140011188], rax
call qword [sym.imp.ntoskrnl.exe_MmProbeAndLockPages]
mov rcx, qword [0x140011190]
xor edx, edx
mov r8d, 0x1000
call fcn.14000d100
mov rax, qword [0x140011188]
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 [0x140011130]
shl rcx, 0xc
mov qword [0x140011158], rcx
mov qword [rax], rcx
mov rax, qword [0x140011130]
mov rcx, qword [0x140011148]
mov qword [rax + 8], rcx
mov rax, qword [0x140011130]
mov rcx, qword [rbp - 0x68]
sub rcx, qword [0x1400111c0]
add rcx, 0x400000
mov qword [rax + 0x10], rcx
mov rax, qword [0x140011130]
mov rcx, qword [rbp - 0x60]
sub rcx, qword [0x1400111c0]
add rcx, 0x40ffc0
mov qword [rax + 0x18], rcx
mov ecx, ebx
mov rax, qword [0x140011130]
mov qword [rax + 0x30], rbx
call qword [sym.imp.ntoskrnl.exe_MmAllocatePagesForMdlEx]
test rax, rax
je 0x14000b86e
mov rcx, qword [0x140011130]
mov rdx, qword [rax + 0x30]
shl rdx, 0xc
mov qword [rcx + 0x30], rdx
xor edx, edx
mov rcx, qword [0x140011130]
mov qword [rcx + 0x38], 8
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea rcx, [0x140011140]
mov dword [0x14001015c], 1
call qword [sym.imp.ntoskrnl.exe_KeInitializeSpinLock]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov rdx, qword [0x140011138]
mov rcx, qword [0x1400111c0]
call qword [sym.imp.ntoskrnl.exe_MmUnmapLockedPages]
mov rcx, qword [0x140011138]
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.14000cd00
add rsp, 0x128
pop rdi
pop rbp
ret