Function at 0x42287b
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x74
push 0x42b090
call fcn.0042ae54
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x78], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x7c], eax
xor edi, edi
mov dword [ebp - 0x80], edi
mov eax, dword [ebp - 0x78]
mov dword [eax], edi
mov eax, dword [ebp - 0x7c]
mov dword [eax], edi
mov dword [ebp - 0x60], edi
mov ebx, edi
mov dword [ebp - 0x54], ebx
mov eax, dword [ebp - 0x6c]
and eax, 0xfffffffd
mov dword [ebp - 0x6c], eax
lea ecx, [ebp - 0x84]
push ecx
push 0x30
lea ecx, [ebp - 0x50]
push ecx
push 2
push eax
call dword [sym.imp.ntdll.dll_ZwQueryKey]
mov esi, eax
mov dword [ebp - 0x58], esi
test esi, esi
jns 0x4228de
cmp esi, 0x80000005
jne 0x422a7a
mov ebx, dword [ebp - 0x3c]
mov dword [ebp - 0x74], ebx
test ebx, ebx
je 0x422a72
mov eax, dword [ebp - 0x38]
lea ecx, [eax + 2]
cmp ecx, eax
jb 0x4228fa
mov esi, edi
jmp 0x422902
mov esi, 0xc0000095
or ecx, 0xffffffff
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], esi
test esi, esi
js 0x42291f
lea eax, [ebp - 0x5c]
push eax
mov edx, ebx
call fcn.0041c6f9
mov esi, eax
mov dword [ebp - 0x58], esi
mov ecx, dword [ebp - 0x5c]
mov eax, edi
mov dword [ebp - 0x64], eax
test esi, esi
js 0x422a77
mov eax, ebx
push 4
pop edx
mul edx
cmp edx, edi
ja 0x422942
jb 0x42293e
cmp eax, 0xffffffff
ja 0x422942
mov esi, edi
jmp 0x42294a
mov esi, 0xc0000095
or eax, 0xffffffff
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x58], esi
test esi, esi
js 0x422a77
lea edx, [ebp - 0x64]
push edx
mov edx, ecx
mov ecx, eax
call fcn.0041c6d4
mov esi, eax
mov dword [ebp - 0x58], esi
mov eax, dword [ebp - 0x64]
test esi, esi
js 0x422a77
push eax
push edi
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x54], eax
test eax, eax
jne 0x422997
mov esi, 0xc000009a
jmp 0x422a74
lea eax, [eax + ebx*4]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x68], 0x1a
lea eax, [ebp - 0x68]
push eax
mov edx, dword [ebp - 0x38]
push 0x1a
pop ecx
call fcn.0041c6d4
mov esi, eax
mov dword [ebp - 0x58], esi
test esi, esi
js 0x422a77
push dword [ebp - 0x68]
push edi
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, eax
mov dword [ebp - 0x60], ecx
test ecx, ecx
je 0x42298d
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x5c], eax
mov ebx, edi
cmp dword [ebp - 0x74], 0
jbe 0x422a65
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x68]
push ecx
push edi
push ebx
push dword [ebp - 0x6c]
call dword [sym.imp.ntdll.dll_ZwEnumerateKey]
mov esi, eax
mov dword [ebp - 0x58], esi
cmp esi, 0x8000001a
je 0x422a61
test esi, esi
js 0x422a77
mov ecx, dword [ebp - 0x60]
mov eax, dword [ecx + 0xc]
add eax, 2
cmp eax, dword [ebp - 0x5c]
ja 0x422a5a
mov esi, dword [ebp - 0x70]
mov eax, dword [ebp - 0x54]
mov dword [eax + ebx*4], esi
push dword [ecx + 0xc]
lea eax, [ecx + 0x10]
push eax
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x60]
add esi, dword [ecx + 0xc]
xor eax, eax
mov word [esi], ax
add esi, 2
mov dword [ebp - 0x70], esi
push 0xfffffffffffffffe
pop eax
sub eax, dword [ecx + 0xc]
add dword [ebp - 0x5c], eax
inc ebx
cmp ebx, dword [ebp - 0x74]
jb 0x4229ea
jmp 0x422a65
mov esi, 0xc0000023
jmp 0x422a74
test ebx, ebx
je 0x422a77
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x54]
mov dword [eax], ecx
mov eax, dword [ebp - 0x7c]
mov dword [eax], ebx
mov esi, edi
mov dword [ebp - 0x58], esi
mov ebx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x422a92
push eax
push edi
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
test esi, esi
jns 0x422aab
test ebx, ebx
je 0x422aab
push ebx
push edi
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp esi, 0xc000017d
jne 0x422ae7
mov dword [ebp - 4], edi
int3
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4