Function at 0x180022be4
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor r13d, r13d
mov rbx, rcx
mov qword [rbp - 0x10], r13
mov edi, r13d
mov qword [rbp + 0x50], r13
mov qword [rbp - 8], r13
mov qword [rbp + 0x58], r13
call fcn.18000f960
test eax, eax
jns 0x180022c41
cmp dword [rbx], 8
jne 0x180022cc4
xor eax, eax
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
cmp dword [rbx], 8
jne 0x1800353fd
mov r12, qword [rbx + 0xb8]
mov eax, dword [rbx]
mov rcx, rbx
sub eax, 8
neg eax
sbb edx, edx
add edx, 3
call fcn.18000fac0
cmp eax, 0x105
je 0x180022c51
cmp eax, 0x8000001a
jne 0x180022c28
mov r15d, dword [rbx + 0xb0]
mov r14b, r13b
sub r15d, r12d
cmp dword [rbx], 8
jne 0x180022d04
mov rsi, r13
mov r9, rsi
mov dword [rsp + 0x20], edi
mov r8d, r15d
mov rdx, r12
mov rcx, rbx
call fcn.180023210
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov ebx, eax
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov eax, ebx
jmp 0x180022c28
mov rax, qword [rbx + 0x10]
mov rcx, rbx
mov r12, qword [rbx + 0xc0]
cmp byte [rax + 0x31], r13b
je 0x1800353de
lea r8, [rbp + 0x50]
xor edx, edx
call fcn.180011d50
test al, al
je 0x180035426
mov rax, qword [rbp + 0x50]
movzx edi, word [rax]
add edi, 8
mov r14b, 1
mov r15d, r13d
jmp 0x180022c80
mov rax, qword [rbx + 0x10]
lea r9, [rbp + 0x48]
mov rcx, rbx
cmp byte [rax + 0x31], r13b
je 0x180035409
lea r8, [rbp + 0x58]
xor edx, edx
call fcn.180023368
test al, al
je 0x180035426
mov eax, dword [rbp + 0x48]
mov rcx, qword [rbp + 0x58]
add eax, 0xfffffffe
add edi, eax
jmp 0x180022d49
movzx eax, word [rcx]
lea rcx, [rcx + 2]
test ax, ax
jne 0x180022d3a
add edi, 2
cmp word [rcx], r13w
jne 0x180022d3a
call qword [sym.imp.KERNELBASE.dll_KernelBaseGetGlobalData]
nop dword [rax + rax]
mov rcx, qword gs:[0x60]
mov r8d, edi
add r8, 2
mov edx, dword [rax]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rsi, rax
test rax, rax
je 0x180035445
mov rax, qword [rbx + 0x10]
mov rcx, rsi
mov r11d, 0xa
cmp byte [rax + 0x31], r13b
je 0x18003544f
test r14b, r14b
je 0x180022de2
lea eax, [r11 + 0x51]
mov word [rsi], ax
lea rcx, [rsi + 2]
mov rax, qword [rbp + 0x50]
movzx edx, word [rax]
shr edx, 1
mov r8, qword [rax + 8]
je 0x180022dd3
movzx eax, word [r8]
lea r8, [r8 + 2]
mov word [rcx], ax
add rcx, 2
add edx, 0xffffffff
jne 0x180022dbf
mov dword [rcx], 0xd005d
mov word [rcx + 4], r11w
add rcx, 6
mov rdx, qword [rbp + 0x58]
jmp 0x180022df2
mov dword [rcx], 0xa000d
add rcx, 4
movzx eax, word [rdx]
test ax, ax
je 0x180022c88
add rdx, 2
mov word [rcx], ax
test ax, ax
je 0x180022de8
movzx eax, word [rdx]
add rcx, 2
jmp 0x180022dfe
xor r8d, r8d
lea rdx, [rbp - 0x10]
call fcn.180011d50
test al, al
je 0x180035426
mov rax, qword [rbp - 0x10]
movzx edi, word [rax]
add edi, 4
jmp 0x180022cf9
mov r12, qword [rbx + 0xb0]
jmp 0x180022c51
xor r8d, r8d
lea rdx, [rbp - 8]
call fcn.180023368
test al, al
je 0x180035426
mov eax, dword [rbp + 0x48]
mov rcx, qword [rbp - 8]
dec eax
add edi, eax
jmp 0x18003543b
mov eax, 0xc000000d
jmp 0x180022c28
mov al, byte [rcx]
inc rcx
test al, al
jne 0x180035430
inc edi
cmp byte [rcx], r13b
jne 0x180035430
jmp 0x180022d4f
mov eax, 0xc0000017
jmp 0x180022c28
test r14b, r14b
je 0x18003548b
mov eax, 0x5b
lea rcx, [rsi + 1]
mov byte [rsi], al
mov rax, qword [rbp - 0x10]
movzx edx, word [rax]
mov r8, qword [rax + 8]
test edx, edx
je 0x18003547e
mov al, byte [r8]
inc r8
mov byte [rcx], al
inc rcx
add edx, 0xffffffff
jne 0x18003546e
mov word [rcx], 0xd5d
mov byte [rcx + 2], r11b
add rcx, 3
mov r9, qword [rbp - 8]
jmp 0x1800354a9
mov al, byte [r9]
inc rcx
inc r9
mov byte [rcx], al
test al, al
jne 0x180035491
mov word [rcx], 0xa0d
add rcx, 2
mov al, byte [r9]
test al, al
jne 0x180035497
jmp 0x180022c88