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]
xor ebx, ebx
push edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x328], eax
lea eax, [ebp - 0x314]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x32c], edi
lea edi, [ebp - 0x318]
push edi
push eax
push ebx
push 0x20019
push ebx
push ebx
push ebx
push 0x10011d0
push 0x80000001
mov dword [ebp - 0x314], ebx
mov dword [ebp - 0x318], ebx
mov dword [ebp - 0x320], ebx
mov dword [ebp - 0x31c], ebx
call esi
or eax, eax
jne 0x1001bd2
cmp dword [ebp - 0x318], 2
jne 0x1001bd2
lea eax, [ebp - 0x320]
lea edi, [ebp - 0x31c]
push edi
lea edi, [ebp - 0x324]
push edi
push eax
push ebx
push 0x10011e8
push dword [ebp - 0x314]
mov dword [ebp - 0x324], ebx
mov dword [ebp - 0x31c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
or eax, eax
jne 0x1001bd2
cmp dword [ebp - 0x324], 1
je 0x1001ed9
cmp dword [ebp - 0x314], ebx
je 0x1001be6
push dword [ebp - 0x314]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edi, [ebp - 0x318]
push edi
lea eax, [ebp - 0x314]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x10012c4
push 0x80000000
call esi
test eax, eax
jne 0x1001ed9
mov edi, 0x10012cc
cmp dword [ebp - 0x318], 2
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
jne 0x1001cba
push 0x104
lea eax, [ebp - 0x20c]
push 0x1001170
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 ebx
push ebx
push dword [ebp - 0x314]
mov dword [ebp - 0x31c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
or eax, eax
jne 0x1001cba
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
or eax, eax
je 0x1001ed9
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x1001cba
push ebx
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 esi
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push ebx
push ebx
push dword [ebp - 0x314]
call edi
or eax, eax
jne 0x1001ed9
push 0x10012f0
call esi
push eax
push 0x10012f0
push 1
push ebx
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 ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x1001334
push 0x80000000
mov dword [ebp - 0x314], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1001ed9
push 0x1001348
call esi
push eax
push 0x1001348
push 1
push ebx
push ebx
push dword [ebp - 0x314]
call edi
or 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 ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x1001354
push 0x80000000
mov dword [ebp - 0x314], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1001ed9
lea eax, [ebp - 0x310]
push 0x104
push eax
call fcn.0100185d
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push 0x100137c
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
lea eax, [ebp - 0x108]
sub esp, 0xfffffff0
push eax
call esi
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push ebx
push ebx
push dword [ebp - 0x314]
call edi
or 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 ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x100138c
push 0x80000000
mov dword [ebp - 0x314], ebx
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 esi
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push ebx
push ebx
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 ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x1001300
push 0x80000000
mov dword [ebp - 0x314], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1001ed9
push 0x10012c4
call esi
push eax
push 0x10012c4
push 1
push ebx
push 0x1001328
push dword [ebp - 0x314]
call edi
test eax, eax
je 0x1001ee1
cmp dword [ebp - 0x314], ebx
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.01004a2f
leave
ret 8