Function at 0x404a10
Capabilities:
Check if file exists
Create directory
Create service
Modify service
Persist via run registry key
Persist via windows service
Read .ini file
Start service

Disassembly:
sub esp, 0xaa4
mov eax, dword [0x42e070]
xor eax, esp
mov dword [esp + 0xa9c], eax
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_wsprintfW]
push esi
mov ecx, 1
mov eax, 0x1388
push edi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], eax
xor ebx, ebx
lea ecx, [esp + 0x490]
lea eax, [esp + 0x28]
push 0x424e08
push ecx
mov dword [esp + 0x28], 3
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], eax
call ebp
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
lea edi, [esp + 0x49c]
mov esi, str.Common_AppData
mov ecx, reloc.WS2_32.dll_bind
call fcn.00404f40
add esp, 0xc
mov edx, edi
push edx
push str.Program_Data_Path____s
call fcn.00404e10
mov eax, edi
push eax
lea ecx, [esp + 0x294]
push str._sNet_Protector
push ecx
call ebp
add esp, 0x14
lea edx, [esp + 0x288]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404ade
push ebx
lea eax, [esp + 0x28c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esp + 0x288]
push ecx
lea edx, [esp + 0x69c]
push str._sCCLM.ini
push edx
call ebp
add esp, 0xc
push 0x424e08
lea eax, [esp + 0x44]
push 0x32
push eax
call fcn.0040ee2f
add esp, 0xc
lea ecx, [esp + 0x698]
push ecx
push 0x32
lea edx, [esp + 0x48]
push edx
push 0x424e08
push str.CCLM
push str.Data
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x40]
push str.TRUE
push eax
mov byte [0x43094e], bl
call fcn.0040f49b
add esp, 8
test eax, eax
je 0x404b56
push str.Service_not_installed_as_CCLM_Status_is_false.
jmp 0x404ca7
push 0x104
lea ecx, [esp + 0x8a4]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call ebp
push eax
push 0x424e0c
lea edx, [esp + 0x1a0]
call fcn.0040d9f0
lea edx, [esp + 0x1a0]
push edx
call fcn.00404e10
add esp, 0xc
cmp esi, ebx
je 0x404caf
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [esp + 0x8b4]
push eax
push 1
push 2
push 0x110
push 0xf01ff
push str.NPAV_ACClient_Service
push str.NPAV_ACClient
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
cmp edi, ebx
je 0x404c61
push 0xee
lea edx, [esp + 0xae]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0xb4], cx
call fcn.00410d60
lea eax, [esp + 0xb4]
add esp, 0xc
push eax
call fcn.00404e10
add esp, 4
lea ecx, [esp + 0x14]
push ecx
push 2
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x404c30
push str.Auto_Recovery_failed
call fcn.00404e10
add esp, 4
push ebx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x404c4b
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
jmp 0x404cb1
push str.Failed_to_Start_Service..
call fcn.00404e10
add esp, 4
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x404caf
call ebp
cmp eax, 0x431
jne 0x404caf
push 0xf003f
push str.NPAV_ACClient
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
call ebp
lea edx, [esp + 0x14]
push edx
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x404c9e
push str.Auto_Recovery_failed
call fcn.00404e10
add esp, 4
cmp edi, ebx
jne 0x404c30
push str.Service_Already_Exists_but_Failed_to_Start_Service..
call fcn.00404e10
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xaac]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040e6d9
add esp, 0xaa4
ret