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

Disassembly:
sub esp, 0x740
lea eax, [esp]
mov dword [esp + 0x10], ecx
push eax
mov eax, dword [esp + 0x748]
push 0xf003f
push 0
mov edx, dword [eax + 0x508]
lea ecx, [eax + 4]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
push 0
jne 0x1000a7d1
lea eax, [esp + 0x20]
push 0
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x40]
push 0
lea ecx, [esp + 0x30]
push eax
push ecx
push 0
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x1000a482
push 0
push 0x1001c6b8
push str.RegQueryInfoKey
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x740
ret 4
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
test eax, eax
push edi
mov dword [esp + 0x18], 0
jbe 0x1000a6fe
mov edx, dword [esp + 0x34]
mov esi, dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, 0x144
xor eax, eax
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x2c]
lea eax, [edx + 0x64]
inc ecx
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x3c], eax
call esi
mov ebp, eax
mov eax, dword [esp + 0x20]
push eax
call esi
add esp, 8
lea ecx, [esp + 0x1c]
mov ebx, eax
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x1c]
push ebx
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x44]
push 0
push eax
push ebp
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov eax, dword [esp + 0x14]
cmp eax, 1
jne 0x1000a557
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x44]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x148]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x54c], 1
jmp 0x1000a6a8
cmp eax, 4
jne 0x1000a5d3
push ebx
lea ecx, [esp + 0x554]
push 0x1001ab34
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x44]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x148]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x54c], 4
mov dword [esp + 0x40], 0
cmp eax, 3
jne 0x1000a64f
push ebx
lea ecx, [esp + 0x654]
push 0x1001ab30
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x44]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x148]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x54c], 3
mov dword [esp + 0x40], 0
cmp eax, 2
jne 0x1000a6b0
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x44]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x148]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x54c], 2
mov dword [esp + 0x40], 0
push 0x511
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
mov ecx, 0x144
lea esi, [esp + 0x40]
push ebx
lea edi, [ebx + 1]
mov byte [ebx], 0x7f
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov ecx, dword [esp + 0x20]
push eax
push ebx
call fcn.10007dc0
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
inc eax
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x1000a49a
mov eax, dword [esp + 0x28]
xor ebp, ebp
test eax, eax
jbe 0x1000a7b9
mov ecx, 0x144
xor eax, eax
lea edi, [esp + 0x40]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x3c]
lea eax, [ecx + 1]
push eax
mov dword [esp + 0x34], eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
lea edx, [esp + 0x30]
mov edi, eax
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
push 0
push edx
push edi
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x44]
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x511
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x40
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x48], 1
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
mov ecx, 0x144
lea esi, [esp + 0x40]
push ebx
lea edi, [ebx + 1]
mov byte [ebx], 0x7f
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_LocalSize]
mov ecx, dword [esp + 0x20]
push eax
push ebx
call fcn.10007dc0
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x28]
inc ebp
cmp ebp, eax
jb 0x1000a70c
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x740
ret 4
push 0x1001c6b8
push 0x1001ab10
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
add esp, 0x740
ret 4