Function at 0x180068d10
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
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov rax, qword [0x1801724e0]
xor rax, rsp
mov qword [rbp + 0x360], rax
mov r14, qword [rbp + 0x3d0]
xor r12d, r12d
mov r13, r9
mov r9d, r8d
mov r11, rdx
mov edi, ecx
test rdx, rdx
je 0x1800bc5bb
test r14, r14
je 0x1800bc5bb
cmp dword [r14], r12d
jl 0x1800bc5bb
cmp r8d, 0xffffffff
jl 0x1800bc5bb
cmp dword [r14], r12d
jle 0x180068d88
test r13, r13
je 0x1800bc5bb
test edi, 0xfffffff0
jne 0x1800bc5bb
cmp r8d, 0xffffffff
je 0x180068ea0
lea edx, [r9 - 1]
mov dword [rsp + 0x44], 0x1ff
movsxd rax, edx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
mov r8d, edi
shr r8d, 1
lea rcx, [rsp + 0x41]
and r8b, 1
mov qword [rsp + 0x30], rcx
movzx esi, word [r11 + rax*2]
mov r15d, edi
mov byte [rsp + 0x28], r8b
and r15d, 4
lea r8, [rsp + 0x60]
mov rcx, r11
setne al
test si, si
mov byte [rsp + 0x20], al
cmovne edx, r9d
lea r9, [rsp + 0x44]
call fcn.180068ed0
test eax, eax
js 0x180068e45
test si, si
je 0x180068e6f
mov ebx, dword [rsp + 0x44]
test dil, 8
jne 0x180068e1a
cmp byte [rsp + 0x41], r12b
je 0x1800bc475
test r13, r13
je 0x180068e40
cmp dword [r14], r12d
je 0x180068e40
cmp ebx, dword [r14]
jg 0x1800bc5b1
movsxd r8, ebx
lea rdx, [rsp + 0x60]
add r8, r8
mov rcx, r13
call sym.ntdll.dll_RtlCopyMemory
mov dword [r14], ebx
xor eax, eax
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.18008b0e0
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x470
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
movsxd rbx, dword [rsp + 0x44]
mov rax, rbx
cmp rbx, 0x1ff
jae 0x1800bc46b
inc ebx
add rax, rax
mov dword [rsp + 0x44], ebx
cmp rax, 0x3fe
jae 0x180068ec7
mov word [rsp + rax + 0x60], r12w
jmp 0x180068e09
lea r8, [rsp + 0x48]
mov edx, 0x203
mov rcx, r11
call fcn.180035d8c
test eax, eax
js 0x1800bc46b
mov r9d, dword [rsp + 0x48]
inc r9d
jmp 0x180068d9e
call fcn.18008b268
int3
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call sym.ntdll.dll_RtlFreeHeap
mov eax, 0xc0000716
jmp 0x180068e45
mov r12, qword [rsp + 0x50]
xor edx, edx
test r15d, r15d
je 0x1800bc4af
lea rcx, [rsp + 0x60]
mov r8, r12
sub r8, rcx
lea r9, [rsp + 0x40]
sar r8, 1
lea rdx, [rsp + 0x60]
mov ecx, 1
call sym.ntdll.dll_RtlIsNormalizedString
xor edx, edx
test eax, eax
js 0x1800bc46b
cmp byte [rsp + 0x40], dl
je 0x1800bc46b
lea rax, [rsp + 0x60]
mov ecx, edx
mov r8, r12
sub r8, rax
mov eax, ebx
sar r8, 1
test si, si
sete cl
sub eax, ecx
cdqe
cmp r8, rax
jge 0x1800bc5a9
mov rcx, qword gs:[0x60]
neg si
mov edx, 8
sbb eax, eax
add eax, 2
mov rcx, qword [rcx + 0x30]
sub ebx, eax
sub ebx, r8d
movsxd r15, ebx
mov r8, r15
call sym.ntdll.dll_RtlAllocateHeap
mov rsi, rax
xor eax, eax
test rsi, rsi
jne 0x1800bc512
mov eax, 0xc0000017
jmp 0x180068e45
test ebx, ebx
jle 0x1800bc53e
mov rcx, rax
movzx edx, word [r12 + rcx*2 + 2]
lea eax, [rdx - 0x41]
cmp ax, 0x19
ja 0x1800bc536
add dx, 0x20
mov word [r12 + rcx*2 + 2], dx
mov byte [rcx + rsi], 1
inc rcx
cmp rcx, r15
jl 0x1800bc519
not edi
lea r9, [rsp + 0x40]
and edi, 1
lea rdx, [r12 + 2]
shl edi, 8
mov r8d, ebx
lea ecx, [rdi + 0xd]
call sym.ntdll.dll_RtlIsNormalizedString
xor ecx, ecx
test eax, eax
js 0x1800bc454
cmp byte [rsp + 0x40], cl
je 0x1800bc454
test ebx, ebx
jle 0x1800bc58e
mov eax, ecx
cmp byte [rax + rsi], 1
jne 0x1800bc586
mov ecx, 0xffe0
add word [r12 + rax*2 + 2], cx
inc rax
cmp rax, r15
jl 0x1800bc575
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call sym.ntdll.dll_RtlFreeHeap
mov ebx, dword [rsp + 0x44]
xor r12d, r12d
jmp 0x180068e1a
mov eax, 0xc0000023
jmp 0x180068e45
mov eax, 0xc000000d
jmp 0x180068e45