Function at 0x10aa9e1
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x458
mov eax, dword [0x10e607c]
push ebx
push esi
push edi
push 0x7f
pop ecx
xor esi, esi
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x204], si
lea edi, [ebp - 0x202]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x410]
push eax
push esi
push 0x2000000
push 4
push esi
push esi
push 0x10126b0
push 0x80000002
mov dword [ebp - 0x418], esi
mov dword [ebp - 0x410], esi
mov dword [ebp - 0x41c], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, esi
mov dword [ebp - 0x408], eax
jne 0x10aaac7
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x434]
push eax
push esi
push 0x1004b18
push dword [ebp - 0x410]
mov ebx, 0x200
mov dword [ebp - 0x428], ebx
call edi
cmp eax, esi
mov dword [ebp - 0x408], eax
mov word [ebp - 0x206], si
jne 0x10aaac7
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x434]
push eax
push esi
push 0x1012694
push dword [ebp - 0x410]
mov dword [ebp - 0x428], ebx
call edi
mov dword [ebp - 0x408], eax
cmp dword [ebp - 0x410], esi
je 0x10aaadb
push dword [ebp - 0x410]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x408], esi
jne 0x10aab29
push 1
push 0x630
call dword [sym.imp.msvcrt.dll_calloc]
mov edi, eax
cmp edi, esi
pop ecx
pop ecx
mov dword [ebp - 0x408], edi
je 0x10aab29
push 0xffffffffffffffff
push 0x80
push 3
push esi
push 3
push esi
push 0x1012668
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x424], eax
jne 0x10aab30
push edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
xor eax, eax
jmp 0x10aad71
lea eax, [ebp - 0x404]
push eax
lea eax, [edi + 0x18]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
mov ebx, dword [sym.imp.msvcrt.dll_wcslen]
lea eax, [ebp - 0x404]
push eax
mov dword [edi + 0x10], 0x18
call ebx
add esp, 0xc
push esi
lea ecx, [ebp - 0x41c]
push ecx
push 0x20
shl eax, 1
lea ecx, [ebp - 0x458]
push ecx
movzx ecx, word [edi + 4]
mov word [edi + 0x14], ax
movzx eax, ax
lea eax, [eax + ecx + 0x18]
push eax
push edi
push 0x6d0008
push dword [ebp - 0x424]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x10aaba4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x10aad8b
cmp dword [ebp - 0x41c], 4
mov dword [ebp - 0x40c], esi
jb 0x10aad4a
push 1
push dword [ebp - 0x458]
call dword [sym.imp.msvcrt.dll_calloc]
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp - 0x40c], eax
mov dword [ebp - 0x41c], esi
je 0x10aad8b
push esi
lea ecx, [ebp - 0x41c]
push ecx
push dword [ebp - 0x458]
movzx ecx, word [edi + 4]
push eax
movzx eax, word [edi + 0x14]
lea eax, [eax + ecx + 0x18]
push eax
push edi
push 0x6d0008
push dword [ebp - 0x424]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10aad7e
mov eax, dword [ebp - 0x40c]
cmp dword [eax + 4], esi
mov dword [ebp - 0x420], esi
jbe 0x10aad4a
add eax, 0xc
mov dword [ebp - 0x42c], eax
jmp 0x10aac37
mov eax, dword [ebp - 0x42c]
mov esi, dword [eax - 4]
movzx eax, word [eax]
add esi, dword [ebp - 0x40c]
push 0x101264c
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x414], eax
call ebx
lea eax, [eax + eax + 2]
cmp dword [ebp - 0x414], eax
pop ecx
jbe 0x10aac82
push 0x101264c
call ebx
pop ecx
mov ecx, eax
shl ecx, 1
mov edi, esi
mov esi, 0x101264c
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10aaca5
mov edi, dword [ebp - 0x408]
inc dword [ebp - 0x420]
mov eax, dword [ebp - 0x40c]
mov ecx, dword [ebp - 0x420]
add dword [ebp - 0x42c], 0x18
cmp ecx, dword [eax + 4]
jb 0x10aac31
jmp 0x10aad4a
lea eax, [ebp - 0x204]
push 1
push eax
call ebx
mov esi, dword [ebp - 0x414]
pop ecx
lea eax, [esi + eax*2 + 2]
push eax
call dword [sym.imp.msvcrt.dll_calloc]
test eax, eax
pop ecx
pop ecx
mov dword [ebp - 0x418], eax
jne 0x10aacd8
mov edi, dword [ebp - 0x408]
xor esi, esi
jmp 0x10aad50
mov edi, 0x101264c
push edi
call ebx
shl eax, 1
sub esi, eax
push edi
mov dword [ebp - 0x414], esi
call ebx
mov edi, dword [ebp - 0x418]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x430]
lea esi, [ecx + eax*2]
mov ecx, dword [ebp - 0x414]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp word [ebp - 0x204], 0
je 0x10aad44
mov esi, dword [ebp - 0x418]
lea eax, [ebp - 0x204]
push eax
push esi
call dword [sym.imp.msvcrt.dll_wcscat]
push esi
call ebx
lea eax, [esi + eax*2 - 2]
add esp, 0xc
cmp word [eax], 0x5c
jne 0x10aad44
and word [eax], 0
mov edi, dword [ebp - 0x408]
mov esi, dword [ebp - 0x418]
push edi
mov edi, dword [sym.imp.msvcrt.dll_free]
call edi
push dword [ebp - 0x40c]
call edi
pop ecx
pop ecx
push dword [ebp - 0x424]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01078836
leave
ret
push dword [ebp - 0x40c]
call dword [sym.imp.msvcrt.dll_free]
pop ecx
push edi
call dword [sym.imp.msvcrt.dll_free]
jmp 0x10aad62