Function at 0x416064
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x74
push 0x41f7a8
call fcn.0041f50c
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x78], edx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x70], eax
xor edi, edi
mov dword [ebp - 0x74], edi
mov eax, dword [ebp - 0x78]
mov dword [eax], edi
mov eax, dword [ebp - 0x70]
mov dword [eax], edi
mov dword [ebp - 0x64], edi
mov ebx, edi
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
push 0x30
lea eax, [ebp - 0x50]
push eax
push 2
push dword [ebp - 0x80]
call dword [sym.imp.ntdll.dll_ZwQueryKey]
mov esi, eax
mov dword [ebp - 0x54], esi
test esi, esi
jns 0x4160c0
cmp esi, 0x80000005
jne 0x41625f
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x60], ecx
test ecx, ecx
jne 0x4160d4
mov esi, edi
mov dword [ebp - 0x54], esi
jmp 0x41625f
mov eax, dword [ebp - 0x38]
lea ebx, [eax + 2]
cmp ebx, eax
jb 0x4160e2
mov esi, edi
jmp 0x4160ea
or ebx, 0xffffffff
mov esi, 0xc0000095
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x54], esi
test esi, esi
js 0x41610c
lea eax, [ebp - 0x5c]
push eax
mov edx, ecx
mov ecx, ebx
call fcn.0041214f
mov esi, eax
mov dword [ebp - 0x54], esi
mov ebx, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x60]
mov eax, edi
mov dword [ebp - 0x6c], eax
test esi, esi
js 0x41625c
lea eax, [ebp - 0x6c]
push eax
push 4
pop edx
call fcn.0041214f
mov esi, eax
mov dword [ebp - 0x54], esi
mov eax, dword [ebp - 0x6c]
test esi, esi
js 0x41625c
lea ecx, [eax + ebx]
cmp ecx, eax
jb 0x416142
mov eax, ecx
mov esi, edi
jmp 0x41614a
or eax, 0xffffffff
mov esi, 0xc0000095
mov dword [ebp - 0x54], esi
test esi, esi
js 0x41625c
push eax
push edi
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
mov dword [ebp - 0x58], ebx
test ebx, ebx
jne 0x416179
mov esi, 0xc000009a
jmp 0x4160cc
mov eax, dword [ebp - 0x60]
lea eax, [ebx + eax*4]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x38]
add eax, 0x1a
cmp eax, 0x1a
jb 0x416191
mov esi, edi
jmp 0x416199
or eax, 0xffffffff
mov esi, 0xc0000095
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x54], esi
test esi, esi
js 0x41625f
push eax
push edi
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
mov dword [ebp - 0x64], esi
test esi, esi
je 0x41616f
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x5c], eax
mov ebx, edi
cmp dword [ebp - 0x60], 0
jbe 0x41624a
lea eax, [ebp - 0x84]
push eax
push dword [ebp - 0x7c]
push esi
push edi
push ebx
push dword [ebp - 0x80]
call dword [sym.imp.ntdll.dll_ZwEnumerateKey]
mov esi, eax
mov dword [ebp - 0x54], esi
cmp esi, 0x8000001a
je 0x416246
test esi, esi
js 0x41625c
mov esi, dword [ebp - 0x64]
mov eax, dword [esi + 0xc]
add eax, 2
cmp eax, dword [ebp - 0x5c]
ja 0x41623f
mov ecx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x58]
mov dword [eax + ebx*4], ecx
push dword [esi + 0xc]
lea eax, [esi + 0x10]
push eax
push ecx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x68]
add eax, dword [esi + 0xc]
xor ecx, ecx
mov word [eax], cx
add eax, 2
mov dword [ebp - 0x68], eax
push 0xfffffffffffffffe
pop eax
sub eax, dword [esi + 0xc]
add dword [ebp - 0x5c], eax
inc ebx
cmp ebx, dword [ebp - 0x60]
jb 0x4161cf
jmp 0x41624a
mov esi, 0xc0000023
jmp 0x416259
test ebx, ebx
je 0x41625c
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x58]
mov dword [eax], ecx
mov eax, dword [ebp - 0x70]
mov dword [eax], ebx
mov esi, edi
mov dword [ebp - 0x54], esi
mov ebx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x64]
test eax, eax
je 0x416277
push eax
push edi
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
test esi, esi
jns 0x416290
test ebx, ebx
je 0x416290
push ebx
push edi
mov eax, dword fs:[0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp esi, 0xc000017d
jne 0x4162cc
mov dword [ebp - 4], edi
int3
mov eax, esi
call fcn.0041f554
ret 4