Function at 0x1000a700
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x2b84
call fcn.10010280
mov edx, dword [esp + 0x2b8c]
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x818]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], 0
mov eax, ecx
mov esi, edi
mov edi, ebp
lea ebp, [esp + 0x418]
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, dword [esp + 0x2ba0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push 8
push 0
push edx
mov edx, dword [esp + 0x2ba8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000ab72
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push 0x400
push eax
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, 0x103
je 0x1000ab67
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
cmp eax, 6
je 0x1000ab67
lea edx, [esp + 0x18]
lea eax, [esp + 0xc18]
push edx
push 0x10030c5c
push eax
call ebp
lea edi, [esp + 0xc24]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x2ba0]
lea edx, [esp + 0x418]
not ecx
dec ecx
jne 0x1000a814
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
jmp 0x1000a916
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x418]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x10030c58
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x418]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
lea edi, [esp + 0xc18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x818]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x2b9c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x818]
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, 0x10030c58
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
lea edx, [esp + 0x818]
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x18]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1018]
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]
lea ecx, [esp + 0x1018]
push ecx
call dword [sym.imp.MSVCRT.dll__strlwr]
lea eax, [esp + 0x101c]
mov edx, 0x10030c54
add esp, 4
mov cx, word [eax]
cmp cx, word [edx]
jne 0x1000aa2c
mov eax, dword [esp + 0x2ba4]
test eax, eax
jne 0x1000aa2c
lea edx, [esp + 0x18]
lea eax, [esp + 0x141c]
push edx
push str._t_s_r_n
push eax
call ebp
lea edi, [esp + 0x1428]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebx + 0xd0]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x7dc
add edx, ecx
mov dword [esp + 0x1428], ecx
mov dword [ebx + 0xd0], edx
mov esi, dword [0x1003899c]
mov edi, dword [esi + 4]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x10
mov ecx, esi
test esi, esi
jne 0x1000a9d3
mov ecx, eax
test edi, edi
mov dword [eax], ecx
jne 0x1000a9db
mov edi, eax
mov dword [eax + 4], edi
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
lea edi, [eax + 8]
test edi, edi
mov dword [ecx], eax
je 0x1000a9fb
mov ecx, 0x1f5
lea esi, [esp + 0x1418]
rep movsd dword es:[edi], dword [esi]
mov eax, dword [0x100389a0]
mov ecx, dword [esp + 0x2b98]
inc eax
lea edx, [esp + 0x418]
mov dword [0x100389a0], eax
push 1
lea eax, [esp + 0x81c]
push edx
push eax
push ecx
mov ecx, ebx
call fcn.1000a700
jmp 0x1000ab3d
mov eax, dword [esp + 0x2ba4]
lea edx, [esp + 0x18]
cmp eax, 1
push edx
jne 0x1000aabc
lea eax, [esp + 0x1bf4]
push str._t_t_s_t_r_n
push eax
call ebp
lea edi, [esp + 0x1bfc]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebx + 0xd0]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x7dc
add edx, ecx
mov dword [esp + 0x1bfc], ecx
mov dword [ebx + 0xd0], edx
mov esi, dword [0x1003899c]
mov edi, dword [esi + 4]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x10
mov ecx, esi
test esi, esi
jne 0x1000aa90
mov ecx, eax
test edi, edi
mov dword [eax], ecx
jne 0x1000aa98
mov edi, eax
mov dword [eax + 4], edi
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
lea edi, [eax + 8]
test edi, edi
mov dword [ecx], eax
je 0x1000ab37
mov ecx, 0x1f5
lea esi, [esp + 0x1bec]
jmp 0x1000ab35
lea eax, [esp + 0x23c8]
push str._t_s_t_r_n
push eax
call ebp
lea edi, [esp + 0x23d0]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebx + 0xd0]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0x7dc
add edx, ecx
mov dword [esp + 0x23d0], ecx
mov dword [ebx + 0xd0], edx
mov esi, dword [0x1003899c]
mov edi, dword [esi + 4]
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x10
mov ecx, esi
test esi, esi
jne 0x1000ab0f
mov ecx, eax
test edi, edi
mov dword [eax], ecx
jne 0x1000ab17
mov edi, eax
mov dword [eax + 4], edi
mov dword [esi + 4], eax
mov ecx, dword [eax + 4]
lea edi, [eax + 8]
test edi, edi
mov dword [ecx], eax
je 0x1000ab37
mov ecx, 0x1f5
lea esi, [esp + 0x23c0]
rep movsd dword es:[edi], dword [esi]
inc dword [0x100389a0]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
inc eax
push 0x400
push edx
mov dword [esp + 0x1c], eax
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
cmp eax, 0x103
jne 0x1000a7b8
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2b84
ret 0x10