Function at 0x429100
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 0x4edd70
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x536008]
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 0x429324
call fcn.004a4d20
test al, al
je 0x429324
push esi
lea ecx, [ebp - 0x28]
call fcn.0040abc0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
jb 0x42916c
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x4291a2
push 0x50cda8
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsstr]
add esp, 8
test eax, eax
je 0x4291a2
mov edx, esi
lea ecx, [ebp - 0x40]
call fcn.004a8f70
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
push eax
call fcn.0040a050
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.0040a2e0
mov ecx, ebx
call fcn.00429350
sub esp, 8
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.004294e0
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 0x4291d8
xor bl, bl
jmp 0x429306
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 0x4291f5
mov edx, dword [ebx]
mov eax, ebx
jb 0x4291fb
mov eax, dword [ebx]
push 0
push 0
push 0
push 0
push 0x50d1c8
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 0x429261
mov ecx, ebx
call fcn.00429350
sub esp, 8
lea edx, [ebp - 0x28]
mov ecx, ebx
call fcn.004294e0
add esp, 8
mov eax, ebx
cmp dword [ebx + 0x14], 8
jb 0x429244
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 0x4292fa
mov ecx, dword [ebp - 0x58]
mov eax, ecx
cmp dword [ecx + 0x14], 8
jb 0x42926e
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 0x42929e
mov eax, dword [ebp - 0x40]
cmp eax, 4
je 0x429319
cmp eax, 2
je 0x429319
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 0x429319
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 3
jb 0x4292a7
cmp byte [ebp - 0x4e], 0
mov byte [ebp - 0x4d], 0
push edi
jne 0x4292f4
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, ebx
call fcn.00429350
mov edi, dword [ebp - 0x54]
mov byte [ebp - 0x4e], 1
jmp 0x4291e0
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.0040a2e0
mov al, bl
jmp 0x429326
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov bl, 1
jmp 0x4292fd
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.004e62ab
mov esp, ebp
pop ebp
ret