Function at 0x402b30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push 0x401408
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov dword [ebp - 0x18], 0x18
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 0x40
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x18]
push edx
push 0xf003f
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.ntdll.dll_ZwOpenKey]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jge 0x402bb8
mov ecx, 0x3e
mov word [ebp - 0x74], cx
mov edx, 0x40
mov word [ebp - 0x72], dx
mov dword [ebp - 0x70], 0x4014a8
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.ntdll.dll_NtDisplayString]
or eax, 0xffffffff
jmp 0x402e30
push 0x4014e8
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea edx, [ebp - 0x20]
push edx
push 0
push 0
push 2
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.ntdll.dll_ZwQueryValueKey]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0xc0000034
je 0x402bf1
cmp dword [ebp - 0x20], 0
jne 0x402c26
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.ntdll.dll_ZwClose]
mov eax, 0x66
mov word [ebp - 0x7c], ax
mov ecx, 0x68
mov word [ebp - 0x7a], cx
mov dword [ebp - 0x78], 0x401518
lea edx, [ebp - 0x7c]
push edx
call dword [sym.imp.ntdll.dll_NtDisplayString]
or eax, 0xffffffff
jmp 0x402e30
push 0x30
push 0
lea eax, [ebp - 0x6c]
push eax
call sub.ntdll.dll_memset
add esp, 0xc
mov dword [ebp - 0x6c], 0x30
lea ecx, [ebp - 0x6c]
push ecx
push 0
push 0x1000
push 0x100000
push 0
push 2
call dword [sym.imp.ntdll.dll_RtlCreateHeap]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x20]
push edx
push 0
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x1c]
push eax
push 2
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.ntdll.dll_ZwQueryValueKey]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jge 0x402ce0
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ntdll.dll_ZwClose]
mov ecx, 0x66
mov word [ebp - 0x84], cx
mov edx, 0x68
mov word [ebp - 0x82], dx
mov dword [ebp - 0x80], 0x401580
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.ntdll.dll_NtDisplayString]
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
or eax, 0xffffffff
jmp 0x402e30
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 4], 1
jne 0x402e13
mov ecx, 6
mov word [ebp - 0x8c], cx
mov edx, 8
mov word [ebp - 0x8a], dx
mov dword [ebp - 0x88], 0x4015e8
mov eax, 0xa
mov word [ebp - 0x94], ax
mov ecx, 0xc
mov word [ebp - 0x92], cx
mov dword [ebp - 0x90], 0x4015f0
mov edx, dword [ebp - 0x1c]
add edx, 0xc
push edx
lea eax, [ebp - 0x9c]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
push 1
lea ecx, [ebp - 0x8c]
push ecx
lea edx, [ebp - 0x9c]
push edx
call dword [sym.imp.ntdll.dll_RtlCompareUnicodeString]
test eax, eax
jne 0x402d88
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.ntdll.dll_ZwClose]
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, 0x20
jmp 0x402e30
push 1
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x9c]
push ecx
call dword [sym.imp.ntdll.dll_RtlCompareUnicodeString]
test eax, eax
jne 0x402dc5
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.ntdll.dll_ZwClose]
mov eax, dword [ebp - 0x1c]
push eax
push 0
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, 0x40
jmp 0x402e30
mov edx, 0x16
mov word [ebp - 0xa4], dx
mov eax, 0x18
mov word [ebp - 0xa2], ax
mov dword [ebp - 0xa0], 0x4015fc
lea ecx, [ebp - 0xa4]
push ecx
call dword [sym.imp.ntdll.dll_NtDisplayString]
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.ntdll.dll_ZwClose]
mov eax, dword [ebp - 0x1c]
push eax
push 0
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
or eax, 0xffffffff
jmp 0x402e30
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.ntdll.dll_ZwClose]
mov eax, dword [ebp - 0x1c]
push eax
push 0
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret