Function at 0x406c1d
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x148
mov eax, 0x5c936e
call fcn.0058ec94
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 0x406c68
mov dword [ebp - 0x38], eax
jmp 0x406c6b
mov eax, dword [ebp - 0x38]
cmp eax, 1
jne 0x406c73
mov dword [ebp - 0x38], eax
cmp dword [edi + 0x18], 8
jb 0x406c7e
mov edx, dword [edi + 4]
jmp 0x406c81
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 0x407077
push dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esi, [ebp - 0x74]
push dword [ebp - 0x68]
call fcn.0040e20e
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.005807c3
pop ecx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x4c], ebx
jmp 0x406cf0
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 0x40704d
cmp dword [ebp - 0x40], 1
je 0x406d2d
cmp dword [ebp - 0x40], 7
jne 0x406cf0
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.005807c3
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 0x40704d
xor edi, edi
inc edi
cmp dword [ebp - 0x40], edi
je 0x406d87
cmp dword [ebp - 0x40], 7
jne 0x406ced
lea eax, [ebp - 0x64]
push eax
call fcn.004050ad
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.0040e261
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0040865a
push 0x6810d0
lea eax, [ebp - 0x60]
push eax
call fcn.00408678
mov eax, dword [ebp - 0x54]
cmp dword [eax + 0x18], 8
jb 0x406dd5
add eax, 4
mov eax, dword [eax]
jmp 0x406dd8
add eax, 4
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.00408678
mov eax, dword [ebp - 0x44]
cmp word [eax], bx
jne 0x406df1
push str.2BAE191B_03CE_4148_8BBA_28AE87939E58
jmp 0x406df2
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0040865a
push dword [ebp - 0x70]
lea esi, [ebp - 0x2c]
call fcn.0040822e
mov byte [ebp - 4], 2
push 0x6810d0
mov eax, esi
push eax
call fcn.0040825c
mov eax, dword [ebp - 0x3c]
shr eax, 1
push eax
push dword [ebp - 0x58]
lea esi, [ebp - 0x138]
call fcn.004081eb
mov byte [ebp - 4], 3
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x2c]
call fcn.00409990
mov byte [ebp - 4], 2
push ebx
push edi
call fcn.00409da6
push str.InprocServer32
lea esi, [ebp - 0xac]
call fcn.0040820f
mov byte [ebp - 4], 4
push dword [ebp - 0x48]
or dword [ebp - 0x30], edi
push dword [ebp - 0x44]
lea esi, [ebp - 0x11c]
call fcn.004081eb
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.00406907
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.004063cf
add esp, 0xc
test al, al
jne 0x406f3d
push str.InprocServer32
lea esi, [ebp - 0x90]
call fcn.0040820f
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.004081eb
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.00406907
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.004063cf
add esp, 0xc
test al, al
jne 0x406f3d
push ebx
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x50]
lea ecx, [ebp - 0x2c]
call fcn.004063cf
add esp, 0xc
mov byte [ebp - 0x32], 1
test al, al
je 0x406f40
mov byte [ebp - 0x32], bl
mov dword [ebp - 4], 8
test byte [ebp - 0x30], 0x20
je 0x406f5e
and dword [ebp - 0x30], 0xffffffdf
push ebx
push edi
lea esi, [ebp - 0x100]
call fcn.00409da6
mov dword [ebp - 4], 7
test byte [ebp - 0x30], 0x10
je 0x406f7c
and dword [ebp - 0x30], 0xffffffef
push ebx
push edi
lea esi, [ebp - 0xc8]
call fcn.00409da6
mov dword [ebp - 4], 6
test byte [ebp - 0x30], 8
je 0x406f9a
and dword [ebp - 0x30], 0xfffffff7
push ebx
push edi
lea esi, [ebp - 0x90]
call fcn.00409da6
mov dword [ebp - 4], 5
test byte [ebp - 0x30], 4
je 0x406fb8
and dword [ebp - 0x30], 0xfffffffb
push ebx
push edi
lea esi, [ebp - 0xe4]
call fcn.00409da6
mov dword [ebp - 4], 4
test byte [ebp - 0x30], 2
je 0x406fd6
and dword [ebp - 0x30], 0xfffffffd
push ebx
push edi
lea esi, [ebp - 0x11c]
call fcn.00409da6
mov dword [ebp - 4], 2
test byte [ebp - 0x30], 1
je 0x406ff4
and dword [ebp - 0x30], 0xfffffffe
push ebx
push edi
lea esi, [ebp - 0xac]
call fcn.00409da6
cmp byte [ebp - 0x32], bl
je 0x40702e
mov eax, dword [ebp - 0x3c]
shr eax, 1
push eax
push dword [ebp - 0x58]
lea esi, [ebp - 0x154]
call fcn.004081eb
mov byte [ebp - 4], 0xa
push ebx
lea ecx, [ebp - 0x64]
push ecx
push dword [ebp - 0x50]
mov ecx, eax
call fcn.004063cf
add esp, 0xc
mov byte [ebp - 4], 2
push ebx
push edi
call fcn.00409da6
mov byte [ebp - 4], 1
push ebx
push edi
lea esi, [ebp - 0x2c]
call fcn.00409da6
mov byte [ebp - 4], bl
lea eax, [ebp - 0x64]
push eax
call fcn.004050e0
jmp 0x406ced
cmp eax, 0x103
jne 0x407058
mov byte [ebp - 0x31], 1
push dword [ebp - 0x44]
call fcn.005820bb
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 0x406c73
mov al, byte [ebp - 0x31]
call fcn.0058ed17
ret