Function at 0x42aea0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov eax, dword [0x4566e4]
xor eax, ebp
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x234], 0xc000009a
mov dword [ebp - 0x22c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0x4000
mov dword [ebp - 4], 0
cmp dword [ebp + 0x14], 0
jne 0x42af04
mov dword [ebp - 8], 0x20
mov eax, dword [ebp - 0x18]
push eax
push 8
mov ecx, dword [0x45a5e0]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
je 0x42b27f
mov dword [ebp - 0x254], 0x18
mov edx, dword [ebp + 8]
mov dword [ebp - 0x250], edx
mov dword [ebp - 0x248], 0x40
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24c], eax
mov dword [ebp - 0x244], 0
mov dword [ebp - 0x240], 0
lea ecx, [ebp - 0x254]
push ecx
push 0x20001
lea edx, [ebp - 0x22c]
push edx
call dword [sym.imp.Ntdll.dll_NtOpenKey]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0xc0000022
jne 0x42afbe
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042aa90
add esp, 8
lea edx, [ebp - 0x254]
push edx
push 0x20001
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.Ntdll.dll_NtOpenKey]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
jl 0x42b269
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x26c], ecx
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x230]
push ecx
push 1
mov edx, dword [ebp - 0x26c]
push edx
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.Ntdll.dll_NtEnumerateValueKey]
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
test eax, eax
jne 0x42b143
mov edx, dword [ebp - 0x230]
mov ax, word [edx + 0x10]
mov word [ebp - 0x14], ax
mov cx, word [ebp - 0x14]
mov word [ebp - 0x12], cx
mov edx, dword [ebp - 0x230]
add edx, 0x14
mov dword [ebp - 0x10], edx
push 1
push 0x459108
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.Ntdll.dll_RtlCompareUnicodeString]
test eax, eax
jne 0x42b085
mov ecx, dword [ebp - 0x230]
cmp dword [ecx + 4], 1
je 0x42b059
mov edx, dword [ebp - 0x230]
cmp dword [edx + 4], 2
jne 0x42b085
mov eax, dword [ebp - 0x230]
cmp dword [eax + 0xc], 2
jb 0x42b085
push 0
mov ecx, dword [ebp - 0x230]
mov edx, dword [ebp - 0x230]
add edx, dword [ecx + 8]
push edx
call fcn.00431c40
add esp, 8
mov dword [ebp - 0x238], eax
push 1
push 0x459110
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.Ntdll.dll_RtlCompareUnicodeString]
test eax, eax
jne 0x42b0de
mov ecx, dword [ebp - 0x230]
cmp dword [ecx + 4], 1
je 0x42b0b2
mov edx, dword [ebp - 0x230]
cmp dword [edx + 4], 2
jne 0x42b0de
mov eax, dword [ebp - 0x230]
cmp dword [eax + 0xc], 2
jb 0x42b0de
push 0
mov ecx, dword [ebp - 0x230]
mov edx, dword [ebp - 0x230]
add edx, dword [ecx + 8]
push edx
call fcn.00431c40
add esp, 8
mov dword [ebp - 0x23c], eax
push 1
push 0x459118
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.Ntdll.dll_RtlCompareUnicodeString]
test eax, eax
jne 0x42b129
mov ecx, dword [ebp - 0x230]
cmp dword [ecx + 4], 4
jne 0x42b129
mov edx, dword [ebp - 0x230]
cmp dword [edx + 0xc], 4
jne 0x42b129
push 4
mov eax, dword [ebp - 0x230]
mov ecx, dword [ebp - 0x230]
add ecx, dword [eax + 8]
push ecx
lea edx, [ebp - 8]
push edx
call fcn.004057e0
add esp, 0xc
mov eax, dword [ebp - 0x1c]
push eax
push 0
mov ecx, dword [ebp - 0x230]
push ecx
call fcn.00405450
add esp, 0xc
jmp 0x42afcb
mov edx, dword [ebp - 8]
and edx, 0x20
je 0x42b191
cmp dword [ebp - 0x238], 0
jne 0x42b191
cmp dword [ebp + 0x14], 0
je 0x42b191
push str.Parameters
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.Ntdll.dll_RtlInitUnicodeString]
push 0
lea ecx, [ebp - 0x238]
push ecx
lea edx, [ebp - 0x25c]
push edx
mov eax, dword [ebp - 0x22c]
push eax
call fcn.0042aea0
add esp, 0x10
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x238], 0
jne 0x42b240
cmp dword [ebp - 0x23c], 0
jne 0x42b240
mov ecx, dword [ebp - 8]
and ecx, 0xb
je 0x42b240
mov edx, dword [ebp + 0xc]
push edx
push str.__WINDIR__System32drivers_wZ.sys
lea eax, [ebp - 0x228]
push eax
call fcn.004054ca
add esp, 0xc
push 0
lea ecx, [ebp - 0x228]
push ecx
call fcn.0042fa50
add esp, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x42b240
mov edx, dword [ebp - 0xc]
push edx
call fcn.0042fcb0
add esp, 4
movzx eax, al
test eax, eax
je 0x42b228
mov ecx, dword [ebp + 0xc]
push ecx
push str.System32drivers_wZ.sys
lea edx, [ebp - 0x228]
push edx
call fcn.004054ca
add esp, 0xc
push 0
mov eax, dword [ebp - 0xc]
push eax
call fcn.00431c40
add esp, 8
mov dword [ebp - 0x23c], eax
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x260], ecx
mov edx, dword [ebp - 0x260]
push edx
call fcn.0040564f
add esp, 4
cmp dword [ebp - 0x238], 0
jne 0x42b25c
cmp dword [ebp - 0x23c], 0
jne 0x42b25c
mov dword [ebp - 0x234], 0xc0000001
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.Ntdll.dll_NtClose]
mov ecx, dword [ebp - 0x230]
push ecx
push 0
mov edx, dword [0x45a5e0]
push edx
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x234], 0
jl 0x42b2de
mov eax, dword [ebp - 8]
and eax, 0x20
je 0x42b2b1
cmp dword [ebp - 0x238], 0
je 0x42b2af
push 0
mov ecx, dword [ebp - 0x238]
push ecx
call fcn.00431c40
add esp, 8
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
jmp 0x42b2d0
cmp dword [ebp - 0x23c], 0
je 0x42b2d0
push 0
mov eax, dword [ebp - 0x23c]
push eax
call fcn.00431c40
add esp, 8
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
cmp dword [ebp + 0x14], 0
je 0x42b2de
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov ecx, dword [ebp - 0x238]
mov dword [ebp - 0x264], ecx
mov edx, dword [ebp - 0x264]
push edx
call fcn.0040564f
add esp, 4
mov eax, dword [ebp - 0x23c]
mov dword [ebp - 0x268], eax
mov ecx, dword [ebp - 0x268]
push ecx
call fcn.0040564f
add esp, 4
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.00403b8c
mov esp, ebp
pop ebp
ret