Function at 0x40bde0
Capabilities:
Access peb ldr_data
Create process on windows
Create service
Get number of processors
Persist via windows service
Start service

Disassembly:
push 0xffffffffffffffff
push 0x429598
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43b14c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [0x44130c]
mov edx, dword [eax + 0xc]
xor edi, edi
mov ecx, 0x44130c
mov dword [esp + 0x28], edi
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov dword [esp + 0x38], edi
mov eax, dword [0x44130c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44130c
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
mov ecx, 1
mov byte [esp + 0x38], cl
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x64
or eax, ecx
jge 0x40be63
lea ecx, [edi + 0x64]
lea eax, [esp + 0x18]
call fcn.004015c0
mov esi, dword [esp + 0x18]
push 0xa
mov ebx, esi
call fcn.00418760
mov eax, dword [esi - 8]
add esp, 4
push eax
push esi
call fcn.00419ba5
add esp, 8
test eax, eax
jl 0x40c067
cmp eax, dword [esi - 8]
jg 0x40c067
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 0x40beba
mov ecx, 0x64
lea eax, [esp + 0x1c]
call fcn.004015c0
mov ebp, dword [esp + 0x1c]
push 0xa
mov ebx, ebp
call fcn.00418760
mov eax, dword [ebp - 8]
add esp, 4
push eax
push ebp
call fcn.00419ba5
add esp, 8
test eax, eax
jl 0x40c067
cmp eax, dword [ebp - 8]
jg 0x40c067
mov edi, dword [esp + 0x44]
mov dword [ebp - 0xc], eax
xor edx, edx
mov word [ebp + eax*2], dx
lea eax, [esp + 0x18]
call fcn.00401360
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [esp + 0x24], edi
test edi, edi
je 0x40bfef
mov eax, dword [esp + 0x40]
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 0x40bffe
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [esp + 0x28], eax
test eax, eax
jne 0x40bff3
mov edx, dword [0x44130c]
mov eax, dword [edx + 0xc]
mov ecx, 0x44130c
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
push esi
push str.sc.exe_start__s
lea edi, [esp + 0x28]
mov byte [esp + 0x40], 2
call fcn.004016c0
mov edi, dword [esp + 0x28]
add esp, 8
lea ecx, [esp + 0x2c]
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 + 0x2c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40bfc8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add edi, 0xfffffff0
mov byte [esp + 0x38], 1
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bfe9
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov edi, dword [esp + 0x24]
jmp 0x40bff3
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x40bffe
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x40c009
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
add ebp, 0xfffffff0
mov byte [esp + 0x38], 0
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40c02b
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push ebp
call eax
add esi, 0xfffffff0
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c04f
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
push 0x80070057
call fcn.00401760
int3