Function at 0x14000dc70
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x100
mov rax, qword [0x1400b8010]
xor rax, rsp
mov qword [rbp + 0x4f], rax
lea rax, vtable.Windows::RegistryHelper.0
mov qword [rbp - 0x69], rax
mov dword [rbp - 0x61], 0x100
xor edi, edi
mov qword [rbp - 0x49], rdi
mov qword [rbp - 0x39], rdi
mov qword [rbp - 0x31], 7
mov word [rbp - 0x49], di
lea r8d, [rdi + 0x39]
lea rdx, str.SYSTEMCurrentControlSetServicesSophos_Endpoint_Defense
lea rcx, [rbp - 0x49]
call fcn.14000f8e0
nop
cmp qword [rbp - 0x39], rdi
je 0x14000dfc9
mov qword [rbp + 0x47], rdi
lea rdx, [rbp - 0x49]
cmp qword [rbp - 0x31], 8
cmovae rdx, qword [rbp - 0x49]
lea rax, [rbp + 0x47]
mov qword [rsp + 0x20], rax
mov r9d, 0x20119
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
sete bl
mov rcx, qword [rbp + 0x47]
test rcx, rcx
je 0x14000dd22
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rbp - 0x31]
cmp rdx, 8
jb 0x14000dd62
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000dd5d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000dfff
call fcn.14005a750
test bl, bl
je 0x14000ded0
mov qword [rbp + 0x3f], rdi
mov qword [rbp - 0x49], rdi
mov qword [rbp - 0x39], rdi
mov qword [rbp - 0x31], 7
mov word [rbp - 0x49], di
mov r8d, 0x39
lea rdx, str.SYSTEMCurrentControlSetServicesSophos_Endpoint_Defense
lea rcx, [rbp - 0x49]
call fcn.14000f8e0
nop
mov dword [rsp + 0x20], 0x20019
lea r9, [rbp - 0x49]
mov r8, 0xffffffff80000002
lea rdx, [rbp + 0x3f]
lea rcx, [rbp - 0x69]
call fcn.14001ba60
nop
mov rdx, qword [rbp - 0x31]
cmp rdx, 8
jb 0x14000ddfa
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000ddf5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e005
call fcn.14005a750
mov qword [rbp - 0x39], rdi
mov qword [rbp - 0x31], 7
mov word [rbp - 0x49], di
mov qword [rbp - 0x69], rdi
mov qword [rbp - 0x59], rdi
mov qword [rbp - 0x51], 7
mov word [rbp - 0x69], di
mov r8d, 0xa
lea rdx, str.SetupFlags
lea rcx, [rbp - 0x69]
call fcn.14000f8e0
nop
cmp qword [rbp - 0x59], 0
je 0x14000e00b
lea rdx, [rbp - 0x69]
cmp qword [rbp - 0x51], 8
cmovae rdx, qword [rbp - 0x69]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbp + 0x3f]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
je 0x14000de7b
cmp eax, 2
jne 0x14000e041
mov bl, 1
jmp 0x14000de7d
xor bl, bl
mov rdx, qword [rbp - 0x51]
cmp rdx, 8
jb 0x14000debd
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000deb8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000e077
call fcn.14005a750
test bl, bl
je 0x14000def3
mov rcx, qword [rbp + 0x3f]
test rcx, rcx
je 0x14000ded0
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.14005a730
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
mov qword [rbp - 0x69], rdi
mov qword [rbp - 0x59], rdi
mov qword [rbp - 0x51], 7
mov word [rbp - 0x69], di
mov r8d, 0xa
lea rdx, str.SetupFlags
lea rcx, [rbp - 0x69]
call fcn.14000f8e0
nop
mov dword [rbp + 0x37], edi
mov dword [rbp + 0x47], 4
lea r8, [rbp - 0x69]
cmp qword [rbp - 0x51], 8
cmovae r8, qword [rbp - 0x69]
lea rax, [rbp + 0x47]
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x37]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
xor edx, edx
lea r9d, [rdx + 0x10]
mov rcx, qword [rbp + 0x3f]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ebx, eax
test eax, eax
jne 0x14000e07d
mov rdx, qword [rbp - 0x51]
cmp rdx, 8
jb 0x14000dfa3
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000df9e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000dfc3
call fcn.14005a750
movzx ebx, byte [rbp + 0x37]
not bl
and bl, 1
mov rcx, qword [rbp + 0x3f]
test rcx, rcx
je 0x14000dfbb
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
jmp 0x14000ded2
call fcn.14006538c
nop
lea rdx, str.Invalid_registry_value_path
lea rcx, [rbp - 9]
call fcn.140002f20
nop
xor r9d, r9d
lea r8, [rbp - 0x49]
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x29]
call fcn.14001b460
lea rdx, [0x1400b6340]
lea rcx, [rbp - 0x29]
call fcn.14005f880
nop
call fcn.14006538c
nop
call fcn.14006538c
nop
lea rdx, str.Invalid_registry_value_name
lea rcx, [rbp - 0x29]
call fcn.140002f20
nop
xor r9d, r9d
lea r8, [rbp - 0x69]
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 9]
call fcn.14001b460
lea rdx, [0x1400b6340]
lea rcx, [rbp - 9]
call fcn.14005f880
nop
lea rdx, str.RegQueryValueExW_failed
lea rcx, [rbp - 0x49]
call fcn.140002f20
nop
mov r9d, ebx
lea r8, [rbp - 0x69]
lea rdx, [rbp - 0x49]
lea rcx, [rbp + 0x17]
call fcn.14001b460
lea rdx, [0x1400b6340]
lea rcx, [rbp + 0x17]
call fcn.14005f880
nop
call fcn.14006538c
nop
lea rdx, str.RegGetValueW_failed
lea rcx, [rbp + 0x17]
call fcn.140002f20
nop
mov r9d, ebx
lea r8, [rbp - 0x69]
lea rdx, [rbp + 0x17]
lea rcx, [rbp - 0x29]
call fcn.14001b460
lea rdx, [0x1400b6340]
lea rcx, [rbp - 0x29]
call fcn.14005f880
int3