Function at 0x140104480
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x2d0
mov rax, qword [0x140293028]
xor rax, rsp
mov qword [rsp + 0x2c8], rax
mov r15, rcx
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x90], rcx
xor edi, edi
mov r14d, edi
mov dword [rsp + 0x180], edi
mov qword [rsp + 0x178], rdi
lea rax, vtable.RegistryAccess.0
mov qword [rsp + 0x170], rax
lea rax, [rsp + 0x178]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
lea rdx, str.SOFTWARESophosAutoUpdateServiceCloudSubscriptions
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140104d79
lea rdx, [rsp + 0x2b0]
lea rcx, [rsp + 0x170]
call fcn.1401340b0
nop
mov rsi, qword [rsp + 0x2b0]
mov r13, qword [rsp + 0x2b8]
mov qword [rsp + 0x78], r13
lea r12, vtable.RegistryHandle.0
mov qword [rsp + 0x70], rsi
cmp rsi, r13
je 0x140104c6e
xorps xmm0, xmm0
movups xmmword [rsp + 0x188], xmm0
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x14010456b
mov rdx, qword [rsi]
mov qword [rsp + 0x190], rdi
lea rax, vtable.RegistryAccess.0
mov qword [rsp + 0x188], rax
lea rax, [rsp + 0x190]
mov qword [rsp + 0x20], rax
mov r9d, 0x20219
xor r8d, r8d
mov rcx, qword [rsp + 0x178]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140104d9e
lea rax, [rsp + 0x19c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x198]
xor r8d, r8d
lea rdx, str.RigidName
mov rcx, qword [rsp + 0x190]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x140104dbd
mov ecx, dword [rsp + 0x198]
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x140104604
cmp ecx, 7
jne 0x140104ddc
mov r9d, dword [rsp + 0x19c]
test r9b, 1
jne 0x140104e04
lea r8, str.RigidName
lea rdx, [rsp + 0x250]
lea rcx, [rsp + 0x188]
call fcn.140134c10
or r14d, 1
mov dword [rsp + 0x180], r14d
lea rax, [rsp + 0x1a4]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x1a0]
xor r8d, r8d
lea rdx, [0x14024b700]
mov rcx, qword [rsp + 0x190]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x140104e2d
mov ecx, dword [rsp + 0x1a0]
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x140104692
cmp ecx, 7
jne 0x140104e4c
mov r9d, dword [rsp + 0x1a4]
test r9b, 1
jne 0x140104e74
lea r8, [0x14024b700]
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x188]
call fcn.140134c10
or r14d, 2
mov dword [rsp + 0x180], r14d
lea rax, [rsp + 0x184]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x1a8]
xor r8d, r8d
lea rdx, str.BaseVersion
mov rcx, qword [rsp + 0x190]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x140104e9d
mov ecx, dword [rsp + 0x1a8]
lea eax, [rcx - 1]
cmp eax, 1
jbe 0x140104720
cmp ecx, 7
jne 0x140104ebc
mov r9d, dword [rsp + 0x184]
test r9b, 1
jne 0x140104ee4
lea r8, str.BaseVersion
lea rdx, [rsp + 0x290]
lea rcx, [rsp + 0x188]
call fcn.140134c10
or r14d, 4
mov dword [rsp + 0x180], r14d
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], 7
mov word [rsp + 0x30], di
lea r9, [rsp + 0x30]
lea r8, str.FixedVersion
lea rdx, [rsp + 0x270]
lea rcx, [rsp + 0x188]
call fcn.140133970
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 8
jb 0x1401047d6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401047d1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140104f0d
call fcn.1401853a0
mov qword [rsp + 0x1b0], rdi
mov qword [rsp + 0x1c0], rdi
mov qword [rsp + 0x1c8], 0xf
mov byte [rsp + 0x1b0], 0
mov qword [rsp + 0x1d0], rdi
mov qword [rsp + 0x1e0], rdi
mov qword [rsp + 0x1e8], 0xf
mov byte [rsp + 0x1d0], 0
mov qword [rsp + 0x1f0], rdi
mov qword [rsp + 0x200], rdi
mov qword [rsp + 0x208], 0xf
mov byte [rsp + 0x1f0], 0
mov qword [rsp + 0x210], rdi
mov qword [rsp + 0x220], rdi
mov qword [rsp + 0x228], 0xf
mov byte [rsp + 0x210], 0
lea rax, [rsp + 0x250]
cmp qword [rsp + 0x268], 8
cmovae rax, qword [rsp + 0x250]
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0x260]
mov qword [rsp + 0xa8], rax
movaps xmm0, xmmword [rsp + 0xa0]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1401577f0
mov rbx, rax
lea rax, [rsp + 0x1b0]
cmp rax, rbx
je 0x140104900
lea rcx, [rsp + 0x1b0]
call fcn.140010cd0
movups xmm0, xmmword [rbx]
movaps xmmword [rsp + 0x1b0], xmm0
movups xmm1, xmmword [rbx + 0x10]
movaps xmmword [rsp + 0x1c0], xmm1
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
nop dword [rax + rax]
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x14010493d
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140104938
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140104f13
call fcn.1401853a0
lea rax, [rsp + 0x230]
cmp qword [rsp + 0x248], 8
cmovae rax, qword [rsp + 0x230]
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0x240]
mov qword [rsp + 0xb8], rax
movaps xmm0, xmmword [rsp + 0xb0]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1401577f0
mov rbx, rax
lea rax, [rsp + 0x1d0]
cmp rax, rbx
je 0x1401049d0
lea rcx, [rsp + 0x1d0]
call fcn.140010cd0
movups xmm0, xmmword [rbx]
movaps xmmword [rsp + 0x1d0], xmm0
movups xmm1, xmmword [rbx + 0x10]
movaps xmmword [rsp + 0x1e0], xmm1
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140104a0d
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140104a08
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140104f19
call fcn.1401853a0
lea rax, [rsp + 0x290]
cmp qword [rsp + 0x2a8], 8
cmovae rax, qword [rsp + 0x290]
mov qword [rsp + 0xc0], rax
mov rax, qword [rsp + 0x2a0]
mov qword [rsp + 0xc8], rax
movaps xmm0, xmmword [rsp + 0xc0]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1401577f0
mov rbx, rax
lea rax, [rsp + 0x1f0]
cmp rax, rbx
je 0x140104aa0
lea rcx, [rsp + 0x1f0]
call fcn.140010cd0
movups xmm0, xmmword [rbx]
movaps xmmword [rsp + 0x1f0], xmm0
movups xmm1, xmmword [rbx + 0x10]
movaps xmmword [rsp + 0x200], xmm1
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140104add
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140104ad8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140104f1f
call fcn.1401853a0
lea rax, [rsp + 0x270]
cmp qword [rsp + 0x288], 8
cmovae rax, qword [rsp + 0x270]
mov qword [rsp + 0xd0], rax
mov rax, qword [rsp + 0x280]
mov qword [rsp + 0xd8], rax
movaps xmm0, xmmword [rsp + 0xd0]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1401577f0
mov rbx, rax
lea rax, [rsp + 0x210]
cmp rax, rbx
je 0x140104b70
lea rcx, [rsp + 0x210]
call fcn.140010cd0
movups xmm0, xmmword [rbx]
movaps xmmword [rsp + 0x210], xmm0
movups xmm1, xmmword [rbx + 0x10]
movaps xmmword [rsp + 0x220], xmm1
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
nop
lea rcx, [rsp + 0x50]
call fcn.140010cd0
mov rax, qword [r15 + 0x60]
cmp rax, qword [r15 + 0x68]
je 0x140104b9b
lea rdx, [rsp + 0x1b0]
mov rcx, rax
call fcn.14010bf00
sub qword [r15 + 0x60], 0xffffffffffffff80
jmp 0x140104bb0
lea r8, [rsp + 0x1b0]
mov rdx, rax
lea rcx, [r15 + 0x58]
call fcn.14010bc20
nop
lea rcx, [rsp + 0x210]
call fcn.140010cd0
lea rcx, [rsp + 0x1f0]
call fcn.140010cd0
lea rcx, [rsp + 0x1d0]
call fcn.140010cd0
lea rcx, [rsp + 0x1b0]
call fcn.140010cd0
nop
lea rcx, [rsp + 0x270]
call fcn.140010b20
nop
lea rcx, [rsp + 0x290]
call fcn.140010b20
nop
lea rcx, [rsp + 0x230]
call fcn.140010b20
nop
lea rcx, [rsp + 0x250]
call fcn.140010b20
nop
jmp 0x140104c42
mov qword [rsp + 0x188], r12
mov rcx, qword [rsp + 0x190]
test rcx, rcx
je 0x140104c65
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x190], rdi
add rsi, 0x20
jmp 0x140104545
lea rcx, [rsp + 0x2b0]
call fcn.140017b30
mov rax, qword [rsp + 0x90]
mov rdx, qword [rax + 0x60]
mov rcx, qword [r15 + 0x58]
mov r8, rdx
sub r8, rcx
sar r8, 7
xor r9d, r9d
call fcn.14010c540
nop
lea rax, [rsp + 0x180]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x184]
xor r8d, r8d
lea rdx, str.FixedVersionToken
mov rcx, qword [rsp + 0x178]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test eax, eax
jne 0x140104f25
mov edx, dword [rsp + 0x180]
mov ecx, dword [rsp + 0x184]
call fcn.1401338b0
mov r9d, dword [rsp + 0x180]
lea r8, str.FixedVersionToken
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x170]
call fcn.140134c10
lea rcx, [r15 + 0x78]
lea rdx, [rsp + 0x50]
call fcn.14001ee00
lea rcx, [rsp + 0x50]
call fcn.140010b20
nop
jmp 0x140104d30
mov qword [rsp + 0x170], r12
mov rcx, qword [rsp + 0x178]
test rcx, rcx
je 0x140104d4c
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rsp + 0x2c8]
xor rcx, rsp
call fcn.140185380
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rdx, str.Failed_to_open_registry_key
lea rcx, [rsp + 0x250]
call fcn.140010040
nop
lea rdx, [rsp + 0x250]
mov ecx, ebx
call fcn.140030620
nop
lea rdx, str.Failed_to_open_registry_key
lea rcx, [rsp + 0x50]
call fcn.140010040
nop
lea rdx, [rsp + 0x50]
mov ecx, ebx
call fcn.140030620
nop
lea rdx, str.Failed_to_get_registry_value_length
lea rcx, [rsp + 0x30]
call fcn.140010040
nop
lea rdx, [rsp + 0x30]
mov ecx, ebx
call fcn.140030620
nop
lea rdx, str.Registry_value_is_not_string
lea rcx, [rsp + 0xe0]
call fcn.140030560
lea rdx, [0x14028fd98]
lea rcx, [rsp + 0xe0]
call fcn.1401a8f20
lea rdx, str.Invalid_registry_value_length_for_a_Unicode_string
lea rcx, [rsp + 0xf8]
call fcn.140030560
lea rdx, [0x14028fd98]
lea rcx, [rsp + 0xf8]
call fcn.1401a8f20
nop
lea rdx, str.Failed_to_get_registry_value_length
lea rcx, [rsp + 0x50]
call fcn.140010040
nop
lea rdx, [rsp + 0x50]
mov ecx, ebx
call fcn.140030620
nop
lea rdx, str.Registry_value_is_not_string
lea rcx, [rsp + 0x110]
call fcn.140030560
lea rdx, [0x14028fd98]
lea rcx, [rsp + 0x110]
call fcn.1401a8f20
lea rdx, str.Invalid_registry_value_length_for_a_Unicode_string
lea rcx, [rsp + 0x128]
call fcn.140030560
lea rdx, [0x14028fd98]
lea rcx, [rsp + 0x128]
call fcn.1401a8f20
nop
lea rdx, str.Failed_to_get_registry_value_length
lea rcx, [rsp + 0x30]
call fcn.140010040
nop
lea rdx, [rsp + 0x30]
mov ecx, ebx
call fcn.140030620
nop
lea rdx, str.Registry_value_is_not_string
lea rcx, [rsp + 0x140]
call fcn.140030560
lea rdx, [0x14028fd98]
lea rcx, [rsp + 0x140]
call fcn.1401a8f20
lea rdx, str.Invalid_registry_value_length_for_a_Unicode_string
lea rcx, [rsp + 0x158]
call fcn.140030560
lea rdx, [0x14028fd98]
lea rcx, [rsp + 0x158]
call fcn.1401a8f20
nop
call fcn.1401b3c00
nop
call fcn.1401b3c00
int3
call fcn.1401b3c00
int3
call fcn.1401b3c00
nop
lea rdx, str.Failed_to_get_registry_value_length
lea rcx, [rsp + 0x230]
call fcn.140010040
nop
lea rdx, [rsp + 0x230]
mov ecx, ebx
call fcn.140030620
int3