Function at 0x14000370c
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rdi
push r12
push r13
push r14
sub rsp, 0x1b0
lea rbp, [rsp + 0x60]
mov qword [rbp + 0x190], rbx
mov qword [rbp + 0x198], rsi
mov rax, qword [0x1400267d0]
xor rax, rbp
mov qword [rbp + 0x140], rax
xor r13d, r13d
mov r12d, r8d
mov rbx, rdx
mov rdi, rcx
mov qword [rbp + 8], r13
cmp rdx, r13
je 0x140003c8a
mov eax, dword [0x14001d710]
cmp dword [rcx], eax
jne 0x140003788
mov eax, dword [0x14001d714]
cmp dword [rcx + 4], eax
jne 0x140003788
mov eax, dword [0x14001d718]
cmp dword [rcx + 8], eax
jne 0x140003788
mov eax, dword [0x14001d71c]
cmp dword [rcx + 0xc], eax
je 0x140003c8a
lea rax, [rbp + 8]
mov r14d, 1
lea r9, [0x14001cc50]
lea rcx, [0x14001d730]
xor edx, edx
mov r8d, r14d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, r13d
jl 0x140003c7b
cmp dword [rbx], r13d
je 0x14000381e
mov rax, qword [rbx + 8]
mov rcx, qword [rbp + 8]
lea r9, [rbp + 0x30]
mov r8d, r14d
mov rdx, rdi
movdqu xmm0, xmmword [rax]
movdqu xmmword [rbp + 0x30], xmm0
mov rax, qword [rcx]
cmp r12d, r13d
je 0x14000380b
cmp dword [rbx], r14d
jne 0x1400037eb
call qword [rax + 0x28]
jmp 0x1400037ee
call qword [rax + 0x38]
cmp eax, r13d
mov esi, eax
jge 0x140003818
mov rcx, qword [rbp + 8]
cmp rcx, r13
je 0x140003804
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov eax, esi
jmp 0x140003c8c
cmp dword [rbx], r14d
jne 0x140003815
call qword [rax + 0x30]
jmp 0x140003818
call qword [rax + 0x40]
add rbx, 0x10
jmp 0x1400037b9
cmp r12d, r13d
jne 0x140003c7b
lea rdx, [rbp + 0xc0]
mov r8d, 0x40
mov rcx, rdi
call qword [sym.imp.ole32.dll_StringFromGUID2]
lea rcx, [rbp + 0xc0]
mov rbx, r13
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 0xffffffff
add eax, r14d
movsxd rsi, eax
mov eax, 0x80000000
add rsi, rsi
add rax, rsi
cmp rax, rcx
ja 0x140003913
or r12, 0xffffffffffffffff
cmp esi, 0x400
jg 0x1400038ae
movsxd rdi, esi
mov rcx, rdi
call fcn.1400026e0
cmp al, r13b
je 0x1400038ae
lea rax, [rdi + 0xf]
cmp rax, rdi
ja 0x14000389b
movabs rax, 0xffffffffffffff0
and rax, 0xfffffffffffffff0
call fcn.14001a360
sub rsp, rax
lea rdi, [rsp + 0x60]
jmp 0x1400038d9
movsxd rcx, esi
mov rax, r12
sub rax, rcx
cmp rax, 0x10
jb 0x140003cb9
add rcx, 0x10
call fcn.14000e0ec
cmp rax, r13
je 0x140003913
mov qword [rax], r13
mov rbx, rax
lea rdi, [rax + 0x10]
cmp rdi, r13
je 0x140003913
mov qword [rsp + 0x38], r13
xor edx, edx
mov qword [rsp + 0x30], r13
lea r8, [rbp + 0xc0]
lea ecx, [rdx + 3]
mov r9d, r12d
mov dword [rsp + 0x28], esi
mov byte [rdi], r13b
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
neg eax
sbb rsi, rsi
and rsi, rdi
jmp 0x140003916
mov rsi, r13
cmp rsi, r13
je 0x140003c76
mov edi, 0x80
lea r8, str.CLSID_
lea rcx, [rbp + 0x40]
mov rdx, rdi
call fcn.14000e1e4
lea r14d, [rdi - 0x74]
cmp eax, r13d
je 0x140003975
cmp eax, r14d
je 0x14000396a
cmp eax, 0x16
je 0x14000395f
cmp eax, 0x22
je 0x14000395f
cmp eax, 0x50
je 0x140003975
mov ecx, 0x80004005
call fcn.140001dc0
int3
mov ecx, 0x80070057
call fcn.140001dc0
int3
mov ecx, 0x8007000e
call fcn.140001dc0
int3
lea rcx, [rbp + 0x40]
mov r8, rsi
mov rdx, rdi
call fcn.14000e344
cmp eax, r13d
je 0x1400039be
cmp eax, r14d
je 0x1400039b3
cmp eax, 0x16
je 0x1400039a8
cmp eax, 0x22
je 0x1400039a8
cmp eax, 0x50
je 0x1400039be
mov ecx, 0x80004005
call fcn.140001dc0
int3
mov ecx, 0x80070057
call fcn.140001dc0
int3
mov ecx, 0x8007000e
call fcn.140001dc0
int3
lea r8, str.Required_Categories
lea rcx, [rbp + 0x40]
mov rdx, rdi
call fcn.14000e344
cmp eax, r13d
je 0x140003a0b
cmp eax, r14d
je 0x140003a00
cmp eax, 0x16
je 0x1400039f5
cmp eax, 0x22
je 0x1400039f5
cmp eax, 0x50
je 0x140003a0b
mov ecx, 0x80004005
call fcn.140001dc0
int3
mov ecx, 0x80070057
call fcn.140001dc0
int3
mov ecx, 0x8007000e
call fcn.140001dc0
int3
lea rax, [rbp + 0x18]
mov rcx, 0xffffffff80000000
lea rdx, [rbp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov dword [rbp + 0x28], r13d
mov qword [rsp + 0x20], rax
mov qword [rbp + 0x20], rcx
mov rdi, r13
mov dword [rbp], r13d
mov qword [rbp + 0x18], r13
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, r13d
jne 0x140003ab3
mov rdi, qword [rbp + 0x18]
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
lea rax, [rbp]
mov qword [rsp + 0x30], r13
mov rcx, rdi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
movsxd r12, eax
cmp rdi, r13
je 0x140003a9b
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, r13
cmp r12, r13
jne 0x140003ab3
cmp dword [rbp], r13d
jne 0x140003ab3
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x20]
call fcn.140001edc
mov r12d, 0x80
lea r8, str.CLSID_
lea rcx, [rbp + 0x40]
mov rdx, r12
call fcn.14000e1e4
cmp eax, r13d
je 0x140003b06
cmp eax, r14d
je 0x140003afb
cmp eax, 0x16
je 0x140003af0
cmp eax, 0x22
je 0x140003af0
cmp eax, 0x50
je 0x140003b06
mov ecx, 0x80004005
call fcn.140001dc0
int3
mov ecx, 0x80070057
call fcn.140001dc0
int3
mov ecx, 0x8007000e
call fcn.140001dc0
int3
lea rcx, [rbp + 0x40]
mov r8, rsi
mov rdx, r12
call fcn.14000e344
cmp eax, r13d
je 0x140003b4f
cmp eax, r14d
je 0x140003b44
cmp eax, 0x16
je 0x140003b39
cmp eax, 0x22
je 0x140003b39
cmp eax, 0x50
je 0x140003b4f
mov ecx, 0x80004005
call fcn.140001dc0
int3
mov ecx, 0x80070057
call fcn.140001dc0
int3
mov ecx, 0x8007000e
call fcn.140001dc0
int3
lea r8, str.Implemented_Categories
lea rcx, [rbp + 0x40]
mov rdx, r12
call fcn.14000e344
cmp eax, r13d
je 0x140003b9c
cmp eax, r14d
je 0x140003b91
cmp eax, 0x16
je 0x140003b86
cmp eax, 0x22
je 0x140003b86
cmp eax, 0x50
je 0x140003b9c
mov ecx, 0x80004005
call fcn.140001dc0
int3
mov ecx, 0x80070057
call fcn.140001dc0
int3
mov ecx, 0x8007000e
call fcn.140001dc0
int3
lea rax, [rbp + 0x10]
mov r12, 0xffffffff80000000
lea rdx, [rbp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, r12
mov qword [rsp + 0x20], rax
mov qword [rbp + 0x10], r13
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, r13d
jne 0x140003c52
mov eax, r13d
cmp rdi, r13
je 0x140003be0
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rbp + 0x10]
cmp eax, r13d
jne 0x140003c52
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
lea rax, [rbp]
mov qword [rsp + 0x30], r13
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
movsxd rsi, eax
cmp rdi, r13
je 0x140003c3a
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, r13
cmp rsi, r13
jne 0x140003c52
cmp dword [rbp], r13d
jne 0x140003c52
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x20]
call fcn.140001edc
cmp rdi, r13
je 0x140003c60
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140003c76
mov rcx, rbx
mov rbx, qword [rbx]
call fcn.14000e1a4
cmp rbx, r13
jne 0x140003c6b
mov rcx, qword [rbp + 8]
cmp rcx, r13
je 0x140003c8a
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
xor eax, eax
mov rcx, qword [rbp + 0x140]
xor rcx, rbp
call fcn.14000cff0
mov rbx, qword [rbp + 0x190]
mov rsi, qword [rbp + 0x198]
lea rsp, [rbp + 0x150]
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
mov ecx, 0x80070057
call fcn.140001dc0
int3