Function at 0x4b22e0
Capabilities:
Copy file
Create service
Delete file
Delete service
Manipulate safe mode programs
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513c41
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x10b0
call fcn.004e1f60
mov eax, dword [0x55e2f4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x1080], edi
call fcn.00416ae0
test eax, eax
je 0x4b2370
call fcn.004adea0
mov eax, dword [0x57c0d8]
push dword [ebp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
test eax, eax
je 0x4b269d
push eax
call dword [sym.imp.KERNEL32.DLL_SetLastError]
mov dword [ebp - method.CnCrypt::SystemException.virtual_0], vtable.CnCrypt::SystemException.0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x108c], eax
lea eax, [ebp - 0x1090]
push 0x5511e0
push eax
call fcn.004e3ce5
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x1084], ebx
test ebx, ebx
jne 0x4b23b2
mov dword [ebp - method.CnCrypt::SystemException.virtual_0], vtable.CnCrypt::SystemException.0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x1094], eax
lea eax, [ebp - 0x1098]
push 0x5511e0
push eax
call fcn.004e3ce5
lea eax, [ebp - 0x818]
push 0x519c28
push eax
call fcn.0041ee50
add esp, 8
mov ecx, edi
cmp dword [ebp + 8], 0
push 0
je 0x4b25f1
mov dword [ebp - 4], 0
call fcn.004b22e0
jmp 0x4b23f4
push 0x401
lea eax, [ebp - 0x101c]
mov dword [ebp - 4], 0xffffffff
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
test eax, eax
jne 0x4b243a
mov dword [ebp - method.CnCrypt::SystemException.virtual_0], vtable.CnCrypt::SystemException.0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x109c], eax
lea eax, [ebp - 0x10a0]
push 0x5511e0
push eax
call fcn.004e3ce5
push 0
lea eax, [ebp - 0x818]
push eax
lea eax, [ebp - 0x101c]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
test eax, eax
jne 0x4b247b
mov dword [ebp - method.CnCrypt::SystemException.virtual_0], vtable.CnCrypt::SystemException.0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x10a4], eax
lea eax, [ebp - 0x10a8]
push 0x5511e0
push eax
call fcn.004e3ce5
lea eax, [ebp - 0x818]
push eax
lea ecx, [ebp - 0x107c]
call fcn.00403e70
mov esi, eax
push 0x518bd8
lea ecx, [ebp - 0x1064]
mov dword [ebp - 4], 2
call fcn.00403e70
push esi
push eax
lea eax, [ebp - 0x104c]
mov byte [ebp - 4], 3
push eax
call fcn.00438300
push str.___systemFavoritesService
push eax
lea eax, [ebp - 0x1034]
mov byte [ebp - 4], 4
push eax
call fcn.00403cd0
add esp, 0x18
cmp dword [eax + 0x14], 8
jb 0x4b24d9
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push str.Event_Log
push eax
push 1
push 2
push 0x10
push 0xf01ff
push str.CnCrypt_System_Favorites
push str.CnCrypt_SystemFavorites
push ebx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
lea ecx, [ebp - 0x1034]
mov esi, eax
call fcn.00495b40
lea ecx, [ebp - 0x104c]
call fcn.00495b40
lea ecx, [ebp - 0x1064]
call fcn.00495b40
lea ecx, [ebp - 0x107c]
mov dword [ebp - 4], 0xffffffff
call fcn.00495b40
test esi, esi
jne 0x4b2563
mov dword [ebp - method.CnCrypt::SystemException.virtual_0], vtable.CnCrypt::SystemException.0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x10ac], eax
lea eax, [ebp - 0x10b0]
push 0x5511e0
push eax
call fcn.004e3ce5
lea eax, [ebp - 0x1088]
mov dword [ebp - 0x1088], str.Mounts_CnCrypt_system_favorite_volumes.
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0
push str.Service
push 0
push str.SYSTEMCurrentControlSetControlSafeBootMinimalCnCrypt_SystemFavorites
mov dword [ebp - 4], 5
call fcn.004c1090
add esp, 0x10
push 0
push str.Service
push 0
push str.SYSTEMCurrentControlSetControlSafeBootNetworkCnCrypt_SystemFavorites
call fcn.004c1090
add esp, 0x10
mov ecx, edi
push 1
push 2
call fcn.004b2e10
jmp 0x4b269d
push 2
call fcn.004b2e10
push str.CnCrypt_SystemFavorites
push str.SYSTEMCurrentControlSetControlSafeBootMinimal
call fcn.004c0b50
push str.CnCrypt_SystemFavorites
push str.SYSTEMCurrentControlSetControlSafeBootNetwork
call fcn.004c0b50
add esp, 0x10
push 0xf01ff
push str.CnCrypt_SystemFavorites
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x4b2657
mov dword [ebp - method.CnCrypt::SystemException.virtual_0], vtable.CnCrypt::SystemException.0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x10b4], eax
lea eax, [ebp - 0x10b8]
push 0x5511e0
push eax
call fcn.004e3ce5
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x4b2689
mov dword [ebp - method.CnCrypt::SystemException.virtual_0], vtable.CnCrypt::SystemException.0
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x10bc], eax
lea eax, [ebp - 0x10c0]
push 0x5511e0
push eax
call fcn.004e3ce5
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea eax, [ebp - 0x818]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004e1f40
mov esp, ebp
pop ebp
ret 4