Function at 0x10014b30
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x10086e84]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0x14]
xor esi, esi
push 0x7fe
lea edx, [ebp - 0x802]
push esi
push edx
mov dword [ebp - 0x814], eax
mov dword [ebp - 0x824], ecx
mov dword [ebp - 0x810], esi
mov dword [ebp - 0x808], esi
mov word [ebp - 0x804], si
call fcn.10042010
add esp, 0xc
cmp edi, esi
mov dword [ebp - 0x818], 0x400
mov dword [ebp - 0x820], esi
mov dword [ebp - 0x81c], esi
je 0x10014ca0
lea eax, [ebp - 0x810]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10014bd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10041ffa
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x810]
push 1
push str.SeTakeOwnershipPrivilege
push ecx
call fcn.100110c0
add esp, 0xc
cmp eax, esi
mov dword [ebp - 0x80c], eax
jne 0x10014c43
mov ecx, dword [ebp - 0x814]
lea eax, [ebp - 0x808]
push eax
push 0x80000
push esi
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
mov dword [ebp - 0x80c], eax
jne 0x10014c43
mov eax, dword [ebp - 0x808]
push edi
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
cmp eax, esi
mov dword [ebp - 0x80c], eax
je 0x10014c67
mov ecx, dword [ebp - 0x808]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x810]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x80c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10041ffa
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x808]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x810]
push esi
push str.SeTakeOwnershipPrivilege
push ecx
call fcn.100110c0
add esp, 0xc
cmp eax, esi
mov dword [ebp - 0x80c], eax
jne 0x10014c43
mov eax, dword [ebp - 0x810]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x814]
lea ecx, [ebp - 0x808]
push ecx
push 0x40000
push esi
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x10014dfb
mov eax, dword [ebp - 0x824]
mov ecx, dword [ebp - 0x808]
push eax
push 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
cmp eax, esi
mov dword [ebp - 0x80c], eax
je 0x10014d07
mov edx, dword [ebp - 0x808]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x80c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10041ffa
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x808]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp + 0x18], 0
je 0x10014df9
mov edx, dword [ebp - 0x814]
lea ecx, [ebp - 0x808]
push ecx
push 8
push esi
push edx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x10014dfb
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [ebp - 0x820]
push eax
mov eax, dword [ebp - 0x808]
push esi
push esi
push esi
lea ecx, [ebp - 0x818]
push ecx
lea edx, [ebp - 0x804]
push edx
push esi
push eax
call ebx
cmp eax, 0x103
je 0x10014dec
lea ecx, [ecx]
mov ecx, dword [ebp + 0x18]
mov edx, dword [ebp - 0x824]
push ecx
mov ecx, dword [ebp - 0x808]
push edi
push edx
lea eax, [ebp - 0x804]
push eax
push ecx
call fcn.10014b30
push 0x800
lea edx, [ebp - 0x804]
push 0
push edx
mov dword [ebp - 0x818], 0x400
call fcn.10042010
add esp, 0x20
xor eax, eax
mov dword [ebp - 0x820], eax
mov dword [ebp - 0x81c], eax
lea eax, [ebp - 0x820]
push eax
mov eax, dword [ebp - 0x808]
push 0
push 0
push 0
lea ecx, [ebp - 0x818]
push ecx
lea edx, [ebp - 0x804]
push edx
add esi, 1
push esi
push eax
call ebx
cmp eax, 0x103
jne 0x10014d70
mov ecx, dword [ebp - 0x808]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10041ffa
mov esp, ebp
pop ebp
ret