Function at 0x10008fd4
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000e1bc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x574
mov dword [ebp - 0x574], 0
mov dword [ebp - 4], 1
push 0x10102db8
lea ecx, [ebp - 0x12c]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 2
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x358], 0
mov dword [ebp - 0x13c], 0
push 0x10102dbc
lea ecx, [ebp - 0x124]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 3
push 0x10102dc0
lea ecx, [ebp - 0x138]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 4
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x14], 0
push 0x10102dc4
lea ecx, [ebp - 0x35c]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 5
push 0x10102dc8
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 6
push 0x10102dcc
push 0x100ffbf0
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::Replace
mov eax, dword [ebp + 0xc]
push eax
push str._s_samSAMDomainsAccountUsersNames
lea ecx, [ebp - 0x10]
push ecx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [ebp - 0x10]
call fcn.10003420
push eax
lea edx, [ebp - 0x354]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
lea eax, [ebp - 0x24c]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x354]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0
je 0x1000917a
lea edx, [ebp - 0x12c]
push edx
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp - 0x574]
or al, 1
mov dword [ebp - 0x574], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x35c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x138]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x124]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x12c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
jmp 0x100093cb
mov ecx, 1
test ecx, ecx
je 0x10009357
mov dword [ebp - 0x134], 0x104
lea edx, [ebp - 0x144]
push edx
push 0
push 0
push 0
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x248]
push ecx
mov edx, dword [ebp - 0x358]
mov dword [ebp - 0x578], edx
mov eax, dword [ebp - 0x578]
push eax
mov ecx, dword [ebp - 0x24c]
push ecx
mov edx, dword [ebp - 0x358]
add edx, 1
mov dword [ebp - 0x358], edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0
je 0x100091fc
mov eax, dword [ebp - 0x24c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10009357
lea ecx, [ebp - 0x354]
push ecx
lea edx, [ebp - 0x118]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0x100ffc1c
lea eax, [ebp - 0x118]
push eax
call sub.MSVCRT.dll_strcat
add esp, 8
lea ecx, [ebp - 0x248]
push ecx
lea edx, [ebp - 0x118]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
lea eax, [ebp - 0x11c]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x118]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0
je 0x1000927d
mov edx, dword [ebp - 0x24c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10009357
mov dword [ebp - 0x568], 0x104
mov dword [ebp - 0x56c], 0x104
lea eax, [ebp - 0x56c]
push eax
lea ecx, [ebp - 0x460]
push ecx
lea edx, [ebp - 0x120]
push edx
push 0
lea eax, [ebp - 0x568]
push eax
lea ecx, [ebp - 0x564]
push ecx
push 0
mov edx, dword [ebp - 0x11c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov eax, dword [ebp - 0x120]
push eax
lea ecx, [ebp - 0x570]
push ecx
call fcn.10008dc8
add esp, 8
mov dword [ebp - 0x57c], eax
mov edx, dword [ebp - 0x57c]
mov dword [ebp - 0x580], edx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x580]
push eax
lea ecx, [ebp - 0x124]
call sub.MFC42.DLL_CString::operator_1
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x570]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x138]
push ecx
lea edx, [ebp - 0x124]
push edx
call fcn.10009f90
and eax, 0xff
test eax, eax
je 0x10009352
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x12c]
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp - 0x124]
push ecx
lea ecx, [ebp - 0x138]
call sub.MFC42.DLL_CString::operator_1
jmp 0x1000917a
lea edx, [ebp - 0x12c]
push edx
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [ebp - 0x574]
or al, 1
mov dword [ebp - 0x574], eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x35c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x138]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x124]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x12c]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret