Function at 0x1400164b0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
mov rax, qword [0x14015a010]
xor rax, rsp
mov qword [rbp + 0x190], rax
mov rdi, rcx
lea rax, vtable.Windows::RegistryHelper.0
mov qword [rbp + 0x30], rax
mov dword [rbp + 0x38], 0x100
xor esi, esi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], si
lea r8d, [rsi + 0x29]
lea rdx, str.SOFTWARESophosEndpointDefenseTelemetry
lea rcx, [rsp + 0x30]
call fcn.140005e00
nop
cmp qword [rsp + 0x40], rsi
je 0x140016a08
mov qword [rbp + 0x78], rsi
lea rdx, [rsp + 0x30]
cmp qword [rsp + 0x48], 8
cmovae rdx, qword [rsp + 0x30]
lea rax, [rbp + 0x78]
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 + 0x78]
test rcx, rcx
je 0x140016579
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1400165bb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400165b6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016a43
call fcn.1400c59a0
test bl, bl
jne 0x140016648
xor edx, edx
mov r8d, 0x110
lea rcx, [rbp + 0x80]
call fcn.1400cb730
call fcn.14009ebd0
mov qword [rbp + 0x80], rax
mov dword [rbp + 0x88], 3
lea rcx, [rbp + 0x90]
call fcn.14000b2a0
nop
mov rcx, qword [rbp + 0x80]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x14010d7b8]
cmp dword [rbp + 0x88], eax
setl byte [rbp + 0x188]
jl 0x140016637
lea rdx, str.Telemetry_registry_key_is_missing.
lea rcx, [rbp + 0x80]
call fcn.140016420
mov byte [rbp + 0x188], 1
lea rcx, [rbp + 0x80]
call fcn.140005530
jmp 0x1400169aa
mov qword [rbp + 0x50], rsi
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], si
mov r8d, 0x29
lea rdx, str.SOFTWARESophosEndpointDefenseTelemetry
lea rcx, [rsp + 0x30]
call fcn.140005e00
nop
mov dword [rsp + 0x20], 0x2001f
lea r9, [rsp + 0x30]
mov r8, 0xffffffff80000002
lea rdx, [rbp + 0x50]
lea rcx, [rbp + 0x30]
call fcn.14007c940
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1400166e0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400166db
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016a49
call fcn.1400c59a0
mov qword [rbp + 0x58], rsi
mov qword [rbp + 0x68], rsi
mov qword [rbp + 0x70], 7
mov word [rbp + 0x58], si
mov qword [rbp + 0x30], rsi
mov qword [rbp + 0x40], rsi
mov qword [rbp + 0x48], 7
mov word [rbp + 0x30], si
mov r8d, 0x17
lea rdx, str.fileAnalyzerSubmissions
lea rcx, [rbp + 0x30]
call fcn.140005e00
nop
cmp qword [rbp + 0x40], 0
je 0x140016a4f
lea rdx, [rbp + 0x30]
cmp qword [rbp + 0x48], 8
cmovae rdx, qword [rbp + 0x30]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
je 0x140016765
cmp eax, 2
jne 0x140016a89
xor bl, bl
jmp 0x140016767
mov bl, 1
mov rdx, qword [rbp + 0x48]
cmp rdx, 8
jb 0x1400167a7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400167a2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140016ac3
call fcn.1400c59a0
test bl, bl
je 0x140016894
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], si
mov r8d, 0x17
lea rdx, str.fileAnalyzerSubmissions
lea rcx, [rsp + 0x30]
call fcn.140005e00
nop
mov r9d, 2
lea r8, [rsp + 0x30]
mov rdx, qword [rbp + 0x50]
lea rcx, [rbp + 0x30]
call fcn.14007eb10
nop
movzx eax, byte [rbp + 0x48]
test al, al
je 0x140016ac9
mov rdx, qword [rbp + 0x30]
mov r8, qword [rbp + 0x38]
cmp rdx, r8
je 0x140016b05
add r8, 0xfffffffffffffffe
cmp si, word [r8]
jne 0x140016b3c
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], 7
cmp rdx, r8
je 0x14001684f
sub r8, rdx
sar r8, 1
lea rcx, [rsp + 0x50]
call fcn.140005e00
movzx eax, byte [rbp + 0x48]
test al, al
je 0x14001685c
lea rcx, [rbp + 0x30]
call fcn.140031680
lea rcx, [rbp + 0x58]
call fcn.14000cba0
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbp + 0x58], xmm0
movups xmm1, xmmword [rsp + 0x60]
movups xmmword [rbp + 0x68], xmm1
mov r8, qword [rsp + 0x48]
cmp r8, 8
jb 0x140016894
inc r8
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x30]
call fcn.14000bfb0
mov r8, rdi
lea rdx, [rbp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.140016bb0
mov rbx, rax
mov qword [rbp + 0x30], rsi
mov qword [rbp + 0x40], rsi
mov qword [rbp + 0x48], 7
mov word [rbp + 0x30], si
mov r8d, 0x17
lea rdx, str.fileAnalyzerSubmissions
lea rcx, [rbp + 0x30]
call fcn.140005e00
nop
mov rax, qword [rbx + 0x10]
cmp rax, 0x7ffffffe
ja 0x140016b73
lea rax, [rax*2 + 2]
cmp qword [rbx + 0x18], 8
jb 0x1400168f5
mov rbx, qword [rbx]
lea rdx, [rbp + 0x30]
cmp qword [rbp + 0x48], 8
cmovae rdx, qword [rbp + 0x30]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov r9d, 1
xor r8d, r8d
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x1400169d2
mov r8, qword [rbp + 0x48]
cmp r8, 8
jb 0x140016943
inc r8
mov rdx, qword [rbp + 0x30]
lea rcx, [rbp + 0x30]
call fcn.14000bfb0
mov qword [rbp + 0x40], rsi
mov qword [rbp + 0x48], 7
mov word [rbp + 0x30], si
mov r8, qword [rsp + 0x68]
cmp r8, 8
jb 0x140016971
inc r8
mov rdx, qword [rsp + 0x50]
lea rcx, [rsp + 0x50]
call fcn.14000bfb0
nop
mov r8, qword [rbp + 0x70]
cmp r8, 8
jb 0x14001698b
inc r8
mov rdx, qword [rbp + 0x58]
lea rcx, [rbp + 0x58]
call fcn.14000bfb0
mov qword [rbp + 0x68], rsi
mov qword [rbp + 0x70], 7
mov word [rbp + 0x58], si
mov rcx, qword [rbp + 0x50]
test rcx, rcx
je 0x1400169aa
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x190]
xor rcx, rsp
call fcn.1400c5980
lea r11, [rsp + 0x2a0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
lea rdx, str.RegSetValueExW_failed
lea rcx, [rbp - 0x50]
call fcn.14000c390
nop
mov r9d, ebx
lea r8, [rbp + 0x30]
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x70]
call fcn.14007c360
lea rdx, [0x140157538]
lea rcx, [rbp - 0x70]
call fcn.1400cb8d0
nop
lea rdx, str.Invalid_registry_value_path
lea rcx, [rsp + 0x50]
call fcn.14000c390
nop
xor r9d, r9d
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.14007c360
lea rdx, [0x140157538]
lea rcx, [rsp + 0x70]
call fcn.1400cb8d0
nop
call fcn.1400da6f8
nop
call fcn.1400da6f8
nop
lea rdx, str.Invalid_registry_value_name
lea rcx, [rsp + 0x70]
call fcn.14000c390
nop
xor r9d, r9d
lea r8, [rbp + 0x30]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.14007c360
lea rdx, [0x140157538]
lea rcx, [rsp + 0x50]
call fcn.1400cb8d0
nop
lea rdx, str.RegQueryValueExW_failed
lea rcx, [rsp + 0x70]
call fcn.14000c390
nop
mov r9d, ebx
lea r8, [rbp + 0x30]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.14007c360
lea rdx, [0x140157538]
lea rcx, [rsp + 0x50]
call fcn.1400cb8d0
nop
call fcn.1400da6f8
nop
lea rdx, str.Value_not_found
lea rcx, [rsp + 0x70]
call fcn.14000c390
nop
mov r9d, 2
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x30]
call fcn.14007c360
lea rdx, [0x140157538]
lea rcx, [rbp - 0x30]
call fcn.1400cb8d0
nop
lea rdx, str.String_values_should_always_have_at_least_a_null_terminating_character
lea rcx, [rbp - 0x10]
call fcn.14000c390
nop
xor r9d, r9d
lea r8, [rsp + 0x30]
lea rdx, [rbp - 0x10]
lea rcx, [rbp + 0x10]
call fcn.14007c360
lea rdx, [0x140157538]
lea rcx, [rbp + 0x10]
call fcn.1400cb8d0
nop
lea rdx, str.String_values_should_always_be_null_terminated
lea rcx, [rbp - 0x70]
call fcn.14000c390
nop
xor r9d, r9d
lea r8, [rsp + 0x30]
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x50]
call fcn.14007c360
lea rdx, [0x140157538]
lea rcx, [rbp - 0x50]
call fcn.1400cb8d0
nop
lea rdx, str.Value_too_big_for_registry
lea rcx, [rbp - 0x50]
call fcn.14000c390
nop
xor r9d, r9d
lea r8, [rbp + 0x30]
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x70]
call fcn.14007c360
lea rdx, [0x140157538]
lea rcx, [rbp - 0x70]
call fcn.1400cb8d0
int3