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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d5afb
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2c0
mov eax, dword [0x66a9c4]
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.00417d90
lea ecx, [ebp - 0x254]
mov dword [ebp - 0x270], eax
push ecx
xor edi, edi
mov dword [ebp - 0x268], 0
push eax
mov dword [ebp - 0x254], edi
mov dword [ebp - 0x250], edi
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x417fe6
xor eax, eax
push eax
push 2
mov dword [ebp - 0x258], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x417fd4
push 0x63aeb0
lea ecx, [ebp - 0x24c]
call fcn.00406540
lea eax, [ebp - 0x248]
mov dword [ebp - 4], 0
push eax
push edi
mov dword [ebp - 0x248], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x417f74
push str.plor
lea ecx, [ebp - 0x24c]
call fcn.00406480
push str.er.e
lea ecx, [ebp - 0x24c]
call fcn.00406480
push 0x63aed0
lea ecx, [ebp - 0x24c]
call fcn.00406480
nop dword [eax]
push dword [ebp - 0x24c]
lea eax, [ebp - 0x224]
push eax
call fcn.005af8a8
add esp, 8
test eax, eax
jne 0x417f54
mov dword [ebp - 0x264], eax
lea eax, [ebp - 0x264]
push eax
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x417f54
mov eax, dword [ebp - 0x270]
cmp dword [ebp - 0x264], eax
je 0x417f68
lea eax, [ebp - 0x248]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x417f10
jmp 0x417f74
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x258], eax
push edi
call esi
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x417faf
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x417faf
lea eax, [ebp - 0x254]
push eax
push 0xf00ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x417fdb
push edi
call esi
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x24c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x417fd4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
jmp 0x418163
lea ecx, [ebp - 0x24c]
call fcn.00406520
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x417fd4
lea ecx, [ebp - 0x268]
push ecx
push 4
lea ecx, [ebp - 0x26c]
push ecx
push 0x13
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x418047
lea eax, [ebp - 0x274]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
lea eax, [ebp - 0x250]
push eax
push 1
push 1
push 0
push 0x2000000
push dword [ebp - 0x254]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov esi, dword [ebp - 0x250]
jmp 0x418053
mov esi, dword [ebp - 0x26c]
mov dword [ebp - 0x250], esi
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 0x2000000
test esi, esi
je 0x418091
push 1
push esi
lea eax, [ebp - 0x25c]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov esi, dword [ebp - 0x250]
test eax, eax
je 0x418091
mov dword [ebp - 0x258], 0x2000400
jmp 0x41809b
mov dword [ebp - 0x25c], 0
push 0x44
lea eax, [ebp - 0x2d0]
push 0
push eax
call fcn.005a7400
add esp, 0xc
mov dword [ebp - 0x2d0], 0x44
xor eax, eax
mov dword [ebp - 0x2a4], 1
mov word [ebp - 0x2a0], ax
xorps xmm0, xmm0
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x2d0]
push eax
push 0
push dword [ebp - 0x25c]
movups xmmword [ebp - 0x284], xmm0
push dword [ebp - 0x258]
push 0
push 0
push 0
push dword [ebp - 0x260]
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp dword [ebp - 0x284], 0
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x260], eax
je 0x41812b
push dword [ebp - 0x280]
call esi
push dword [ebp - 0x284]
call esi
mov eax, dword [ebp - 0x250]
test eax, eax
je 0x418138
push eax
call esi
test edi, edi
je 0x41813f
push edi
call esi
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x41814c
push eax
call esi
mov eax, dword [ebp - 0x25c]
test eax, eax
je 0x41815d
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov eax, dword [ebp - 0x260]
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.0058e39a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret