Function at 0x42a070
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [0x5d7008]
xor eax, esp
mov dword [esp + 0x80], eax
cmp byte [0x5d9ca5], 0
push ebx
push esi
push edi
mov byte [esp + 0x17], dl
mov dword [esp + 0x20], ecx
jne 0x42a4cd
push 0x44
lea eax, [esp + 0x34]
mov dword [esp + 0x20], 0
push 0
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x30], 0
call fcn.0053f2b0
add esp, 0xc
mov dword [esp + 0x38], str.Winsta0Default
xorps xmm0, xmm0
mov dword [esp + 0x30], 0x44
mov eax, 5
movups xmmword [0x5d9d20], 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 esi, eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x42a199
lea eax, [esp + 0x10]
push eax
push 0xf01ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42a196
lea eax, [esp + 0x28]
push eax
push str.SeTcbPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x42a190
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 + 0x24]
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 0x42a190
call ebx
push dword [esp + 0x10]
call edi
push esi
call edi
mov dl, byte [ebp + 8]
mov cl, byte [esp + 0x17]
call fcn.00429bc0
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x18]
mov edx, esi
call fcn.00429e90
test eax, eax
je 0x42a4b4
push 0
push dword [esp + 0x1c]
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
push 0
test eax, eax
je 0x42a345
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [0x5d9ca5], 0
jne 0x42a4cd
push 0x5d9d20
lea eax, [esp + 0x34]
push eax
push 0
push dword [esp + 0x30]
push 0x408
push 0
push 0
push 0
push 0x5e9200
push 0
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x42a233
mov dword [0x5d9d18], 0
mov dword [esp + 0x1c], 1
call ebx
jmp 0x42a313
call ebx
cmp eax, 0xe9
jne 0x42a313
cmp dword [0x5d9d3c], 1
jne 0x42a2e4
mov eax, dword [0x5d9d18]
inc eax
mov dword [0x5d9d18], eax
cmp eax, 3
jle 0x42a313
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.winsta.dll
call esi
push str.user32.dll
mov dword [esp + 0x24], eax
call esi
mov edx, dword [esp + 0x20]
xor ebx, ebx
mov ecx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor esi, esi
mov dword [esp + 0x10], eax
test edx, edx
je 0x42a2a3
push str.WinStationConnectW
push edx
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42a2b1
push str.LockWorkStation
push eax
call ecx
mov esi, eax
test ebx, ebx
je 0x42a2d7
test esi, esi
je 0x42a2d7
mov ecx, dword [0x5e8cd8]
xor eax, eax
test ecx, ecx
je 0x42a2c7
call ecx
push 0
push 0x5baf8c
push eax
push 0
push 0
call ebx
call esi
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42a313
sub esp, 0xc
mov ecx, esi
push dword [esp + 0x30]
push 0x408
sub esp, 0x14
push dword [esp + 0x40]
call fcn.00429480
add esp, 0x2c
mov dword [0x5d9d18], 0
mov dword [esp + 0x1c], 1
mov eax, dword [esp + 0x24]
test eax, eax
je 0x42a4ae
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
push dword [esp + 0x18]
call edi
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [0x5d9ca5], 0
jne 0x42a4cd
push 0x5d9d20
lea eax, [esp + 0x34]
push eax
push 0
push 0
push 8
push 0
push 0
push 0
push 0x5e9200
push 0
push dword [esp + 0x40]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x42a3b6
mov dword [0x5d9d18], 0
mov dword [esp + 0x1c], 1
call ebx
push dword [esp + 0x18]
call edi
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
call ebx
cmp eax, 0xe9
jne 0x42a4ae
cmp dword [0x5d9d3c], 1
jne 0x42a484
mov eax, dword [0x5d9d18]
inc eax
mov dword [0x5d9d18], eax
cmp eax, 3
jle 0x42a4ae
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.winsta.dll
call esi
push str.user32.dll
mov dword [esp + 0x24], eax
call esi
mov edx, dword [esp + 0x20]
xor ebx, ebx
mov ecx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
xor esi, esi
mov dword [esp + 0x10], eax
test edx, edx
je 0x42a426
push str.WinStationConnectW
push edx
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x42a434
push str.LockWorkStation
push eax
call ecx
mov esi, eax
test ebx, ebx
je 0x42a45a
test esi, esi
je 0x42a45a
mov ecx, dword [0x5e8cd8]
xor eax, eax
test ecx, ecx
je 0x42a44a
call ecx
push 0
push 0x5baf8c
push eax
push 0
push 0
call ebx
call esi
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [esp + 0x18]
call edi
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0053d630
mov esp, ebp
pop ebp
ret
sub esp, 0xc
mov ecx, esi
push 0
push 8
sub esp, 0x14
push dword [esp + 0x40]
call fcn.00429480
add esp, 0x2c
mov dword [0x5d9d18], 0
mov dword [esp + 0x1c], 1
push dword [esp + 0x18]
call edi
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0053d630
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.0053d630
mov esp, ebp
pop ebp
ret