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

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xc4
push ebx
mov ebx, dword [sym.imp.ntoskrnl.exe_sprintf]
push esi
mov esi, dword [ebp + 0x7c]
mov eax, dword [esi]
mov ecx, eax
push edi
shr ecx, 5
and ecx, 7
push ecx
and eax, 0x1f
push eax
push dword [esi + 4]
xor edi, edi
lea eax, [ebp - 0x50]
push 0x22c92
push eax
mov word [ebp + 0x24], 0x26
mov word [ebp + 0x26], 0x28
mov dword [ebp + 0x28], 0x22cb6
mov word [ebp + 0x2c], 0x22
mov word [ebp + 0x2e], 0x24
mov dword [ebp + 0x30], 0x22cde
mov dword [ebp + 0x6c], edi
mov dword [ebp + 0x70], edi
mov dword [ebp + 0x60], edi
mov dword [ebp + 0x5c], edi
call ebx
add esp, 0x14
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp + 0x34]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitString]
push 1
lea eax, [ebp + 0x34]
push eax
lea eax, [ebp + 0x54]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
test eax, eax
jne 0x22f26
push 0x206d6457
push 0x200
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
cmp eax, edi
mov dword [ebp + 0x68], eax
jne 0x22e52
lea eax, [ebp + 0x54]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
jmp 0x22f26
push 0x22d02
lea eax, [ebp + 0x64]
push eax
mov word [ebp + 0x64], di
mov word [ebp + 0x66], 0x200
call dword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
movzx eax, byte [esi + 0x10]
push eax
movzx eax, word [esi + 0x34]
push eax
movzx eax, word [esi + 0x36]
push eax
movzx eax, word [esi + 0xa]
push eax
movzx eax, word [esi + 8]
push eax
lea eax, [ebp - 0x50]
push 0x22d6e
push eax
call ebx
add esp, 0x1c
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp + 0x34]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitString]
push 1
lea eax, [ebp + 0x34]
push eax
lea eax, [ebp + 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
test eax, eax
jne 0x22f13
lea eax, [ebp + 0x14]
push eax
lea eax, [ebp + 0x64]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
mov esi, dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
mov ebx, eax
lea eax, [ebp + 0x14]
push eax
call esi
cmp ebx, edi
je 0x22edc
lea eax, [ebp + 0x54]
push eax
call esi
jmp 0x22f1d
mov esi, dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
lea eax, [ebp + 0x64]
mov dword [ebp + 0x44], eax
lea eax, [ebp + 0x3c]
push eax
mov ebx, 0xf003f
push ebx
lea eax, [ebp + 0x6c]
push eax
mov dword [ebp + 0x3c], 0x18
mov dword [ebp + 0x40], edi
mov dword [ebp + 0x48], 0x40
mov dword [ebp + 0x4c], edi
mov dword [ebp + 0x50], edi
call esi
test eax, eax
je 0x22f2d
lea eax, [ebp + 0x54]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
push dword [ebp + 0x68]
call dword [sym.imp.ntoskrnl.exe_ExFreePool]
xor eax, eax
jmp 0x23062
lea eax, [ebp + 0x7c]
push eax
push 0x62
lea eax, [ebp - 0x50]
push eax
push edi
push edi
jmp 0x22feb
mov eax, dword [ebp - 0x44]
shr eax, 1
mov word [ebp + eax*2 - 0x40], di
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov eax, dword [ebp + 0x6c]
mov dword [ebp + 0x40], eax
lea eax, [ebp + 0x1c]
mov dword [ebp + 0x44], eax
lea eax, [ebp + 0x3c]
push eax
push ebx
lea eax, [ebp + 0x70]
push eax
mov dword [ebp + 0x3c], 0x18
mov dword [ebp + 0x48], 0x40
mov dword [ebp + 0x4c], edi
mov dword [ebp + 0x50], edi
call esi
test eax, eax
jne 0x23030
lea eax, [ebp + 0x7c]
push eax
push 0x64
lea eax, [ebp - 0x50]
push eax
push 2
lea eax, [ebp + 0x24]
push eax
push dword [ebp + 0x70]
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
jne 0x22fce
cmp dword [ebp - 0x4c], 1
jne 0x22fce
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 1
lea eax, [ebp + 0x1c]
push eax
lea eax, [ebp + 0x54]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
je 0x22ffe
push dword [ebp + 0x70]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
inc dword [ebp + 0x5c]
lea eax, [ebp + 0x7c]
push eax
push 0x62
lea eax, [ebp - 0x50]
push eax
push edi
push dword [ebp + 0x5c]
mov dword [ebp + 0x70], edi
push dword [ebp + 0x6c]
call dword [sym.imp.ntoskrnl.exe_ZwEnumerateKey]
test eax, eax
je 0x22f3e
jmp 0x23030
mov eax, dword [ebp + 0x70]
mov dword [ebp + 0x40], eax
lea eax, [ebp + 0x2c]
mov dword [ebp + 0x44], eax
lea eax, [ebp + 0x3c]
push eax
push ebx
lea eax, [ebp + 0x60]
push eax
mov dword [ebp + 0x3c], 0x18
mov dword [ebp + 0x48], 0x40
mov dword [ebp + 0x4c], edi
mov dword [ebp + 0x50], edi
call esi
test eax, eax
je 0x23030
mov dword [ebp + 0x60], edi
lea eax, [ebp + 0x54]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
push dword [ebp + 0x68]
call dword [sym.imp.ntoskrnl.exe_ExFreePool]
cmp dword [ebp + 0x6c], edi
je 0x23051
push dword [ebp + 0x6c]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [ebp + 0x70], edi
je 0x2305f
push dword [ebp + 0x70]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, dword [ebp + 0x60]
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret 4