Function at 0x41fee0
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1218
call fcn.004e1f60
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
je 0x41ff16
push dword [ebp + 8]
call fcn.00420ab0
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
push ebx
push esi
lea eax, [ebp - 0x120c]
mov dword [ebp - 0x1210], 0
push edi
push eax
mov dword [ebp - 0x1214], 0
call fcn.004206a0
lea eax, [ebp - 0x120c]
push eax
call fcn.0041eee0
add esp, 8
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x1214]
push eax
lea eax, [ebp - 0x1210]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareClassesCnCryptVolume
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4202a4
xor ecx, ecx
movzx eax, word [ecx + str.CnCrypt_Volume]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x80a], ax
test ax, ax
jne 0x41ff85
lea ecx, [ebp - 0x808]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41ffa5
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x808]
push eax
push 1
push 0
push 0x516968
push dword [ebp - 0x1210]
call esi
test eax, eax
jne 0x4202a4
push str.CnCryptFoundation.CnCrypt
lea eax, [ebp - 0x808]
push 0x519ef0
push eax
call fcn.004054c0
lea ecx, [ebp - 0x808]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420004
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x808]
push eax
push 1
push 0
push str.AppUserModelID
push dword [ebp - 0x1210]
call esi
test eax, eax
jne 0x4202a4
push dword [ebp - 0x1210]
call edi
lea eax, [ebp - 0x1214]
mov dword [ebp - 0x1210], 0
push eax
lea eax, [ebp - 0x1210]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareClassesCnCryptVolumeDefaultIcon
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x4202a4
lea eax, [ebp - 0x120c]
push eax
lea eax, [ebp - 0x808]
push str._sCnCrypt.exe_1
push eax
call fcn.004054c0
lea ecx, [ebp - 0x808]
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4200a0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x808]
push eax
push 1
push 0
push 0x516968
push dword [ebp - 0x1210]
call esi
test eax, eax
jne 0x4202a4
push dword [ebp - 0x1210]
call edi
lea eax, [ebp - 0x1214]
mov dword [ebp - 0x1210], 0
push eax
lea eax, [ebp - 0x1210]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareClassesCnCryptVolumeShellopencommand
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x4202a4
lea eax, [ebp - 0x120c]
push eax
lea eax, [ebp - 0x808]
push str.__sCnCrypt.exe___v____1_
push eax
call fcn.004054c0
lea ecx, [ebp - 0x808]
add esp, 0xc
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420140
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x808]
push eax
push 1
push 0
push 0x516968
push dword [ebp - 0x1210]
call esi
test eax, eax
jne 0x4202a4
push dword [ebp - 0x1210]
call edi
lea eax, [ebp - 0x1218]
mov dword [ebp - 0x1210], 0
push eax
lea eax, [ebp - 0xa08]
mov dword [ebp - 0x1218], 0x200
push eax
push 0x516968
push str.SoftwareClasses.ccx
mov esi, 1
call fcn.004c0d60
add esp, 0x10
test eax, eax
je 0x4201df
cmp dword [ebp - 0x1218], 0
jbe 0x4201df
lea eax, [ebp - 0xa08]
push str.CnCryptVolume
push eax
call fcn.004e85f7
add esp, 8
neg eax
sbb eax, eax
and esi, eax
lea eax, [ebp - 0x1214]
push eax
lea eax, [ebp - 0x1210]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareClasses.ccx
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
test eax, eax
jne 0x4202a4
xor ecx, ecx
movzx eax, word [ecx + str.CnCryptVolume]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x80a], ax
test ax, ax
jne 0x420210
lea ecx, [ebp - 0x808]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x420230
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x808]
push eax
push 1
push 0
push 0x516968
push dword [ebp - 0x1210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4202a4
push dword [ebp - 0x1210]
call edi
mov dword [ebp - 0x1210], 0
test esi, esi
je 0x42028e
push 0
push 0
push 0
push 0x8000000
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp - 0x1210]
mov esi, eax
test ecx, ecx
je 0x4202b9
push ecx
call edi
push esi
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004e1f40
mov esp, ebp
pop ebp
ret