Function at 0x140008f20
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x30
mov r15d, 1
mov ebp, r9d
mov r14, r8
mov rsi, rdx
mov rdi, rcx
test r15b, r9b
je 0x140008f84
mov rbx, qword [rcx]
cmp rbx, rcx
je 0x140008f84
lea rcx, [rbx + 0x10]
movzx r8d, r15b
mov rdx, rsi
call qword [sym.imp.ntdll.dll_RtlCompareUnicodeString]
nop dword [rax + rax]
test eax, eax
je 0x140009083
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x140008f5d
mov rcx, qword gs:[0x60]
movzx r8d, word [rsi + 2]
mov edx, dword [0x140025a48]
add r8, 0x38
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x14001016a
mov qword [rax + 8], rax
lea rcx, [rax + 0x38]
mov qword [rax + 0x18], rcx
xor r12d, r12d
mov qword [rax], rax
movzx eax, word [rsi]
mov word [rbx + 0x10], ax
movzx eax, word [rsi + 2]
mov word [rbx + 0x12], ax
mov qword [rbx + 0x30], r12
movzx r8d, word [rsi + 2]
mov rdx, qword [rsi + 8]
call sub.ntdll.dll_memcpy
mov qword [rbx + 0x28], r12
test r14, r14
je 0x1400090d7
mov rcx, qword gs:[0x60]
movzx r8d, word [r14 + 2]
mov edx, dword [0x140025a48]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rbx + 0x28], rax
mov rcx, rax
test rax, rax
je 0x1400100fe
movzx eax, word [r14]
mov word [rbx + 0x20], ax
movzx eax, word [r14 + 2]
mov word [rbx + 0x22], ax
movzx r8d, word [r14 + 2]
mov rdx, qword [r14 + 8]
call sub.ntdll.dll_memcpy
test bpl, 2
jne 0x140010117
test r15d, r15d
je 0x140009075
mov rax, qword [rdi + 8]
cmp qword [rax], rdi
jne 0x140010110
mov qword [rbx], rdi
mov qword [rbx + 8], rax
mov qword [rax], rbx
mov qword [rdi + 8], rbx
mov rax, qword [rsp + 0x70]
test rax, rax
jne 0x1400090f5
xor eax, eax
jmp 0x1400090b7
cmp qword [rbx + 0x28], 0
je 0x1400090ee
test r14, r14
je 0x1400100a2
lea rcx, [rbx + 0x20]
movzx r8d, r15b
mov rdx, r14
call qword [sym.imp.ntdll.dll_RtlCompareUnicodeString]
nop dword [rax + rax]
test eax, eax
jne 0x1400100a2
mov eax, 0x40000000
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
lea rcx, [rbx + 0x20]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
jmp 0x140009055
test r14, r14
je 0x1400090b2
jmp 0x140009093
mov qword [rax], rbx
jmp 0x14000907f
mov r8, qword [rbx + 0x28]
xor r12d, r12d
mov r15d, r12d
test r8, r8
je 0x140008fef
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 r8, qword [rbx + 0x30]
test r8, r8
je 0x140008fef
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
nop
jmp 0x140008fef
mov rax, qword [rbx]
cmp qword [rax + 8], rbx
jne 0x140010110
mov rcx, qword [rbx + 8]
cmp qword [rcx], rbx
je 0x14001015b
mov ecx, 3
int 0x29
mov rcx, qword gs:[0x60]
movzx r8d, word [r14]
mov edx, dword [0x140025a48]
shr r8, 1
mov rcx, qword [rcx + 0x30]
inc r8
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x140010174
mov rax, qword [rbx]
cmp qword [rax + 8], rbx
jne 0x140010110
mov rcx, qword [rbx + 8]
cmp qword [rcx], rbx
jne 0x140010110
mov qword [rcx], rax
mov qword [rax + 8], rcx
mov rcx, rbx
call fcn.140009300
mov eax, 0xc0000017
jmp 0x1400090b7
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x20]
movzx eax, word [r14]
xor r8d, r8d
shr ax, 1
mov rdx, r14
inc ax
mov word [rsp + 0x20], r12w
mov word [rsp + 0x22], ax
call qword [sym.imp.ntdll.dll_RtlUnicodeStringToAnsiString]
nop dword [rax + rax]
nop
jmp 0x140009055