Function at 0x10002c4a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000d9f9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5e0
push edi
mov dword [ebp - 0x37c], 0
push 0x1010004c
lea ecx, [ebp - 0x394]
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 4], 0
mov dword [ebp - 0x5c8], 0
mov dword [ebp - 0x374], 0
mov dword [ebp - 0x5c4], 0
mov dword [ebp - 0x5c0], 0
mov dword [ebp - 0x370], 3
mov byte [ebp - 0x36c], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x36b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x5b8], 0
mov ecx, 0x7f
xor eax, eax
lea edi, [ebp - 0x5b7]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 0x3b8]
call fcn.1000d032
mov byte [ebp - 4], 1
mov byte [ebp - 0x16c], 0
xor eax, eax
mov dword [ebp - 0x16b], eax
mov dword [ebp - 0x167], eax
mov byte [ebp - 0x163], al
mov dword [ebp - 0x38c], 0
mov dword [ebp - 0x380], 0
mov ecx, dword [ebp + 8]
add ecx, 0x34
push ecx
lea ecx, [ebp - 0x384]
call sub.MFC42.DLL_CString::CString_2
mov byte [ebp - 4], 2
lea edx, [ebp - 0x160]
push edx
call fcn.10001000
add esp, 4
cmp dword [0x10102cf0], 0
je 0x10002dc5
push 1
lea eax, [ebp - 0x5cc]
push eax
lea ecx, [ebp - 0x384]
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x5e0], eax
mov ecx, dword [ebp - 0x5e0]
mov edx, dword [ecx]
push edx
push str._s_SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
lea eax, [ebp - 0x5b8]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x5cc]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x5c0]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x5b8]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x388], eax
jmp 0x10002de9
lea eax, [ebp - 0x5c0]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionWinlogon
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x388], eax
cmp dword [ebp - 0x388], 0
jne 0x10002ea2
push 0x200
push 0
lea ecx, [ebp - 0x36c]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x390], 0x200
lea edx, [ebp - 0x390]
push edx
lea eax, [ebp - 0x36c]
push eax
lea ecx, [ebp - 0x370]
push ecx
push 0
push str.AutoAdminLogon
mov edx, dword [ebp - 0x5c0]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x5bc], eax
lea eax, [ebp - 0x36c]
push eax
lea ecx, [ebp - 0x3b8]
call sub.MFC42.DLL_CString::operator_2
push 0x100124e4
lea ecx, [ebp - 0x3b8]
push ecx
call fcn.10003430
and eax, 0xff
test eax, eax
je 0x10002e84
push 0x100124e8
lea edx, [ebp - 0x40]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
jmp 0x10002e95
push 0x100124ec
lea eax, [ebp - 0x40]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
mov ecx, dword [ebp - 0x5c0]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x10102cf0], 0
je 0x10002f03
push 1
lea edx, [ebp - 0x5d0]
push edx
lea ecx, [ebp - 0x384]
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x5e4], eax
mov eax, dword [ebp - 0x5e4]
mov dword [ebp - 0x5e8], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x5e8]
mov edx, dword [ecx]
push edx
push str.MACHINE_s_samSAM
lea eax, [ebp - 0x394]
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x5d0]
call sub.MFC42.DLL_CString::CString
jmp 0x10002f13
push str.MACHINE_samSAM
lea ecx, [ebp - 0x394]
call sub.MFC42.DLL_CString::operator_2
lea ecx, [ebp - 0x5c8]
push ecx
push 0
lea edx, [ebp - 0x374]
push edx
push 0
push 0
push 4
push 4
push 0
lea ecx, [ebp - 0x394]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.ADVAPI32.dll_GetNamedSecurityInfoA]
mov dword [ebp - 0x388], eax
cmp dword [ebp - 0x388], 0
je 0x10002f53
jmp 0x1000335f
push 0x20
push 0
lea eax, [ebp - 0x3b4]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 3
push 2
push 0xf003f
push str.Everyone
lea ecx, [ebp - 0x3b4]
push ecx
call dword [sym.imp.ADVAPI32.dll_BuildExplicitAccessWithNameA]
lea edx, [ebp - 0x5c4]
push edx
mov eax, dword [ebp - 0x374]
push eax
lea ecx, [ebp - 0x3b4]
push ecx
push 1
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclA]
mov dword [ebp - 0x388], eax
cmp dword [ebp - 0x388], 0
je 0x10002fb2
jmp 0x1000335f
push 0
mov edx, dword [ebp - 0x5c4]
push edx
push 0
push 0
push 4
push 4
push 0
lea ecx, [ebp - 0x394]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
mov dword [ebp - 0x388], eax
cmp dword [ebp - 0x388], 0
je 0x10002feb
jmp 0x1000335f
cmp dword [0x10102cf0], 0
je 0x10003079
push 0x200
push 0
lea eax, [ebp - 0x5b8]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 1
lea ecx, [ebp - 0x5d4]
push ecx
lea ecx, [ebp - 0x384]
call sub.MFC42.DLL_CString::Left
mov dword [ebp - 0x5ec], eax
mov edx, dword [ebp - 0x5ec]
mov eax, dword [edx]
push eax
push str._s_samSAMDomainsAccount
lea ecx, [ebp - 0x5b8]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [ebp - 0x5d4]
call sub.MFC42.DLL_CString::CString
lea edx, [ebp - 0x5c0]
push edx
push 0xf003f
push 0
lea eax, [ebp - 0x5b8]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x388], eax
jmp 0x1000309d
lea ecx, [ebp - 0x5c0]
push ecx
push 0xf003f
push 0
push str.samSAMDomainsAccount
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x388], eax
cmp dword [ebp - 0x388], 0
je 0x100030ab
jmp 0x1000335f
lea edx, [ebp - 0x390]
push edx
push 0
lea eax, [ebp - 0x370]
push eax
push 0
push 0x10012554
mov ecx, dword [ebp - 0x5c0]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x390]
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x5d8], eax
mov eax, dword [ebp - 0x5d8]
mov dword [ebp - 0x378], eax
lea ecx, [ebp - 0x390]
push ecx
mov edx, dword [ebp - 0x378]
push edx
lea eax, [ebp - 0x370]
push eax
push 0
push 0x10012558
mov ecx, dword [ebp - 0x5c0]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x5bc], eax
mov edx, dword [ebp - 0x390]
push edx
lea eax, [ebp - 0x36c]
push eax
mov ecx, dword [ebp - 0x378]
push ecx
call fcn.1000cea0
add esp, 0xc
mov dl, byte [ebp - 0x2cb]
push edx
lea ecx, [ebp - 0x3b8]
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x3b8]
call fcn.10003420
push eax
call fcn.10008d08
add esp, 4
mov dword [ebp - 0x380], eax
mov eax, dword [ebp - 0x380]
push eax
push 0x1001255c
lea ecx, [ebp - 0x140]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov dl, byte [ebp - 0x2c8]
push edx
lea ecx, [ebp - 0x3b8]
call sub.MFC42.DLL_CString::operator
mov al, byte [ebp - 0x2c7]
push eax
lea ecx, [ebp - 0x3b8]
call fcn.1000d05c
lea ecx, [ebp - 0x3b8]
call fcn.10003420
push eax
call fcn.10008d08
add esp, 4
mov dword [ebp - 0x380], eax
mov ecx, dword [ebp - 0x380]
push ecx
push 0x10012568
lea edx, [ebp - 0xe0]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov al, byte [ebp - 0x2c4]
push eax
lea ecx, [ebp - 0x3b8]
call sub.MFC42.DLL_CString::operator
mov cl, byte [ebp - 0x2c3]
push ecx
lea ecx, [ebp - 0x3b8]
call fcn.1000d05c
lea ecx, [ebp - 0x3b8]
call fcn.10003420
push eax
call fcn.10008d08
add esp, 4
mov dword [ebp - 0x380], eax
mov edx, dword [ebp - 0x380]
push edx
push 0x10012578
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov cl, byte [ebp - 0x34c]
push ecx
lea ecx, [ebp - 0x3b8]
call sub.MFC42.DLL_CString::operator
mov dl, byte [ebp - 0x34b]
push edx
lea ecx, [ebp - 0x3b8]
call fcn.1000d05c
lea ecx, [ebp - 0x3b8]
call fcn.10003420
push eax
call fcn.10008d08
add esp, 4
mov dword [ebp - 0x380], eax
mov eax, dword [ebp - 0x380]
and eax, 0x80000001
jns 0x1000328d
dec eax
or eax, 0xfffffffe
inc eax
cmp eax, 1
jne 0x100032a8
push 0x1001257c
lea ecx, [ebp - 0x160]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
jmp 0x100032bc
push 0x10012584
lea edx, [ebp - 0x160]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0x1001258c
lea eax, [ebp - 0x120]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0x10012590
lea ecx, [ebp - 0x100]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0x10012594
lea edx, [ebp - 0xc0]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0x10012598
lea eax, [ebp - 0xa0]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0x1001259c
lea ecx, [ebp - 0x60]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
lea edx, [ebp - 0x36c]
push edx
lea ecx, [ebp - 0x3b8]
call sub.MFC42.DLL_CString::operator_2
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x18], 1
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x14], ecx
push 0
lea edx, [ebp - 0x160]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 8]
call dword [edx + 0x4c4]
cmp dword [ebp - 0x5c0], 0
je 0x10003375
mov eax, dword [ebp - 0x5c0]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x5c4], 0
je 0x1000338b
mov ecx, dword [ebp - 0x5c4]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x374], 0
je 0x100033b9
push 0
mov edx, dword [ebp - 0x374]
push edx
push 0
push 0
push 4
push 4
push 0
lea ecx, [ebp - 0x394]
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
cmp dword [ebp - 0x5c8], 0
je 0x100033cf
mov eax, dword [ebp - 0x5c8]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 0x37c]
mov dword [ebp - 0x5dc], ecx
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x384]
call sub.MFC42.DLL_CString::CString
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3b8]
call sub.MFC42.DLL_CString::CString
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x394]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x5dc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret