Function at 0x10056b10
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
mov eax, dword [0x10092310]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2cc], 0
mov dword [ebp - 0x2c4], 0xffffffff
push 0x1006b81c
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 0x10056b84
or eax, 0xffffffff
jmp 0x10056e0d
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 0x10056dc9
push str.Names
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x10056c01
jmp 0x10056ded
push 0x13c
push 0
lea edx, [ebp - 0x2c0]
push edx
call fcn.10058150
add esp, 0xc
lea eax, [ebp - 0x184]
push eax
lea ecx, [ebp - 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x1006b84c
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 0x1006b850
lea eax, [ebp - 0x84]
push eax
push 0x80000002
call fcn.10057170
add esp, 0x1c
test eax, eax
jne 0x10056c8a
mov dword [ebp - 0x2c4], 0xffffffff
jmp 0x10056dfa
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 0x10056cbe
mov dword [ebp - 0x2c4], 0xfffffffd
jmp 0x10056dfa
push 0
mov edx, dword [ebp - 0x1b4]
push edx
mov eax, dword [ebp - 0x1b8]
push eax
push 0
push 0x1006b854
lea ecx, [ebp - 0x84]
push ecx
push 0x80000002
call fcn.10057170
add esp, 0x1c
test eax, eax
jne 0x10056cfc
mov dword [ebp - 0x2c4], 0xffffffff
jmp 0x10056dfa
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 0x10056d56
cmp dword [ebp - 0x1b0], 0
je 0x10056d56
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.100584b8
add esp, 0xc
mov dword [ebp - 0x1bc], eax
lea eax, [ebp - 0x2c0]
push eax
mov ecx, dword [ebp - 0x1bc]
push ecx
call fcn.100567c0
add esp, 8
test eax, eax
jne 0x10056dbb
lea edx, [ebp - 0x2c0]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10057880
add esp, 8
test eax, eax
jne 0x10056db9
push 0x1006b858
call fcn.10057fe8
add esp, 4
mov dword [ebp - 0x2c4], 0xfffffffd
jmp 0x10056dfa
jmp 0x10056dc7
mov dword [ebp - 0x2c4], 0xffffffff
jmp 0x10056dfa
jmp 0x10056ded
cmp dword [ebp - 0x2c8], 0x103
jne 0x10056de3
mov dword [ebp - 0x2c4], 0
jmp 0x10056dfa
mov dword [ebp - 0x2c4], 0xffffffff
cmp dword [ebp - 0x2c8], 0
je 0x10056b84
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.1005813d
mov esp, ebp
pop ebp
ret