Function at 0x1b7f8
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
xor eax, eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x38], esi
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x20], ax
lea edi, [ebp - 0x1e]
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x18], ax
lea edi, [ebp - 0x16]
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [0x3435c]
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
cmp eax, esi
je 0x1b840
mov edi, eax
jmp 0x1b851
lea edi, [ebp - 0x20]
push 0x29758
mov eax, edi
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x38]
push eax
push 1
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x38], 0x18
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x2c], 0x240
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
mov ebx, eax
cmp ebx, esi
jl 0x1ba88
push 0x6b767069
mov edi, 0x800
push edi
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov ebx, eax
mov dword [ebp - 4], ebx
cmp ebx, esi
jne 0x1b8ab
mov ebx, 0xc000009a
jmp 0x1ba88
push edi
push esi
push ebx
call sub.ntoskrnl.exe_memset
add esp, 0xc
push 0x29822
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0xc]
push eax
push edi
push ebx
push 2
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
mov ebx, eax
cmp ebx, esi
jl 0x1ba88
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
cmp eax, esi
je 0x1ba88
cmp eax, 0x204
jbe 0x1b903
mov ebx, 0xc0000023
jmp 0x1ba88
mov ebx, 0x34568
mov ecx, ebx
call dword [sym.imp.HAL.dll_ExAcquireFastMutex]
push 0x208
push esi
mov esi, 0x34360
push esi
call sub.ntoskrnl.exe_memset
mov eax, dword [ebp - 4]
push dword [eax + 8]
lea ecx, [eax + 0xc]
push ecx
push esi
call sub.ntoskrnl.exe_memcpy
mov eax, esi
add esp, 0x18
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1b939
sub eax, ecx
sar eax, 1
push eax
push esi
mov dword [ebp - 0x10], eax
call fcn.0001fcba
mov eax, dword [ebp - 0x10]
push 0x5c
lea eax, [eax*2 + 0x3435e]
pop ecx
cmp cx, word [eax]
jne 0x1b968
xor ecx, ecx
mov word [eax], cx
mov ecx, ebx
call dword [sym.imp.HAL.dll_ExReleaseFastMutex]
push edi
push 0
push dword [ebp - 4]
call sub.ntoskrnl.exe_memset
add esp, 0xc
push 0x29814
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp - 4]
lea eax, [ebp - 0x18]
push 2
push eax
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
test eax, eax
jl 0x1ba19
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
test eax, eax
je 0x1ba19
cmp eax, 0x204
jbe 0x1b9c3
mov ebx, 0xc0000023
jmp 0x1ba86
mov edi, 0x34790
mov ecx, edi
call dword [sym.imp.HAL.dll_ExAcquireFastMutex]
push 0x208
push 0
mov esi, 0x34588
push esi
call sub.ntoskrnl.exe_memset
mov eax, dword [ebp - 4]
push dword [eax + 8]
add eax, 0xc
push eax
push esi
call sub.ntoskrnl.exe_memcpy
mov eax, esi
add esp, 0x18
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1b9fa
sub eax, ecx
sar eax, 1
push eax
push esi
call fcn.0001fcba
mov ecx, edi
call dword [sym.imp.HAL.dll_ExReleaseFastMutex]
jmp 0x1ba84
push edi
push 0
push dword [ebp - 4]
call sub.ntoskrnl.exe_memset
add esp, 0xc
mov ecx, ebx
call dword [sym.imp.HAL.dll_ExAcquireFastMutex]
push 0x103
push esi
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_wcsncpy]
mov ecx, ebx
mov ebx, dword [sym.imp.HAL.dll_ExReleaseFastMutex]
add esp, 0xc
call ebx
mov edi, 0x34790
mov ecx, edi
call dword [sym.imp.HAL.dll_ExAcquireFastMutex]
push 0x208
push 0
mov esi, 0x34588
push esi
call sub.ntoskrnl.exe_memset
push dword [ebp - 4]
push 0x297d4
push 0x103
push esi
call fcn.00012e72
add esp, 0x1c
mov ecx, edi
call ebx
xor ebx, ebx
xor esi, esi
cmp dword [ebp - 8], esi
je 0x1ba96
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
cmp dword [ebp - 4], esi
je 0x1baa5
push esi
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret