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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x420a18
mov eax, dword fs:[0]
push eax
sub esp, 0x90
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 esi, ecx
push str.CStealthManager::setupUpdateService
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 edi, eax
test edi, edi
je 0x4120bf
push 0xd
lea eax, [ebp - 0x58]
mov ecx, esi
push eax
call fcn.0040d1a0
push 0xe
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 0
push eax
mov ecx, esi
call fcn.0040d1a0
push 0xf
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
mov ecx, esi
call fcn.0040d1a0
push 0
push 0
push 0
push 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x58]
cmp dword [ebp - 0x44], 0x10
lea edx, [ebp - 0x28]
push 0
cmovae ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x14], 0x10
push ecx
cmovae edx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 0x10
push 0
cmovae eax, dword [ebp - 0x40]
push 2
push 0x110
push 0xc0000012
push edx
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
jne 0x411fcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp esi, 0x431
je 0x411f56
push esi
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
push 0x11
lea ecx, [ebp - 0x84]
call fcn.0040c940
push 0x42cc24
lea eax, [ebp - 0x84]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x411f68
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00404770
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp eax, 0x10
jb 0x411f8c
inc eax
push eax
push dword [ebp - 0x40]
call fcn.00404770
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp eax, 0x10
jb 0x411fb0
inc eax
push eax
push dword [ebp - 0x58]
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
lea eax, [ebp - 0x70]
mov dword [ebp - 0x70], 1
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x9c]
push eax
push 2
push esi
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 1
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x9c], 0x15180
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x90], 3
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x412054
inc eax
push eax
push dword [ebp - 0x28]
call fcn.00404770
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp eax, 0x10
jb 0x412078
inc eax
push eax
push dword [ebp - 0x40]
call fcn.00404770
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp eax, 0x10
jb 0x4120a3
inc eax
push eax
push dword [ebp - 0x58]
call fcn.00404770
push str.CStealthManager::setupUpdateService
push str._s_exit_
push str.stealth_manager
call fcn.00402620
add esp, 0xc
jmp 0x411fb0
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], 0
push str.Error_on_service_control_manager
mov byte [ecx], 0
call fcn.00404270
jmp 0x411f38