Function at 0x406c83
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x148
mov eax, 0x5ba02f
call fcn.00580bb4
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x70], eax
xor ebx, ebx
lea eax, [ebp - 0x38]
mov edi, ecx
mov dword [ebp - 0x30], ebx
push eax
mov dword [ebp - 0x54], edi
mov byte [ebp - 0x31], bl
mov dword [ebp - 0x38], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
jne 0x406cce
mov dword [ebp - 0x38], eax
jmp 0x406cd1
mov eax, dword [ebp - 0x38]
cmp eax, 1
jne 0x406cd9
mov dword [ebp - 0x38], eax
cmp dword [edi + 0x18], 8
jb 0x406ce4
mov edx, dword [edi + 4]
jmp 0x406ce7
lea edx, [edi + 4]
dec eax
neg eax
lea ecx, [ebp - 0x68]
push ecx
sbb eax, eax
mov ecx, 0x100
and eax, ecx
add eax, ecx
or eax, 0x20019
push eax
push ebx
push edx
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4070dd
push dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esi, [ebp - 0x74]
push dword [ebp - 0x68]
call fcn.0040e3a7
mov dword [ebp - 4], ebx
mov esi, 0x3fff
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
mov dword [ebp - 0x48], esi
neg ecx
or ecx, eax
push ecx
call fcn.005723d9
pop ecx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x4c], ebx
jmp 0x406d56
mov edi, dword [ebp - 0x54]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea eax, [ebp - 0x3c]
push eax
push ebx
lea eax, [ebp - 0x40]
push eax
push ebx
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x44]
mov dword [ebp - 0x48], 0x3fff
push dword [ebp - 0x4c]
push dword [ebp - 0x68]
call esi
inc dword [ebp - 0x4c]
cmp eax, ebx
jne 0x4070b3
cmp dword [ebp - 0x40], 1
je 0x406d93
cmp dword [ebp - 0x40], 7
jne 0x406d56
mov eax, dword [ebp - 0x3c]
shr eax, 1
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
mov dword [ebp - 0x48], 0x3fff
neg ecx
or ecx, eax
push ecx
call fcn.005723d9
pop ecx
lea ecx, [ebp - 0x3c]
push ecx
push eax
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x40]
push eax
push ebx
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x44]
mov eax, dword [ebp - 0x4c]
dec eax
push eax
push dword [ebp - 0x68]
call esi
cmp eax, ebx
jne 0x4070b3
xor edi, edi
inc edi
cmp dword [ebp - 0x40], edi
je 0x406ded
cmp dword [ebp - 0x40], 7
jne 0x406d53
lea eax, [ebp - 0x64]
push eax
call fcn.00405111
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x38]
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 4
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x6c]
call fcn.0040e3fa
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.004085d2
push 0x68a2d4
lea eax, [ebp - 0x60]
push eax
call fcn.004085f0
mov eax, dword [ebp - 0x54]
cmp dword [eax + 0x18], 8
jb 0x406e3b
add eax, 4
mov eax, dword [eax]
jmp 0x406e3e
add eax, 4
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.004085f0
mov eax, dword [ebp - 0x44]
cmp word [eax], bx
jne 0x406e57
push 0x68a2d8
jmp 0x406e58
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004085d2
push dword [ebp - 0x70]
lea esi, [ebp - 0x2c]
call fcn.004081a6
mov byte [ebp - 4], 2
push 0x68a328
mov eax, esi
push eax
call fcn.004081d4
mov eax, dword [ebp - 0x3c]
shr eax, 1
push eax
push dword [ebp - 0x58]
lea esi, [ebp - 0x138]
call fcn.00408163
mov byte [ebp - 4], 3
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x2c]
call fcn.004097a9
mov byte [ebp - 4], 2
push ebx
push edi
call fcn.00409bbf
push 0x68a32c
lea esi, [ebp - 0xac]
call fcn.00408187
mov byte [ebp - 4], 4
push dword [ebp - 0x48]
or dword [ebp - 0x30], edi
push dword [ebp - 0x44]
lea esi, [ebp - 0x11c]
call fcn.00408163
mov dword [ebp - 4], 5
or dword [ebp - 0x30], 2
lea ecx, [ebp - 0xac]
push ecx
mov edx, eax
lea ecx, [ebp - 0xe4]
call fcn.0040696d
pop ecx
mov dword [ebp - 4], 6
or dword [ebp - 0x30], 4
push ebx
lea ecx, [ebp - 0x64]
push ecx
push dword [ebp - 0x50]
mov ecx, eax
call fcn.00406435
add esp, 0xc
test al, al
jne 0x406fa3
push str.InprocServer32
lea esi, [ebp - 0x90]
call fcn.00408187
mov dword [ebp - 4], 7
mov eax, dword [ebp - 0x3c]
or dword [ebp - 0x30], 8
shr eax, 1
push eax
push dword [ebp - 0x58]
lea esi, [ebp - 0xc8]
call fcn.00408163
mov dword [ebp - 4], 8
or dword [ebp - 0x30], 0x10
lea ecx, [ebp - 0x90]
push ecx
mov edx, eax
lea ecx, [ebp - 0x100]
call fcn.0040696d
pop ecx
mov dword [ebp - 4], 9
or dword [ebp - 0x30], 0x20
push ebx
lea ecx, [ebp - 0x64]
push ecx
push dword [ebp - 0x50]
mov ecx, eax
call fcn.00406435
add esp, 0xc
test al, al
jne 0x406fa3
push ebx
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x50]
lea ecx, [ebp - 0x2c]
call fcn.00406435
add esp, 0xc
mov byte [ebp - 0x32], 1
test al, al
je 0x406fa6
mov byte [ebp - 0x32], bl
mov dword [ebp - 4], 8
test byte [ebp - 0x30], 0x20
je 0x406fc4
and dword [ebp - 0x30], 0xffffffdf
push ebx
push edi
lea esi, [ebp - 0x100]
call fcn.00409bbf
mov dword [ebp - 4], 7
test byte [ebp - 0x30], 0x10
je 0x406fe2
and dword [ebp - 0x30], 0xffffffef
push ebx
push edi
lea esi, [ebp - 0xc8]
call fcn.00409bbf
mov dword [ebp - 4], 6
test byte [ebp - 0x30], 8
je 0x407000
and dword [ebp - 0x30], 0xfffffff7
push ebx
push edi
lea esi, [ebp - 0x90]
call fcn.00409bbf
mov dword [ebp - 4], 5
test byte [ebp - 0x30], 4
je 0x40701e
and dword [ebp - 0x30], 0xfffffffb
push ebx
push edi
lea esi, [ebp - 0xe4]
call fcn.00409bbf
mov dword [ebp - 4], 4
test byte [ebp - 0x30], 2
je 0x40703c
and dword [ebp - 0x30], 0xfffffffd
push ebx
push edi
lea esi, [ebp - 0x11c]
call fcn.00409bbf
mov dword [ebp - 4], 2
test byte [ebp - 0x30], 1
je 0x40705a
and dword [ebp - 0x30], 0xfffffffe
push ebx
push edi
lea esi, [ebp - 0xac]
call fcn.00409bbf
cmp byte [ebp - 0x32], bl
je 0x407094
mov eax, dword [ebp - 0x3c]
shr eax, 1
push eax
push dword [ebp - 0x58]
lea esi, [ebp - 0x154]
call fcn.00408163
mov byte [ebp - 4], 0xa
push ebx
lea ecx, [ebp - 0x64]
push ecx
push dword [ebp - 0x50]
mov ecx, eax
call fcn.00406435
add esp, 0xc
mov byte [ebp - 4], 2
push ebx
push edi
call fcn.00409bbf
mov byte [ebp - 4], 1
push ebx
push edi
lea esi, [ebp - 0x2c]
call fcn.00409bbf
mov byte [ebp - 4], bl
lea eax, [ebp - 0x64]
push eax
call fcn.00405144
jmp 0x406d53
cmp eax, 0x103
jne 0x4070be
mov byte [ebp - 0x31], 1
push dword [ebp - 0x44]
call fcn.0057426b
pop ecx
or dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x74]
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebp - 0x38]
mov ecx, eax
dec eax
mov dword [ebp - 0x38], eax
test ecx, ecx
jne 0x406cd9
mov al, byte [ebp - 0x31]
call fcn.00580c37
ret