Function at 0x41c750
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 0x4cf203
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x50e008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov dword [ebp - 0x74], esi
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x78], eax
lea eax, [edi + 0x10]
mov dword [ebp - 0x58], 0
cmp dword [eax], 0
mov dword [ebp - 0x54], eax
je 0x41caad
call fcn.004806b0
test al, al
je 0x41caad
push edi
lea ecx, [ebp - 0x28]
call fcn.00409b00
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
jb 0x41c7ce
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x41c92b
push 0x4e88b0
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsstr]
add esp, 8
test eax, eax
je 0x41c92b
mov byte [ebp - 4], 2
xor eax, eax
mov esi, dword [ebp - 0x54]
lea ecx, [ebp - 0x70]
mov word [ebp - 0x70], ax
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov eax, dword [esi]
inc eax
mov dword [ebp - 0x60], 0
push eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x58], 2
call fcn.0041b4e0
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x5c]
cmp ecx, edx
jae 0x41c844
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
mov dword [eax + ecx*2], 0x22
jmp 0x41c856
push 0x22
mov byte [ebp - 0x54], 0
push dword [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x70]
call fcn.0047c6e0
cmp dword [edi + 0x14], 8
jb 0x41c85e
mov edi, dword [edi]
push dword [esi]
lea ecx, [ebp - 0x70]
push edi
call fcn.00412ec0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x5c]
cmp ecx, edx
jae 0x41c890
lea eax, [ecx + 1]
cmp edx, 8
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
mov dword [eax + ecx*2], 0x22
jmp 0x41c8a2
push 0x22
mov byte [ebp - 0x54], 0
push dword [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x70]
call fcn.0047c6e0
movups xmm0, xmmword [ebp - 0x70]
mov esi, 6
mov dword [ebp - 0x58], 6
mov dword [ebp - 0x30], 0
xor eax, eax
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x2c], 0
movq xmm0, qword [ebp - 0x60]
mov dword [ebp - 0x58], esi
and esi, 0xfffffffb
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 7
mov word [ebp - 0x70], ax
mov dword [ebp - 0x58], esi
mov dword [ebp - 4], 2
or esi, 1
mov dword [ebp - 0x58], esi
and esi, 0xfffffffd
mov dword [ebp - 0x58], esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x70]
call fcn.00403cf0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.00403b90
and esi, 0xfffffffe
mov dword [ebp - 0x58], esi
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00403cf0
mov esi, dword [ebp - 0x74]
mov ecx, esi
call fcn.0041cad0
sub esp, 8
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.0041cc60
add esp, 8
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x54], eax
test eax, eax
jne 0x41c960
mov byte [ebp - 0x4d], al
jmp 0x41ca99
mov byte [ebp - 0x4e], 0
cmp dword [ebp - 0x14], 8
lea edi, [ebp - 0x28]
mov edx, esi
cmovae edi, dword [ebp - 0x28]
cmp dword [esi + 0x14], 8
jb 0x41c979
mov edx, dword [esi]
mov eax, esi
jb 0x41c97f
mov eax, dword [esi]
push 0
push 0
push 0
push 0
push 0x4e88b4
push edi
push 1
push 2
push 0x10
push 0xf01ff
push edx
push eax
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov edi, eax
test edi, edi
jne 0x41c9e7
mov ecx, esi
call fcn.0041cad0
sub esp, 8
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.0041cc60
add esp, 8
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x41c9ca
mov eax, dword [esi]
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 0x41ca90
mov ecx, dword [ebp - 0x78]
mov eax, ecx
cmp dword [ecx + 0x14], 8
jb 0x41c9f4
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 0x41ca20
mov eax, dword [ebp - 0x40]
cmp eax, 4
je 0x41ca85
cmp eax, 2
je 0x41ca85
xor esi, esi
mov dword [ebp - 0x4c], str.__typenormal
nop dword [eax]
lea eax, [ebp - 0x4c]
inc esi
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x41ca85
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 3
jb 0x41ca30
cmp byte [ebp - 0x4e], 0
mov byte [ebp - 0x4d], 0
push edi
jne 0x41ca7d
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, dword [ebp - 0x74]
mov ecx, esi
call fcn.0041cad0
mov byte [ebp - 0x4e], 1
jmp 0x41c964
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x41ca90
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov byte [ebp - 0x4d], 1
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00403cf0
mov al, byte [ebp - 0x4d]
jmp 0x41caaf
xor al, al
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.004c4853
mov esp, ebp
pop ebp
ret