Function at 0x408ab0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0x44
lea eax, [esp + 0x20]
push ebp
xor esi, esi
push eax
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], ebp
call fcn.00463710
xor eax, eax
mov ecx, 5
add esp, 0xc
mov dword [0x48de04], eax
mov dword [0x48de08], eax
mov dword [0x48de0c], eax
mov dword [0x48de10], eax
mov word [esp + 0x4c], cx
mov dword [esp + 0x24], str.Winsta0Winlogon
mov dword [esp + 0x1c], 0x44
call fcn.00408800
call fcn.004085e0
mov eax, dword [0x4a77d4]
cmp eax, ebp
je 0x408b18
call eax
lea eax, [esp + 0x10]
call fcn.00408a00
test eax, eax
je 0x408d53
mov edx, dword [esp + 0x10]
push ebp
push edx
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
push ebp
test eax, eax
je 0x408c50
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
push 0x48de04
lea ecx, [esp + 0x20]
push ecx
push ebp
push edx
push 0x408
push ebp
push ebp
push ebp
push 0x48dd00
push ebp
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x408b8f
mov dword [0x4a77dc], ebp
mov dword [esp + 0x18], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x408c26
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe9
jne 0x408c26
cmp dword [0x4a77e0], 1
jne 0x408c26
mov eax, dword [0x4a77dc]
inc eax
cmp eax, 3
mov dword [0x4a77dc], eax
jle 0x408c26
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.winsta.dll
call edi
push str.user32.dll
mov esi, eax
call edi
xor edi, edi
mov ebx, eax
test esi, esi
je 0x408be5
push str.WinStationConnectW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test ebx, ebx
je 0x408bf7
push str.LockWorkStation
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
test edi, edi
je 0x408c19
mov ecx, dword [0x4a77d4]
xor eax, eax
test ecx, ecx
je 0x408c09
call ecx
push 0
push 0x47b580
push eax
push 0
push 0
call edi
call ebp
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ebp, ebp
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x408d3c
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [esp + 0x10]
push 0x48de04
lea ecx, [esp + 0x20]
push ecx
push ebp
push ebp
push 8
push ebp
push ebp
push ebp
push 0x48dd00
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
je 0x408ca7
mov dword [0x4a77dc], ebp
mov dword [esp + 0x18], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe9
jne 0x408d3c
cmp dword [0x4a77e0], 1
jne 0x408d3c
mov eax, dword [0x4a77dc]
inc eax
cmp eax, 3
mov dword [0x4a77dc], eax
jle 0x408d3c
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.winsta.dll
call edi
push str.user32.dll
mov esi, eax
call edi
xor edi, edi
mov ebx, eax
test esi, esi
je 0x408cfd
push str.WinStationConnectW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test ebx, ebx
je 0x408d0f
push str.LockWorkStation
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebp, eax
test edi, edi
je 0x408d31
mov ecx, dword [0x4a77d4]
xor eax, eax
test ecx, ecx
je 0x408d21
call ecx
push 0
push 0x47b580
push eax
push 0
push 0
call edi
call ebp
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret