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

Disassembly:
sub esp, 0x78
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push str.WTSGetActiveConsoleSessionId
push str.Kernel32.dll
xor edi, edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebp
je 0x403fee
call eax
mov esi, eax
push 0x44
lea eax, [esp + 0x44]
push ebp
push eax
mov dword [esp + 0x28], esi
mov ebx, 0x30
call fcn.0044bc10
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
push esi
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x50], str.winsta0default
mov dword [esp + 0x74], 1
mov word [esp + 0x78], bp
mov dword [esp + 0x28], ebp
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x403e98
call esi
mov edx, dword [esp + 0x1c]
push edx
mov edi, eax
call fcn.00403ab0
add esp, 4
cmp eax, ebp
mov dword [esp + 0x14], eax
je 0x403fb7
xor edi, edi
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push 4
lea ecx, [esp + 0x2c]
push ecx
push 0x13
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x403ec2
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], eax
jmp 0x403f5c
lea ecx, [esp + 0x28]
push ecx
push str.SeDebugPrivilege
push ebp
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x403fb3
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x10]
push ecx
push 1
push 1
push ebp
mov dword [esp + 0x44], edx
mov edx, dword [esp + 0x24]
push 0x2000000
push edx
mov dword [esp + 0x48], 1
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], 2
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x403fb3
mov ecx, dword [esp + 0x10]
push 4
lea eax, [esp + 0x20]
push eax
push 0xc
push ecx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
jne 0x403f43
call esi
mov edi, eax
cmp edi, 0x522
jne 0x403fb7
xor edi, edi
mov eax, dword [esp + 0x10]
push ebp
push ebp
push 0x10
lea edx, [esp + 0x3c]
push edx
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x403fb3
mov ecx, dword [esp + 0x10]
push 1
push ecx
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x403f79
mov ebx, 0x430
jmp 0x403f7d
mov dword [esp + 0x18], ebp
mov eax, dword [esp + 0x94]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x94]
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x94]
push ebp
push edx
mov edx, dword [esp + 0x20]
push ebx
push ebp
push ebp
push ebp
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x403fb7
call esi
mov edi, eax
mov eax, dword [esp + 0x10]
cmp eax, ebp
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x403fc8
push eax
call esi
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x403fd3
push eax
call esi
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x403fe2
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x78
ret 0xc