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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
mov eax, dword [0x41f024]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x25c], eax
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
push 0
push 2
mov dword [ebp - 0x24c], eax
mov dword [0x4212a4], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x260], eax
cmp eax, 0xffffffff
jne 0x40254f
mov eax, 1
jmp 0x402814
lea ecx, [ebp - 0x240]
push ecx
push eax
mov dword [ebp - 0x240], 0x22c
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x402545
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jg 0x4025b6
lea edi, [eax + eax]
mov eax, edi
call fcn.00413b50
mov esi, esp
test esi, esi
je 0x4025b6
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x21c]
push eax
push 0
push 3
mov byte [esi], 0
call ebx
neg eax
sbb eax, eax
and eax, esi
jmp 0x4025b8
xor eax, eax
push str.winlogon.exe
push eax
call fcn.00403dcc
add esp, 8
test eax, eax
jne 0x4025fa
mov edx, dword [ebp - 0x238]
lea ecx, [ebp - 0x250]
push ecx
push edx
mov dword [ebp - 0x250], eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x4025fa
mov eax, dword [ebp - 0x250]
cmp eax, dword [ebp - 0x24c]
je 0x4027a5
mov edx, dword [ebp - 0x260]
lea ecx, [ebp - 0x240]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x402571
mov esi, dword [ebp - 0x254]
mov ecx, dword [ebp - 0x24c]
lea eax, [ebp - 0x254]
push eax
push ecx
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
push 0x44
lea edx, [ebp - 0x2bc]
push 0
push edx
mov ebx, 0x4000028
call fcn.004079e0
add esp, 0xc
xor eax, eax
push esi
push eax
push 0x2000000
mov dword [ebp - 0x2bc], 0x44
mov dword [ebp - 0x2b4], str.winsta0default
mov dword [ebp - 0x278], eax
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
lea eax, [ebp - 0x258]
push eax
push 0x201eb
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4026b4
call edi
call edi
push eax
push str.Process_token_open_Error:__u_n
call fcn.0040447f
add esp, 8
lea ecx, [ebp - 0x268]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x4026dc
call edi
push eax
push str.Lookup_Privilege_value_Error:__u_n
call fcn.0040447f
add esp, 8
mov edx, dword [ebp - 0x268]
mov eax, dword [ebp - 0x264]
lea ecx, [ebp - 0x244]
push ecx
push 1
push 1
push 0
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x258]
push 0x2000000
push edx
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
call edi
mov eax, dword [ebp - 0x24c]
mov ecx, dword [ebp - 0x244]
push 4
push eax
push 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov eax, dword [ebp - 0x244]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x402764
call edi
call edi
push eax
push str.Adjust_Privilege_value_Error:__u_n
call fcn.0040447f
add esp, 8
call edi
cmp eax, 0x514
jne 0x40277a
push str.Token_does_not_have_the_provilege_n
call fcn.0040447f
add esp, 4
mov ecx, dword [ebp - 0x244]
push 1
push ecx
lea edx, [ebp - 0x248]
push edx
mov dword [ebp - 0x248], 0
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x4027b0
mov ebx, 0x4000428
jmp 0x4027ba
mov esi, dword [ebp - 0x238]
jmp 0x40261c
mov dword [ebp - 0x248], 0
mov edx, dword [ebp - 0x248]
lea eax, [ebp - 0x278]
push eax
mov eax, dword [ebp - 0x25c]
lea ecx, [ebp - 0x2bc]
push ecx
mov ecx, dword [ebp - 0x244]
push 0
push edx
push ebx
push 0
push 0
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
call edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov edx, dword [ebp - 0x254]
push edx
call esi
mov eax, dword [ebp - 0x244]
push eax
call esi
mov ecx, dword [ebp - 0x258]
push ecx
call esi
lea esp, [ebp - 0x2c8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004030ec
mov esp, ebp
pop ebp
ret