Function at 0x18006f31c
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rdi, qword [rbp + 0xb0]
xor r14d, r14d
mov qword [rsp + 0x60], r14
mov esi, r9d
mov qword [rsp + 0x50], r14
mov r15d, r8d
mov qword [rsp + 0x58], r14
mov r13, rcx
mov dword [rbp + 0xa0], 7
mov r12d, r14d
mov dword [rbp + 0x90], r14d
mov qword [rsp + 0x40], r14
mov byte [rbp + 0x98], r14b
test rcx, rcx
je 0x1800be4f9
test rdi, rdi
je 0x1800be4f9
cmp qword [rbp + 0xb8], r14
je 0x1800be4f9
mov byte [rdi], r14b
cmp r8d, 1
ja 0x1800be472
lea rdx, str.RegistryMachineSoftwarePoliciesMicrosoftMUISettings
lea rcx, [rsp + 0x70]
call sym.ntdll.dll_RtlInitUnicodeString
lea rax, [rsp + 0x70]
mov qword [rsp + 0x58], r14
xorps xmm0, xmm0
mov qword [rbp - 0x60], rax
lea r8, [rbp - 0x70]
mov dword [rbp - 0x70], 0x30
mov edx, 0x20019
mov qword [rbp - 0x68], r14
lea rcx, [rsp + 0x58]
mov dword [rbp - 0x58], 0x40
movdqu xmmword [rbp - 0x50], xmm0
call sym.ntdll.dll_NtOpenKey
test eax, eax
jns 0x1800be47c
mov ecx, r14d
mov qword [rsp + 0x58], rcx
cmp r15d, 1
jne 0x18006f415
test rcx, rcx
jne 0x1800be4a9
lea rax, [rsp + 0x60]
xor edx, edx
mov ecx, 0x2000000
mov qword [rsp + 0x20], rax
call fcn.18006f938
mov ebx, eax
test eax, eax
js 0x18006f7e7
cmp r15d, 1
jne 0x18006f457
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x40]
mov rdx, r13
call sym.ntdll.dll_RtlpLoadUserUIByPolicy
mov ebx, eax
test eax, eax
je 0x1800be4cd
mov qword [rsp + 0x50], r14
lea rcx, [rsp + 0x70]
cmp r15d, 1
jne 0x18006f5bb
lea rdx, str.Control_PanelDesktop
call sym.ntdll.dll_RtlInitUnicodeString
mov rax, qword [rsp + 0x60]
lea r8, [rbp - 0x40]
mov qword [rbp - 0x38], rax
lea rcx, [rsp + 0x50]
lea rax, [rsp + 0x70]
mov dword [rbp - 0x40], 0x30
xorps xmm0, xmm0
mov qword [rbp - 0x30], rax
mov edx, 0x20019
mov dword [rbp - 0x28], 0x40
movdqu xmmword [rbp - 0x20], xmm0
call sym.ntdll.dll_NtOpenKey
mov ebx, eax
test eax, eax
js 0x18006f7e7
cmp esi, 3
lea rax, str.PreferredUILanguagesPending
lea rdx, str.PreferredUILanguages
cmovne rdx, rax
lea rcx, [rsp + 0x70]
call sym.ntdll.dll_RtlInitUnicodeString
mov rcx, qword [rsp + 0x50]
lea rax, [rbp + 0x90]
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0xa0]
lea rdx, [rsp + 0x70]
call fcn.18006f7ec
mov ebx, 0xc0000034
mov ecx, eax
cmp eax, ebx
jne 0x18006f706
mov ebx, r14d
mov byte [rdi], 1
xor esi, esi
mov r14d, 0xc0000017
test r15d, r15d
je 0x18006f616
cmp qword [rsp + 0x40], rsi
jne 0x18006f54d
cmp r15d, 1
mov r8, r13
mov ecx, 1
setne dl
call fcn.180032bdc
test rax, rax
mov qword [rsp + 0x40], rax
cmove ebx, r14d
xor r14d, r14d
mov rcx, qword [rbp + 0xb8]
mov rax, qword [rsp + 0x40]
mov qword [rcx], rax
test r12, r12
jne 0x18006f7cb
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18006f57c
call sym.ntdll.dll_NtClose
mov qword [rsp + 0x50], r14
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x18006f590
call fcn.18006f918
mov qword [rsp + 0x60], r14
mov rcx, qword [rsp + 0x58]
test rcx, rcx
jne 0x1800be5f0
mov eax, ebx
mov rbx, qword [rsp + 0x1a8]
add rsp, 0x150
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.Control_PanelDesktopMuiCached
call sym.ntdll.dll_RtlInitUnicodeString
mov rax, qword [rsp + 0x60]
lea r8, [rbp - 0x10]
mov qword [rbp - 8], rax
lea rcx, [rsp + 0x50]
lea rax, [rsp + 0x70]
mov dword [rbp - 0x10], 0x30
xorps xmm0, xmm0
mov qword [rbp], rax
mov edx, 0x20019
mov dword [rbp + 8], 0x40
movdqu xmmword [rbp + 0x10], xmm0
call sym.ntdll.dll_NtOpenKey
test eax, eax
js 0x18006f50f
lea rdx, str.MachinePreferredUILanguages
jmp 0x18006f4d1
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x18006f62a
cmp word [rax + 4], si
jne 0x18006f526
xor ebx, ebx
mov dword [rsp + 0x48], 7
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x4c], ebx
test r13, r13
je 0x1800be5c9
test rdi, rdi
je 0x1800be5c9
lea rdx, str.RegistryMachineSystemCurrentControlSetControlMUISettings
lea rcx, [rbp - 0x80]
call sym.ntdll.dll_RtlInitUnicodeString
lea rax, [rbp - 0x80]
mov qword [rsp + 0x68], rbx
xorps xmm0, xmm0
mov qword [rbp + 0x30], rax
lea r8, [rbp + 0x20]
mov dword [rbp + 0x20], 0x30
mov edx, 0x20019
mov qword [rbp + 0x28], rbx
lea rcx, [rsp + 0x68]
mov dword [rbp + 0x38], 0x40
movdqu xmmword [rbp + 0x40], xmm0
call sym.ntdll.dll_NtOpenKey
test eax, eax
js 0x18006f6dc
lea rdx, str.PreferredUILanguages
lea rcx, [rbp - 0x80]
call sym.ntdll.dll_RtlInitUnicodeString
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x4c]
xor r9d, r9d
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x80]
call fcn.18006f7ec
mov edx, 0xc0000034
mov ecx, eax
cmp eax, edx
jne 0x1800be503
mov byte [rdi], 1
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x18006f6ee
call sym.ntdll.dll_NtClose
test rsi, rsi
jne 0x1800be5d3
xor esi, esi
test ebx, ebx
je 0x18006f526
jmp 0x18006f54d
mov eax, dword [rbp + 0x90]
test eax, eax
je 0x18006f50f
cmp ecx, 0x80000005
jne 0x18006f568
mov rcx, qword gs:[0x60]
lea r8d, [rax + 2]
mov esi, 8
mov edx, esi
mov rcx, qword [rcx + 0x30]
call sym.ntdll.dll_RtlAllocateHeap
mov r12, rax
test rax, rax
je 0x1800be4dd
mov rcx, qword [rsp + 0x50]
lea rax, [rbp + 0x90]
mov r9, r12
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0xa0]
lea rdx, [rsp + 0x70]
call fcn.18006f7ec
mov ebx, eax
test eax, eax
js 0x18006f7be
cmp dword [rbp + 0xa0], 7
jne 0x1800be4e7
mov r8d, dword [rbp + 0x90]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rcx
mov eax, r14d
cmp r15d, 1
mov dword [rsp + 0x28], 1
mov r9d, esi
mov rdx, r12
setne al
mov rcx, r13
add eax, 2
shr r8d, 1
mov dword [rsp + 0x20], eax
call fcn.180035e90
mov ebx, eax
test ebx, ebx
je 0x18006f515
jmp 0x18006f55f
mov rcx, qword gs:[0x60]
mov r8, r12
xor edx, edx
mov rcx, qword [rcx + 0x30]
call sym.ntdll.dll_RtlFreeHeap
jmp 0x18006f568
mov byte [rdi], 1
jmp 0x18006f7be
mov ebx, 0xc000000d
jmp 0x18006f59e
mov rcx, qword [rsp + 0x58]
lea r8, [rsp + 0x40]
mov rdx, r13
call sym.ntdll.dll_RtlpLoadMachineUIByPolicy
mov ebx, eax
test eax, eax
jne 0x1800be49f
cmp qword [rsp + 0x40], r14
jne 0x18006f515
mov rcx, qword [rsp + 0x58]
jmp 0x18006f406
lea rdx, [rbp + 0x98]
call fcn.1800f81a0
test eax, eax
js 0x18006f415
cmp byte [rbp + 0x98], 1
cmove r15d, r14d
jmp 0x18006f415
cmp qword [rsp + 0x40], r14
jne 0x18006f550
jmp 0x18006f457
mov ebx, 0xc0000017
jmp 0x18006f568
cmp dword [rbp + 0xa0], 1
jne 0x18006f50f
jmp 0x18006f781
mov ebx, 0xc000000d
jmp 0x18006f7be
mov eax, dword [rsp + 0x4c]
test eax, eax
je 0x18006f6dc
cmp ecx, 0x80000005
jne 0x1800be5c2
mov rcx, qword gs:[0x60]
lea r8d, [rax + 2]
mov edx, 8
mov rcx, qword [rcx + 0x30]
call sym.ntdll.dll_RtlAllocateHeap
mov rsi, rax
test rax, rax
jne 0x1800be546
mov ebx, r14d
jmp 0x18006f6df
mov rcx, qword [rsp + 0x68]
lea rax, [rsp + 0x4c]
mov r9, rsi
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x48]
lea rdx, [rbp - 0x80]
call fcn.18006f7ec
mov ebx, eax
test eax, eax
js 0x18006f6df
cmp dword [rsp + 0x48], 7
je 0x1800be585
cmp dword [rsp + 0x48], 1
je 0x1800be585
xor ebx, ebx
jmp 0x18006f6dc
mov r8d, dword [rsp + 0x4c]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov r9d, 8
mov dword [rsp + 0x28], 1
mov rdx, rsi
shr r8d, 1
mov rcx, r13
mov dword [rsp + 0x20], 3
mov byte [rdi], 0
call fcn.180035e90
mov ebx, eax
jmp 0x18006f6df
mov ebx, edx
jmp 0x18006f6df
mov ebx, 0xc000000d
jmp 0x18006f6df
mov rcx, qword gs:[0x60]
mov r8, rsi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call sym.ntdll.dll_RtlFreeHeap
nop
jmp 0x18006f6f7
call sym.ntdll.dll_NtClose
nop
jmp 0x18006f59e