Function at 0x20009630
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, dword [edi]
push esi
push eax
push ecx
push 5
xor ebx, ebx
push 0x20002f18
mov byte [ebp - 1], bl
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
call fcn.20009785
test al, al
jne 0x200098a3
push esi
push dword [ebp + 0x10]
push dword [ebp - 8]
push 5
push 0x20002f54
call fcn.20009785
test al, al
je 0x2000a137
test dword [ebp + 0x18], 0xffffffea
jne 0x2000a214
cmp dword [ebp + 0x14], 2
je 0x2000a214
mov eax, dword [0x20002f54]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [0x20002f58]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [0x20002f5c]
push 0x20009768
mov esi, dword [ebp + 0x1c]
push esi
mov dword [edi], eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push 0x68
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
cmp eax, ebx
je 0x2000a7e0
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [eax + 4], edx
mov edx, dword [edi]
mov dword [eax + 8], edx
mov edx, dword [ebp + 0x18]
mov dword [eax + 0x10], edx
xor esi, esi
inc esi
mov dword [eax + 0xc], 0x2000
mov dword [eax + 0x14], esi
mov dword [eax + 0x18], ebx
mov byte [eax + 0x31], 1
mov byte [eax + 0x32], bl
mov byte [eax + 0x33], bl
mov byte [eax + 0x34], bl
mov byte [eax + 0x35], 1
mov byte [eax + 0x3e], bl
mov byte [eax + 0x3c], 0x20
mov byte [eax + 0x3d], bl
mov byte [eax + 0x3f], bl
mov byte [eax + 0x36], bl
mov byte [eax + 0x37], bl
mov byte [eax + 0x38], 1
mov byte [eax + 0x39], bl
mov dword [eax + 0x1c], ebx
mov byte [eax + 0x30], bl
mov byte [eax + 0x3a], bl
mov byte [eax + 0x3b], bl
xor edx, edx
cmp dword [ecx], esi
mov ecx, dword [ebp + 0x24]
setne dl
add edx, 0x184
mov dword [ecx], edx
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x20
test dword [ebp + 0x18], 0xfffffffe
jne 0x2000a214
mov eax, dword [0x20002f18]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [0x20002f1c]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [0x20002f20]
push 0x200098d4
jmp 0x200096bc
push esi
push dword [ebp + 0x10]
push dword [ebp - 8]
push 1
push 0x20002f90
call fcn.20009785
test al, al
je 0x2000a214
cmp esi, ebx
jl 0x2000a214
cmp esi, 0xff
jg 0x2000a214
push 0x2000a220
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov esi, dword [ebp + 0x1c]
push ebx
push esi
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov eax, dword [ebp - 0xc]
add eax, 0xa
mov word [esi + 2], ax
mov eax, dword fs:[0x18]
movzx ecx, word [esi + 2]
mov eax, dword [eax + 0x30]
push ecx
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
cmp eax, ebx
mov dword [esi + 4], eax
je 0x2000a7fe
lea eax, [ebp - 0xc]
push eax
push esi
mov byte [ebp - 1], 1
call dword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
movzx eax, word [esi]
mov ecx, dword [esi + 4]
shr eax, 1
mov word [ecx + eax*2], 0x5c
add word [esi], 2
movzx eax, word [esi]
mov ecx, dword [esi + 4]
shr eax, 1
mov word [ecx + eax*2], bx
mov ax, word [esi]
mov edx, dword [esi + 4]
movzx ecx, ax
shr ecx, 1
lea ecx, [edx + ecx*2]
mov dword [ebp - 8], ecx
mov cx, word [esi + 2]
sub cx, ax
lea eax, [ebp - 0xc]
push eax
push 0xa
push dword [edi]
mov word [ebp - 0xc], bx
mov word [ebp - 0xa], cx
call dword [sym.imp.ntdll.dll_RtlIntegerToUnicodeString]
mov ax, word [ebp - 0xc]
add word [esi], ax
jmp 0x200096c8
mov eax, 0x2726
jmp 0x2000975f
cmp byte [ebp - 1], bl
je 0x2000a7fb
mov eax, dword fs:[0x18]
push dword [esi + 4]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov dword [esi + 4], ebx
mov eax, 0x2747
jmp 0x2000975f