Function at 0x140113200
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.1402c8f60
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 [0x140415a10]
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.1400d8440
nop
cmp dword [rbp - 0x5c], 0
jle 0x140113573
lea r8, [rbp - 0x78]
lea rdx, str.SYSTEMCurrentControlSetControlCriticalDeviceDatabase
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x140113573
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 0x140113568
lea r12, [0x140346ce0]
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 0x14011353a
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 0x14011353a
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 0x140113530
lea rax, [rbp - 0x30]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401133b2
mov qword [rsp + 0x70], r15
test ebx, ebx
jne 0x1401133cc
mov qword [rsp + 0x68], r12
jmp 0x1401133f2
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.1401fcb40
movsxd r9, ebx
mov eax, dword [rsp + 0x70]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x30]
mov rcx, qword [rsp + 0x68]
call fcn.1402ba94c
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.1401fde50
nop
mov eax, dword [rsp + 0x74]
cmp dword [rbp - 0x5c], eax
jne 0x14011351f
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 0x140113434
add rax, 2
test ecx, ecx
jne 0x140113420
test edx, edx
jne 0x14011351f
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 0x14011351f
lea rax, [rbp - 0x30]
or rbx, 0xffffffffffffffff
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x140113480
mov qword [rbp - 0x80], r15
test ebx, ebx
jne 0x140113499
mov qword [rsp + 0x78], r12
jmp 0x1401134be
mov edx, ebx
lea rcx, [rsp + 0x78]
call fcn.1401fcb40
movsxd r9, ebx
mov eax, dword [rbp - 0x80]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x30]
mov rcx, qword [rsp + 0x78]
call fcn.1402ba94c
mov edx, ebx
lea rcx, [rsp + 0x78]
call fcn.1401fde50
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.1401fce20
movzx esi, sil
test al, al
cmovne esi, r13d
inc ebx
lea rdi, [rdi + 8]
movsxd rax, ebx
cmp rax, 3
jb 0x1401134e0
test sil, sil
jne 0x140113546
cmp dword [rbp - 0x80], 0
jle 0x14011351f
mov rcx, qword [rsp + 0x78]
call fcn.1402b7350
nop
cmp dword [rsp + 0x70], 0
jle 0x140113530
mov rcx, qword [rsp + 0x68]
call fcn.1402b7350
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp r14d, dword [rsp + 0x64]
jae 0x140113568
jmp 0x140113320
cmp dword [rbp - 0x80], 0
jle 0x140113557
mov rcx, qword [rsp + 0x78]
call fcn.1402b7350
nop
cmp dword [rsp + 0x70], 0
jle 0x140113568
mov rcx, qword [rsp + 0x68]
call fcn.1402b7350
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp dword [rbp - 0x60], 0
jle 0x140113582
mov rcx, qword [rbp - 0x68]
call fcn.1402b7350
movzx eax, sil
mov rcx, qword [rbp + 0xfd0]
xor rcx, rsp
call fcn.1402b6d40
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