Function at 0x7fff25d910dc
Capabilities:
Check for peb beingdebugged flag
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], r9
mov qword [rax + 0x18], r8
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov rsi, r9
mov rdi, r8
mov r15, rcx
xor r12d, r12d
mov dword [rax - 0x50], r12d
mov r10d, r12d
mov qword [rax - 0x48], r12
mov qword [rax - 0x40], r12
mov qword [r8], r12
mov dword [r9], r12d
mov eax, r12d
test edx, edx
jne 0x7fff25d91222
mov ecx, 0x8a
mov dword [rsp + 0x34], ecx
mov dword [rsp + 0x30], eax
cmp eax, 3
jge 0x7fff25d911aa
cmp qword [rsp + 0x48], r12
jne 0x7fff25d9138c
mov r8d, ecx
mov rcx, qword gs:[0x60]
mov edx, dword [0x7fff25fd0c80]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rsp + 0x48], rax
test rax, rax
je 0x7fff25d913c8
mov r14d, dword [rsp + 0x34]
lea r9d, [r14 - 2]
mov dword [rsp + 0x20], 0x3a
mov r8, rax
lea rdx, [rsp + 0x50]
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
nop dword [rax + rax]
mov r10d, eax
mov dword [rsp + 0x3c], eax
cmp eax, 0x80000005
je 0x7fff25d913b5
test r10d, r10d
js 0x7fff25d913c8
mov rax, qword [rsp + 0x48]
mov r8d, dword [rax]
add r8, 2
mov rcx, qword gs:[0x60]
mov edx, dword [0x7fff25fd0c80]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rdi], rax
test rax, rax
je 0x7fff25d913c8
mov rbx, qword [rsp + 0x48]
mov r8d, dword [rbx]
add r8, 2
xor edx, edx
mov rcx, rax
call sub.ntdll.dll_memset
mov r8d, dword [rbx]
lea rdx, [rbx + 4]
mov rcx, qword [rdi]
call sub.ntdll.dll_memcpy
mov eax, dword [rbx]
shr eax, 1
mov dword [rsi], eax
mov dword [rsp + 0x38], 1
jmp 0x7fff25d913c8
mov ecx, 0x10c
mov dword [rsp + 0x34], ecx
mov dword [rsp + 0x30], eax
cmp eax, 2
jge 0x7fff25d912ef
cmp qword [rsp + 0x40], r12
je 0x7fff25d91263
mov rcx, qword gs:[0x60]
mov r8, qword [rsp + 0x40]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x34]
mov r14d, ecx
mov rcx, qword gs:[0x60]
mov r8d, r14d
mov edx, dword [0x7fff25fd0c80]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rbx, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x7fff25d913c8
mov r8d, r14d
xor edx, edx
mov rcx, rax
call sub.ntdll.dll_memset
mov r14d, dword [rsp + 0x34]
lea r9d, [r14 - 2]
mov dword [rsp + 0x20], 0x31
mov r8, rbx
lea rdx, [rsp + 0x50]
mov rcx, r15
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
nop dword [rax + rax]
mov r10d, eax
mov dword [rsp + 0x3c], eax
cmp eax, 0x80000005
jne 0x7fff25d912ef
lea ecx, [r14 + r14]
mov dword [rsp + 0x34], ecx
mov eax, dword [rsp + 0x30]
inc eax
jmp 0x7fff25d9122b
test r10d, r10d
js 0x7fff25d913c8
mov rax, qword [rsp + 0x40]
mov edx, dword [rax]
shr edx, 1
dec edx
mov dword [rsp + 0x30], edx
test edx, edx
jle 0x7fff25d913c8
movsxd rcx, edx
mov rax, qword [rsp + 0x40]
cmp word [rax + rcx*2 + 4], 0x5c
je 0x7fff25d91321
jmp 0x7fff25d91301
test edx, edx
jle 0x7fff25d913c8
lea eax, [rdx + 1]
movsxd rbx, eax
add rbx, rbx
mov rcx, qword gs:[0x60]
mov r8, rbx
mov edx, dword [0x7fff25fd0c80]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rdi], rax
test rax, rax
je 0x7fff25d913c8
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.ntdll.dll_memset
movsxd rbx, dword [rsp + 0x30]
mov r8, rbx
add r8, r8
mov rdx, qword [rsp + 0x40]
add rdx, 4
mov rcx, qword [rdi]
call sub.ntdll.dll_memcpy
mov dword [rsi], ebx
jmp 0x7fff25d91215
mov rcx, qword gs:[0x60]
mov r8, qword [rsp + 0x48]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov ecx, dword [rsp + 0x34]
jmp 0x7fff25d91140
lea ecx, [r14 + r14]
mov dword [rsp + 0x34], ecx
mov eax, dword [rsp + 0x30]
inc eax
jmp 0x7fff25d9112c
cmp qword [rsp + 0x40], r12
jne 0x7fff25df0dd8
cmp qword [rsp + 0x48], r12
je 0x7fff25d913fa
mov rcx, qword gs:[0x60]
mov r8, qword [rsp + 0x48]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
cmp dword [rsp + 0x38], r12d
je 0x7fff25df0dfe
mov eax, dword [rsp + 0x38]
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov rcx, qword gs:[0x60]
mov r8, qword [rsp + 0x40]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
nop
jmp 0x7fff25d913d3
mov r8, qword [rdi]
test r8, r8
je 0x7fff25df0e24
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov qword [rdi], r12
mov dword [rsi], r12d
jmp 0x7fff25d91405