Function at 0x419570
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x104
lea eax, [ebp - 0x420]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, eax
test esi, esi
jne 0x4195df
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cannot_install_service___lu__n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 8
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b5b1
mov esp, ebp
pop ebp
ret
push 0x107
lea eax, [ebp - 0x218]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 0x420]
mov edi, 0x22
mov word [ebp - 0x218], di
push esi
push eax
lea eax, [ebp - 0x216]
push 0x106
push eax
call dword [sym.imp.MSVCR120.dll_wcsncpy_s]
mov word [ebp + esi*2 - 0x216], di
add esp, 0x10
lea esi, [esi*2 + 4]
cmp esi, 0x20e
jae 0x4197c1
xor eax, eax
push 2
push eax
push eax
mov word [ebp + esi - 0x218], ax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x41968a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x41967f
push str.ACCESS_DENIED:_administrative_privileges_required._n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 4
lea eax, [edi + 2]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b5b1
mov esp, ebp
pop ebp
ret
push eax
push str.OpenSCManager_failed___d__n
jmp 0x4195c1
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x218]
push eax
push 1
push 2
push 0x10
push 0xf01ff
push str.Intel_R__Dynamic_Application_Loader_Host_Interface_Service
push str.jhi_service
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x4196fd
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x4196f2
push str.Install_failed:_service_already_exist._n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 4
lea eax, [esi + 3]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041b5b1
mov esp, ebp
pop ebp
ret
push eax
push str.Install_failed___d__n
jmp 0x4195c1
call fcn.004022f0
test al, al
je 0x41975f
lea eax, [ebp - 0x428]
mov dword [ebp - 0x428], 1
push eax
push 3
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
jne 0x419743
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
push str.Install_error:_Couldnt_set_the_service_to_delayed_auto_start._n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 4
jmp 0x4195ca
mov ecx, esi
call fcn.00419380
test al, al
jne 0x41975f
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
jmp 0x4195ca
lea eax, [ebp - 0x424]
mov dword [ebp - 0x424], str.Intel_R__Dynamic_Application_Loader_Host_Interface_Service___Allows_applications_to_access_the_local_Intel__R__DAL
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x41979c
call esi
push edi
call esi
push str.Install_error:_Couldnt_change_the_description_n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 4
jmp 0x4195ca
call esi
push edi
call esi
push str.JHI_Service_installed_successfully_n
call dword [sym.imp.MSVCR120.dll_printf]
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
call fcn.0041b5b1
mov esp, ebp
pop ebp
ret
call fcn.0041b9ca
int3