Function at 0x1001b12
Capabilities:
Persist via default file association registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x32c
mov eax, dword [0x10060b0]
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x328], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x32c], eax
xor esi, esi
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x314]
push eax
push esi
push 0x20019
push esi
push esi
push esi
push 0x10011d0
push 0x80000001
mov dword [ebp - 0x314], esi
mov dword [ebp - 0x318], esi
mov dword [ebp - 0x320], esi
mov dword [ebp - 0x31c], esi
call edi
test eax, eax
jne 0x1001bd2
cmp dword [ebp - 0x318], 2
jne 0x1001bd2
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x320]
push eax
push esi
push 0x10011e8
push dword [ebp - 0x314]
mov dword [ebp - 0x324], esi
mov dword [ebp - 0x31c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001bd2
cmp dword [ebp - 0x324], 1
je 0x1001ed9
cmp dword [ebp - 0x314], esi
je 0x1001be6
push dword [ebp - 0x314]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x314]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push 0x10012c4
push 0x80000000
call edi
test eax, eax
jne 0x1001ed9
cmp dword [ebp - 0x318], 2
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, 0x10012cc
jne 0x1001cba
push 0x104
push 0x1001170
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x320]
push eax
push esi
push esi
push dword [ebp - 0x314]
mov dword [ebp - 0x31c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001cba
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1001ed9
lea eax, [ebp - 0x20c]
push eax
call ebx
test eax, eax
je 0x1001cba
push esi
push 0x1001a5c
push dword [ebp - 0x328]
push 0x898
push dword [ebp - 0x32c]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 1
je 0x1001ed9
push edi
call ebx
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push esi
push esi
push dword [ebp - 0x314]
call edi
test eax, eax
jne 0x1001ed9
push 0x10012f0
call ebx
push eax
push 0x10012f0
push 1
push esi
push 0x10012e0
push dword [ebp - 0x314]
call edi
test eax, eax
jne 0x1001ed9
push dword [ebp - 0x314]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x314]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push 0x1001334
push 0x80000000
mov dword [ebp - 0x314], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1001ed9
push 0x1001348
call ebx
push eax
push 0x1001348
push 1
push esi
push esi
push dword [ebp - 0x314]
call edi
test eax, eax
jne 0x1001ed9
push dword [ebp - 0x314]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x314]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push 0x1001354
push 0x80000000
mov dword [ebp - 0x314], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1001ed9
push 0x104
lea eax, [ebp - 0x310]
push eax
call fcn.0100185d
lea eax, [ebp - 0x310]
push eax
push 0x100137c
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
call ebx
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push esi
push esi
push dword [ebp - 0x314]
call edi
test eax, eax
jne 0x1001ed9
push dword [ebp - 0x314]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x314]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push 0x100138c
push 0x80000000
mov dword [ebp - 0x314], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1001ed9
lea eax, [ebp - 0x310]
push eax
push 0x10013ac
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x10
lea eax, [ebp - 0x108]
push eax
call ebx
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push esi
push esi
push dword [ebp - 0x314]
call edi
test eax, eax
jne 0x1001ed9
push dword [ebp - 0x314]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x314]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push 0x1001300
push 0x80000000
mov dword [ebp - 0x314], esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1001ed9
push 0x10012c4
call ebx
push eax
push 0x10012c4
push 1
push esi
push 0x1001328
push dword [ebp - 0x314]
call edi
test eax, eax
je 0x1001ee1
cmp dword [ebp - 0x314], esi
je 0x1001eed
push dword [ebp - 0x314]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01004a37
leave
ret 8