Function at 0x40ed70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4ab090
push 0x44aa50
mov eax, dword fs:[0]
push eax
sub esp, 0x2a4
mov eax, dword [0x4b3630]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x250], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x254], eax
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x248], edi
mov edx, dword [ebp + 0x14]
mov dword [ebp - 0x264], edx
xor ebx, ebx
mov dword [ebp - 0x24c], ebx
mov dword [edi], ebx
test ecx, ecx
je 0x40f0e4
test eax, eax
je 0x40f0e4
mov dword [ebp - 0x240], str.jdeskSvc
mov dword [ebp - 0x23c], str.DesktopSvc
mov dword [ebp - 0x238], str.SpSvc
mov dword [ebp - 0x234], str.HpSvc
mov dword [ebp - 0x230], str.WpSvc
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x25c], ebx
lea eax, [ebp - 0x25c]
push eax
lea eax, [ebp - 0x258]
push eax
call fcn.0040fca0
call fcn.00451336
mov dword [ebp - 0x278], eax
mov edi, 5
nop word [eax + eax]
dec edi
mov dword [ebp - 0x244], edi
cmp dword [ebp - 0x258], 0
je 0x40efa4
cmp dword [ebp - 0x25c], 0
jne 0x40efa4
xor esi, esi
mov dword [ebp - 0x268], esi
cmp esi, 5
jae 0x40ef6c
test ebx, ebx
jne 0x40efa4
xor edi, edi
mov dword [ebp - 0x260], edi
mov dword [ebp - 4], edi
push dword [ebp + esi*4 - 0x240]
call fcn.00411250
cmp eax, 4
jne 0x40ef3c
push 0x210
push edi
lea eax, [ebp - 0x22c]
push eax
call fcn.0044a6c0
add esp, 0xc
push 0x107
lea eax, [ebp - 0x22c]
push eax
push dword [ebp + esi*4 - 0x240]
call fcn.004110f0
lea eax, [ebp - 0x22c]
push eax
call dword [ebp - 0x264]
add esp, 4
test eax, eax
je 0x40ef3c
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
mov dword [ebp - 0x260], edi
test edi, edi
je 0x40ef3c
push 0x48ecb8
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ef3c
push dword [ebp - 0x248]
push dword [ebp - 0x254]
push dword [ebp - 0x250]
call eax
mov ebx, eax
mov dword [ebp - 0x24c], ebx
test ebx, ebx
jne 0x40ef3c
mov eax, dword [ebp - 0x248]
mov dword [eax], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.0040ef60
inc esi
jmp 0x40ee73
test ebx, ebx
jne 0x40efa4
cmp dword [ebp + 0x18], ebx
je 0x40efbe
call fcn.00451336
sub eax, dword [ebp - 0x278]
cmp eax, 0x1388
jg 0x40efa4
mov edi, dword [ebp - 0x244]
test edi, edi
jle 0x40efa4
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
test edi, edi
jg 0x40ee50
cmp dword [ebp + 0x18], 0
je 0x40efbe
test ebx, ebx
jne 0x40f0e4
cmp dword [ebp + 0x1c], ebx
jne 0x40efbe
xor eax, eax
jmp 0x40f0e6
test ebx, ebx
jne 0x40f0e4
xor esi, esi
mov dword [ebp - 0x26c], esi
mov dword [ebp - 0x274], esi
mov dword [ebp - 0x244], esi
xor edi, edi
mov dword [ebp - 0x270], edi
mov dword [ebp - 4], 1
cmp dword [ebp + 0x20], edi
je 0x40f001
push 0x48e718
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 0x26c], esi
test esi, esi
je 0x40f025
push str.Wow64DisableWow64FsRedirection
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call edi
mov ebx, eax
push str.Wow64RevertWow64FsRedirection
push esi
call edi
mov edi, eax
mov dword [ebp - 0x270], edi
test ebx, ebx
je 0x40f038
lea eax, [ebp - 0x244]
push eax
call ebx
mov dword [ebp - 0x274], eax
push 0x3c
push 0
lea eax, [ebp - 0x2b4]
push eax
call fcn.0044a6c0
add esp, 0xc
mov dword [ebp - 0x2b4], 0x3c
mov dword [ebp - 0x2b0], 0xd240
call fcn.00410a00
neg eax
sbb eax, eax
and eax, str.runas
mov dword [ebp - 0x2a8], eax
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x2a4], eax
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x2a0], eax
mov dword [ebp - 0x29c], 0
mov dword [ebp - 0x298], 1
lea eax, [ebp - 0x2b4]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ebx, eax
mov dword [ebp - 0x24c], ebx
test ebx, ebx
je 0x40f0d8
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov ecx, dword [ebp - 0x248]
mov dword [ecx], eax
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0xfffffffe
call fcn.0040f116
mov eax, ebx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00442126
mov esp, ebp
pop ebp
ret 0x1c