Function at 0x46fd00
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
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x120c]
push ebx
mov ebx, dword [ebp + 8]
sub edx, ecx
push esi
push edi
mov dword [ebp - 0x1210], 0
mov dword [ebp - 0x1214], 0
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x46fd40
lea eax, [ebp - 0x120c]
push eax
call fcn.0041eee0
push str.SoftwareClassesCnCryptVolume
push str.ADDING_REG
push ebx
call fcn.004721e0
add esp, 0x10
mov esi, 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 esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x470114
xor ecx, ecx
nop dword [eax]
movzx eax, word [ecx + str.CnCrypt_Volume]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x80a], ax
test ax, ax
jne 0x46fdb0
lea ecx, [ebp - 0x808]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46fdd0
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 0x470114
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]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46fe30
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 dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x470114
push dword [ebp - 0x1210]
call edi
push str.SoftwareClassesCnCryptVolumeDefaultIcon
push str.ADDING_REG
push ebx
mov dword [ebp - 0x1210], 0
call fcn.004721e0
add esp, 0xc
lea eax, [ebp - 0x1214]
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 esi
test eax, eax
jne 0x470114
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 0x46fee3
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 0x470114
push dword [ebp - 0x1210]
call edi
push str.SoftwareClassesCnCryptVolumeShellopencommand
push str.ADDING_REG
push ebx
mov dword [ebp - 0x1210], 0
call fcn.004721e0
add esp, 0xc
lea eax, [ebp - 0x1214]
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 esi
test eax, eax
jne 0x470114
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]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46ff96
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 0x470114
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 0x470039
cmp dword [ebp - 0x1218], 0
jbe 0x470039
lea eax, [ebp - 0xa08]
push str.CnCryptVolume
push eax
call fcn.004e85f7
add esp, 8
neg eax
sbb eax, eax
and esi, eax
push str.SoftwareClasses.ccx
push ebx
call fcn.00471a50
add esp, 8
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 dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x470114
xor ecx, ecx
nop dword [eax]
movzx eax, word [ecx + str.CnCryptVolume]
lea ecx, [ecx + 2]
mov word [ebp + ecx - 0x80a], ax
test ax, ax
jne 0x470080
lea ecx, [ebp - 0x808]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4700a0
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 0x470114
push dword [ebp - 0x1210]
call edi
mov dword [ebp - 0x1210], 0
test esi, esi
je 0x4700fe
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 0x470129
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