Function at 0x429480
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 0x4edf90
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x537008]
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 0x4296a4
call fcn.004a4f10
test al, al
je 0x4296a4
push esi
lea ecx, [ebp - 0x28]
call fcn.0040ac00
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
jb 0x4294ec
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x429522
push 0x50dde0
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsstr]
add esp, 8
test eax, eax
je 0x429522
mov edx, esi
lea ecx, [ebp - 0x40]
call fcn.004a9150
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
push eax
call fcn.0040a090
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.0040a320
mov ecx, ebx
call fcn.004296d0
sub esp, 8
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.00429860
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 0x429558
xor bl, bl
jmp 0x429686
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 0x429575
mov edx, dword [ebx]
mov eax, ebx
jb 0x42957b
mov eax, dword [ebx]
push 0
push 0
push 0
push 0
push 0x50e200
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 0x4295e1
mov ecx, ebx
call fcn.004296d0
sub esp, 8
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.00429860
add esp, 8
mov eax, ebx
cmp dword [ebx + 0x14], 8
jb 0x4295c4
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 0x42967a
mov ecx, dword [ebp - 0x58]
mov eax, ecx
cmp dword [ecx + 0x14], 8
jb 0x4295ee
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 0x42961e
mov eax, dword [ebp - 0x40]
cmp eax, 4
je 0x429699
cmp eax, 2
je 0x429699
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 0x429699
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 3
jb 0x429627
cmp byte [ebp - 0x4e], 0
mov byte [ebp - 0x4d], 0
push edi
jne 0x429674
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, ebx
call fcn.004296d0
mov edi, dword [ebp - 0x54]
mov byte [ebp - 0x4e], 1
jmp 0x429560
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.0040a320
mov al, bl
jmp 0x4296a6
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov bl, 1
jmp 0x42967d
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.004e647b
mov esp, ebp
pop ebp
ret