Function at 0x18884
Capabilities:
Get file attributes

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0xd0
xor eax, eax
xor r13d, r13d
lea rdx, [0x00041110]
mov word [r11 - 0x78], r13w
mov qword [r11 - 0x76], rax
lea rcx, [r11 - 0x68]
mov dword [rsp + 0x7a], eax
mov word [rsp + 0x7e], ax
mov qword [r11 + 8], r13
mov rbx, r13
mov word [rsp + 0x60], r13w
mov qword [rsp + 0x62], rax
mov dword [rsp + 0x6a], eax
mov word [rsp + 0x6e], ax
mov ebp, 0x800
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x50], r13d
mov qword [rsp + 0x48], r13
mov dword [rsp + 0x40], 0x21
mov dword [rsp + 0x38], 1
lea rax, [rsp + 0x80]
mov dword [rsp + 0x30], 7
lea r9, [rsp + 0x90]
lea r8, [rsp + 0xa0]
lea rcx, [rsp + 0xf0]
mov edx, 0x100001
mov dword [rsp + 0x28], 0x10
mov qword [rsp + 0x20], r13
mov dword [rsp + 0xa0], 0x30
mov qword [rsp + 0xa8], r13
mov dword [rsp + 0xb8], 0x2c0
mov qword [rsp + 0xb0], rax
mov qword [rsp + 0xc0], r13
mov qword [rsp + 0xc8], r13
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
cmp eax, r13d
mov edi, eax
jl 0x18ba9
lea ecx, [r13 + 1]
mov rdx, rbp
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rbx, rax
cmp rax, r13
je 0x18ba9
mov r12, rbp
mov r8, r12
xor edx, edx
mov rcx, rbx
call fcn.000407c0
mov rcx, qword [rsp + 0xf0]
mov byte [rsp + 0x50], r13b
mov qword [rsp + 0x48], r13
mov byte [rsp + 0x40], r13b
mov dword [rsp + 0x38], 3
lea rax, [rsp + 0x90]
mov dword [rsp + 0x30], ebp
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwQueryDirectoryFile]
cmp eax, r13d
mov edi, eax
jge 0x18a80
jmp 0x18a70
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
lea r11d, [rbp + rbp]
mov ecx, 1
mov edx, r11d
mov ebp, r11d
mov r12d, r11d
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov rbx, rax
cmp rax, r13
je 0x18ba9
mov rcx, qword [rsp + 0xf0]
mov byte [rsp + 0x50], r13b
mov qword [rsp + 0x48], r13
mov byte [rsp + 0x40], r13b
mov dword [rsp + 0x38], 3
mov dword [rsp + 0x30], ebp
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x90]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwQueryDirectoryFile]
mov edi, eax
cmp eax, 0x80000005
je 0x189fb
cmp edi, r13d
jl 0x18ba9
mov rcx, qword [rsp + 0x68]
mov rsi, rbx
movzx edx, word [rsi + 0x3c]
lea rax, [rsi + 0x5e]
mov word [rsp + 0x72], dx
mov word [rsp + 0x70], dx
mov qword [rsp + 0x78], rax
cmp dx, 2
jne 0x18aaf
cmp word [rax], 0x2e
je 0x18b8b
cmp dx, 4
jne 0x18ac6
cmp word [rax], 0x2e
jne 0x18ac6
cmp word [rax + 2], 0x2e
je 0x18b8b
movzx eax, word [rsp + 0x80]
mov ecx, 1
add ax, dx
add ax, 4
movzx edx, ax
mov word [rsp + 0x62], ax
call qword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov word [rsp + 0x60], r13w
mov rcx, rax
mov qword [rsp + 0x68], rax
cmp rax, r13
je 0x18b9a
movzx r8d, word [rsp + 0x62]
xor edx, edx
call fcn.000407c0
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
movzx r11d, word [rsp + 0x80]
mov rax, qword [rsp + 0x88]
shr r11, 1
cmp word [rax + r11*2], 0x5c
je 0x18b4d
lea rdx, [0x00041060]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
mov rcx, qword [rsp + 0x68]
call fcn.00021524
cmp eax, r13d
je 0x18b76
mov rcx, qword [rsp + 0x68]
call fcn.00016170
mov rcx, qword [rsp + 0x68]
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, r13
mov qword [rsp + 0x68], rcx
cmp dword [rsi], r13d
je 0x18b9f
mov eax, dword [rsi]
add rsi, rax
jmp 0x18a88
mov edi, 0xc000009a
cmp edi, r13d
jne 0x18bae
jmp 0x1899e
mov rcx, qword [rsp + 0x68]
cmp rcx, r13
je 0x18bbb
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp rbx, r13
je 0x18bcb
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0xf0]
cmp rcx, r13
je 0x18bde
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r11, [rsp + 0xd0]
mov eax, edi
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret