Function at 0x41faf0
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 0x4d0873
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x510008]
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 0x41fe4d
call fcn.00485bd0
test al, al
je 0x41fe4d
push edi
lea ecx, [ebp - 0x28]
call fcn.00409af0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
jb 0x41fb6e
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x41fccb
push 0x4ea5a8
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsstr]
add esp, 8
test eax, eax
je 0x41fccb
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.0041e880
mov ecx, dword [ebp - 0x60]
mov edx, dword [ebp - 0x5c]
cmp ecx, edx
jae 0x41fbe4
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 0x41fbf6
push 0x22
mov byte [ebp - 0x54], 0
push dword [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x70]
call fcn.0044b7b0
cmp dword [edi + 0x14], 8
jb 0x41fbfe
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 0x41fc30
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 0x41fc42
push 0x22
mov byte [ebp - 0x54], 0
push dword [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x70]
call fcn.0044b7b0
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.0041fe70
sub esp, 8
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00420000
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 0x41fd00
mov byte [ebp - 0x4d], al
jmp 0x41fe39
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 0x41fd19
mov edx, dword [esi]
mov eax, esi
jb 0x41fd1f
mov eax, dword [esi]
push 0
push 0
push 0
push 0
push 0x4ea5ac
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 0x41fd87
mov ecx, esi
call fcn.0041fe70
sub esp, 8
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.00420000
add esp, 8
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x41fd6a
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 0x41fe30
mov ecx, dword [ebp - 0x78]
mov eax, ecx
cmp dword [ecx + 0x14], 8
jb 0x41fd94
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 0x41fdc0
mov eax, dword [ebp - 0x40]
cmp eax, 4
je 0x41fe25
cmp eax, 2
je 0x41fe25
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 0x41fe25
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 3
jb 0x41fdd0
cmp byte [ebp - 0x4e], 0
mov byte [ebp - 0x4d], 0
push edi
jne 0x41fe1d
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.0041fe70
mov byte [ebp - 0x4e], 1
jmp 0x41fd04
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x41fe30
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 0x41fe4f
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.004c9d53
mov esp, ebp
pop ebp
ret