Function at 0x140114480
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xfe0]
mov eax, 0x10e0
call fcn.1402cb740
sub rsp, rax
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x1110], rbx
mov qword [rsp + 0x1120], rsi
mov qword [rsp + 0x1128], rdi
mov rax, qword [0x140418a10]
xor rax, rsp
mov qword [rbp + 0xfd0], rax
mov rax, rdx
lea rcx, str.4d36e967_e325_11ce_bfc1_08002be10318
mov qword [rbp - 0x50], rcx
lea rcx, str.4d36e96a_e325_11ce_bfc1_08002be10318
mov qword [rbp - 0x48], rcx
lea rcx, str.4d36e97b_e325_11ce_bfc1_08002be10318
mov qword [rbp - 0x40], rcx
xor sil, sil
mov r8d, 8
lea rdx, [rbp - 0x68]
mov rcx, rax
call fcn.1400d84b0
nop
cmp dword [rbp - 0x5c], 0
jle 0x1401147f3
lea r8, [rbp - 0x78]
lea rdx, str.SYSTEMCurrentControlSetControlCriticalDeviceDatabase
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1401147f3
xor r15d, r15d
mov dword [rsp + 0x64], r15d
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r15
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x64]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov r14d, r15d
cmp dword [rsp + 0x64], r15d
jbe 0x1401147e8
lea r12, [0x140348ca0]
lea r13d, [r15 + 1]
nop dword [rax]
nop dword [rax + rax]
mov r9d, 0x400
lea r8, [rbp + 0x7d0]
mov edx, r14d
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
inc r14d
test eax, eax
jne 0x1401147ba
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, [rbp + 0x7d0]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401147ba
mov dword [rsp + 0x60], 0x800
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Service
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401147b0
lea rax, [rbp - 0x30]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140114632
mov qword [rsp + 0x70], r15
test ebx, ebx
jne 0x14011464c
mov qword [rsp + 0x68], r12
jmp 0x140114672
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.1401ff260
movsxd r9, ebx
mov eax, dword [rsp + 0x70]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x30]
mov rcx, qword [rsp + 0x68]
call fcn.1402bd21c
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.140200570
nop
mov eax, dword [rsp + 0x74]
cmp dword [rbp - 0x5c], eax
jne 0x14011479f
mov rax, qword [rbp - 0x68]
mov r8, qword [rsp + 0x68]
sub r8, rax
nop dword [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x1401146b4
add rax, 2
test ecx, ecx
jne 0x1401146a0
test edx, edx
jne 0x14011479f
mov dword [rsp + 0x60], 0x800
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.ClassGUID
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14011479f
lea rax, [rbp - 0x30]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140114700
mov qword [rbp - 0x80], r15
test ebx, ebx
jne 0x140114719
mov qword [rsp + 0x78], r12
jmp 0x14011473e
mov edx, ebx
lea rcx, [rsp + 0x78]
call fcn.1401ff260
movsxd r9, ebx
mov eax, dword [rbp - 0x80]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x30]
mov rcx, qword [rsp + 0x78]
call fcn.1402bd21c
mov edx, ebx
lea rcx, [rsp + 0x78]
call fcn.140200570
nop
mov ebx, r15d
lea rdi, [rbp - 0x50]
nop dword [rax]
nop word [rax + rax]
xor r8d, r8d
mov rdx, qword [rdi]
lea rcx, [rsp + 0x78]
call fcn.1401ff540
movzx esi, sil
test al, al
cmovne esi, r13d
inc ebx
lea rdi, [rdi + 8]
movsxd rax, ebx
cmp rax, 3
jb 0x140114760
test sil, sil
jne 0x1401147c6
cmp dword [rbp - 0x80], 0
jle 0x14011479f
mov rcx, qword [rsp + 0x78]
call fcn.1402b9c20
nop
cmp dword [rsp + 0x70], 0
jle 0x1401147b0
mov rcx, qword [rsp + 0x68]
call fcn.1402b9c20
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp r14d, dword [rsp + 0x64]
jae 0x1401147e8
jmp 0x1401145a0
cmp dword [rbp - 0x80], 0
jle 0x1401147d7
mov rcx, qword [rsp + 0x78]
call fcn.1402b9c20
nop
cmp dword [rsp + 0x70], 0
jle 0x1401147e8
mov rcx, qword [rsp + 0x68]
call fcn.1402b9c20
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp dword [rbp - 0x60], 0
jle 0x140114802
mov rcx, qword [rbp - 0x68]
call fcn.1402b9c20
movzx eax, sil
mov rcx, qword [rbp + 0xfd0]
xor rcx, rsp
call fcn.1402b9610
lea r11, [rsp + 0x10e0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret