Function at 0x417720
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bb303
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x4f07b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x68], ebx
xor eax, eax
mov dword [ebp - 0x14], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
lea eax, [ebx + 0x38]
mov dword [ebp - 0x18], 0
push eax
call fcn.00408920
push 0x13
push str.ldremoteservice.exe
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.0040c690
push str.start_create_service
push 0x3da
push str.LDRemoteModel::_installService
call fcn.00424270
add esp, 0xc
mov dword [ebp - 0x48], 0
xor eax, eax
mov dword [ebp - 0x50], 7
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x54], 0
mov word [ebp - 0x64], ax
push 8
push str.__create
call fcn.00408c90
lea eax, [ebp - 0x48]
mov byte [ebp - 4], 1
push eax
push 0x2710
push 0
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00428000
add esp, 0x14
mov byte [ebp - 4], 0
cmp dword [ebp - 0x50], 8
mov byte [ebp - 0x49], al
jb 0x417804
push dword [ebp - 0x64]
call fcn.00484840
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push dword [ebp - 0x48]
movzx ecx, byte [ebp - 0x49]
mov esi, eax
push esi
push ecx
push str.create__service___d._error__d__exitCode__d
push 0x3de
push str.LDRemoteModel::_installService
call fcn.00424270
add esp, 0x18
cmp byte [ebp - 0x49], 0
je 0x417990
push 5
xor eax, eax
mov dword [ebp - 0x50], 7
push str.svcOK
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x54], 0
mov word [ebp - 0x64], ax
call fcn.00408c90
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 2
push eax
mov ecx, ebx
call fcn.00419fe0
mov byte [ebp - 4], 0
cmp dword [ebp - 0x50], 8
jb 0x41787f
push dword [ebp - 0x64]
call fcn.00484840
add esp, 4
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
test ebx, ebx
je 0x417967
push 0xf01ff
push str.LDRemoteSvc
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x417929
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4178da
call edi
cmp eax, 0x420
jne 0x4178f4
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov bl, 1
jmp 0x417a77
call edi
push eax
push str.start_service_error__d
push 0x3fc
push str.LDRemoteModel::_installService
call fcn.00424270
add esp, 0x10
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x44]
push eax
push esi
call edi
test eax, eax
je 0x41791e
cmp dword [ebp - 0x40], 2
jne 0x41791e
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x44]
push eax
push esi
call edi
test eax, eax
jne 0x417905
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
jmp 0x417946
push str.open_service_fail
push 0x40b
push str.LDRemoteModel::_installService
call fcn.00424270
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 0xc
push ebx
call esi
push str.start__service_end
push 0x415
push str.LDRemoteModel::_installService
call fcn.00424270
add esp, 0xc
mov bl, 1
jmp 0x417a77
push str.fail_to_OpenSCManage
push 0x411
push str.LDRemoteModel::_installService
call fcn.00424270
mov eax, dword [ebp - 0x68]
add esp, 0xc
mov dword [eax + 0xbc], 0x271c
jmp 0x417a75
mov edx, esi
lea ecx, [ebp - 0x98]
call fcn.0040d600
mov edi, eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x80]
mov edx, dword [ebp - 0x48]
call fcn.0040d600
mov esi, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x64]
push 7
xor eax, eax
mov dword [ebp - 0x50], 7
push str.svcErr_
mov dword [ebp - 0x54], 0
mov word [ebp - 0x64], ax
call fcn.00408c90
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 5
call fcn.0040ca80
push 1
push 0x4da740
mov ecx, eax
call fcn.0040c690
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.0040ca80
push eax
mov ecx, ebx
call fcn.00419fe0
cmp dword [ebp - 0x50], 8
jb 0x417a1b
push dword [ebp - 0x64]
call fcn.00484840
add esp, 4
xor eax, eax
mov dword [ebp - 0x50], 7
cmp dword [ebp - 0x6c], 8
mov dword [ebp - 0x54], 0
mov word [ebp - 0x64], ax
jb 0x417a40
push dword [ebp - 0x80]
call fcn.00484840
add esp, 4
xor eax, eax
mov dword [ebp - 0x6c], 7
cmp dword [ebp - 0x84], 8
mov dword [ebp - 0x70], 0
mov word [ebp - 0x80], ax
jb 0x417a6b
push dword [ebp - 0x98]
call fcn.00484840
add esp, 4
mov dword [ebx + 0xbc], 0x271a
xor bl, bl
cmp dword [ebp - 0x14], 8
jb 0x417a88
push dword [ebp - 0x28]
call fcn.00484840
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048464b
mov esp, ebp
pop ebp
ret