Function at 0x187b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [ebp + 8]
push ebx
lea ecx, [ebp - 0x34]
push ecx
xor ebx, ebx
push 0x20019
lea edx, [ebp + 8]
push edx
mov dword [ebp - 0x34], 0x18
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x28], 0x240
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
cmp eax, ebx
jl 0x1889c
push edi
push str.ImagePath
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.ntoskrnl.exe_ZwQueryValueKey]
lea ecx, [ebp - 4]
push ecx
push ebx
push ebx
push 2
lea edx, [ebp - 0x14]
push edx
push eax
call edi
cmp eax, 0xc0000034
je 0x189cf
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x189cf
push esi
add eax, 2
push eax
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov esi, eax
cmp esi, ebx
jne 0x1885c
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop esi
pop edi
mov eax, 0xc000009a
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 4]
push edx
push ebx
push esi
call sub.ntoskrnl.exe_memset
mov ecx, dword [ebp - 4]
add esp, 0xc
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push ecx
push esi
push 2
lea edx, [ebp - 0x14]
push edx
push eax
call edi
mov edi, eax
test edi, edi
jge 0x188a3
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 4], 2
jne 0x188e6
mov eax, dword [esi + 8]
cmp eax, 2
jbe 0x188e6
push eax
push 0
call dword [sym.imp.ntoskrnl.exe_ExAllocatePool]
mov ebx, eax
test ebx, ebx
je 0x188df
mov edx, dword [esi + 8]
push edx
push 0
push ebx
call sub.ntoskrnl.exe_memset
mov eax, dword [esi + 8]
push eax
lea ecx, [esi + 0xc]
push ecx
push ebx
call sub.ntoskrnl.exe_memcpy
add esp, 0x18
jmp 0x188eb
mov edi, 0xc000009a
jmp 0x188eb
mov edi, 0xc000003e
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push 0
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
call esi
test edi, edi
jl 0x189b7
push ebx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x1c]
push eax
call fcn.000122f0
mov edi, eax
test edi, edi
jl 0x189b7
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
push ecx
push edx
push 0
call fcn.0001b010
push eax
mov eax, dword [0x1e468]
push eax
push 0x1e478
call fcn.00016b30
test al, al
jne 0x189a3
mov eax, dword [ebp - 8]
test eax, eax
je 0x189b7
mov ecx, dword [ebp - 0xc]
mov edx, dword [0x1e454]
push ecx
push eax
push edx
push 0x1e440
call fcn.00016ac0
test al, al
jne 0x189a3
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
push eax
push ecx
call fcn.000176e0
test eax, eax
je 0x189ab
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
push edx
mov edx, dword [0x1e480]
add ecx, eax
push ecx
push edx
push 0x1e470
call fcn.00016ac0
test al, al
je 0x189ab
push ebx
call fcn.00016390
mov edi, eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x189b7
push 0
push eax
call esi
test ebx, ebx
je 0x18898
push 0
push ebx
call esi
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop edi
mov eax, 0xc0000034
pop ebx
mov esp, ebp
pop ebp
ret 4