Function at 0x180009540
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r13
push rbp
push r14
push r15
lea rbp, [rax - 0x1b8]
sub rsp, 0x2a0
mov rax, qword [0x1800b2220]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rax, qword gs:[0x60]
xorps xmm0, xmm0
mov r15, qword [0x1800b2d98]
xor r13d, r13d
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x68], xmm0
cmp byte [rax + 2], r13b
jne 0x18002de06
mov rcx, qword [0x1800b2d88]
lea rdx, [0x180085468]
call qword [sym.imp.ntdll.dll_EtwEventEnabled]
nop dword [rax + rax]
test al, al
jne 0x18002de06
mov dword [0x1800b2cf0], r13d
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x48]
test rbx, rbx
je 0x1800095ed
mov r8, rbx
xor edx, edx
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.180024680
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r13, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov ebx, 0x104
mov dword [0x1800b2cf0], 1
lea rdx, [rbp - 0x80]
mov dword [rsp + 0x44], ebx
lea rcx, [rsp + 0x44]
call qword [sym.imp.KERNELBASE.dll_GetCurrentPackageFullName]
nop dword [rax + rax]
test eax, eax
js 0x18002de39
cmp word [rbp - 0x80], r13w
jne 0x18002de5a
mov r8d, ebx
mov dword [rsp + 0x44], ebx
lea rdx, [rbp - 0x80]
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
nop dword [rax + rax]
test eax, eax
je 0x1800095ca
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], r13d
mov qword [rsp + 0x30], rax
lea r8, [rbp - 0x80]
mov qword [rsp + 0x28], r13
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsQuirks
mov r9d, 8
mov qword [rsp + 0x20], r13
mov rcx, 0xffffffff80000001
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x1800095ca
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x1800095ca
mov edi, eax
mov rax, qword gs:[0x60]
mov rsi, qword [rax + 0x30]
test rsi, rsi
jne 0x18002dece
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
nop dword [rax + rax]
mov rsi, rax
mov rbx, r13
test rdi, rdi
je 0x18002df1a
lea r14, [rdi + 0x3ff]
cmp r14, rdi
jb 0x18002e010
and r14, 0xfffffffffffffc00
xor edx, edx
mov r8, r14
mov rcx, rsi
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
je 0x18002e010
mov r8, r14
xor edx, edx
mov rcx, rax
call sub.ntdll.dll_memset
mov edi, dword [rsp + 0x40]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea r8, [rbp - 0x80]
mov qword [rsp + 0x28], rbx
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsQuirks
mov r9d, 8
mov qword [rsp + 0x20], r13
mov rcx, 0xffffffff80000001
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
nop dword [rax + rax]
test eax, eax
jne 0x1800095d4
mov eax, dword [rsp + 0x40]
cmp rax, rdi
jne 0x1800095d4
cmp r13, rdi
ja 0x1800095d4
lea r9, [r13 + 4]
cmp r9, rdi
ja 0x1800095d4
cmp dword [rbx + r13], 0x736b7271
jne 0x1800095d4
cmp r9, rdi
jae 0x1800095d4
mov rax, r9
mov r8, r9
add rax, 4
cmp rax, r8
jb 0x1800095d4
cmp rax, rdi
ja 0x1800095d4
mov edx, dword [r9 + rbx]
lea r9, [rax + 4]
cmp r9, rax
jb 0x1800095d4
cmp r9, rdi
ja 0x1800095d4
mov r11d, dword [rax + rbx]
mov rcx, r15
call fcn.18000bde0
mov r10, rax
test rax, rax
je 0x1800095d4
mov edx, dword [rax + 0x228]
mov r8, r9
and edx, 0xfffffffc
mov rax, r9
neg r11d
sbb ecx, ecx
add ecx, 2
or ecx, edx
mov dword [r10 + 0x228], ecx
cmp r9, rdi
jb 0x18002df9e
jmp 0x1800095d4
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
movups xmmword [rsp + 0x68], xmm0
jmp 0x1800095ca