Function at 0x42a910
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 0x4f1470
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x53b008]
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 0x42ab34
call fcn.004a8870
test al, al
je 0x42ab34
push esi
lea ecx, [ebp - 0x28]
call fcn.0040be30
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
jb 0x42a97c
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x42a9b2
push 0x511020
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsstr]
add esp, 8
test eax, eax
je 0x42a9b2
mov edx, esi
lea ecx, [ebp - 0x40]
call fcn.004acab0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
push eax
call fcn.0040a680
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.0040b220
mov ecx, ebx
call fcn.0042ab60
sub esp, 8
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.0042acf0
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 0x42a9e8
xor bl, bl
jmp 0x42ab16
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 0x42aa05
mov edx, dword [ebx]
mov eax, ebx
jb 0x42aa0b
mov eax, dword [ebx]
push 0
push 0
push 0
push 0
push 0x511440
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 0x42aa71
mov ecx, ebx
call fcn.0042ab60
sub esp, 8
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.0042acf0
add esp, 8
mov eax, ebx
cmp dword [ebx + 0x14], 8
jb 0x42aa54
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 0x42ab0a
mov ecx, dword [ebp - 0x58]
mov eax, ecx
cmp dword [ecx + 0x14], 8
jb 0x42aa7e
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 0x42aaae
mov eax, dword [ebp - 0x40]
cmp eax, 4
je 0x42ab29
cmp eax, 2
je 0x42ab29
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 0x42ab29
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 3
jb 0x42aab7
cmp byte [ebp - 0x4e], 0
mov byte [ebp - 0x4d], 0
push edi
jne 0x42ab04
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, ebx
call fcn.0042ab60
mov edi, dword [ebp - 0x54]
mov byte [ebp - 0x4e], 1
jmp 0x42a9f0
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.0040b220
mov al, bl
jmp 0x42ab36
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov bl, 1
jmp 0x42ab0d
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.004e9681
mov esp, ebp
pop ebp
ret