Function at 0x456bd0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
mov eax, dword [0x492220]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2c4], 0xffffffff
push 0x46a850
lea eax, [ebp - 0x184]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.SAMDomainsAccountUsers
lea ecx, [ebp - 0x184]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x2d0]
push edx
push 8
push 0
lea eax, [ebp - 0x184]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x456c44
or eax, 0xffffffff
jmp 0x456ecd
mov dword [ebp - 0x2d8], 0x80
mov ecx, dword [ebp - 0x2cc]
mov dword [ebp - 0x2d4], ecx
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x2d8]
push edx
lea eax, [ebp - 0x104]
push eax
mov ecx, dword [ebp - 0x2d4]
push ecx
mov edx, dword [ebp - 0x2d0]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x2c8], eax
mov eax, dword [ebp - 0x2cc]
add eax, 1
mov dword [ebp - 0x2cc], eax
cmp dword [ebp - 0x2c8], 0
jne 0x456e89
push str.Names
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x456cc1
jmp 0x456ead
push 0x13c
push 0
lea edx, [ebp - 0x2c0]
push edx
call fcn.00458210
add esp, 0xc
lea eax, [ebp - 0x184]
push eax
lea ecx, [ebp - 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x46a880
lea edx, [ebp - 0x84]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x104]
push eax
lea ecx, [ebp - 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x1b4]
push edx
push 0
push 0
push 0
push 0x46a884
lea eax, [ebp - 0x84]
push eax
push 0x80000002
call fcn.00457230
add esp, 0x1c
test eax, eax
jne 0x456d4a
mov dword [ebp - 0x2c4], 0xffffffff
jmp 0x456eba
push 4
push 0x3000
mov ecx, dword [ebp - 0x1b4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x1b8], eax
cmp dword [ebp - 0x1b8], 0
jne 0x456d7e
mov dword [ebp - 0x2c4], 0xfffffffd
jmp 0x456eba
push 0
mov edx, dword [ebp - 0x1b4]
push edx
mov eax, dword [ebp - 0x1b8]
push eax
push 0
push 0x46a888
lea ecx, [ebp - 0x84]
push ecx
push 0x80000002
call fcn.00457230
add esp, 0x1c
test eax, eax
jne 0x456dbc
mov dword [ebp - 0x2c4], 0xffffffff
jmp 0x456eba
mov edx, dword [ebp - 0x1b8]
mov dword [ebp - 0x2dc], edx
mov eax, dword [ebp - 0x2dc]
movzx eax, word [eax + 0xc4]
sub eax, 4
cdq
and edx, 0xf
add eax, edx
sar eax, 4
add eax, 1
mov dword [ebp - 0x1b0], eax
cmp dword [ebp + 0xc], 0
je 0x456e16
cmp dword [ebp - 0x1b0], 0
je 0x456e16
push 4
push 0x3000
imul ecx, dword [ebp - 0x1b0], 0x24
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x188], eax
push 0x10
push 0
lea edx, [ebp - 0x104]
push edx
call fcn.00458578
add esp, 0xc
mov dword [ebp - 0x1bc], eax
lea eax, [ebp - 0x2c0]
push eax
mov ecx, dword [ebp - 0x1bc]
push ecx
call fcn.00456880
add esp, 8
test eax, eax
jne 0x456e7b
lea edx, [ebp - 0x2c0]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00457940
add esp, 8
test eax, eax
jne 0x456e79
push 0x46a88c
call fcn.004580a8
add esp, 4
mov dword [ebp - 0x2c4], 0xfffffffd
jmp 0x456eba
jmp 0x456e87
mov dword [ebp - 0x2c4], 0xffffffff
jmp 0x456eba
jmp 0x456ead
cmp dword [ebp - 0x2c8], 0x103
jne 0x456ea3
mov dword [ebp - 0x2c4], 0
jmp 0x456eba
mov dword [ebp - 0x2c4], 0xffffffff
cmp dword [ebp - 0x2c8], 0
je 0x456c44
mov ecx, dword [ebp - 0x2d0]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x2c4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004581fd
mov esp, ebp
pop ebp
ret