Function at 0x10001990
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000d93d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x264
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x26c], 0
push 0x1010002c
lea ecx, [ebp - 0x264]
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 4], 1
mov dword [ebp - 0x22c], str.MACHINESAMSAM
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 0
mov dword [ebp - 0x214], 3
mov byte [ebp - 0x210], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x20f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 0x250]
call fcn.1000d032
mov byte [ebp - 4], 2
mov dword [ebp - 0x224], 0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x258]
push eax
push 0x20019
push 0
push 0x100120f4
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
jne 0x10001ab3
lea ecx, [ebp - 0x228]
push ecx
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x214]
push eax
push 0
push 0x1001212c
mov ecx, dword [ebp - 0x258]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x258]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x260]
push eax
push 0
lea ecx, [ebp - 0x218]
push ecx
push 0
push 0
push 4
push 4
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoA]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x10001aec
jmp 0x10001c94
push 0x20
push 0
lea eax, [ebp - 0x24c]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 3
push 2
push 0xf003f
push 0x1001213c
lea ecx, [ebp - 0x24c]
push ecx
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameA]
lea edx, [ebp - 0x25c]
push edx
mov eax, dword [ebp - 0x218]
push eax
lea ecx, [ebp - 0x24c]
push ecx
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x10001b4b
jmp 0x10001c94
push 0
mov edx, dword [ebp - 0x25c]
push edx
push 0
push 0
push 4
push 4
mov eax, dword [ebp - 0x22c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x10001b7d
jmp 0x10001c94
lea ecx, [ebp - 0x258]
push ecx
push 0xf003f
push 0
push str.SAMSAMDomainsAccount
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x10001baf
jmp 0x10001c94
lea edx, [ebp - 0x228]
push edx
push 0
lea eax, [ebp - 0x214]
push eax
push 0
push 0x10012160
mov ecx, dword [ebp - 0x258]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x228]
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x270], eax
mov eax, dword [ebp - 0x270]
mov dword [ebp - 0x268], eax
mov ecx, dword [ebp - 0x268]
mov dword [ebp - 0x21c], ecx
lea edx, [ebp - 0x228]
push edx
mov eax, dword [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x214]
push ecx
push 0
push 0x10012164
mov edx, dword [ebp - 0x258]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x254], eax
mov eax, dword [ebp - 0x228]
push eax
lea ecx, [ebp - 0x210]
push ecx
mov edx, dword [ebp - 0x21c]
push edx
call fcn.1000cea0
add esp, 0xc
movsx eax, byte [ebp - 0x177]
cmp eax, 0x31
jne 0x10001c6a
push 0x10012168
lea ecx, [ebp - 0x264]
call sub.MFC42.DLL_CString::operator_2
jmp 0x10001c7a
push 0x10012170
lea ecx, [ebp - 0x264]
call sub.MFC42.DLL_CString::operator_2
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x250]
call sub.MFC42.DLL_CString::operator_2
cmp dword [ebp - 0x258], 0
je 0x10001caa
mov edx, dword [ebp - 0x258]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x25c], 0
je 0x10001cc0
mov eax, dword [ebp - 0x25c]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x218], 0
je 0x10001ce7
push 0
mov ecx, dword [ebp - 0x218]
push ecx
push 0
push 0
push 4
push 4
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
cmp dword [ebp - 0x260], 0
je 0x10001cfd
mov eax, dword [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x264]
push ecx
mov ecx, dword [ebp + 8]
call sub.MFC42.DLL_CString::CString_1
mov dword [ebp - 0x274], eax
mov edx, dword [ebp - 0x26c]
or edx, 1
mov dword [ebp - 0x26c], edx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x250]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x264]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 8]
jmp 0x10001d86
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret