Function at 0x180022e1c
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
xor r13d, r13d
mov rbx, rcx
mov qword [rbp - 0x18], r13
mov r12d, r13d
mov qword [rbp - 0x10], r13
mov edi, r13d
mov qword [rbp + 0x50], r13
mov qword [rbp + 0x58], r13
mov qword [rbp - 8], r13
mov qword [rbp - 0x20], r13
call fcn.18000f960
mov esi, eax
test eax, eax
js 0x18002305a
mov rcx, rbx
mov r14b, r13b
call fcn.18000f478
mov esi, eax
test esi, esi
jns 0x180023013
cmp dword [rbx], 3
je 0x1800354b6
test r14b, r14b
jne 0x180022e95
mov r12, qword [rbx + 0xb0]
mov rax, qword [rbx + 0x10]
mov rcx, rbx
cmp byte [rax + 0x31], r13b
je 0x1800231b8
lea r8, [rbp + 0x58]
xor edx, edx
call fcn.18000ff6c
test al, al
je 0x1800231fe
mov rax, qword [rbp + 0x58]
movzx ecx, word [rax]
add ecx, 6
add edi, ecx
mov r15b, 1
mov rcx, qword [rbx + 0x10]
cmp byte [rcx + 0x31], r13b
lea r9, [rbp + 0x48]
mov rcx, rbx
je 0x1800231d7
lea r8, [rbp - 0x20]
xor edx, edx
call fcn.180023368
test al, al
je 0x1800231fe
mov eax, dword [rbp + 0x48]
add eax, 0xfffffffe
mov dword [rbp + 0x48], eax
mov ecx, eax
test edi, edi
je 0x180023039
lea r13d, [rcx + rdi]
call qword [sym.imp.KERNELBASE.dll_KernelBaseGetGlobalData]
nop dword [rax + rax]
mov rcx, qword gs:[0x60]
mov r8d, r13d
add r8, 2
mov edx, dword [rax]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
je 0x1800354fa
mov rax, qword [rbx + 0x10]
or r9d, 0xffffffff
mov rcx, rdi
mov esi, 0xa
cmp byte [rax + 0x31], 0
je 0x1800230fe
test r14b, r14b
jne 0x1800230bc
test r15b, r15b
je 0x180022f98
mov rax, qword [rbp + 0x58]
movzx edx, word [rax]
shr edx, 1
mov r8, qword [rax + 8]
je 0x180022f8c
movzx eax, word [r8]
lea r8, [r8 + 2]
mov word [rcx], ax
add rcx, 2
add edx, r9d
jne 0x180022f78
mov eax, 0x3d
mov word [rcx], ax
add rcx, 2
mov edx, dword [rbp + 0x48]
shr edx, 1
je 0x180022fb7
mov r8, qword [rbp - 0x20]
sub r8, rcx
movzx eax, word [r8 + rcx]
mov word [rcx], ax
add rcx, 2
add edx, r9d
jne 0x180022fa6
test r15b, r15b
je 0x180022fc2
mov dword [rcx], 0xa000d
mov r9, rdi
mov dword [rsp + 0x20], r13d
xor r8d, r8d
mov rdx, r12
mov rcx, rbx
call fcn.180023210
mov rcx, qword gs:[0x60]
mov r8, rdi
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
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rbx + 0x10]
cmp byte [rcx + 0x31], r13b
je 0x1800354bd
cmp dword [rbx], 3
je 0x1800230a0
mov rax, qword [rbx + 0x150]
mov r12, qword [rax + 8]
mov r15b, r13b
jmp 0x180022ecc
mov rdx, qword [rbx + 0x150]
mov r9, qword [rbp - 0x20]
mov dword [rsp + 0x20], eax
movzx r8d, word [rdx]
mov rdx, qword [rdx + 8]
mov rcx, rbx
call fcn.180023210
jmp 0x180022ffa
cmp dword [rbx], 3
je 0x1800354b6
mov rcx, qword [rbx + 0x10]
mov r12, qword [rbx + 0xc0]
cmp byte [rcx + 0x31], r13b
mov rcx, rbx
je 0x180023199
lea r8, [rbp + 0x50]
xor edx, edx
call fcn.180011d50
test al, al
je 0x1800231fe
mov rax, qword [rbp + 0x50]
movzx edi, word [rax]
add edi, 8
mov r14b, 1
jmp 0x180022e78
mov rcx, rbx
call fcn.180023458
mov rdx, qword [rbx + 0x148]
mov dword [rsp + 0x20], r13d
xor r9d, r9d
mov r8d, eax
jmp 0x18002304c
mov eax, 0x5b
lea rcx, [rdi + 2]
mov word [rdi], ax
mov rax, qword [rbp + 0x50]
movzx edx, word [rax]
shr edx, 1
mov r8, qword [rax + 8]
je 0x1800230eb
movzx eax, word [r8]
lea r8, [r8 + 2]
mov word [rcx], ax
add rcx, 2
add edx, r9d
jne 0x1800230d7
mov dword [rcx], 0xd005d
mov word [rcx + 4], si
add rcx, 6
jmp 0x180022f64
test r14b, r14b
je 0x18002313a
mov eax, 0x5b
lea rcx, [rdi + 1]
mov byte [rdi], al
mov rax, qword [rbp - 0x18]
movzx edx, word [rax]
mov r8, qword [rax + 8]
test edx, edx
je 0x18002312d
mov al, byte [r8]
inc r8
mov byte [rcx], al
inc rcx
add edx, r9d
jne 0x18002311d
mov word [rcx], 0xd5d
mov byte [rcx + 2], sil
add rcx, 3
test r15b, r15b
je 0x180023168
mov rax, qword [rbp - 0x10]
movzx edx, word [rax]
mov r8, qword [rax + 8]
test edx, edx
je 0x18002315e
mov al, byte [r8]
inc r8
mov byte [rcx], al
inc rcx
add edx, r9d
jne 0x18002314e
mov eax, 0x3d
mov byte [rcx], al
inc rcx
mov r8d, dword [rbp + 0x48]
test r8d, r8d
je 0x180023186
mov r10, qword [rbp - 8]
sub r10, rcx
mov al, byte [r10 + rcx]
mov byte [rcx], al
inc rcx
add r8d, r9d
jne 0x180023178
test r15b, r15b
je 0x180022fc2
mov word [rcx], 0xa0d
jmp 0x180022fc2
xor r8d, r8d
lea rdx, [rbp - 0x18]
call fcn.180011d50
test al, al
je 0x1800231fe
mov rax, qword [rbp - 0x18]
movzx edi, word [rax]
add edi, 4
jmp 0x180023098
xor r8d, r8d
lea rdx, [rbp - 0x10]
call fcn.18000ff6c
test al, al
je 0x1800231fe
mov rax, qword [rbp - 0x10]
movzx ecx, word [rax]
add ecx, 3
jmp 0x180022ec3
xor r8d, r8d
lea rdx, [rbp - 8]
call fcn.180023368
test al, al
je 0x1800231fe
mov eax, dword [rbp + 0x48]
dec eax
mov dword [rbp + 0x48], eax
mov ecx, eax
test edi, edi
jne 0x180022f03
jmp 0x1800354e2
mov eax, 0xc000000d
jmp 0x180022ffa
xor eax, eax
jmp 0x180022ffa
cmp dword [rbx], 3
jne 0x1800354d6
mov rcx, rbx
call fcn.180023458
mov rdx, qword [rbx + 0x100]
jmp 0x1800230af
mov rax, qword [rbx + 0x108]
jmp 0x18002302d
mov rdx, qword [rbx + 0x108]
mov r9, qword [rbp - 8]
mov dword [rsp + 0x20], eax
movzx r8d, word [rdx]
jmp 0x18002304c
mov eax, 0xc0000017
jmp 0x180022ffa