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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x6c
mov dword [ebp - 0x40], eax
cmp word [ecx], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x3c], eax
je 0x40b4fb
mov eax, ecx
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x40ae88
mov esi, dword [ebp - 0x58]
sub eax, esi
add eax, 0xe
mov dword [esp], eax
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [ebp - 0x50], eax
call eax
mov ebx, eax
mov eax, esi
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x40aeb0
mov ecx, dword [ebp - 0x58]
sub eax, ecx
sar eax, 1
add eax, 7
mov edx, dword [ebp - 0x58]
mov dword [esp + 8], 0x412c50
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0xc], edx
call fcn.0040a880
mov ecx, dword [ebp - 0x3c]
mov edx, ebx
mov eax, dword [ebp - 0x40]
call fcn.0040add0
mov eax, dword [sym.imp.ucrtbase.dll_free]
mov dword [esp], ebx
mov dword [ebp - 0x54], eax
call eax
mov dword [esp], 0x200
mov esi, dword [ebp - 0x50]
call esi
mov dword [ebp - 0x28], eax
mov dword [esp], 0x800
call esi
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], 0x800
mov dword [ebp - 0x34], 0x100
lea esi, cs:[esi]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x28]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x44]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumValueW]
sub esp, 0x20
test eax, eax
je 0x40afb0
cmp eax, 0xea
jne 0x40b358
mov ebx, dword [ebp - 0x1c]
cmp dword [ebp - 0x30], ebx
jae 0x40b138
mov dword [esp + 4], ebx
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], eax
jmp 0x40af30
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, 0x412cd0
test ecx, ecx
je 0x40afd0
cmp word [ecx], 0
jne 0x40b2f0
nop
add eax, 2
cmp word [eax], 0
jne 0x40afd0
sub eax, 0x412cd0
mov ecx, dword [ebp - 0x3c]
mov edx, 0x412cd0
sar eax, 1
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x40]
call fcn.0040add0
cmp ebx, 1
je 0x40b298
cmp ebx, 4
je 0x40b160
cmp ebx, 3
jne 0x40b16a
mov ebx, 0x412cc4
lea esi, cs:[esi]
add ebx, 2
cmp word [ebx], 0
jne 0x40b018
mov ecx, dword [ebp - 0x3c]
mov edx, 0x412cc4
mov eax, dword [ebp - 0x40]
call fcn.0040add0
mov edi, dword [ebp - 0x24]
test edi, edi
je 0x40b118
sub ebx, 0x412cc4
sar ebx, 1
mov dword [ebp - 0x4c], ebx
mov eax, dword [ebp - 0x24]
lea edi, [eax - 1]
lea eax, [eax + eax*2]
add eax, eax
mov dword [esp], eax
mov eax, dword [ebp - 0x50]
call eax
mov ebx, dword [ebp - 0x2c]
mov esi, eax
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x4c]
add edx, eax
lea eax, [ebx + edi]
xor edi, edi
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x24], esi
mov esi, edx
add eax, ebx
mov dword [ebp - 0x4c], eax
jmp 0x40b08a
mov eax, dword [ebp - 0x4c]
add ebx, 1
cmp ebx, eax
je 0x40b100
movzx eax, byte [ebx]
mov dword [esp + 8], str._02x
mov dword [esp + 4], 3
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x24]
lea eax, [eax + edi*2]
mov dword [esp], eax
call fcn.0040a880
mov edx, dword [ebp - 0x48]
add eax, edi
cmp ebx, edx
je 0x40b100
mov edi, dword [0x412e4c]
add esi, 3
mov ecx, dword [ebp - 0x24]
mov dword [ecx + eax*2], edi
lea edi, [eax + 1]
cmp esi, 0x4c
jbe 0x40b080
mov edi, dword [ebp - 0x3c]
add ebx, 1
mov esi, dword [ebp - 0x40]
mov edx, dword [ebp - 0x24]
mov ecx, edi
mov eax, esi
call fcn.0040add0
mov eax, esi
mov ecx, edi
mov edx, str._r_n
call fcn.0040add0
mov eax, dword [ebp - 0x4c]
xor edi, edi
mov esi, 2
cmp ebx, eax
jne 0x40b08a
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x40]
mov edx, esi
mov ecx, dword [ebp - 0x3c]
call fcn.0040add0
mov dword [esp], esi
mov eax, dword [ebp - 0x54]
call eax
mov ecx, dword [ebp - 0x3c]
mov edx, 0x412c22
mov eax, dword [ebp - 0x40]
call fcn.0040add0
add dword [ebp - 0x44], 1
jmp 0x40af30
mov eax, dword [ebp - 0x34]
lea ebx, [eax + eax]
shl eax, 2
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_realloc]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x28], eax
jmp 0x40af30
cmp dword [ebp - 0x24], 4
je 0x40b4a8
mov dword [esp], 0x1e
mov eax, dword [ebp - 0x50]
call eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.hex__x_:
mov esi, eax
mov dword [esp + 4], 0xf
mov dword [esp], eax
call fcn.0040a880
mov ecx, dword [ebp - 0x3c]
mov edx, esi
mov edi, eax
mov eax, dword [ebp - 0x40]
call fcn.0040add0
mov dword [esp], esi
mov edx, dword [ebp - 0x54]
call edx
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x40b118
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], edi
test ecx, ecx
jne 0x40b047
cmp ebx, 2
je 0x40b1d2
cmp ebx, 7
jne 0x40b047
mov edx, dword [ebp - 0x2c]
test edx, edx
je 0x40b4dc
mov edi, dword [ebp - 0x24]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov esi, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
shr edi, 1
mov dword [esp + 0xc], edi
mov eax, dword [ebp - 0x2c]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], eax
call esi
sub esp, 0x20
mov dword [ebp - 0x24], eax
mov dword [esp], eax
mov edx, dword [ebp - 0x50]
call edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov ebx, eax
mov eax, dword [ebp - 0x24]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], ecx
call esi
mov eax, dword [ebp - 0x24]
sub esp, 0x20
lea edi, [eax - 1]
lea eax, [eax + eax*2]
add eax, eax
mov dword [esp], eax
mov edx, dword [ebp - 0x50]
call edx
mov esi, eax
mov eax, dword [ebp - 0x24]
test eax, eax
jne 0x40b05f
jmp 0x40b103
mov esi, dword [ebp - 0x24]
lea ecx, [ebp - 0x10]
mov eax, esi
shr eax, 1
sub eax, 1
test esi, esi
cmove eax, esi
mov edx, eax
mov eax, dword [ebp - 0x2c]
call fcn.00409e30
mov ebx, eax
mov eax, dword [ebp - 0x10]
lea edi, [eax + 3]
lea eax, [edi + edi]
mov dword [esp], eax
mov eax, dword [ebp - 0x50]
call eax
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.__s_
mov esi, eax
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.0040a880
mov dword [esp], ebx
mov eax, dword [ebp - 0x54]
call eax
jmp 0x40b103
mov edx, dword [ebp - 0x20]
lea ecx, [ebp - 0x10]
mov eax, dword [ebp - 0x28]
call fcn.00409e30
mov edi, eax
mov eax, dword [ebp - 0x10]
lea edx, [eax + 4]
lea eax, [edx + edx]
mov dword [ebp - 0x48], edx
mov dword [esp], eax
mov eax, dword [ebp - 0x50]
call eax
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x412c62
mov edx, dword [ebp - 0x48]
mov esi, eax
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0040a880
mov ecx, dword [ebp - 0x3c]
mov edx, esi
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x40]
call fcn.0040add0
mov dword [esp], esi
mov esi, dword [ebp - 0x54]
call esi
mov dword [esp], edi
call esi
jmp 0x40aff3
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
mov esi, dword [ebp - 0x54]
call esi
mov eax, dword [ebp - 0x28]
mov dword [esp], eax
call esi
mov dword [esp], 0x202
mov eax, dword [ebp - 0x50]
call eax
mov ebx, eax
mov eax, dword [ebp - 0x58]
cmp word [eax], 0
je 0x40b4ef
lea esi, cs:[esi]
nop
add eax, 2
cmp word [eax], 0
jne 0x40b390
mov edx, dword [ebp - 0x58]
sub eax, edx
sar eax, 1
mov dword [ebp - 0x28], eax
xor esi, esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x101
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegEnumKeyExW]
sub esp, 0x20
test eax, eax
jne 0x40b470
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
lea edx, [edx + eax + 2]
lea eax, [edx + edx]
mov dword [ebp - 0x24], edx
mov dword [esp], eax
mov ecx, dword [ebp - 0x50]
call ecx
mov dword [esp + 0x10], ebx
mov edx, dword [ebp - 0x58]
mov dword [esp + 8], str._s_s
mov edi, eax
mov dword [esp + 0xc], edx
mov edx, dword [ebp - 0x24]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0040a880
lea ecx, [ebp - 0x10]
mov dword [esp + 4], ebx
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x38]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegOpenKeyExW]
sub esp, 0x14
test eax, eax
je 0x40b480
mov dword [esp], edi
add esi, 1
mov eax, dword [ebp - 0x54]
call eax
jmp 0x40b3a5
mov dword [ebp + 8], ebx
mov eax, dword [ebp - 0x54]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp eax
mov eax, dword [ebp - 0x3c]
mov ecx, edi
mov dword [esp], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x40]
call fcn.0040ae60
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x40b45c
mov dword [esp], 0x1e
mov eax, dword [ebp - 0x50]
call eax
mov esi, eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov dword [esp + 8], str.dword:_08x
mov dword [esp + 4], 0xf
mov dword [esp], esi
mov dword [esp + 0xc], eax
call fcn.0040a880
jmp 0x40b103
mov dword [esp], 0
mov eax, dword [ebp - 0x50]
call eax
mov esi, eax
jmp 0x40b103
mov dword [ebp - 0x28], 0
jmp 0x40b3a3
mov eax, dword [sym.imp.ucrtbase.dll_malloc]
mov dword [esp], 0xe
mov dword [ebp - 0x50], eax
call eax
mov ebx, eax
mov eax, 7
jmp 0x40aec3