Function at 0x42e460
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 0x42e83b
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.0051a780
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 0x42e589
lea eax, [esp + 0x18]
push eax
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42e586
lea eax, [esp + 0x28]
push eax
push str.SeTcbPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x42e580
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 0x42e580
call ebx
push dword [esp + 0x18]
call esi
push edi
call esi
mov dl, byte [ebp + 8]
mov cl, byte [esp + 0x13]
call fcn.0042da20
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x14]
mov edx, edi
call fcn.0042ee40
test eax, eax
je 0x42e822
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 0x42e6f2
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [0x5b2e27], 0
jne 0x42e83b
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 0x42e623
mov dword [0x5f8db8], 0
mov dword [esp + 0x1c], 1
call ebx
jmp 0x42e6c0
call ebx
cmp eax, 0xe9
jne 0x42e6c0
cmp dword [0x5b2e3c], 1
jne 0x42e691
mov eax, dword [0x5f8db8]
inc eax
mov dword [0x5f8db8], eax
cmp eax, 3
jle 0x42e6c0
push 0x59b3a8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x42e684
push str.WinStationConnectW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x42e684
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
push 0
push 0x59966c
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 0x42e6c0
sub esp, 0xc
mov ecx, edi
push dword [esp + 0x2c]
push 0x408
sub esp, 0x14
push dword [esp + 0x3c]
call fcn.0042e860
add esp, 0x2c
mov dword [0x5f8db8], 0
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x20]
test eax, eax
je 0x42e81c
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.00518799
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [0x5b2e27], 0
jne 0x42e83b
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 0x42e763
mov dword [0x5f8db8], 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.00518799
mov esp, ebp
pop ebp
ret
call ebx
cmp eax, 0xe9
jne 0x42e81c
cmp dword [0x5b2e3c], 1
jne 0x42e7f2
mov eax, dword [0x5f8db8]
inc eax
mov dword [0x5f8db8], eax
cmp eax, 3
jle 0x42e81c
push 0x59b3a8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x42e7c8
push str.WinStationConnectW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x42e7c8
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
push 0
push 0x59966c
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.00518799
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.0042e860
add esp, 0x2c
mov dword [0x5f8db8], 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.00518799
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.00518799
mov esp, ebp
pop ebp
ret