Function at 0x1800152e0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
mov rbp, rsp
sub rsp, 0x60
cmp word [0x18002a9e0], 0
mov r12, rcx
je 0x180015342
lea rsi, [0x18002a9e0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, r12
mov ebx, eax
add ebx, ebx
mov edx, ebx
call fcn.180004470
mov edi, eax
test eax, eax
jne 0x180015613
mov rcx, qword [r12 + 8]
movsxd r8, ebx
mov rdx, rsi
call fcn.18001ca04
xor edi, edi
mov eax, edi
add rsp, 0x60
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
xor edi, edi
mov qword [rsp + 0x58], r13
mov dword [rbp + 0x40], 0x80
cmp qword [0x18002a838], rdi
mov qword [rsp + 0x50], r14
mov dword [rbp + 0x38], edi
jne 0x180015391
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.IsWow64Process
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18002a838], rax
test rax, rax
jne 0x180015391
mov eax, edi
mov dword [rbp + 0x38], eax
jmp 0x1800153b2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rbp + 0x38]
mov rcx, rax
call qword [0x18002a838]
test eax, eax
jne 0x1800153af
mov eax, edi
mov dword [rbp + 0x38], eax
jmp 0x1800153b2
mov eax, dword [rbp + 0x38]
test eax, eax
lea rax, [rbp + 0x48]
mov r13d, 1
mov r9d, r13d
mov r14d, 0x101
lea rdx, str.SoftwareCLASSESFAST
cmovne r9d, r14d
mov rcx, 0xffffffff80000002
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea rsi, [0x18002a9e0]
mov ebx, eax
test eax, eax
jne 0x18001542d
mov rcx, qword [rbp + 0x48]
lea rax, [rbp + 0x40]
lea rdx, str.CLSID
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0x48]
mov ebx, eax
test eax, eax
je 0x1800155d8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x1800155de
cmp qword [0x18002a838], rdi
mov dword [rbp + 0x40], 0x80
mov dword [rbp + 0x38], edi
jne 0x180015478
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.IsWow64Process
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18002a838], rax
test rax, rax
jne 0x180015478
mov eax, edi
mov dword [rbp + 0x38], eax
jmp 0x180015499
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rbp + 0x38]
mov rcx, rax
call qword [0x18002a838]
test eax, eax
jne 0x180015496
mov eax, edi
mov dword [rbp + 0x38], eax
jmp 0x180015499
mov eax, dword [rbp + 0x38]
test eax, eax
lea rax, [rbp + 0x48]
lea rdx, str.SoftwareCLASSESFAST
cmovne r13d, r14d
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov r9d, r13d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x180015501
mov rcx, qword [rbp + 0x48]
lea rax, [rbp + 0x40]
lea rdx, str.CLSID
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0x48]
mov ebx, eax
test eax, eax
je 0x1800155d8
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x1800155de
mov rbx, rdi
nop dword [rax]
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r11d, dword [0x18002a840]
inc rbx
imul r11d, r11d, 0x7f
add r11d, dword [rbp + 0x44]
mov eax, r11d
shr eax, 3
add eax, dword [rbp + 0x40]
add r11d, eax
mov byte [rbp + rbx + 0x37], r11b
mov dword [0x18002a840], r11d
cmp rbx, 8
jl 0x180015510
movzx eax, byte [rbp + 0x3f]
movzx edx, byte [rbp + 0x3e]
movzx r10d, byte [rbp + 0x3d]
movzx r11d, byte [rbp + 0x3c]
movzx ecx, byte [rbp + 0x3b]
movzx ebx, byte [rbp + 0x3a]
movzx r9d, byte [rbp + 0x39]
movzx r8d, byte [rbp + 0x38]
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x40], edx
mov dword [rsp + 0x38], r10d
mov dword [rsp + 0x30], r11d
mov dword [rsp + 0x28], ecx
lea rdx, str._2.2X_2.2X_2.2X_2.2X_2.2X_2.2X_2.2X_2.2X
mov rcx, rsi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, rsi
mov rcx, 0xffffffff80000002
lea r8d, [rax + rax + 2]
call fcn.180014f70
test eax, eax
je 0x1800155de
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, rsi
mov rcx, 0xffffffff80000001
lea r8d, [rax + rax + 2]
call fcn.180014f70
jmp 0x1800155de
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, r12
mov ebx, eax
add ebx, ebx
mov edx, ebx
call fcn.180004470
mov r14, qword [rsp + 0x50]
mov r13, qword [rsp + 0x58]
test eax, eax
jne 0x180015615
mov rcx, qword [r12 + 8]
movsxd r8, ebx
mov rdx, rsi
call fcn.18001ca04
mov eax, edi
add rsp, 0x60
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret