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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x2b8
mov eax, dword [0x42b014]
xor eax, esp
mov dword [esp + 0x2b4], eax
push esi
mov eax, ecx
mov dword [esp + 0xc], edx
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], eax
push ecx
xor edi, edi
mov dword [esp + 0x24], 0
push eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4165ab
xor eax, eax
push eax
push 2
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x416595
lea eax, [esp + 0x88]
mov dword [esp + 0x88], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x41655e
nop word [eax + eax]
lea eax, [esp + 0xac]
push str.explorer.exe
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x41653e
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x94]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x41653e
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x14], eax
je 0x416553
lea eax, [esp + 0x88]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x416500
jmp 0x41655e
mov eax, dword [esp + 0x90]
mov dword [esp + 0x18], eax
push edi
call esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x416595
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x416595
lea eax, [esp + 0xc]
push eax
push 0xf00ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4165ab
push edi
call esi
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x2b4]
xor ecx, esp
call fcn.0041e4c9
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
test eax, eax
je 0x416595
lea ecx, [esp + 0x20]
push ecx
push 4
lea ecx, [esp + 0x2c]
push ecx
push 0x13
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x4165fe
lea eax, [esp + 0x28]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
lea eax, [esp + 8]
push eax
push 1
push 1
push 0
push 0x2000000
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov eax, dword [esp + 8]
jmp 0x416606
mov eax, dword [esp + 0x24]
mov dword [esp + 8], eax
push 1
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
mov esi, 0x2000000
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
mov ecx, 0x2000400
push 0x44
lea eax, [esp + 0x44]
cmovne esi, ecx
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [esp + 0x40], 0x44
xor eax, eax
mov dword [esp + 0x6c], 0x81
mov word [esp + 0x70], ax
xorps xmm0, xmm0
lea eax, [esp + 0x30]
movaps xmmword [esp + 0x30], xmm0
push eax
lea eax, [esp + 0x44]
push eax
push 0
push dword [esp + 0x28]
push esi
push 0
push 0
push 0
push dword [esp + 0x30]
push 0
push dword [esp + 0x30]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov ecx, dword [esp + 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x416697
push ecx
call esi
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x4166a2
push ecx
call esi
mov eax, dword [esp + 8]
test eax, eax
je 0x4166ad
push eax
call esi
test edi, edi
je 0x4166b4
push edi
call esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4166bf
push eax
call esi
mov ecx, dword [esp + 0x2bc]
mov eax, dword [esp + 0x10]
pop edi
pop esi
xor ecx, esp
call fcn.0041e4c9
mov esp, ebp
pop ebp
ret