Function at 0x13196
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x15058]
push ebx
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
push edi
mov ebx, 0x206b6444
push ebx
mov dword [ebp - 4], eax
xor eax, eax
push 0x400
push eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
call esi
mov edi, eax
push ebx
xor eax, eax
push 0x818
mov dword [ebp - 0x48], edi
mov ecx, 0x100
rep stosd dword es:[edi], eax
push eax
mov word [ebp - 0x4a], 0x400
call esi
mov ebx, eax
test ebx, ebx
je 0x133c8
xor eax, eax
mov ecx, 0x206
mov edi, ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x54]
push eax
push 0x818
xor esi, esi
push ebx
push esi
mov dword [ebp - 0x50], esi
push esi
jmp 0x133af
cmp dword [ebp - 0x54], esi
jbe 0x13391
mov edi, dword [ebp - 0x48]
mov word [ebp - 0x4a], 0x400
xor eax, eax
mov ecx, 0x100
rep stosd dword es:[edi], eax
mov ecx, dword [ebx + 0xc]
mov edi, dword [ebp - 0x48]
shl ecx, 1
mov eax, ecx
shr ecx, 2
lea esi, [ebx + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push dword [ebp - 0x48]
call dword [sym.imp.ntoskrnl.exe_wcslen]
and dword [ebp - 0x5c], 0
and dword [ebp - 0x58], 0
shl eax, 1
mov word [ebp - 0x4c], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x4c]
pop ecx
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x6c]
push eax
push 0xf003f
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x6c], 0x18
mov dword [ebp - 0x60], 0x40
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jl 0x1339c
cmp dword [ebp - 0x44], 0
jbe 0x13391
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 7
xor eax, eax
pop ecx
and dword [ebp - 0x40], 0
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x40]
push eax
push 0x13122
push dword [ebp - 0x44]
call fcn.00012e3a
test eax, eax
jl 0x13378
mov esi, dword [ebp - 0x40]
mov eax, dword [esi + 8]
add eax, esi
push 0x13146
push eax
call dword [sym.imp.ntoskrnl.exe_wcsstr]
test eax, eax
pop ecx
pop ecx
jne 0x1337b
lea eax, [ebp - 0x40]
push eax
push 0x13152
push dword [ebp - 0x44]
call fcn.00012e3a
test eax, eax
jl 0x13378
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 8]
add ecx, eax
push ecx
call fcn.00012e7a
lea eax, [ebp - 0x40]
push eax
push 0x13162
push dword [ebp - 0x44]
call fcn.00012e3a
test eax, eax
jl 0x13378
lea eax, [ebp - 0x3c]
push eax
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 8]
add ecx, eax
push ecx
call fcn.00012e7a
lea eax, [ebp - 0x40]
push eax
push 0x1317a
push dword [ebp - 0x44]
call fcn.00012e3a
test eax, eax
jl 0x13378
mov esi, dword [ebp - 0x40]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi + 8]
add eax, esi
push eax
call fcn.00012e7a
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00012edc
jmp 0x1337b
mov esi, dword [ebp - 0x40]
test esi, esi
je 0x13388
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push dword [ebp - 0x44]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov ecx, 0x206
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
inc dword [ebp - 0x50]
lea eax, [ebp - 0x54]
push eax
push 0x818
push ebx
xor esi, esi
push esi
push dword [ebp - 0x50]
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
test eax, eax
jge 0x1320b
push esi
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp dword [ebp - 0x48], 0
pop edi
pop esi
pop ebx
je 0x133dc
push 0
push dword [ebp - 0x48]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov ecx, dword [ebp - 4]
xor eax, eax
call fcn.00013f40
leave
ret 8