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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x5d60c4]
xor eax, esp
mov dword [esp + 0x80], eax
cmp byte [0x5d9287], 0
push ebx
push esi
push edi
mov byte [esp + 0x13], dl
mov dword [esp + 0x24], ecx
jne 0x42f58b
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.0052d9b0
add esp, 0xc
mov dword [esp + 0x38], str.Winsta0Default
xorps xmm0, xmm0
mov dword [esp + 0x30], 0x44
mov eax, 5
movups xmmword [0x5d94c4], 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 0x42f2d9
lea eax, [esp + 0x18]
push eax
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42f2d6
lea eax, [esp + 0x28]
push eax
push str.SeTcbPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x42f2d0
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 0x42f2d0
call ebx
push dword [esp + 0x18]
call esi
push edi
call esi
mov dl, byte [ebp + 8]
mov cl, byte [esp + 0x13]
call fcn.0042e770
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x14]
mov edx, edi
call fcn.0042fb90
test eax, eax
je 0x42f572
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 0x42f442
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [0x5d9287], 0
jne 0x42f58b
push 0x5d94c4
lea eax, [esp + 0x34]
push eax
push 0
push dword [esp + 0x2c]
push 0x408
push 0
push 0
push 0
push 0x5d94d8
push 0
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x42f373
mov dword [0x61f2a0], 0
mov dword [esp + 0x1c], 1
call ebx
jmp 0x42f410
call ebx
cmp eax, 0xe9
jne 0x42f410
cmp dword [0x5d929c], 1
jne 0x42f3e1
mov eax, dword [0x61f2a0]
inc eax
mov dword [0x61f2a0], eax
cmp eax, 3
jle 0x42f410
push 0x5c2ab0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x42f3d4
push str.WinStationConnectW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x42f3d4
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
push 0
push 0x5c0d50
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 0x42f410
sub esp, 0xc
mov ecx, edi
push dword [esp + 0x2c]
push 0x408
sub esp, 0x14
push dword [esp + 0x3c]
call fcn.0042f5b0
add esp, 0x2c
mov dword [0x61f2a0], 0
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x20]
test eax, eax
je 0x42f56c
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.0052b789
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [0x5d9287], 0
jne 0x42f58b
push 0x5d94c4
lea eax, [esp + 0x34]
push eax
push 0
push 0
push 8
push 0
push 0
push 0
push 0x5d94d8
push 0
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x42f4b3
mov dword [0x61f2a0], 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.0052b789
mov esp, ebp
pop ebp
ret
call ebx
cmp eax, 0xe9
jne 0x42f56c
cmp dword [0x5d929c], 1
jne 0x42f542
mov eax, dword [0x61f2a0]
inc eax
mov dword [0x61f2a0], eax
cmp eax, 3
jle 0x42f56c
push 0x5c2ab0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x42f518
push str.WinStationConnectW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x42f518
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
push 0
push 0x5c0d50
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.0052b789
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.0042f5b0
add esp, 0x2c
mov dword [0x61f2a0], 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.0052b789
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.0052b789
mov esp, ebp
pop ebp
ret