Function at 0x14001525c
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get kernel32 base address

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 8], ecx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x58]
sub rsp, 0x130
mov rax, qword [0x1400246e0]
xor rax, rsp
mov qword [rbp + 0x20], rax
xor r15d, r15d
mov r14, rdx
test ecx, ecx
mov qword [rsp + 0x58], r15
mov rcx, qword gs:[0x60]
mov rsi, r8
mov rdi, r9
cmovne r14, r15
lea r13d, [r15 + 8]
lea r8d, [r15 + 0x34]
mov edx, r13d
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
lea ecx, [r15 + 2]
mov rbx, rax
lea r12d, [r15 + 4]
test rax, rax
je 0x1400153c0
lea rax, [0x1400170a0]
mov dword [rsp + 0x28], 0x60
mov dword [rsp + 0x20], ecx
lea r9, [rsp + 0x68]
xorps xmm0, xmm0
mov dword [rsp + 0x78], 0x30
lea rcx, [rsp + 0x58]
mov qword [rbp - 0x80], r15
lea r8, [rsp + 0x78]
mov dword [rbp - 0x70], r15d
mov edx, 0x120003
mov qword [rbp - 0x78], rax
movdqu xmmword [rbp - 0x68], xmm0
call qword [sym.imp.ntdll.dll_NtOpenFile]
nop dword [rax + rax]
test eax, eax
js 0x1400153c0
mov dword [rsp + 0x48], r15d
lea eax, [r15 + 1]
mov dword [rbx + 0x14], eax
xor r9d, r9d
mov dword [rbx + 0x1c], eax
xor r8d, r8d
mov qword [rsp + 0x40], r15
xor edx, edx
mov dword [rbx], 0x43696541
mov dword [rbx + 4], 0x5342505f
mov dword [rbx + 8], 0x34
mov dword [rbx + 0xc], r12d
mov dword [rbx + 0x10], 0x40000
mov dword [rbx + 0x18], 0x40000
mov dword [rbx + 0x20], 0x40000
mov eax, dword [rbp + 0x60]
mov dword [rbx + 0x24], eax
lea rax, [rsp + 0x68]
mov dword [rsp + 0x38], 0x34
mov dword [rbx + 0x28], 0x80002
mov qword [rbx + 0x2c], r14
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x32c000
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
nop dword [rax + rax]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400153d6
call qword [sym.imp.ntdll.dll_NtClose]
nop dword [rax + rax]
test rbx, rbx
je 0x1400153f9
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov rcx, qword [0x140025a50]
test rcx, rcx
je 0x140015443
cmp dword [rbp + 0x60], r15d
jne 0x14001541a
xor r9d, r9d
lea rdx, [0x140019078]
xor r8d, r8d
jmp 0x140015437
lea rax, [rbp + 0x60]
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x58], rax
lea r9, [rbp - 0x58]
mov r8d, 1
lea rdx, [0x140019128]
call qword [sym.imp.ntdll.dll_EtwEventWrite]
nop dword [rax + rax]
test rdi, rdi
je 0x1400154aa
cmp dword [0x140024018], 5
jbe 0x1400154f3
mov eax, dword [rbp + 0x60]
lea rdx, [0x14001f8d7]
mov dword [rsp + 0x50], eax
lea rax, [rsp + 0x50]
mov qword [rbp - 0x20], rax
lea rax, [rsp + 0x60]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x18]
mov qword [rbp], rax
mov rax, qword [rdi + 8]
mov qword [rbp + 0x10], rax
movzx eax, word [rdi]
mov dword [rbp + 0x18], eax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 6
mov qword [rbp + 8], 2
mov dword [rbp + 0x1c], r15d
jmp 0x1400154e1
cmp dword [0x140024018], 5
jbe 0x1400154f3
mov eax, dword [rbp + 0x60]
lea rdx, [0x14001f8a6]
mov dword [rsp + 0x50], eax
lea rax, [rsp + 0x50]
mov qword [rbp - 0x20], rax
lea rax, [rsp + 0x60]
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
mov qword [rbp - 0x18], r12
mov qword [rsp + 0x60], rsi
mov qword [rbp - 8], r13
call fcn.140001008
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.14000e710
lea r11, [rsp + 0x130]
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