Function at 0x41a690
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a76c4
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
mov eax, dword [0x4d1480]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x98], edi
lea eax, [edi + 0x48]
push eax
lea ecx, [ebp - 0x54]
call fcn.00408b10
push 0x13
push str.ldremoteservice.exe
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0
call fcn.0040d1f0
push str.start_create_service
push 0x3ef
push str.LDRemoteModel::_installService
call fcn.00426450
add esp, 0xc
mov dword [ebp - 0x78], 0
xorps xmm0, xmm0
mov dword [ebp - 0x84], 0
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x80], 0
movups xmmword [ebp - 0x94], xmm0
push 8
push str.__create
call fcn.004082b0
lea eax, [ebp - 0x78]
mov byte [ebp - 4], 1
push eax
sub esp, 8
lea edx, [ebp - 0x94]
lea ecx, [ebp - 0x54]
call fcn.00426c00
mov byte [ebp - 4], 0
add esp, 0xc
mov ecx, dword [ebp - 0x80]
mov byte [ebp - 0x71], al
cmp ecx, 7
jbe 0x41a792
mov edx, dword [ebp - 0x94]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41a788
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41abb1
push ecx
push edx
call fcn.004804a9
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x78]
movzx ecx, byte [ebp - 0x71]
push esi
push eax
push ecx
push str.create__service___d._error__d__exitCode__d
push 0x3f3
push str.LDRemoteModel::_installService
mov dword [ebp - 0x7c], eax
call fcn.00426450
add esp, 0x18
cmp byte [ebp - 0x71], 0
je 0x41a973
push 5
xorps xmm0, xmm0
mov dword [ebp - 0x84], 0
push str.svcOK
lea ecx, [ebp - 0x94]
mov dword [ebp - 0x80], 0
movups xmmword [ebp - 0x94], xmm0
call fcn.004082b0
lea eax, [ebp - 0x94]
mov byte [ebp - 4], 2
push eax
mov ecx, edi
call fcn.0041e1b0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x80]
cmp ecx, 7
jbe 0x41a846
mov edx, dword [ebp - 0x94]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41a83c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41abbb
push ecx
push edx
call fcn.004804a9
add esp, 8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x78], edi
test edi, edi
je 0x41a947
push 0xf01ff
push str.LDRemoteSvc
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x41a907
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x41a8af
call eax
cmp eax, 0x420
jne 0x41a8c9
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov byte [ebp - 0x71], 1
jmp 0x41ab5d
call eax
push eax
push str.start_service_error__d
push 0x411
push str.LDRemoteModel::_installService
call fcn.00426450
add esp, 0x10
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea eax, [ebp - 0x70]
push eax
push esi
call edi
test eax, eax
je 0x41a8f9
nop word [eax + eax]
cmp dword [ebp - 0x6c], 2
jne 0x41a8f9
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x70]
push eax
push esi
call edi
test eax, eax
jne 0x41a8e0
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov edi, dword [ebp - 0x78]
jmp 0x41a924
push str.open_service_fail
push 0x420
push str.LDRemoteModel::_installService
call fcn.00426450
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add esp, 0xc
push edi
call esi
push str.start__service_end
push 0x42a
push str.LDRemoteModel::_installService
call fcn.00426450
add esp, 0xc
mov byte [ebp - 0x71], 1
jmp 0x41ab5d
push str.fail_to_OpenSCManage
push 0x426
push str.LDRemoteModel::_installService
call fcn.00426450
mov eax, dword [ebp - 0x98]
add esp, 0xc
mov dword [eax + 0xcc], 0x271c
jmp 0x41ab59
mov edx, dword [ebp - 0x7c]
lea ecx, [ebp - 0xc8]
call fcn.0040d5b0
mov dword [ebp - 0x7c], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x12]
test esi, esi
jns 0x41a9c0
neg esi
mov eax, 0xcccccccd
sub ecx, 2
mul esi
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub esi, eax
add esi, 0x30
mov word [ecx], si
mov esi, edx
test esi, esi
jne 0x41a991
add ecx, 0xfffffffe
mov eax, 0x2d
mov word [ecx], ax
jmp 0x41a9e0
mov eax, 0xcccccccd
sub ecx, 2
mul esi
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub esi, eax
add esi, 0x30
mov word [ecx], si
mov esi, edx
test esi, esi
jne 0x41a9c0
push ecx
lea eax, [ebp - 0x12]
push eax
push ecx
lea ecx, [ebp - 0xb0]
call fcn.0040d4d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x94]
push 7
xorps xmm0, xmm0
mov dword [ebp - 0x84], 0
push str.svcErr_
movups xmmword [ebp - 0x94], xmm0
mov dword [ebp - 0x80], 0
call fcn.004082b0
mov byte [ebp - 4], 5
lea eax, [ebp - 0xb0]
cmp dword [ebp - 0x9c], 7
lea ecx, [ebp - 0x94]
push dword [ebp - 0xa0]
cmova eax, dword [ebp - 0xb0]
push eax
call fcn.0040d1f0
push 1
push 0x4c0da8
mov ecx, eax
call fcn.0040d1f0
mov edx, eax
mov eax, dword [ebp - 0x7c]
mov ecx, eax
cmp dword [eax + 0x14], 7
jbe 0x41aa69
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, edx
call fcn.0040d1f0
push eax
mov ecx, edi
call fcn.0041e1b0
mov ecx, dword [ebp - 0x80]
cmp ecx, 7
jbe 0x41aab9
mov edx, dword [ebp - 0x94]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41aaaf
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41abb6
push ecx
push edx
call fcn.004804a9
add esp, 8
mov ecx, dword [ebp - 0x9c]
xor eax, eax
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 7
mov word [ebp - 0x94], ax
cmp ecx, 7
jbe 0x41ab13
mov edx, dword [ebp - 0xb0]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41ab09
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41abb6
push ecx
push edx
call fcn.004804a9
add esp, 8
mov ecx, dword [ebp - 0xb4]
cmp ecx, 7
jbe 0x41ab4f
mov edx, dword [ebp - 0xc8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41ab45
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41abb6
push ecx
push edx
call fcn.004804a9
add esp, 8
mov dword [edi + 0xcc], 0x271a
mov byte [ebp - 0x71], 0
mov ecx, dword [ebp - 0x40]
cmp ecx, 7
jbe 0x41ab93
mov edx, dword [ebp - 0x54]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x41ab89
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41abbb
push ecx
push edx
call fcn.004804a9
add esp, 8
mov al, byte [ebp - 0x71]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048049b
mov esp, ebp
pop ebp
ret
call fcn.00485a5d
call fcn.00485a5d
call fcn.00485a5d
int3