Function at 0x40ba40
Capabilities:
Create process on windows
Create service
Persist via windows service
Start service

Disassembly:
push 0xffffffffffffffff
push 0x429828
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43b14c]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [0x44130c]
mov edx, dword [eax + 0xc]
xor edi, edi
mov ecx, 0x44130c
mov dword [esp + 0x24], edi
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov dword [esp + 0x34], edi
mov eax, dword [0x44130c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44130c
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x18], ebp
mov ecx, 1
mov byte [esp + 0x34], cl
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x64
or eax, ecx
jge 0x40bac3
lea ecx, [edi + 0x64]
lea eax, [esp + 0x14]
call fcn.004015f0
mov esi, dword [esp + 0x14]
push 0xa
mov ebx, esi
call fcn.004189c0
mov eax, dword [esi - 8]
add esp, 4
push eax
push esi
call fcn.00419e5c
add esp, 8
test eax, eax
jl 0x40bcb8
cmp eax, dword [esi - 8]
jg 0x40bcb8
mov dword [esi - 0xc], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, dword [ebp - 8]
mov ecx, 1
sub ecx, dword [ebp - 4]
sub eax, 0x64
or eax, ecx
jge 0x40bb1a
mov ecx, 0x64
lea eax, [esp + 0x18]
call fcn.004015f0
mov ebp, dword [esp + 0x18]
push 0xa
mov ebx, ebp
call fcn.004189c0
mov eax, dword [ebp - 8]
add esp, 4
push eax
push ebp
call fcn.00419e5c
add esp, 8
test eax, eax
jl 0x40bcb8
cmp eax, dword [ebp - 8]
jg 0x40bcb8
xor edx, edx
push 0xf003f
push edx
mov dword [ebp - 0xc], eax
push edx
mov word [ebp + eax*2], dx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [esp + 0x20], edi
test edi, edi
je 0x40bc40
mov eax, dword [esp + 0x3c]
push 0
push str.LocalSystem
push 0
push 0
push 0
push eax
push 1
push 2
push 0x10
push 0xf01ff
push ebp
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, eax
test ebx, ebx
je 0x40bc4f
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x40bc44
mov edx, dword [0x44130c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44130c
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
push esi
push str.sc.exe_start__s
lea edi, [esp + 0x24]
mov byte [esp + 0x3c], 2
call fcn.004016f0
mov edi, dword [esp + 0x24]
add esp, 8
lea ecx, [esp + 0x28]
push ecx
mov ecx, edi
call fcn.00403020
mov eax, dword [eax]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bc19
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov byte [esp + 0x34], 1
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bc3a
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov edi, dword [esp + 0x20]
jmp 0x40bc44
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x40bc4f
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x40bc5a
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add ebp, 0xfffffff0
mov byte [esp + 0x34], 0
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40bc7c
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
add esi, 0xfffffff0
mov dword [esp + 0x34], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bca0
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
push 0x80070057
call fcn.00401790
int3