Function at 0x140002d50
Capabilities:
Get file attributes
Read file on windows
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x48]
sub rsp, 0x120
mov rax, qword [0x140009010]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov qword [rbp - 0x68], rcx
lea rdx, [0x140007110]
lea rcx, [rbp - 0x48]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov dword [rsp + 0x68], 0x100
lea rax, [rbp - 0x48]
xor r14d, r14d
mov dword [rbp - 0x38], 0x30
mov qword [rsp + 0x60], r14
lea r9, [rbp - 0x58]
mov dword [rsp + 0x58], r14d
lea r8, [rbp - 0x38]
mov dword [rsp + 0x50], r14d
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x48], r14
lea r12d, [r14 + 1]
mov dword [rsp + 0x40], 0x20
xorps xmm0, xmm0
mov dword [rsp + 0x38], r12d
mov edx, 0x100080
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], r14
mov qword [rbp - 0x30], r14
mov dword [rbp - 0x20], 0x240
mov qword [rbp - 0x28], rax
movdqu xmmword [rbp - 0x18], xmm0
call qword [sym.imp.ntoskrnl.exe_IoCreateFile]
test eax, eax
js 0x140002e44
mov rcx, qword [rsp + 0x70]
lea r9d, [r14 + 0x18]
lea r8, [rbp - 8]
mov dword [rsp + 0x20], 5
lea rdx, [rbp - 0x58]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
test eax, eax
jns 0x140002e73
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.140006680
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
cmp dword [rbp + 4], r14d
jne 0x140002e39
mov edi, dword [rbp]
mov r8d, 0x4e74646c
mov ecx, r12d
lea edx, [rdi + 0x100]
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rcx, qword [rsp + 0x70]
mov rbx, rax
test rax, rax
je 0x140002e3e
mov qword [rsp + 0x40], r14
lea rax, [rbp - 0x78]
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov dword [rsp + 0x30], edi
lea rax, [rbp - 0x58]
mov qword [rsp + 0x28], rbx
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x78], r14
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
test eax, eax
js 0x140002e39
lfence
movsxd rdi, dword [rbx + 0x3c]
add rdi, rbx
mov qword [rbp - 0x70], rdi
cmp dword [rdi + 0x88], r14d
je 0x140002e44
lfence
movzx edx, word [rdi + 6]
mov r15d, dword [rdi + 0x88]
cmp r14w, dx
jae 0x140002f38
mov r10d, edx
lea r8, [rdi + 0x118]
mov r9d, dword [r8 - 4]
cmp r9, r15
ja 0x140002f2f
mov eax, dword [r8]
add eax, r9d
cmp r15, rax
ja 0x140002f2f
mov eax, dword [r8 + 4]
sub rax, r9
add r15, rax
add r8, 0x28
sub r10, r12
jne 0x140002f11
mov r9d, dword [r15 + rbx + 0x1c]
cmp r14w, dx
jae 0x140002f74
lea r8, [rdi + 0x118]
mov r11, rdx
mov r10d, dword [r8 - 4]
cmp r10, r9
ja 0x140002f6b
mov eax, dword [r8]
add eax, r10d
cmp r9, rax
ja 0x140002f6b
mov eax, dword [r8 + 4]
sub rax, r10
add r9, rax
add r8, 0x28
sub r11, r12
jne 0x140002f4d
lea rsi, [r9 + rbx]
mov r9d, dword [r15 + rbx + 0x24]
mov qword [rbp - 0x60], rsi
cmp r14w, dx
jae 0x140002fb8
lea r8, [rdi + 0x118]
mov r11, rdx
mov r10d, dword [r8 - 4]
cmp r10, r9
ja 0x140002faf
mov eax, dword [r8]
add eax, r10d
cmp r9, rax
ja 0x140002faf
mov eax, dword [r8 + 4]
sub rax, r10
add r9, rax
add r8, 0x28
sub r11, r12
jne 0x140002f91
mov r8d, dword [r15 + rbx + 0x20]
lea r11, [r9 + rbx]
mov qword [rbp - 0x80], r11
cmp r14w, dx
jae 0x140002ff8
lea rcx, [rdi + 0x118]
mov r9, rdx
mov edx, dword [rcx - 4]
cmp rdx, r8
ja 0x140002fef
mov eax, dword [rcx]
add eax, edx
cmp r8, rax
ja 0x140002fef
mov eax, dword [rcx + 4]
sub rax, rdx
add r8, rax
add rcx, 0x28
sub r9, r12
jne 0x140002fd5
lea r13, [r8 + rbx]
mov r12d, r14d
cmp dword [r15 + rbx + 0x18], r14d
jbe 0x1400030f5
mov r14d, dword [rsp + 0x78]
xor ecx, ecx
movzx r9d, word [rdi + 6]
mov r10d, dword [r13]
cmp cx, r9w
jae 0x140003057
lea rdx, [rdi + 0x118]
mov r11d, r9d
mov r8d, dword [rdx - 4]
cmp r8d, r10d
ja 0x140003047
mov ecx, dword [rdx]
add ecx, r8d
cmp r10d, ecx
ja 0x140003047
mov r14d, dword [rdx + 4]
sub r14d, r8d
add r14d, r10d
add rdx, 0x28
sub r11, 1
jne 0x14000302a
mov r11, qword [rbp - 0x80]
xor ecx, ecx
mov r8d, r14d
add r8, rbx
cmp byte [r8], 0x5a
jne 0x1400030d8
cmp byte [r8 + 1], 0x77
jne 0x1400030d8
movzx eax, word [r11]
mov r14d, dword [rsi + rax*4]
cmp cx, r9w
jae 0x1400030b0
lea rdx, [rdi + 0x118]
mov r10, r9
mov r9d, dword [rdx - 4]
cmp r9d, r14d
ja 0x1400030a2
mov ecx, dword [rdx]
add ecx, r9d
cmp r14d, ecx
ja 0x1400030a2
mov edi, dword [rdx + 4]
sub edi, r9d
add edi, r14d
mov dword [rsp + 0x78], edi
add rdx, 0x28
sub r10, 1
jne 0x140003082
mov rdi, qword [rbp - 0x70]
mov eax, dword [rsp + 0x78]
mov rcx, r8
mov rdx, qword [rbp - 0x68]
mov esi, dword [rax + rbx + 4]
mov word [r8], 0x744e
call sub.ntoskrnl.exe__stricmp
xor ecx, ecx
test eax, eax
je 0x1400030fb
mov r11, qword [rbp - 0x80]
mov rsi, qword [rbp - 0x60]
add r11, 2
inc r12d
add r13, 4
mov qword [rbp - 0x80], r11
cmp r12d, dword [r15 + rbx + 0x18]
jb 0x140003011
xor r14d, r14d
lfence
mov esi, r14d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
jmp 0x140002e46