Function at 0x14000d8e0
Capabilities:
Access pe header
Get file attributes
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xe0
mov rax, qword [0x140006090]
xor rax, rsp
mov qword [rsp + 0xd8], rax
mov dword [rsp + 0x60], 0
mov qword [rsp + 0x78], 0
lea rax, [rsp + 0x98]
mov rdi, rax
xor eax, eax
mov ecx, 0x30
rep stosb byte [rdi], al
lea rax, [rsp + 0xc8]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0x80]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
cmp qword [rsp + 0xf0], 0
je 0x14000d971
cmp qword [rsp + 0xf8], 0
je 0x14000d971
mov dword [rsp + 0x64], 0
jmp 0x14000d979
mov dword [rsp + 0x64], 1
cmp dword [rsp + 0x64], 0
je 0x14000d9a7
xor r9d, r9d
mov r8d, 0x61b
lea rdx, [0x140015d30]
lea rcx, [0x1400166a0]
call qword [sym.imp.ntoskrnl.exe_RtlAssert]
mov dword [rsp + 0x68], 0
jmp 0x14000d9af
mov dword [rsp + 0x68], 1
cmp qword [rsp + 0xf0], 0
je 0x14000d9c5
cmp qword [rsp + 0xf8], 0
jne 0x14000d9ea
lea r9, [0x1400166c0]
lea r8, [0x1400166e0]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, 0xc000000d
jmp 0x14000dc77
mov dword [rsp + 0x98], 0x30
mov qword [rsp + 0xa0], 0
mov dword [rsp + 0xb0], 0x200
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0xb8], 0
mov qword [rsp + 0xc0], 0
mov dword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov dword [rsp + 0x40], 0x20
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 0x80
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0xc8]
lea r8, [rsp + 0x98]
mov edx, 0x100001
lea rcx, [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jge 0x14000dad5
lfence
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x20], rax
lea r9, [0x1400166c0]
lea r8, [0x140015b10]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov eax, dword [rsp + 0x60]
jmp 0x14000dc77
mov dword [rsp + 0x20], 5
mov r9d, 0x18
lea r8, [rsp + 0x80]
lea rdx, [rsp + 0xc8]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jl 0x14000db2f
mov r8d, 0x656e6f42
mov rdx, qword [rsp + 0x88]
mov ecx, 1
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rcx, qword [rsp + 0xf8]
mov qword [rcx], rax
jmp 0x14000db62
lfence
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x20], rax
lea r9, [0x1400166c0]
lea r8, [0x140015b50]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov eax, dword [rsp + 0x88]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xf8]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
jl 0x14000dc0a
mov rax, qword [rsp + 0xf8]
mov rcx, qword [rax]
call qword [sym.imp.ntoskrnl.exe_RtlImageNtHeader]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x14000dc08
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x20], rax
lea r9, [0x1400166c0]
lea r8, [0x140015b90]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov dword [rsp + 0x60], 0xc000007b
jmp 0x14000dc3d
lfence
mov eax, dword [rsp + 0x60]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x20], rax
lea r9, [0x1400166c0]
lea r8, [0x140015bd0]
xor edx, edx
mov ecx, 0x4d
call qword [sym.imp.ntoskrnl.exe_DbgPrintEx]
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [rsp + 0x60], 0
jge 0x14000dc73
mov rax, qword [rsp + 0xf8]
cmp qword [rax], 0
je 0x14000dc73
mov edx, 0x656e6f42
mov rax, qword [rsp + 0xf8]
mov rcx, qword [rax]
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.140003e80
add rsp, 0xe0
pop rdi
ret