Function at 0x42e580
Capabilities:
Create process on windows
Lock the desktop

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x5b0008]
xor eax, esp
mov dword [esp + 0x80], eax
cmp byte [0x5b2e27], 0
push ebx
push esi
push edi
mov byte [esp + 0x13], dl
mov dword [esp + 0x24], ecx
jne 0x42e95b
push 0x44
lea eax, [esp + 0x34]
mov dword [esp + 0x20], 0
push 0
push eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x2c], 0
call fcn.0051b450
add esp, 0xc
mov dword [esp + 0x38], str.Winsta0Default
xorps xmm0, xmm0
mov dword [esp + 0x30], 0x44
mov eax, 5
movups xmmword [0x5b3064], xmm0
mov word [esp + 0x60], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x42e6a9
lea eax, [esp + 0x18]
push eax
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42e6a6
lea eax, [esp + 0x28]
push eax
push str.SeTcbPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x42e6a0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
push 0
push 0
push 0x10
mov dword [esp + 0x8c], eax
lea eax, [esp + 0x88]
push eax
push 0
push dword [esp + 0x2c]
mov dword [esp + 0x94], 1
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x42e6a0
call ebx
push dword [esp + 0x18]
call esi
push edi
call esi
mov dl, byte [ebp + 8]
mov cl, byte [esp + 0x13]
call fcn.0042db40
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x14]
mov edx, edi
call fcn.0042ef60
test eax, eax
je 0x42e942
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
push 0
test eax, eax
je 0x42e812
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [0x5b2e27], 0
jne 0x42e95b
push 0x5b3064
lea eax, [esp + 0x34]
push eax
push 0
push dword [esp + 0x2c]
push 0x408
push 0
push 0
push 0
push 0x5b3078
push 0
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x42e743
mov dword [0x5f8e50], 0
mov dword [esp + 0x1c], 1
call ebx
jmp 0x42e7e0
call ebx
cmp eax, 0xe9
jne 0x42e7e0
cmp dword [0x5b2e3c], 1
jne 0x42e7b1
mov eax, dword [0x5f8e50]
inc eax
mov dword [0x5f8e50], eax
cmp eax, 3
jle 0x42e7e0
push 0x59b420
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x42e7a4
push str.WinStationConnectW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x42e7a4
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
push 0
push 0x5996dc
push eax
push 0
push 0
call edi
call dword [sym.imp.USER32.dll_LockWorkStation]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42e7e0
sub esp, 0xc
mov ecx, edi
push dword [esp + 0x2c]
push 0x408
sub esp, 0x14
push dword [esp + 0x3c]
call fcn.0042e980
add esp, 0x2c
mov dword [0x5f8e50], 0
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x20]
test eax, eax
je 0x42e93c
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push dword [esp + 0x14]
call esi
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.00519459
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [0x5b2e27], 0
jne 0x42e95b
push 0x5b3064
lea eax, [esp + 0x34]
push eax
push 0
push 0
push 8
push 0
push 0
push 0
push 0x5b3078
push 0
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x42e883
mov dword [0x5f8e50], 0
mov dword [esp + 0x1c], 1
call ebx
push dword [esp + 0x14]
call esi
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.00519459
mov esp, ebp
pop ebp
ret
call ebx
cmp eax, 0xe9
jne 0x42e93c
cmp dword [0x5b2e3c], 1
jne 0x42e912
mov eax, dword [0x5f8e50]
inc eax
mov dword [0x5f8e50], eax
cmp eax, 3
jle 0x42e93c
push 0x59b420
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x42e8e8
push str.WinStationConnectW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x42e8e8
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
push 0
push 0x5996dc
push eax
push 0
push 0
call edi
call dword [sym.imp.USER32.dll_LockWorkStation]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [esp + 0x14]
call esi
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.00519459
mov esp, ebp
pop ebp
ret
sub esp, 0xc
mov ecx, edi
push 0
push 8
sub esp, 0x14
push dword [esp + 0x3c]
call fcn.0042e980
add esp, 0x2c
mov dword [0x5f8e50], 0
mov dword [esp + 0x1c], 1
push dword [esp + 0x14]
call esi
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.00519459
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x8c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00519459
mov esp, ebp
pop ebp
ret