Function at 0x10001eea
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x38
mov eax, 0x1002dcb5
call fcn.1001b74a
xor esi, esi
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x20], esi
push 0x20019
push str.SOFTWARE
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], esi
call fcn.100011b4
cmp eax, esi
mov ebx, 0xffff
mov edi, 0x80070000
jle 0x10001f3b
and eax, ebx
or eax, edi
cmp eax, esi
jl 0x10002194
lea eax, [ebp - 0x38]
push eax
push esi
push 4
push dword [ebp - 0x20]
mov dword [ebp - 0x38], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegGetKeySecurity]
call esi
cmp eax, 0x7a
jne 0x10001f8b
push dword [ebp - 0x38]
call fcn.10018c21
test eax, eax
pop ecx
mov dword [ebp - 0x2c], eax
je 0x10002167
push dword [ebp - 0x38]
push 0
push eax
call fcn.1001ade0
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x2c]
push 4
push dword [ebp - 0x20]
call esi
test eax, eax
jle 0x10001f95
and eax, ebx
or eax, edi
test eax, eax
jl 0x10002167
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
push 0x100318a4
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jle 0x10001fbd
and eax, ebx
or eax, edi
test eax, eax
jl 0x10002167
lea ecx, [ebp - 0x20]
call fcn.1000119d
mov eax, dword [ebp - 0x1c]
and dword [ebp - 0x34], 0
lea ecx, [ebp - 0x34]
push ecx
push 0
push 4
push eax
mov dword [ebp - 0x20], eax
call esi
cmp eax, 0x7a
jne 0x10002015
push dword [ebp - 0x34]
call fcn.10018c21
test eax, eax
pop ecx
mov dword [ebp - 0x30], eax
je 0x10002167
push dword [ebp - 0x34]
push 0
push eax
call fcn.1001ade0
add esp, 0xc
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x30]
push 4
push dword [ebp - 0x1c]
call esi
test eax, eax
jle 0x1000201f
and eax, ebx
or eax, edi
test eax, eax
jl 0x10002167
push dword [ebp - 0x2c]
push 4
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
jle 0x1000203d
and eax, ebx
or eax, edi
test eax, eax
jl 0x10002167
lea eax, [ebp - 0x18]
push eax
push 0x100318a4
xor esi, esi
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, esi
jle 0x10002064
and eax, ebx
or eax, edi
cmp eax, esi
mov dword [ebp - 0x1c], eax
jl 0x100020f0
lea ecx, [ebp - 0x20]
call fcn.1000119d
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
push ecx
push esi
lea ecx, [ebp - 0x3c]
push ecx
push esi
push 0x100318a0
mov dword [ebp - 0x3c], esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push eax
mov dword [ebp - 0x20], eax
call esi
test eax, eax
jle 0x100020a0
and eax, ebx
or eax, edi
test eax, eax
mov dword [ebp - 0x1c], eax
jl 0x100020f0
push dword [ebp - 0x28]
call fcn.10018c21
test eax, eax
pop ecx
mov dword [ebp - 0x24], eax
jne 0x100020c0
mov dword [ebp - 0x1c], 0x8007000e
jmp 0x100020f0
push dword [ebp - 0x28]
push 0
push eax
call fcn.1001ade0
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x24]
lea eax, [ebp - 0x3c]
push eax
push 0
push 0x100318a0
push dword [ebp - 0x18]
call esi
test eax, eax
jle 0x100020ed
and eax, ebx
or eax, edi
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x30]
push 4
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
cmp dword [ebp - 0x1c], 0
jl 0x10002167
mov eax, dword [ebp - 0x28]
test al, 3
jne 0x1000214f
mov edi, dword [ebp - 0x24]
mov byte [ebp - 0x18], 0
mov byte [ebp - 0x17], 0
mov byte [ebp - 0x16], 0
mov byte [ebp - 0x15], 0
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x13], 5
lea esi, [eax + edi - 0x14]
jmp 0x1000214b
cmp dword [esi + 8], 0x15
jne 0x10002148
push 6
lea eax, [ebp - 0x18]
push eax
lea eax, [esi + 2]
push eax
call fcn.10019643
add esp, 0xc
test eax, eax
je 0x100021a2
sub esi, 4
cmp esi, edi
jae 0x1000212c
mov dword [ebp - 0x1c], 0x80004005
cmp dword [ebp - 0x1c], 0
jl 0x10002167
push dword [ebp - 0x44]
push dword [ebp - 0x40]
call sub.ADVAPI32.dll_ConvertSidToStringSidW
cmp dword [ebp - 0x2c], 0
je 0x10002176
push dword [ebp - 0x2c]
call fcn.1001b056
pop ecx
cmp dword [ebp - 0x30], 0
je 0x10002185
push dword [ebp - 0x30]
call fcn.1001b056
pop ecx
cmp dword [ebp - 0x24], 0
je 0x10002194
push dword [ebp - 0x24]
call fcn.1001b056
pop ecx
lea ecx, [ebp - 0x20]
call fcn.1000119d
call fcn.1001b7cd
ret
mov dword [ebp - 0x40], esi
jmp 0x10002156