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

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x498
or dword [ebp + 0x68], 0xffffffff
push esi
push edi
xor eax, eax
mov edi, 0x1fe
xor esi, esi
push edi
mov word [ebp - 0x228], ax
lea eax, [ebp - 0x226]
push esi
push eax
mov dword [ebp + 0x64], esi
call sub.ntoskrnl.exe_memset
xor eax, eax
push edi
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x426]
push esi
push eax
call sub.ntoskrnl.exe_memset
push 0x38
lea eax, [ebp - 0x28]
push esi
push eax
mov dword [ebp + 0x3c], esi
mov dword [ebp + 0x50], esi
call sub.ntoskrnl.exe_memset
add esp, 0x24
lea eax, [ebp + 0x38]
push 4
mov dword [ebp - 0x1c], eax
pop eax
lea ecx, [ebp + 0x3c]
mov dword [ebp - 0x24], 0x20
mov dword [ebp - 0x20], str.RefCount
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], eax
call fcn.00011d09
mov edi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push eax
lea eax, [ebp + 0x30]
push eax
call edi
call fcn.00011ff9
push eax
lea eax, [ebp + 0x10]
push eax
call edi
mov edi, dword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
xor eax, eax
mov word [ebp + 0x54], ax
mov eax, 0x200
mov ecx, eax
mov word [ebp + 0x4a], ax
lea eax, [ebp - 0x428]
mov dword [ebp + 0x4c], eax
mov word [ebp + 0x56], cx
lea eax, [ebp + 0x10]
lea ecx, [ebp - 0x228]
push eax
mov dword [ebp + 0x58], ecx
lea eax, [ebp + 0x54]
xor ecx, ecx
push eax
mov word [ebp + 0x48], cx
call edi
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp + 0x48]
push eax
call edi
lea eax, [ebp + 0x30]
mov dword [ebp + 0x20], eax
lea eax, [ebp + 0x18]
mov dword [ebp + 0x18], 0x18
mov dword [ebp + 0x1c], esi
mov dword [ebp + 0x24], 0x40
mov dword [ebp + 0x28], esi
mov dword [ebp + 0x2c], esi
push eax
push 0xf003f
lea eax, [ebp + 0x68]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jl 0x122fe
mov edi, dword [sym.imp.ntoskrnl.exe_ZwQueryKey]
lea eax, [ebp + 0x6c]
push eax
push esi
push esi
push 2
push dword [ebp + 0x68]
call edi
cmp dword [ebp + 0x6c], esi
jbe 0x122fe
push ebx
push dword [ebp + 0x6c]
mov ebx, dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
push 1
call ebx
mov dword [ebp + 0x5c], eax
cmp eax, esi
je 0x122fd
lea ecx, [ebp + 0x6c]
push ecx
push dword [ebp + 0x6c]
push eax
push 2
push dword [ebp + 0x68]
call edi
test eax, eax
jl 0x122f3
mov edi, dword [ebp + 0x5c]
push edi
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x122f3
mov dword [ebp + 0x60], esi
cmp dword [edi + 0x14], esi
jbe 0x122f3
mov edi, dword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
lea eax, [ebp + 0x6c]
push eax
push esi
push esi
push esi
push dword [ebp + 0x60]
push dword [ebp + 0x68]
call edi
cmp dword [ebp + 0x6c], esi
jbe 0x122ad
push dword [ebp + 0x6c]
push 1
call ebx
lea ecx, [ebp + 0x6c]
push ecx
push dword [ebp + 0x6c]
mov dword [ebp + 0x64], eax
push eax
push esi
push dword [ebp + 0x60]
push dword [ebp + 0x68]
call edi
test eax, eax
jl 0x122ad
cmp dword [ebp + 0x64], esi
je 0x122ad
push dword [ebp + 0x64]
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x122ad
mov eax, dword [ebp + 0x64]
mov cx, word [eax + 0xc]
mov word [ebp + 0x42], cx
mov word [ebp + 0x40], cx
lea ecx, [eax + 0x10]
mov dword [ebp + 0x44], ecx
cmp dword [eax + 0xc], 0x14
jbe 0x122ad
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 0x54]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
lea eax, [ebp + 0x40]
push eax
lea eax, [ebp + 0x48]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
push esi
push esi
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 0x4c]
push esi
call dword [sym.imp.ntoskrnl.exe_RtlQueryRegistryValues]
cmp dword [ebp + 0x38], esi
ja 0x122c1
inc dword [ebp + 0x60]
mov eax, dword [ebp + 0x5c]
mov ecx, dword [ebp + 0x60]
cmp ecx, dword [eax + 0x14]
jb 0x1221c
jmp 0x122e4
movzx eax, word [ebp + 0x54]
lea ecx, [eax + eax + 2]
cmp dword [ebp + 0x7c], ecx
jbe 0x122e4
push eax
push dword [ebp + 0x58]
push dword [ebp + 0x78]
call sub.ntoskrnl.exe_wcsncpy
add esp, 0xc
mov dword [ebp + 0x50], 1
cmp dword [ebp + 0x64], esi
je 0x122f3
push esi
push dword [ebp + 0x64]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push esi
push dword [ebp + 0x5c]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
pop ebx
cmp dword [ebp + 0x68], esi
pop edi
pop esi
je 0x1230e
push dword [ebp + 0x68]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [ebp + 0x50]
add ebp, 0x70
leave
ret 8