Function at 0x10006a10
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
push ebx
push esi
push edi
mov dword [ebp - 0x844], ecx
push eax
xor eax, eax
xor eax, eax
je 0x10006a30
push ebp
adc byte [ecx], 0x58
pop eax
mov eax, dword [ebp - 0x844]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x834], ecx
mov dword [ebp - 0x418], 0
lea edx, [ebp - 0x418]
push edx
push 9
push 0
mov eax, dword [ebp - 0x834]
push eax
mov ecx, dword [ebp - 0x834]
mov edx, dword [ecx + 0x908]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x830], eax
cmp dword [ebp - 0x830], 5
je 0x10006a87
cmp dword [ebp - 0x830], 0
je 0x10006a99
mov eax, dword [ebp - 0x844]
mov dword [eax + 4], 0x1b58
jmp 0x10006d5f
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x844]
call fcn.10007010
mov dword [ebp - 0x840], eax
cmp dword [ebp - 0x840], 0
jne 0x10006ad9
mov ecx, dword [ebp - 0x844]
mov dword [ecx + 4], 0x1b69
mov edx, dword [ebp - 0x418]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10006d5f
mov dword [ebp - 0x82c], 0
mov dword [ebp - 0x828], 0
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0x824]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x414], 0
mov ecx, 0x103
xor eax, eax
lea edi, [ebp - 0x410]
rep stosd dword es:[edi], eax
mov eax, 1
test eax, eax
je 0x10006ca4
mov ecx, 0x104
xor eax, eax
lea edi, [ebp - 0x828]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x408], 0
mov dword [ebp - 0x820], 0x1fe
mov dword [ebp - 0x828], 0x1fe
lea ecx, [ebp - 0x820]
push ecx
lea edx, [ebp - 0x618]
push edx
lea eax, [ebp - 0x824]
push eax
push 0
lea ecx, [ebp - 0x828]
push ecx
lea edx, [ebp - 0x818]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x418]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x830], eax
cmp dword [ebp - 0x830], 0
je 0x10006bdf
cmp dword [ebp - 4], 0
jne 0x10006bda
mov dword [ebp - 0x410], 1
mov dword [ebp - 0x414], 0xffffffff
mov dword [ebp - 0x40c], 0xffffffff
push 0
lea edx, [ebp - 0x82c]
push edx
push 0x410
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp - 0x840]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x10006ca4
cmp dword [ebp - 4], 0
jne 0x10006c74
lea edx, [ebp - 0x818]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x10006c34
mov dword [ebp - 0x828], 0xffffffff
push 0
lea eax, [ebp - 0x82c]
push eax
push 0x410
lea ecx, [ebp - 0x828]
push ecx
mov edx, dword [ebp - 0x840]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x10006b15
mov dword [ebp - 0x410], 1
mov dword [ebp - 0x414], 0xffffffff
mov dword [ebp - 0x40c], 0xffffffff
push 0
lea ecx, [ebp - 0x82c]
push ecx
push 0x410
lea edx, [ebp - 0x414]
push edx
mov eax, dword [ebp - 0x840]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 0x82c]
push ecx
push 0x410
lea edx, [ebp - 0x828]
push edx
mov eax, dword [ebp - 0x840]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x10006b15
mov dword [ebp - 4], 0
mov edx, 1
test edx, edx
je 0x10006d52
mov ecx, 0x104
xor eax, eax
lea edi, [ebp - 0x828]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x820], 0x1fe
mov dword [ebp - 0x828], 0x1fe
lea eax, [ebp - 0x83c]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x828]
push ecx
lea edx, [ebp - 0x818]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x418]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov dword [ebp - 0x830], eax
cmp dword [ebp - 0x830], 0
je 0x10006d18
jmp 0x10006d52
mov dword [ebp - 0x81c], 1
push 0
lea edx, [ebp - 0x82c]
push edx
push 0x410
lea eax, [ebp - 0x828]
push eax
mov ecx, dword [ebp - 0x840]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
jmp 0x10006cab
mov eax, dword [ebp - 0x840]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret