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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x5c3040]
xor eax, esp
mov dword [esp + 0x80], eax
cmp byte [0x5c6494], 0
push ebx
push esi
push edi
mov byte [esp + 0x13], dl
mov dword [esp + 0x24], ecx
jne 0x43511b
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.00526a30
add esp, 0xc
mov dword [esp + 0x38], str.Winsta0Default
xorps xmm0, xmm0
mov dword [esp + 0x30], 0x44
mov eax, 5
movups xmmword [0x5c68f0], 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 0x434e69
lea eax, [esp + 0x18]
push eax
push 0xf01ff
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x434e66
lea eax, [esp + 0x28]
push eax
push str.SeTcbPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x434e60
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 0x434e60
call ebx
push dword [esp + 0x18]
call esi
push edi
call esi
mov dl, byte [ebp + 8]
mov cl, byte [esp + 0x13]
call fcn.00434300
mov edi, dword [esp + 0x24]
lea ecx, [esp + 0x14]
mov edx, edi
call fcn.004356e0
test eax, eax
je 0x435102
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 0x434fd2
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [0x5c6494], 0
jne 0x43511b
push 0x5c68f0
lea eax, [esp + 0x34]
push eax
push 0
push dword [esp + 0x2c]
push 0x408
push 0
push 0
push 0
push 0x5c6908
push 0
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x434f03
mov dword [0x60c8f0], 0
mov dword [esp + 0x1c], 1
call ebx
jmp 0x434fa0
call ebx
cmp eax, 0xe9
jne 0x434fa0
cmp dword [0x5c67c8], 1
jne 0x434f71
mov eax, dword [0x60c8f0]
inc eax
mov dword [0x60c8f0], eax
cmp eax, 3
jle 0x434fa0
push 0x5abe98
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x434f64
push str.WinStationConnectW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x434f64
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
push 0
push 0x5a94bc
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 0x434fa0
sub esp, 0xc
mov ecx, edi
push dword [esp + 0x2c]
push 0x408
sub esp, 0x14
push dword [esp + 0x3c]
call fcn.00435140
add esp, 0x2c
mov dword [0x60c8f0], 0
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4350fc
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.00524763
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [0x5c6494], 0
jne 0x43511b
push 0x5c68f0
lea eax, [esp + 0x34]
push eax
push 0
push 0
push 8
push 0
push 0
push 0
push 0x5c6908
push 0
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x435043
mov dword [0x60c8f0], 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.00524763
mov esp, ebp
pop ebp
ret
call ebx
cmp eax, 0xe9
jne 0x4350fc
cmp dword [0x5c67c8], 1
jne 0x4350d2
mov eax, dword [0x60c8f0]
inc eax
mov dword [0x60c8f0], eax
cmp eax, 3
jle 0x4350fc
push 0x5abe98
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x4350a8
push str.WinStationConnectW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4350a8
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
push 0
push 0x5a94bc
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.00524763
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.00435140
add esp, 0x2c
mov dword [0x60c8f0], 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.00524763
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.00524763
mov esp, ebp
pop ebp
ret