Function at 0x23bb4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
push 0x23b1c
lea eax, [ebp - 0x14c]
xor ebx, ebx
push 0x23b24
push eax
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ntoskrnl.exe_sprintf]
add esp, 0xc
lea eax, [ebp - 0x14c]
push eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitString]
push 1
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAnsiStringToUnicodeString]
test eax, eax
jne 0x23c49
mov eax, dword [ebp - 0x44]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14c]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x14]
push eax
mov word [ebp - 0x12], 0x100
mov word [ebp - 0x14], bx
call dword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlFreeUnicodeString]
push 0x23b5c
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
test eax, eax
je 0x23c50
xor al, al
jmp 0x23dc4
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
push edi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
push eax
mov edi, 0xf003f
push edi
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x34], 0x18
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], 0x40
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call esi
test eax, eax
jne 0x23dc0
mov ax, word [ebp - 8]
mov word [ebp - 0x14], ax
push 0x23b88
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
test eax, eax
je 0x23caf
xor al, al
jmp 0x23dc2
lea eax, [ebp - 0x14]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
push eax
push edi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x34], 0x18
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], 0x40
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call esi
test eax, eax
je 0x23cde
mov dword [ebp - 4], ebx
mov edi, dword [sym.imp.ntoskrnl.exe_ZwEnumerateValueKey]
lea eax, [ebp - 0x1c]
push eax
mov esi, 0xfe
push esi
lea eax, [ebp - 0x14c]
push eax
push 1
mov dword [ebp - 0x18], ebx
push ebx
jmp 0x23d2c
cmp dword [ebp - 0x148], 4
jne 0x23d18
mov eax, dword [ebp - 0x144]
mov ecx, dword [ebp + 0xc]
cmp ecx, dword [ebp + eax - 0x14c]
je 0x23d3a
inc dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp - 0x14c]
push eax
push 1
push dword [ebp - 0x18]
push dword [ebp - 0xc]
call edi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x23cfd
jmp 0x23d3d
mov dword [ebp - 8], ebx
push dword [ebp - 0xc]
mov edi, dword [sym.imp.ntoskrnl.exe_ZwClose]
call edi
cmp dword [ebp - 8], ebx
je 0x23d60
cmp dword [ebp - 4], ebx
je 0x23ca8
push dword [ebp - 4]
call edi
jmp 0x23ca8
cmp dword [ebp - 4], ebx
je 0x23dc0
mov ax, word [ebp - 0x13c]
mov word [ebp - 0x3a], ax
mov word [ebp - 0x3c], ax
lea eax, [ebp - 0x138]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x1c]
push eax
push esi
lea eax, [ebp - 0x14c]
push eax
push 1
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
jne 0x23dbb
cmp dword [ebp - 0x148], 4
jne 0x23dbb
mov eax, dword [ebp - 0x144]
mov eax, dword [ebp + eax - 0x14c]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x178], eax
push dword [ebp - 4]
call edi
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8