Function at 0x42aa90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x7c
mov eax, dword [0x55800c]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
xor ebx, ebx
mov byte [esp + 0x13], dl
push 0x44
lea eax, [esp + 0x2c]
mov dword [esp + 0x1c], ecx
push ebx
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
call fcn.004cddb0
add esp, 0xc
mov dword [esp + 0x30], str.Winsta0Default
xorps xmm0, xmm0
mov dword [esp + 0x28], 0x44
mov eax, 5
movups xmmword [0x55abe4], xmm0
mov word [esp + 0x58], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push ebx
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
test esi, esi
je 0x42ab90
lea eax, [esp + 0xc]
push eax
push 0xf01ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42ab8d
lea eax, [esp + 0x20]
push eax
push str.SeTcbPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x42ab87
mov eax, dword [esp + 0x20]
push ebx
push ebx
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x2c]
push 0x10
mov dword [esp + 0x88], eax
lea eax, [esp + 0x80]
push eax
push ebx
push dword [esp + 0x20]
mov dword [esp + 0x8c], 1
mov dword [esp + 0x98], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x42ab87
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [esp + 0xc]
call edi
push esi
call edi
mov cl, byte [esp + 0x13]
call fcn.0042a5c0
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x14]
mov edx, esi
call fcn.0042a8b0
test eax, eax
je 0x42ae4d
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
push 0
test eax, eax
je 0x42ad1a
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x55abe4
lea eax, [esp + 0x2c]
push eax
push 0
push dword [esp + 0x28]
push 0x408
push 0
push 0
push 0
push 0x56a0c8
push 0
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x42ac17
mov dword [0x55abdc], ebx
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x42ad02
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe9
jne 0x42ad02
cmp dword [0x55ac00], 1
jne 0x42acda
mov eax, dword [0x55abdc]
inc eax
mov dword [0x55abdc], eax
cmp eax, 3
jle 0x42ad02
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.winsta.dll
call esi
push str.user32.dll
mov dword [esp + 0x1c], eax
call esi
mov edx, dword [esp + 0x18]
xor esi, esi
mov ecx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x20], eax
mov dword [esp + 0xc], ebx
test edx, edx
je 0x42ac8f
push str.WinStationConnectW
push edx
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x20]
test eax, eax
je 0x42ac9d
push str.LockWorkStation
push eax
call ecx
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x42accd
test esi, esi
je 0x42accd
mov edx, dword [0x569b98]
xor ecx, ecx
test edx, edx
je 0x42acbd
call edx
mov ecx, eax
mov eax, dword [esp + 0xc]
push 0
push 0x53fb18
push ecx
push 0
push 0
call eax
call esi
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42ad02
sub esp, 0xc
mov ecx, esi
push dword [esp + 0x28]
push 0x408
sub esp, 0x14
push dword [esp + 0x3c]
call fcn.00429f50
mov dword [0x55abdc], ebx
add esp, 0x2c
mov ebx, 1
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42ae47
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
jmp 0x42ae47
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0x55abe4
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 8
push 0
push 0
push 0
push 0x56a0c8
push 0
push dword [esp + 0x3c]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x42ad61
mov dword [0x55abdc], ebx
mov ebx, 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x42ae47
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe9
jne 0x42ae47
cmp dword [0x55ac00], 1
jne 0x42ae24
mov eax, dword [0x55abdc]
inc eax
mov dword [0x55abdc], eax
cmp eax, 3
jle 0x42ae47
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 esi, esi
mov ecx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], ebx
test edx, edx
je 0x42add9
push str.WinStationConnectW
push edx
call ecx
mov ecx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x42ade7
push str.LockWorkStation
push eax
call ecx
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x42ae17
test esi, esi
je 0x42ae17
mov edx, dword [0x569b98]
xor ecx, ecx
test edx, edx
je 0x42ae07
call edx
mov ecx, eax
mov eax, dword [esp + 0xc]
push 0
push 0x53fb18
push ecx
push 0
push 0
call eax
call esi
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42ae47
sub esp, 0xc
mov ecx, esi
push 0
push 8
sub esp, 0x14
push dword [esp + 0x3c]
call fcn.00429f50
mov dword [0x55abdc], ebx
add esp, 0x2c
mov ebx, 1
push dword [esp + 0x14]
call edi
mov ecx, dword [esp + 0x84]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004cbf27
mov esp, ebp
pop ebp
ret