Function at 0x1001b9e
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, 0x330
mov eax, dword [0x10060ac]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x32c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x330], eax
xor ebx, ebx
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x318]
push eax
push ebx
push 0x20019
push ebx
push ebx
push ebx
push 0x1001220
push 0x80000001
mov dword [ebp - 0x318], ebx
mov dword [ebp - 0x31c], ebx
mov dword [ebp - 0x324], ebx
mov dword [ebp - 0x320], ebx
call esi
test eax, eax
jne 0x1001c5e
cmp dword [ebp - 0x31c], 2
jne 0x1001c5e
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x324]
push eax
push ebx
push 0x1001238
push dword [ebp - 0x318]
mov dword [ebp - 0x328], ebx
mov dword [ebp - 0x320], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001c5e
cmp dword [ebp - 0x328], 1
je 0x1001f6b
cmp dword [ebp - 0x318], ebx
je 0x1001c72
push dword [ebp - 0x318]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x318]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x1001314
push 0x80000000
call esi
test eax, eax
jne 0x1001f6b
cmp dword [ebp - 0x31c], 2
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, 0x100131c
jne 0x1001d4c
push 0x105
push 0x10011c0
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x324]
push eax
push ebx
push ebx
push dword [ebp - 0x318]
mov dword [ebp - 0x320], 0x104
mov byte [ebp - 0x10c], bl
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001d4c
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x1001f6b
lea eax, [ebp - 0x210]
push eax
call edi
test eax, eax
je 0x1001d4c
push ebx
push 0x1001ae8
push dword [ebp - 0x32c]
push 0x898
push dword [ebp - 0x330]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
cmp eax, 1
je 0x1001f6b
push esi
call edi
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push ebx
push ebx
push dword [ebp - 0x318]
call esi
test eax, eax
jne 0x1001f6b
push 0x1001340
call edi
push eax
push 0x1001340
push 1
push ebx
push 0x1001330
push dword [ebp - 0x318]
call esi
test eax, eax
jne 0x1001f6b
push dword [ebp - 0x318]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x318]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x1001384
push 0x80000000
mov dword [ebp - 0x318], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1001f6b
push 0x1001398
call edi
push eax
push 0x1001398
push 1
push ebx
push ebx
push dword [ebp - 0x318]
call esi
test eax, eax
jne 0x1001f6b
push dword [ebp - 0x318]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x318]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x10013a4
push 0x80000000
mov dword [ebp - 0x318], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1001f6b
push 0x104
lea eax, [ebp - 0x314]
push eax
call fcn.010018e9
lea eax, [ebp - 0x314]
push eax
push 0x10013cc
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 edi
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push ebx
push ebx
push dword [ebp - 0x318]
call esi
test eax, eax
jne 0x1001f6b
push dword [ebp - 0x318]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x318]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x10013dc
push 0x80000000
mov dword [ebp - 0x318], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1001f6b
lea eax, [ebp - 0x314]
push eax
push 0x10013fc
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 edi
push eax
lea eax, [ebp - 0x108]
push eax
push 1
push ebx
push ebx
push dword [ebp - 0x318]
call esi
test eax, eax
jne 0x1001f6b
push dword [ebp - 0x318]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x318]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x1001350
push 0x80000000
mov dword [ebp - 0x318], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x1001f6b
push 0x1001314
call edi
push eax
push 0x1001314
push 1
push ebx
push 0x1001378
push dword [ebp - 0x318]
call esi
test eax, eax
je 0x1001f73
cmp dword [ebp - 0x318], ebx
je 0x1001f7f
push dword [ebp - 0x318]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100491e
leave
ret 8