Function at 0x18007a9f0
Capabilities:
Check for peb beingdebugged flag
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
xor eax, eax
mov r13, r9
mov qword [rbp - 0x20], rax
mov r15d, r8d
mov dword [rbp + 0x38], eax
mov rsi, rdx
mov r12, rcx
mov r14d, eax
mov edi, eax
mov ebx, eax
test rdx, rdx
je 0x18007acfd
cmp word [rdx], ax
je 0x18007acfd
lea rdx, str.dbRegistryDefaultName
mov rcx, rsi
call sub.ntdll.dll__wcsicmp
test eax, eax
jne 0x18007aa54
xor edx, edx
jmp 0x18007aa68
mov rdx, rsi
lea rcx, [rbp - 0x20]
call fcn.18000eaac
test eax, eax
js 0x18007aab6
mov rdx, qword [rbp - 0x20]
lea rcx, [rbp - 0x18]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
nop dword [rax + rax]
xor r9d, r9d
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x18]
and dword [rsp + 0x20], ebx
mov rcx, r12
lea esi, [r9 + 1]
mov r8d, esi
call qword [sym.imp.ntdll.dll_ZwQueryValueKey]
nop dword [rax + rax]
test eax, eax
jns 0x18007aabe
cmp eax, 0x80000005
je 0x18007aabe
cmp eax, 0xc0000023
je 0x18007aabe
mov ebx, esi
xor r12d, r12d
jmp 0x18007ad55
mov rax, qword gs:[0x60]
mov edx, 8
mov r8d, dword [rbp + 0x38]
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x18007ab05
lea r9, str.Failed_to_allocate_memory
mov r8d, 0x3c8
lea rdx, str.SdbpCheckMatchingRegistryValue
mov ecx, esi
call fcn.18001188c
jmp 0x18007aab6
lea rax, [rbp + 0x38]
mov r9, rdi
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x18]
mov eax, dword [rbp + 0x38]
mov r8d, esi
mov rcx, r12
mov dword [rsp + 0x20], eax
call qword [sym.imp.ntdll.dll_ZwQueryValueKey]
nop dword [rax + rax]
xor r12d, r12d
test eax, eax
jns 0x18007ab55
lea r9, str.Failed_to_read_value
mov r8d, 0x3d3
mov ecx, esi
lea rdx, str.SdbpCheckMatchingRegistryValue
call fcn.18001188c
jmp 0x18007ad0f
mov eax, dword [rdi + 4]
test r15d, r15d
jne 0x18007ab6a
mov rax, qword [rbp + 0x70]
mov dword [rax], esi
mov ebx, esi
jmp 0x18007ad0f
cmp eax, r15d
jne 0x18007ab63
mov esi, dword [rdi + 8]
add rsi, rdi
test eax, eax
je 0x18007acee
cmp eax, 2
jbe 0x18007ac8a
cmp eax, 3
je 0x18007ac67
cmp eax, 4
je 0x18007ac5d
cmp eax, 7
je 0x18007abb8
cmp eax, 0xb
jne 0x18007acee
mov rax, qword [rsi]
cmp qword [rbp + 0x58], rax
je 0x18007ad00
jmp 0x18007ad0a
mov rax, qword gs:[0x60]
mov edx, 8
mov r8d, dword [rdi + 0xc]
add r8, 2
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov r14, rax
test rax, rax
jne 0x18007abf1
mov r8d, 0x40f
jmp 0x18007acbe
mov r8d, dword [rdi + 0xc]
mov rdx, rsi
mov rcx, r14
call sym.KERNEL32.dll_RtlMoveMemory
mov eax, dword [rdi + 0xc]
mov rcx, r14
shr rax, 1
mov word [r14 + rax*2], r12w
mov eax, dword [rdi + 0xc]
and rax, 0xfffffffffffffffe
add rax, r14
cmp r14, rax
jae 0x18007ac45
cmp word [rcx], r12w
jne 0x18007ac32
cmp word [rcx + 2], r12w
je 0x18007ac45
mov eax, 0x3b
mov word [rcx], ax
mov eax, dword [rdi + 0xc]
add rcx, 2
and rax, 0xfffffffffffffffe
add rax, r14
cmp rcx, rax
jb 0x18007ac1d
mov rdx, r14
mov rcx, r13
call fcn.180073e40
test eax, eax
jne 0x18007ad00
jmp 0x18007ad0a
mov eax, dword [rsi]
cmp dword [rbp + 0x50], eax
jmp 0x18007abad
mov eax, dword [rdi + 0xc]
mov r8, qword [rbp + 0x68]
cmp r8, rax
jne 0x18007ad0a
mov rcx, qword [rbp + 0x60]
mov rdx, rsi
call sub.ntdll.dll_memcmp
test eax, eax
jmp 0x18007abad
mov rax, qword gs:[0x60]
mov edx, 8
mov r8d, dword [rdi + 0xc]
add r8, 2
mov rcx, qword [rax + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
nop dword [rax + rax]
mov r14, rax
test rax, rax
jne 0x18007accf
mov r8d, 0x3f8
lea r9, str.Failed_to_allocate_memory
mov ecx, 1
jmp 0x18007ab44
mov r8d, dword [rdi + 0xc]
mov rdx, rsi
mov rcx, r14
call sym.KERNEL32.dll_RtlMoveMemory
mov eax, dword [rdi + 0xc]
shr rax, 1
mov word [r14 + rax*2], r12w
jmp 0x18007ac45
lea r9, str.Unknown_registry_value_data_type
mov r8d, 0x45a
jmp 0x18007acc5
xor r12d, r12d
mov rax, qword [rbp + 0x70]
mov dword [rax], 1
mov ebx, 1
test rdi, rdi
je 0x18007ad32
mov rcx, qword gs:[0x60]
mov r8, rdi
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
test r14, r14
je 0x18007ad55
mov rcx, qword gs:[0x60]
mov r8, r14
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
cmp qword [rbp - 0x20], r12
je 0x18007ad7a
mov rcx, qword gs:[0x60]
xor edx, edx
mov r8, qword [rbp - 0x20]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret