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

Disassembly:
mov eax, 0x10044d75
call fcn.10029f1c
sub esp, 0x74
lea eax, [ebp - 0x1c]
push ebx
push eax
push 0x20019
push 0
push str.SAMSAMDomainsAccount
push 0x80000002
xor bl, bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10017a2f
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x20]
push edi
push eax
xor ecx, ecx
mov edi, 0x1004cce0
push ecx
push ecx
push ecx
push edi
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], ecx
call esi
test eax, eax
jne 0x100179de
push dword [ebp - 0x20]
call fcn.10025e1e
pop ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x3c], eax
push ecx
push eax
push 0
push 0
push edi
push dword [ebp - 0x1c]
call esi
test eax, eax
jne 0x1001798f
push dword [ebp - 0x3c]
mov byte [ebp - 0x50], al
lea edi, [ebp - 0x4f]
push dword [ebp + 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x50]
push eax
call fcn.1000a95f
add esp, 0xc
test al, al
je 0x100179d3
lea eax, [ebp - 0x18]
push eax
push 0x20019
push 0
push 0x1004cce4
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10017971
xor ecx, ecx
lea eax, [ebp - 0x14]
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], ecx
push eax
push ecx
push ecx
push ecx
push dword [ebp - 0x18]
mov dword [ebp - 0x14], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
je 0x10017966
mov eax, dword [ebp - 0x14]
xor ecx, ecx
inc eax
push 2
pop edx
mov dword [ebp - 0x14], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10025e1e
pop ecx
xor ecx, ecx
mov edi, eax
mov dword [ebp - 0x38], ecx
cmp dword [ebp - 0x30], ecx
jbe 0x1001795f
mov eax, dword [ebp - 0x14]
push 0
push 0
push 0
push 0
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x40]
push eax
push edi
push ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1001790a
push str.Names
push edi
call fcn.1002d2a1
pop ecx
pop ecx
test eax, eax
je 0x1001794f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push edi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
neg eax
sbb al, al
inc al
and bl, al
je 0x1001794f
xor ecx, ecx
lea eax, [ebp - 0x24]
push eax
push ecx
push ecx
push ecx
push 0x1004cce0
push dword [ebp - 0x10]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ecx
call esi
test eax, eax
jne 0x100178ff
lea eax, [ebp - 0x28]
push eax
xor eax, eax
push eax
push eax
push eax
push 0x1004ccfc
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x100178ff
push dword [ebp - 0x24]
call fcn.10025e1e
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
call fcn.10025e1e
pop ecx
pop ecx
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x2c]
push 0
push 0
push 0x1004cce0
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x100178f6
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x34]
push 0
push 0
push 0x1004ccfc
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x100178f6
lea eax, [ebp - 0x50]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x2c]
call fcn.10017a84
add esp, 0xc
push dword [ebp - 0x2c]
call fcn.1002ab36
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1001794f
push eax
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.10022435
add esp, 0xc
and dword [ebp - 4], 0
push eax
push 0x1004cd00
push dword [section..data]
call fcn.10005067
pop ecx
pop ecx
push eax
call fcn.10005259
push eax
call fcn.10005504
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
add esp, 0xc
push 0
push 1
call fcn.10003be3
mov ecx, dword [ebp - 0x38]
inc ecx
mov dword [ebp - 0x38], ecx
cmp ecx, dword [ebp - 0x30]
jb 0x10017809
push edi
call fcn.1002ab36
pop ecx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100179d3
push eax
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.10022435
add esp, 0xc
push eax
mov dword [ebp - 4], 1
push str.RegOpenKeyEx_Users_:
jmp 0x100179ab
push eax
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.10022435
add esp, 0xc
push eax
mov dword [ebp - 4], 2
push str.RegQueryValueEx_2_F_:
push dword [section..data]
call fcn.10005067
pop ecx
pop ecx
push eax
call fcn.10005259
push eax
call fcn.10005504
add esp, 0xc
lea ecx, [ebp - 0x68]
push 0
push 1
call fcn.10003be3
push dword [ebp - 0x3c]
call fcn.1002ab36
pop ecx
jmp 0x10017a22
push eax
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.10022435
add esp, 0xc
push eax
push str.RegQueryValueEx_1_F_:
push dword [section..data]
mov dword [ebp - 4], 3
call fcn.10005067
pop ecx
pop ecx
push eax
call fcn.10005259
push eax
call fcn.10005504
add esp, 0xc
lea ecx, [ebp - 0x68]
push 0
push 1
call fcn.10003be3
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
jmp 0x10017a73
push eax
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.10022435
add esp, 0xc
push eax
push str.RegOpenKeyEx_SAM_:
push dword [section..data]
mov dword [ebp - 4], 4
call fcn.10005067
pop ecx
pop ecx
push eax
call fcn.10005259
push eax
call fcn.10005504
add esp, 0xc
lea ecx, [ebp - 0x80]
push 0
push 1
call fcn.10003be3
mov ecx, dword [ebp - 0xc]
mov al, bl
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret