Function at 0x403be0
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 0x403dd1
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 + 0x28], ebp
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
jne 0x403c7b
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 0x403d9a
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 0x403ca5
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], eax
jmp 0x403d3f
lea ecx, [esp + 0x28]
push ecx
push str.SeDebugPrivilege
push ebp
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x403d96
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 0x403d96
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 0x403d26
call esi
mov edi, eax
cmp edi, 0x522
jne 0x403d9a
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 0x403d96
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 0x403d5c
mov ebx, 0x430
jmp 0x403d60
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 0x403d9a
call esi
mov edi, eax
mov eax, dword [esp + 0x10]
cmp eax, ebp
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x403dab
push eax
call esi
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x403db6
push eax
call esi
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x403dc5
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