Function at 0x40cf10
Capabilities:
Acquire debug privileges
Create process on windows
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47cc28
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x260], ecx
call fcn.0040ce40
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x26c], 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
lea eax, [ebp - 0x264]
mov dword [ebp - 0x284], 0
push eax
push dword [ebp - 0x26c]
xor esi, esi
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x268], esi
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x40d08e
xor eax, eax
push eax
push 2
mov dword [ebp - 0x278], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40cfbb
mov eax, 1
jmp 0x40d2a4
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x25c], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40d044
jmp 0x40cfe0
lea eax, [ebp - 0x238]
push str.explorer.exe
push eax
call dword [sym.imp.MSVCR120.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x40d024
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x274]
push eax
push dword [ebp - 0x254]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x40d024
mov eax, dword [ebp - 0x274]
cmp eax, dword [ebp - 0x26c]
je 0x40d038
lea eax, [ebp - 0x25c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x40cfe0
jmp 0x40d044
mov eax, dword [ebp - 0x254]
mov dword [ebp - 0x278], eax
push esi
call edi
mov eax, dword [ebp - 0x278]
test eax, eax
je 0x40cfb1
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40cfb1
lea eax, [ebp - 0x264]
push eax
push 0xf00ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40d08e
push esi
call edi
xor eax, eax
jmp 0x40d2a4
mov eax, dword [ebp - 0x264]
test eax, eax
je 0x40cfb1
lea ecx, [ebp - 0x284]
push ecx
push 4
lea ecx, [ebp - 0x280]
push ecx
push 0x13
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x40d0f3
lea eax, [ebp - 0x27c]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
lea eax, [ebp - 0x268]
push eax
push 1
push 1
push 0
push 0x2000000
push dword [ebp - 0x264]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov eax, dword [ebp - 0x268]
jmp 0x40d0ff
mov eax, dword [ebp - 0x280]
mov dword [ebp - 0x268], eax
push 1
push eax
lea eax, [ebp - 0x270]
mov dword [ebp - 0x270], 0
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
mov dword [ebp - 0x18], 7
mov ecx, 0x400
mov dword [ebp - 0x1c], 0
mov eax, 0
cmovne eax, ecx
mov dword [ebp - 0x278], eax
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, dword [ebp - 0x260]
cmp word [eax], 0
jne 0x40d152
xor ecx, ecx
jmp 0x40d16c
mov ecx, eax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d157
mov eax, dword [ebp - 0x260]
sub ecx, edx
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040235a
push 1
push 0x48b8a0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.00402779
push 0xa
push str._s_service
lea ecx, [ebp - 0x2c]
call fcn.00402779
push 0x44
lea eax, [ebp - 0x2dc]
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 0x2dc], 0x44
lea ecx, [ebp - 0x294]
mov dword [ebp - 0x2b0], 1
xor eax, eax
xorps xmm0, xmm0
cmp dword [ebp - 0x18], 8
push ecx
lea ecx, [ebp - 0x2dc]
mov word [ebp - 0x2ac], ax
push ecx
mov ecx, dword [ebp - 0x278]
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push 0
push dword [ebp - 0x270]
movdqu xmmword [ebp - 0x294], xmm0
push ecx
push 0
push 0
push 0
push eax
push 0
push dword [ebp - 0x268]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x260], eax
cmovae ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcessAsUserExplorer_Error_d_strCmdline_s
push 0
push str.sysProcessUtility.cpp
call fcn.00404060
mov eax, dword [ebp - 0x294]
add esp, 0x14
test eax, eax
je 0x40d24d
push eax
call edi
mov eax, dword [ebp - 0x290]
test eax, eax
je 0x40d25a
push eax
call edi
mov eax, dword [ebp - 0x268]
test eax, eax
je 0x40d267
push eax
call edi
test esi, esi
je 0x40d26e
push esi
call edi
mov eax, dword [ebp - 0x264]
test eax, eax
je 0x40d27b
push eax
call edi
xor eax, eax
cmp dword [ebp - 0x260], eax
sete al
cmp dword [ebp - 0x18], 8
mov dword [ebp - 0x260], eax
jb 0x40d2a4
push dword [ebp - 0x2c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov eax, dword [ebp - 0x260]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00452da4
mov esp, ebp
pop ebp
ret