Function at 0x417c80
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 0x5d28eb
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2c0
mov eax, dword [0x6639c4]
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.00417c10
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 0x417e66
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 0x417e54
push 0x634a38
lea ecx, [ebp - 0x24c]
call fcn.004064d0
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 0x417df4
push str.plor
lea ecx, [ebp - 0x24c]
call fcn.00406410
push str.er.e
lea ecx, [ebp - 0x24c]
call fcn.00406410
push 0x634a58
lea ecx, [ebp - 0x24c]
call fcn.00406410
nop dword [eax]
push dword [ebp - 0x24c]
lea eax, [ebp - 0x224]
push eax
call fcn.005ac983
add esp, 8
test eax, eax
jne 0x417dd4
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 0x417dd4
mov eax, dword [ebp - 0x270]
cmp dword [ebp - 0x264], eax
je 0x417de8
lea eax, [ebp - 0x248]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x417d90
jmp 0x417df4
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x258], eax
push edi
call esi
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x417e2f
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x417e2f
lea eax, [ebp - 0x254]
push eax
push 0xf00ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x417e5b
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 0x417e54
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
jmp 0x417fe3
lea ecx, [ebp - 0x24c]
call fcn.004064b0
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x417e54
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 0x417ec7
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 0x417ed3
mov esi, dword [ebp - 0x26c]
mov dword [ebp - 0x250], esi
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 0x2000000
test esi, esi
je 0x417f11
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 0x417f11
mov dword [ebp - 0x258], 0x2000400
jmp 0x417f1b
mov dword [ebp - 0x25c], 0
push 0x44
lea eax, [ebp - 0x2d0]
push 0
push eax
call fcn.005a4490
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 0x417fab
push dword [ebp - 0x280]
call esi
push dword [ebp - 0x284]
call esi
mov eax, dword [ebp - 0x250]
test eax, eax
je 0x417fb8
push eax
call esi
test edi, edi
je 0x417fbf
push edi
call esi
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x417fcc
push eax
call esi
mov eax, dword [ebp - 0x25c]
test eax, eax
je 0x417fdd
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.0058b4aa
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret