Function at 0x100829c
Capabilities:
Delete registry value
Get common file path
Persist via default file association registry key
Query or enumerate registry value
Read .ini file
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa54
mov eax, dword [0x100d0ac]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
push eax
lea ecx, [ebp - 0xa3c]
mov dword [ebp - 0xa50], eax
mov dword [ebp - 0xa40], 1
call fcn.0100a825
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x31c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
push 0x1001d68
lea eax, [ebp - 0x832]
push eax
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x630]
push 0x1001d60
push eax
call esi
add esp, 0x14
push 0x41
pop ecx
xor eax, eax
lea edi, [ebp - 0x214]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [ebp - 0x630]
push eax
push ebx
lea eax, [ebp - 0x214]
push eax
push 0x10012fc
push 0x1001d30
push 0x10012e8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x214], 0
je 0x10086df
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x10c]
push 0x1001ebc
push eax
mov dword [ebp - 0xa4c], 1
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 0xc
lea eax, [ebp - 0xa44]
push eax
push 0x2001f
push 0
lea eax, [ebp - 0x10c]
push eax
mov edi, 0x80000000
push edi
call ebx
test eax, eax
jne 0x10083fa
lea eax, [ebp - 0xa54]
push eax
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0xa48]
push eax
push 0
push 0
push dword [ebp - 0xa44]
mov dword [ebp - 0xa54], 0x105
mov dword [ebp - 0xa48], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10083e5
lea eax, [ebp - 0x31c]
push eax
call fcn.0100824a
mov dword [ebp - 0xa4c], eax
push dword [ebp - 0xa44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0xa4c], 0
je 0x1008445
push 0x105
lea eax, [ebp - 0x31c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1008445
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x528]
push 0x1001ea8
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x528]
push eax
lea eax, [ebp - 0x10c]
push eax
push edi
call fcn.010081ea
and eax, 1
mov dword [ebp - 0xa40], eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x10c]
push 0x1001e8c
push eax
call esi
lea eax, [ebp - 0x528]
push 0x1001e80
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x528]
push eax
lea eax, [ebp - 0x10c]
push eax
push edi
call fcn.010081ea
and dword [ebp - 0xa40], eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x10c]
push 0x1001e5c
push eax
call esi
push dword [ebp - 0xa50]
lea eax, [ebp - 0x528]
push 0x1001e40
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0x528]
push eax
lea eax, [ebp - 0x10c]
push eax
push edi
call fcn.010081ea
and dword [ebp - 0xa40], eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x10c]
push 0x1001e2c
push eax
call esi
lea eax, [ebp - 0x528]
push 0x1001e20
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x528]
push eax
lea eax, [ebp - 0x10c]
push eax
push edi
call fcn.010081ea
and dword [ebp - 0xa40], eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x10c]
push 0x1001e04
push eax
call esi
push dword [ebp - 0xa50]
lea eax, [ebp - 0x528]
push 0x1001df0
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0x528]
push eax
lea eax, [ebp - 0x10c]
push eax
push edi
call fcn.010081ea
and dword [ebp - 0xa40], eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x10c]
push 0x1001d3c
push eax
call esi
push 0x1001de8
lea eax, [ebp - 0x528]
push eax
call esi
add esp, 0x14
lea eax, [ebp - 0x528]
push eax
lea eax, [ebp - 0x10c]
push eax
push edi
call fcn.010081ea
and dword [ebp - 0xa40], eax
push 0x1001dd8
lea eax, [ebp - 0x31c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x31c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x10016c8
lea eax, [ebp - 0x31c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x10c]
push 0x1001db8
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x10c]
push eax
push edi
call fcn.010081ea
and dword [ebp - 0xa40], eax
lea eax, [ebp - 0x832]
push eax
push 0x1001ca8
lea eax, [ebp - 0x10c]
push 0x1001b0c
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0xa44]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x10c]
push eax
push 0x80000002
call ebx
test eax, eax
jne 0x1008666
push 0x1001da8
push dword [ebp - 0xa44]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 0x1001d9c
push dword [ebp - 0xa44]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0xa44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x10c]
push 0x1001d84
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0xa44]
push eax
push 0xf003f
xor esi, esi
push esi
lea eax, [ebp - 0x10c]
push eax
push edi
call ebx
test eax, eax
jne 0x10086d7
push 4
lea eax, [ebp - 0xa48]
push eax
push 4
push esi
push 0x1001d78
push dword [ebp - 0xa44]
mov dword [ebp - 0xa48], esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0xa44]
neg eax
sbb eax, eax
inc eax
and dword [ebp - 0xa40], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10086e6
mov dword [ebp - 0xa40], esi
jmp 0x10086e6
and dword [ebp - 0xa40], 0
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0xa40]
pop edi
pop esi
pop ebx
call fcn.01009b9d
leave
ret 4