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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x423018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x104
lea eax, [ebp - 0x41c]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x41c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, eax
test esi, esi
jne 0x4167fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Cannot_install_service___d__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
lea eax, [esi + 1]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419346
mov esp, ebp
pop ebp
ret
push 0x107
lea edx, [ebp - 0x214]
push 0
push edx
call sub.MSVCR100.dll_memset
push esi
lea ecx, [ebp - 0x41c]
push ecx
lea edx, [ebp - 0x212]
mov eax, 0x22
push edx
mov word [ebp - 0x214], ax
call dword [sym.imp.MSVCR100.dll_wcsncpy]
add esp, 0x18
xor ecx, ecx
push 2
push ecx
mov eax, 0x22
push ecx
mov word [ebp + esi*2 - 0x212], ax
mov word [ebp + esi*2 - 0x210], cx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x4168a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x416884
push str.ACCESS_DENIED:_administrative_privileges_required._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
lea eax, [esi + 2]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419346
mov esp, ebp
pop ebp
ret
push eax
push str.OpenSCManager_failed___d__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419346
mov esp, ebp
pop ebp
ret
push edi
push 0
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x214]
push edx
push 1
push 2
push 0x10
push 0xf01ff
push str.Intel_R__Dynamic_Application_Loader_Host_Interface_Service
push str.jhi_service
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
test edi, edi
jne 0x416934
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x416910
push str.Install_failed:_service_already_exist._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
lea eax, [edi + 3]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419346
mov esp, ebp
pop ebp
ret
push eax
push str.Install_failed___d__n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 8
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419346
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_printf]
push str.JHI_Service_installed_successfully_n
call ebx
add esp, 4
lea eax, [ebp - 0x420]
push eax
push 1
push edi
mov dword [ebp - 0x420], str.Intel_R__Dynamic_Application_Loader_Host_Interface_Service___Allows_applications_to_access_the_local_Intel__R__DAL
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test eax, eax
jne 0x41698f
call edi
push esi
call edi
push str.Install_error:_Couldnt_change_the_description_n
call ebx
add esp, 4
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00419346
mov esp, ebp
pop ebp
ret
call edi
push esi
call edi
mov ecx, dword [ebp - 4]
pop ebx
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00419346
mov esp, ebp
pop ebp
ret