Function at 0x42c580
Capabilities:
Create service
Delete service
Modify service
Persist via windows service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4530
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x53e008]
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, edx
mov esi, ecx
cmp dword [esi + 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x58], eax
je 0x42c7a4
call fcn.004b29d0
test al, al
je 0x42c7a4
push esi
lea ecx, [ebp - 0x28]
call fcn.0040c400
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
jb 0x42c5ec
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x42c622
push 0x5141a0
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsstr]
add esp, 8
test eax, eax
je 0x42c622
mov edx, esi
lea ecx, [ebp - 0x40]
call fcn.004b6c00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
push eax
call fcn.0040c390
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00403780
mov ecx, ebx
call fcn.0042c7d0
sub esp, 8
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.0042c950
add esp, 8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x54], edi
test edi, edi
jne 0x42c658
xor bl, bl
jmp 0x42c786
mov byte [ebp - 0x4e], 0
nop dword [eax]
cmp dword [ebp - 0x14], 8
lea esi, [ebp - 0x28]
mov edx, ebx
cmovae esi, dword [ebp - 0x28]
cmp dword [ebx + 0x14], 8
jb 0x42c675
mov edx, dword [ebx]
mov eax, ebx
jb 0x42c67b
mov eax, dword [ebx]
push 0
push 0
push 0
push 0
push 0x514598
push esi
push 1
push 2
push 0x10
push 0xf01ff
push edx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
test edi, edi
jne 0x42c6e1
mov ecx, ebx
call fcn.0042c7d0
sub esp, 8
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.0042c950
add esp, 8
mov eax, ebx
cmp dword [ebx + 0x14], 8
jb 0x42c6c4
mov eax, dword [ebx]
push 0xf01ff
push eax
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
mov byte [ebp - 0x4d], 0
test edi, edi
je 0x42c77a
mov ecx, dword [ebp - 0x58]
mov eax, ecx
cmp dword [ecx + 0x14], 8
jb 0x42c6ee
mov eax, dword [ecx]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x48]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
lea eax, [ebp - 0x44]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x42c71e
mov eax, dword [ebp - 0x40]
cmp eax, 4
je 0x42c799
cmp eax, 2
je 0x42c799
xor esi, esi
mov dword [ebp - 0x4c], str.__typenormal
lea eax, [ebp - 0x4c]
inc esi
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x42c799
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 3
jb 0x42c727
cmp byte [ebp - 0x4e], 0
mov byte [ebp - 0x4d], 0
push edi
jne 0x42c774
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, ebx
call fcn.0042c7d0
mov edi, dword [ebp - 0x54]
mov byte [ebp - 0x4e], 1
jmp 0x42c660
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov bl, byte [ebp - 0x4d]
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403780
mov al, bl
jmp 0x42c7a6
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov bl, 1
jmp 0x42c77d
xor al, al
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.004ec151
mov esp, ebp
pop ebp
ret