Function at 0x140050890
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x7d8]
sub rsp, 0x8b0
mov qword [rbp - 0x70], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1401cee90]
xor rax, rsp
mov qword [rbp + 0x7a0], rax
mov r12, rcx
mov qword [rbp - 0x80], rcx
mov qword [rbp - 0x78], rcx
xor r15d, r15d
mov dword [rsp + 0x30], r15d
lea rcx, str.D_r_
mov rax, qword [str.D_r_]
call qword [rax + 0x18]
add rax, 0x18
mov qword [r12], rax
mov r13d, 1
mov esi, r13d
mov dword [rsp + 0x30], r13d
mov word [rbp - 0x60], r15w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp - 0x5e]
call fcn.1400da240
mov ecx, dword [0x1401d6d80]
imul ecx, ecx
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub ecx, eax
cmp ecx, 0x13
jne 0x14005096a
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov ecx, dword [0x1401d6d80]
mov edx, 7
test rax, rax
cmove ecx, edx
mov dword [0x1401d6d80], ecx
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x60], r15d
mov qword [rsp + 0x68], r15
lea rcx, str.D_r_
mov rax, qword [str.D_r_]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x38], rbx
lea r8, str.SOFTWAREWow6432NodeMicr
test r8, 0xffffffffffff0000
jne 0x1400509c9
movzx ebx, r8w
mov ecx, ebx
call fcn.1400019e0
test rax, rax
je 0x140050a3c
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140002960
jmp 0x140050a3c
mov r14d, dword [rbx - 0x10]
mov rdi, r8
sub rdi, rbx
sar rdi, 1
mov ecx, r13d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, 0x19
or eax, ecx
jge 0x140050a01
mov edx, 0x19
lea rcx, [rsp + 0x38]
call fcn.140002760
mov rbx, qword [rsp + 0x38]
lea r8, str.SOFTWAREWow6432NodeMicr
movsxd rdx, dword [rbx - 0xc]
mov r9d, 0x32
mov rcx, rbx
add rdx, rdx
cmp rdi, r14
ja 0x140050a21
lea r8, [rbx + rdi*2]
call fcn.1400d562c
jmp 0x140050a26
call fcn.1400d57ec
cmp dword [rbx - 0xc], 0x19
jl 0x14005102d
mov dword [rbx - 0x10], 0x19
mov word [rbx + 0x32], r15w
mov r9d, dword [0x1401d6d80]
mov r8d, r9d
imul r8d, r9d
imul r8d, r9d
mov eax, 0x2aaaaaab
imul r8d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [rdx + rdx*2]
shl ecx, 3
sub r8d, ecx
cmp r8d, 0xc
jne 0x140050a9d
mov r8d, r15d
test r9d, r9d
je 0x140050a96
nop word [rax + rax]
mov ecx, r9d
and ecx, 1
add r8d, ecx
mov eax, r9d
cdq
sub eax, edx
sar eax, 1
mov r9d, eax
jne 0x140050a80
mov dword [0x1401d6d80], r8d
mov r8d, 0x17
lea rdx, str.osoftInternet_Explorer
lea rcx, [rsp + 0x38]
call fcn.140010c10
mov rax, qword [rsp + 0x38]
mov ecx, r13d
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
or eax, ecx
jge 0x140050ad2
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.140002760
mov qword [rsp + 0x78], r15
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, r13d
xor r8d, r8d
mov rdx, qword [rsp + 0x38]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x140050b11
mov dword [rsp + 0x60], r15d
mov ebx, r15d
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x58], rax
mov ecx, dword [0x1401d6d80]
lea r8d, [rcx + 2]
lea eax, [rcx + 1]
imul r8d, eax
imul r8d, ecx
mov eax, 0x2e8ba2e9
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xb
sub r8d, edx
cmp r8d, 4
jne 0x140050b4b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetFileType]
or r14, 0xffffffffffffffff
test ebx, ebx
jne 0x140050ff3
mov dword [rsp + 0x50], 0x800
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x74]
xor r8d, r8d
lea rdx, str.svcVersion
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140050d27
mov eax, dword [rsp + 0x74]
dec eax
cmp eax, 1
ja 0x140050d27
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x140050bc2
test al, 1
jne 0x140050d27
shr rax, 1
cmp word [rbp + rax*2 - 0x62], bx
je 0x140050bc7
jmp 0x140050d27
mov word [rbp - 0x60], r15w
lea rcx, str.D_r_
mov rax, qword [str.D_r_]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
lea rcx, [rbp - 0x60]
lea rax, [rbp - 0x60]
test rax, 0xffffffffffff0000
jne 0x140050c1e
movzx edi, cx
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x140050d08
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140002960
mov rbx, qword [rsp + 0x40]
jmp 0x140050d08
lea rax, [rbp - 0x60]
mov rdi, r14
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140050c25
test edi, edi
jne 0x140050c8c
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x140050d08
cmp dword [rdx + 0x10], 0
jge 0x140050c68
cmp dword [rbx - 0xc], 0
jge 0x140050c5b
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rbx - 0x10], r15d
mov word [rbx], r15w
jmp 0x140050d08
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140050c78
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x40], rbx
jmp 0x140050d08
mov r15d, dword [rbx - 0x10]
lea rsi, [rbp - 0x60]
sub rsi, rbx
sar rsi, 1
test edi, edi
jns 0x140050ca9
mov ecx, 0x80070057
call fcn.140001920
int3
mov ecx, r13d
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140050cc9
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140002760
mov rbx, qword [rsp + 0x40]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp rsi, r15
lea r15, [rax + rax]
mov r9, r15
ja 0x140050ced
lea r8, [rbx + rsi*2]
call fcn.1400d562c
jmp 0x140050cf6
lea r8, [rbp - 0x60]
call fcn.1400d57ec
cmp edi, dword [rbx - 0xc]
jg 0x140050d1c
mov dword [rbx - 0x10], edi
xor eax, eax
mov word [r15 + rbx], ax
xor r15d, r15d
mov esi, 3
mov dword [rsp + 0x30], esi
cmp dword [rbx - 0x10], 0
je 0x140050d2c
mov dil, 1
jmp 0x140050d2f
mov ecx, 0x80070057
call fcn.140001920
nop
mov rbx, qword [rsp + 0x40]
xor dil, dil
test sil, 2
je 0x140050d54
and esi, 0xfffffffd
mov dword [rsp + 0x30], esi
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140050d50
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov esi, dword [rsp + 0x30]
test dil, dil
je 0x140050d6f
lea rcx, [rbp - 0x60]
mov rax, r14
inc rax
cmp word [rcx + rax*2], 0
jne 0x140050d60
jmp 0x140050fca
mov ecx, dword [0x1401d6d80]
imul ecx, ecx
mov eax, 0xb21642c9
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x17
sub ecx, edx
cmp ecx, 0xa
jne 0x140050daa
mov edx, 0xfb
lea r8d, [rdx + 1]
lea rcx, [0x14015da1c]
call fcn.1400d5714
mov dword [rsp + 0x54], 0x800
lea rax, [rsp + 0x54]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x70]
xor r8d, r8d
lea rdx, [0x14015f8c8]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140050f85
mov eax, dword [rsp + 0x70]
dec eax
cmp eax, 1
ja 0x140050f85
mov eax, dword [rsp + 0x54]
test eax, eax
je 0x140050e16
test al, 1
jne 0x140050f85
shr rax, 1
cmp word [rbp + rax*2 - 0x62], 0
je 0x140050e1b
jmp 0x140050f85
mov word [rbp - 0x60], r15w
lea rcx, str.D_r_
mov rax, qword [str.D_r_]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
lea rcx, [rbp - 0x60]
lea rax, [rbp - 0x60]
test rax, 0xffffffffffff0000
jne 0x140050e72
movzx edi, cx
mov ecx, edi
call fcn.1400019e0
test rax, rax
je 0x140050f68
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140002960
mov rbx, qword [rsp + 0x48]
jmp 0x140050f68
lea rax, [rbp - 0x60]
mov rdi, r14
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x140050e80
test edi, edi
jne 0x140050eeb
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], 0
je 0x140050f68
cmp dword [rdx + 0x10], 0
jge 0x140050ec3
cmp dword [rbx - 0xc], 0
jge 0x140050eb6
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rbx - 0x10], r15d
mov word [rbx], r15w
jmp 0x140050f68
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140050ed3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
mov esi, dword [rsp + 0x30]
jmp 0x140050f68
mov r12d, dword [rbx - 0x10]
lea r15, [rbp - 0x60]
sub r15, rbx
sar r15, 1
test edi, edi
jns 0x140050f08
mov ecx, 0x80070057
call fcn.140001920
int3
sub r13d, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, r13d
jge 0x140050f27
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.140002760
mov rbx, qword [rsp + 0x48]
movsxd rax, edi
movsxd rdx, dword [rbx - 0xc]
mov rcx, rbx
add rdx, rdx
cmp r15, r12
lea r12, [rax + rax]
mov r9, r12
ja 0x140050f4b
lea r8, [rbx + r15*2]
call fcn.1400d562c
jmp 0x140050f54
lea r8, [rbp - 0x60]
call fcn.1400d57ec
cmp edi, dword [rbx - 0xc]
jg 0x140050f7a
mov dword [rbx - 0x10], edi
xor r15d, r15d
mov word [r12 + rbx], r15w
mov r12, qword [rbp - 0x80]
or esi, 4
mov dword [rsp + 0x30], esi
cmp dword [rbx - 0x10], 0
je 0x140050f8a
mov dil, 1
jmp 0x140050f8d
mov ecx, 0x80070057
call fcn.140001920
nop
mov rbx, qword [rsp + 0x48]
xor dil, dil
test sil, 4
je 0x140050fae
and esi, 0xfffffffb
mov dword [rsp + 0x30], esi
lea rdx, [rbx - 0x18]
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140050fae
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test dil, dil
je 0x140050fd9
lea rcx, [rbp - 0x60]
mov rax, r14
nop word [rax + rax]
inc rax
cmp word [rcx + rax*2], 0
jne 0x140050fc0
mov r8d, eax
lea rdx, [rbp - 0x60]
mov rcx, r12
call fcn.140002670
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140050fee
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x60], r15d
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14005100e
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140051023
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x58], r15
mov dword [rsp + 0x60], r15d
mov rax, r12
jmp 0x140051038
mov ecx, 0x80070057
call fcn.140001920
nop
mov rcx, qword [rbp + 0x7a0]
xor rcx, rsp
call fcn.1400d4e00
lea r11, [rsp + 0x8b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret