Function at 0x41e540
Capabilities:
Create process on windows
Impersonate user

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x3c
mov eax, dword [0x4d100c]
xor eax, esp
mov dword [esp + 0x38], eax
mov eax, dword [ebp + 0x1c]
push ebx
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, dword [ebp + 0x20]
push esi
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x24]
push edi
mov dword [esp + 0x10], eax
lea eax, [esp + 0x24]
push eax
push 0x20
mov dword [esp + 0x24], edx
mov dword [esp + 0x2c], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41e6b5
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x2c]
push eax
push str.SeIncreaseQuotaPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x41e5f9
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
push ebx
push ebx
push 0x10
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
push eax
push ebx
push dword [esp + 0x34]
mov dword [esp + 0x4c], 1
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x41e5f9
call esi
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x2c]
push eax
push str.SeImpersonatePrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x41e654
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
push 0
push 0
push 0x10
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
push eax
push 0
push dword [esp + 0x34]
mov dword [esp + 0x4c], 1
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x41e654
call esi
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x2c]
push eax
push str.SeSecurityPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x41e6af
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
push 0
push 0
push 0x10
mov dword [esp + 0x44], eax
lea eax, [esp + 0x40]
push eax
push 0
push dword [esp + 0x34]
mov dword [esp + 0x4c], 1
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x41e6af
call esi
push dword [esp + 0x24]
call edi
call dword [sym.imp.USER32.dll_GetShellWindow]
test eax, eax
je 0x41e77a
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], ebx
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x41e77a
push eax
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x41e77a
lea eax, [esp + 0x2c]
mov dword [esp + 0x2c], ebx
push eax
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41e75f
lea eax, [esp + 0x28]
mov dword [esp + 0x28], ebx
push eax
push 1
push 2
push 0
push 0x18b
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x41e759
push dword [esp + 0x10]
push dword [esp + 0x18]
push dword [esp + 0x20]
push 0
push 0
push dword [esp + 0x30]
push 0
push 0
push dword [esp + 0x48]
call dword [sym.imp.ADVAPI32.dll_CreateProcessWithTokenW]
push dword [esp + 0x28]
mov ebx, eax
call edi
push dword [esp + 0x2c]
call edi
push esi
call edi
test ebx, ebx
je 0x41e77a
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x38]
xor ecx, esp
call fcn.00450db2
mov esp, ebp
pop ebp
ret
push dword [esp + 0x10]
push dword [esp + 0x18]
push dword [esp + 0x20]
push 0
push 0
push 0
push 0
push 0
push dword [esp + 0x3c]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00450db2
mov esp, ebp
pop ebp
ret