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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x42a038]
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 0x418daf
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.0041d60e
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 0x418f91
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 0x418e5a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x418e4f
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.0041d60e
mov esp, ebp
pop ebp
ret
push eax
push str.OpenSCManager_failed___d__n
jmp 0x418d91
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 0x418ecd
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x418ec2
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.0041d60e
mov esp, ebp
pop ebp
ret
push eax
push str.Install_failed___d__n
jmp 0x418d91
call fcn.00402270
test al, al
je 0x418f2f
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 0x418f13
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 0x418d9a
mov ecx, esi
call fcn.00418b50
test al, al
jne 0x418f2f
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
jmp 0x418d9a
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 0x418f6c
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 0x418d9a
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.0041d60e
mov esp, ebp
pop ebp
ret
call fcn.0041d9fa
int3