Function at 0x4022e0
Capabilities:
Acquire debug privileges
Create process on windows
Get token membership

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41e1de
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x428620]
xor eax, esp
mov dword [esp + 0xb0], eax
push esi
mov eax, dword [0x428620]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x74]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [esp + 0xa4]
mov dword [esp + 0xa4], 0
push eax
mov word [esp + 0xac], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov ecx, eax
mov dword [esp + 0x78], ecx
test ecx, ecx
je 0x40238f
lea eax, [esp + 0x78]
push eax
push dword [esp + 0x78]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [esp + 0x74]
neg eax
sbb eax, eax
and dword [esp + 0x7c], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [esp + 0x78]
xor eax, eax
test ecx, ecx
setne al
push eax
call fcn.004026e0
push eax
call fcn.00404c20
add esp, 4
lea ecx, [esp + 0x20]
call fcn.00402220
push 0x425908
mov edx, eax
mov dword [esp + 0xcc], 0
lea ecx, [esp + 0xc]
call fcn.00404cd0
add esp, 4
mov byte [esp + 0xc8], 1
lea ecx, [esp + 0xa0]
push dword [esi + 4]
mov edx, eax
call fcn.00404cd0
add esp, 4
cmp dword [esp + 0x1c], 0x10
jb 0x4023fb
push dword [esp + 8]
call fcn.0040923b
add esp, 4
mov dword [esp + 0x1c], 0xf
mov dword [esp + 0x18], 0
mov byte [esp + 8], 0
mov byte [esp + 0xc8], 4
cmp dword [esp + 0x34], 0x10
jb 0x40242b
push dword [esp + 0x20]
call fcn.0040923b
add esp, 4
push 0xffffffffffffffff
push 0
lea eax, [esp + 0xa8]
mov dword [esp + 0x3c], 0xf
push eax
lea ecx, [esp + 0x90]
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
mov dword [esp + 0xa4], 0xf
mov dword [esp + 0xa0], 0
mov byte [esp + 0x90], 0
call fcn.00402ae0
mov eax, dword [esp + 0x94]
xor ecx, ecx
mov edx, 2
mov dword [esp + 0x74], 0
lea esi, [eax + 1]
dec eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040901c
add esp, 4
mov dword [esp + 0x78], eax
cmp dword [esp + 0x98], 0x10
lea ecx, [esp + 0x84]
cmovae ecx, dword [esp + 0x84]
push 0xffffffffffffffff
push ecx
push esi
push eax
lea eax, [esp + 0x84]
push eax
call fcn.0040963e
add esp, 0x14
cmp dword [esp + 0x98], 0x10
jb 0x4024eb
push dword [esp + 0x84]
call fcn.0040923b
add esp, 4
lea eax, [esp + 0x74]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402569
lea eax, [esp + 0x88]
mov dword [esp + 0x84], 1
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0x10
lea eax, [esp + 0x90]
mov dword [esp + 0x9c], 2
push eax
push 0
push dword [esp + 0x88]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0x74]
mov esi, eax
neg esi
sbb esi, esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, str.Enable_Debug_privilege_is_ok_
inc esi
jne 0x40256e
mov edx, str.Enable_Debug_privilege_is_failure_
call fcn.00404d80
push eax
call fcn.00405120
add esp, 4
lea eax, [esp + 0x38]
push 0x3c
push 0
push eax
call fcn.0040b8d0
mov eax, dword [esp + 0x84]
add esp, 0xc
mov dword [esp + 0x48], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0x3c
mov dword [esp + 0x40], 0
push eax
mov dword [esp + 0x48], str.runas
mov dword [esp + 0x50], 0x42595c
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 5
mov dword [esp + 0x5c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
lea eax, [esp + 0x74]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40264b
lea eax, [esp + 0x88]
mov dword [esp + 0x84], 1
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
push 0
push 0
push 0x10
lea eax, [esp + 0x90]
mov dword [esp + 0x9c], 0
push eax
push 0
push dword [esp + 0x88]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0x74]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0xb4], 0x10
jb 0x402664
push dword [esp + 0xa0]
call fcn.0040923b
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.0040880f
mov esp, ebp
pop ebp
ret