Function at 0x418110
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 0x5d0ddb
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2c0
mov eax, dword [0x6619c4]
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.004180a0
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 0x4182f6
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 0x4182e4
push 0x632a68
lea ecx, [ebp - 0x24c]
call fcn.00406970
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 0x418284
push str.plor
lea ecx, [ebp - 0x24c]
call fcn.004068d0
push str.er.e
lea ecx, [ebp - 0x24c]
call fcn.004068d0
push 0x632a88
lea ecx, [ebp - 0x24c]
call fcn.004068d0
nop dword [eax]
push dword [ebp - 0x24c]
lea eax, [ebp - 0x224]
push eax
call fcn.005aadd3
add esp, 8
test eax, eax
jne 0x418264
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 0x418264
mov eax, dword [ebp - 0x270]
cmp dword [ebp - 0x264], eax
je 0x418278
lea eax, [ebp - 0x248]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x418220
jmp 0x418284
mov eax, dword [ebp - 0x240]
mov dword [ebp - 0x258], eax
push edi
call esi
mov eax, dword [ebp - 0x258]
test eax, eax
je 0x4182bf
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4182bf
lea eax, [ebp - 0x254]
push eax
push 0xf00ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4182eb
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 0x4182e4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
jmp 0x418473
lea ecx, [ebp - 0x24c]
call fcn.00406660
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x4182e4
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 0x418357
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 0x418363
mov esi, dword [ebp - 0x26c]
mov dword [ebp - 0x250], esi
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 0x2000000
test esi, esi
je 0x4183a1
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 0x4183a1
mov dword [ebp - 0x258], 0x2000400
jmp 0x4183ab
mov dword [ebp - 0x25c], 0
push 0x44
lea eax, [ebp - 0x2d0]
push 0
push eax
call fcn.005a2910
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 0x41843b
push dword [ebp - 0x280]
call esi
push dword [ebp - 0x284]
call esi
mov eax, dword [ebp - 0x250]
test eax, eax
je 0x418448
push eax
call esi
test edi, edi
je 0x41844f
push edi
call esi
mov eax, dword [ebp - 0x254]
test eax, eax
je 0x41845c
push eax
call esi
mov eax, dword [ebp - 0x25c]
test eax, eax
je 0x41846d
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.0058995a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret