Function at 0x401000
Capabilities:
Acquire debug privileges
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x98
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x94], eax
xorps xmm0, xmm0
mov dword [esp + 4], ecx
push esi
push edi
mov dword [esp + 0x3c], 0
movlpd qword [esp + 0x44], xmm0
movlpd qword [esp + 0x4c], xmm0
movlpd qword [esp + 0x54], xmm0
movlpd qword [esp + 0x5c], xmm0
movlpd qword [esp + 0x64], xmm0
movlpd qword [esp + 0x6c], xmm0
movlpd qword [esp + 0x74], xmm0
mov dword [esp + 0x38], 0x44
mov dword [esp + 0x40], str.winsta0default
movaps xmmword [esp + 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [esp + 0x80], eax
cmp eax, 0xffffffff
je 0x40126f
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], 0
push ecx
push eax
mov edi, 0x30
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x401285
lea eax, [esp + 0x18]
push eax
push 0x201eb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4010d9
lea eax, [edi - 0x2f]
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0040137a
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x84]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x40110b
mov eax, 2
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0040137a
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x88]
mov dword [esp + 0x90], eax
lea eax, [esp + 0x10]
push eax
push 1
push 1
push 0
push 0x2000000
push dword [esp + 0x2c]
mov dword [esp + 0xa4], 1
mov dword [esp + 0xac], ecx
mov dword [esp + 0xb0], 2
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x401174
mov eax, 3
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0040137a
mov esp, ebp
pop ebp
ret
push 4
lea eax, [esp + 0x84]
push eax
push 0xc
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x4011a7
mov eax, 4
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0040137a
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x10
lea eax, [esp + 0x98]
push eax
push 0
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x4011de
mov eax, 5
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0040137a
mov esp, ebp
pop ebp
ret
push 1
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], 0
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x401206
mov eax, dword [esp + 0x14]
mov edi, 0x430
jmp 0x40120c
xor eax, eax
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0x3c]
push ecx
push 0
push eax
push edi
push 0
push 0
push 0
push dword [esp + 0x2c]
push 0
push dword [esp + 0x38]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x401257
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 6
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0040137a
mov esp, ebp
pop ebp
ret
push dword [esp + 0x1c]
call esi
push dword [esp + 0x10]
call esi
push dword [esp + 0x20]
call esi
push dword [esp + 0x24]
call esi
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0040137a
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
push str.C:Windows_
push 0
push 0x10
push 0
push 0
push 0
push dword [esp + 0x2c]
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x401263
mov ecx, dword [esp + 0x9c]
mov eax, 7
pop edi
pop esi
xor ecx, esp
call fcn.0040137a
mov esp, ebp
pop ebp
ret