Function at 0x402280
Capabilities:
Acquire debug privileges
Create process on windows
Enumerate processes
Print debug messages

Disassembly:
sub esp, 0x240
mov eax, dword [0x418060]
xor eax, esp
mov dword [esp + 0x23c], eax
mov eax, dword [esp + 0x244]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.DLL_WTSGetActiveConsoleSessionId]
push 0
mov ebx, eax
push 2
mov dword [esp + 0x2c], ebx
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x4022c6
xor eax, eax
jmp 0x40254f
lea ecx, [esp + 0xa0]
push ecx
push esi
mov dword [esp + 0xa8], 0x128
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x4022bf
mov edi, dword [sym.imp.KERNEL32.DLL_ProcessIdToSessionId]
xor ebp, ebp
jmp 0x4022f0
lea edx, [esp + 0xc4]
push str.explorer.exe
push edx
call fcn.00404f09
add esp, 8
test eax, eax
jne 0x402326
mov ecx, dword [esp + 0xa8]
lea eax, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x1c], ebp
call edi
test eax, eax
je 0x402326
cmp dword [esp + 0x14], ebx
je 0x40233a
lea edx, [esp + 0xa0]
push edx
push esi
call sub.KERNEL32.DLL_Process32Next
test eax, eax
jne 0x4022f0
jmp 0x402341
mov ebp, dword [esp + 0xa8]
lea esi, [esp + 0x2c]
lea edi, [esp + 0x14]
call fcn.00402220
mov eax, dword [esp + 0x14]
cmp eax, 5
jae 0x40235f
or eax, 0xffffffff
jmp 0x40254f
jne 0x402391
cmp dword [esp + 0x2c], 0
jne 0x402391
push str.Wtsapi32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test eax, eax
je 0x4022bf
push 0x415f8c
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
lea ecx, [esp + 0x1c]
push ecx
push ebx
call eax
jmp 0x40239c
lea edx, [esp + 0x1c]
push edx
push ebx
call sub.WTSAPI32.dll_WTSQueryUserToken
push 0x44
lea eax, [esp + 0x5c]
push 0
push eax
mov esi, 0x30
call fcn.00406e90
add esp, 0xc
xor eax, eax
push ebp
push eax
push 0x2000000
mov dword [esp + 0x64], 0x44
mov dword [esp + 0x6c], str.winsta0default
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
lea ecx, [esp + 0x20]
push ecx
mov ebx, eax
push 0x201eb
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x402400
call edi
lea edx, [esp + 0x30]
push edx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x10]
push edx
push 1
push 1
push 0
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x30]
push 0x2000000
push eax
mov dword [esp + 0x50], 1
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], 2
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov ebp, dword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
test eax, eax
jne 0x402460
push str.DuplicateTokenEx_error
call ebp
call edi
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
push 4
push ecx
push 0xc
push edx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x40249a
call edi
push eax
lea eax, [esp + 0x1cc]
push str.SetTokenInformation_error___d
push eax
call fcn.00405044
add esp, 0xc
lea ecx, [esp + 0x1c8]
push ecx
call ebp
mov eax, dword [esp + 0x10]
push 0
push 0
push 0x10
lea edx, [esp + 0x44]
push edx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4024b8
call edi
call edi
cmp eax, 0x514
jne 0x4024c8
push str.Token_does_not_have_the_provilege
call ebp
mov ecx, dword [esp + 0x10]
push 1
push ecx
lea edx, [esp + 0x20]
xor edi, edi
push edx
mov dword [esp + 0x24], edi
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x4024ea
mov esi, 0x430
jmp 0x4024ee
mov dword [esp + 0x18], edi
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x18]
push edi
push edx
push esi
push edi
push edi
push edi
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
mov edi, eax
test edi, edi
je 0x402522
push str.CreateProcessAsUser_SUCCESSSSSSSSSSSS.......
call ebp
jmp 0x40252f
push str.CreateProcessAsUser_Failed.................
call ebp
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
call esi
mov edx, dword [esp + 0x1c]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
mov ecx, dword [esp + 0x20]
push ecx
call esi
mov eax, edi
mov ecx, dword [esp + 0x24c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00404aa2
add esp, 0x240
ret