Function at 0x1352a
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
jne 0x13548
or eax, 0xffffffff
jmp 0x13761
push ebx
mov ebx, dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
push esi
push 0x3e8
push 1
call ebx
push dword [ebp + 8]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x4c]
push eax
push 0xf003f
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x4c], 0x18
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x40], 0x40
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jl 0x13766
mov esi, dword [sym.imp.ntoskrnl.exe_ZwQueryKey]
lea eax, [ebp - 8]
push eax
push edi
push edi
push 2
push dword [ebp - 0x14]
call esi
push dword [ebp - 8]
push 1
call ebx
mov edi, eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
mov dword [ebp - 0x28], edi
push edi
push 2
push dword [ebp - 0x14]
call esi
mov esi, dword [edi + 0x18]
add esi, 0x18
push esi
push 1
mov dword [ebp - 0x2c], esi
call ebx
and dword [ebp - 0x10], 0
cmp dword [edi + 0x14], 0
mov dword [ebp - 0x18], eax
jbe 0x13709
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp - 0x18]
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
push 0x208
push 1
call ebx
push 0x104
push 0
push eax
mov dword [ebp - 0xc], eax
call sub.ntoskrnl.exe_memset
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0xc]
shr ecx, 1
push ecx
add eax, 0x10
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ntoskrnl.exe_wcsncpy]
add esp, 0x18
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0xc]
call fcn.00013064
test eax, eax
jne 0x136ef
mov esi, 0x1000
push esi
push 1
call ebx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
push esi
lea edi, [ecx + edx*4]
push 0
push eax
mov dword [ebp - 0x24], edi
mov dword [edi], eax
call sub.ntoskrnl.exe_memset
mov eax, dword [ebp + 8]
add esp, 0xc
mov ecx, eax
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x13675
mov edi, dword [edi]
sub eax, ecx
dec edi
mov esi, ecx
dec edi
mov cx, word [edi + 2]
inc edi
inc edi
test cx, cx
jne 0x13687
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x24]
mov edi, dword [ecx]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x136a7
mov eax, dword [ebp - 0xc]
mov esi, 0x15116
movsd dword es:[edi], dword [esi]
mov esi, eax
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x136bd
mov edi, dword [ecx]
sub eax, esi
dec edi
dec edi
mov cx, word [edi + 2]
inc edi
inc edi
test cx, cx
jne 0x136cd
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
inc dword [ebp - 4]
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x2c]
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [edi + 0x14]
jb 0x135ee
mov esi, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push 0
push dword [ebp - 0x18]
call esi
xor ebx, ebx
push ebx
push edi
call esi
cmp dword [ebp - 4], ebx
jle 0x13741
mov eax, dword [ebp - 0x1c]
lea edi, [eax + ebx*4]
push dword [edi]
call fcn.00012b5c
test eax, eax
jl 0x13735
inc dword [ebp - 0x20]
push 0
push dword [edi]
call esi
inc ebx
cmp ebx, dword [ebp - 4]
jl 0x13721
xor edi, edi
push edi
push dword [ebp - 0x1c]
call esi
call dword [sym.imp.ntoskrnl.exe_ExGetPreviousMode]
test al, al
pop esi
pop ebx
jne 0x1375e
push dword [ebp - 0x14]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [ebp - 0x20]
pop edi
leave
ret 0xc
mov esi, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
jmp 0x13743