Function at 0x41fb50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bba48
mov eax, dword fs:[0]
push eax
sub esp, 0x148
push ebx
push esi
push edi
mov eax, dword [0x554008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x30], esi
mov eax, dword [esi + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x41fb9a
push eax
call edi
mov dword [esi + 0x24], 0
mov eax, dword [esi + 0x28]
test eax, eax
je 0x41fbab
push eax
call edi
mov dword [esi + 0x28], 0
cmp byte [esi + 0x44], 0
je 0x41fc11
mov eax, dword [vtable.LocalMutex.0]
mov ecx, 0x5554e8
mov ebx, dword [esi + 0x40]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x60], vtable.AutoLock.0
mov dword [ebp - 0x5c], 0x5554e8
call dword [eax + 4]
mov dword [ebp - 4], 0
cmp byte [0x558e55], 0
jne 0x41fbe9
mov ecx, ebx
call fcn.0041ee40
mov eax, dword [0x558f84]
test eax, eax
jne 0x41fcb4
mov dword [ebp - 4], 1
mov ecx, 0x5554e8
mov eax, dword [vtable.LocalMutex.0]
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [esi + 0x40]
call fcn.0041e9e0
push eax
mov dword [ebp - 0x24], eax
push str.Connect_as_current_user_at__d_session
push dword [esi + 0x40]
call fcn.00405ec0
push dword [esi + 0x18]
push dword [esi + 8]
push str.Try_to_start___s__s__process
push dword [esi + 0x40]
call fcn.00405ec0
add esp, 0x1c
mov dword [ebp - 0x34], 1
lea eax, [ebp - 0xb4]
mov ecx, esi
push eax
call fcn.0041d6a0
push dword [ebp - 0x88]
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
push dword [ebp - 0x74]
push dword [ebp - 0xb4]
push str.sti:_cb___d__hStdError___p__hStdInput___p__hStdOutput___p__dwFlags___u
push dword [esi + 0x40]
call fcn.00405f20
add esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
mov dword [ebp - 4], 4
push edi
push str.Try_OpenProcessToken__p_____
push dword [esi + 0x40]
call fcn.00405f20
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
push 2
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41ff26
jmp 0x41fdbc
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], 0
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x20], 0
push ecx
xor edi, edi
push 1
push edi
push edi
mov dword [ebp - 0x2c], edi
call eax
test eax, eax
je 0x41fd8b
mov ecx, dword [ebp - 0x20]
xor ebx, ebx
test ecx, ecx
je 0x41fd82
mov esi, dword [ebp - 0x1c]
nop dword [eax]
mov eax, dword [ebp - 0x18]
cmp dword [edi + eax + 8], 0
jne 0x41fd70
push dword [edi + eax + 4]
lea ecx, [ebp - 0x44]
call fcn.00403030
mov byte [ebp - 4], 2
push dword [ebp - 0x40]
mov eax, dword [ebp - 0x18]
push dword [edi + eax]
push str.Enumerate_Sessions__Id:__d__Name:__s
push esi
call fcn.00405f20
add esp, 0x10
lea ecx, [ebp - 0x44]
call fcn.00403860
push 0x529614
push dword [ebp - 0x40]
call fcn.0049c3c1
add esp, 8
test eax, eax
je 0x41fd5a
mov eax, dword [ebp - 0x18]
mov esi, dword [edi + eax]
push esi
push str.RDP_Session_selected__Id:__d
push dword [ebp - 0x1c]
mov dword [ebp - 0x2c], esi
call fcn.00405f20
mov esi, dword [ebp - 0x1c]
add esp, 0xc
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x44], vtable.StringStorage.0
call fcn.004039c0
mov ecx, dword [ebp - 0x20]
inc ebx
add edi, 0xc
cmp ebx, ecx
jb 0x41fcf0
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x2c]
push dword [ebp - 0x18]
call dword [0x558f80]
mov dword [ebp - 4], 3
mov ecx, 0x5554e8
mov eax, dword [vtable.LocalMutex.0]
call dword [eax + 8]
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x41fc11
push edi
mov dword [ebp - 0x24], edi
push 0x529a78
jmp 0x41fc22
push dword [ebp - 0x28]
push str.Try_DuplicateTokenEx__p___________
push dword [esi + 0x40]
call fcn.00405f20
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
push 1
push 2
push 0
push 0x2000000
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x41ff42
push dword [ebp - 0x14]
push str.Try_SetTokenInformation__p_______
push dword [esi + 0x40]
call fcn.00405f20
mov edi, dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
lea eax, [ebp - 0x24]
add esp, 0xc
push 4
push eax
push 0xc
push dword [ebp - 0x14]
call edi
test eax, eax
je 0x41ff5e
push dword [ebp - 0x14]
push str.Try_SetTokenInformation__p________with_UIAccess1
push dword [esi + 0x40]
call fcn.00405f20
add esp, 0xc
lea eax, [ebp - 0x34]
push 4
push eax
push 0x1a
push dword [ebp - 0x14]
call edi
test eax, eax
jne 0x41fe54
push dword [ebp - 0x14]
push str.Cant_set_UIAccess1__ignore_it
push dword [esi + 0x40]
call fcn.00405ec0
add esp, 0xc
lea eax, [ebp - 0x54]
mov ecx, esi
push eax
call fcn.0041d8b0
mov byte [ebp - 4], 5
movzx eax, byte [esi + 0x3c]
push eax
push dword [ebp - 0x50]
push dword [ebp - 0x14]
push str.Try_CreateProcessAsUser__p__0___s__0__0___d__NORMAL_PRIORITY_CLASS__0__0__sti__pi_
push dword [esi + 0x40]
call fcn.00405f20
add esp, 0x14
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0xb4]
push eax
movzx eax, byte [esi + 0x3c]
push 0
push 0
push 0x20
push eax
push 0
push 0
push dword [ebp - 0x50]
push 0
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x41ff7a
push dword [ebp - 0x24]
push dword [ebp - 0x50]
push str.Created___s__process_at__d_windows_session
push dword [esi + 0x40]
call fcn.00405ec0
add esp, 0x10
mov dword [ebp - 0x54], vtable.StringStorage.0
lea ecx, [ebp - 0x50]
call fcn.004039c0
push dword [ebp - 0x14]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [ebp - 0x28]
call ebx
mov eax, dword [ebp - 0x6c]
mov dword [esi + 0x28], eax
mov eax, dword [ebp - 0x70]
mov dword [esi + 0x24], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0xdc]
call fcn.0041cf20
push 0x551b6c
lea eax, [ebp - 0xdc]
push eax
call fcn.0049cc58
lea ecx, [ebp - 0x104]
call fcn.0041cf20
push 0x551b6c
lea eax, [ebp - 0x104]
push eax
call fcn.0049cc58
lea ecx, [ebp - 0x12c]
call fcn.0041cf20
push 0x551b6c
lea eax, [ebp - 0x12c]
push eax
call fcn.0049cc58
lea ecx, [ebp - 0x154]
call fcn.0041cf20
push 0x551b6c
lea eax, [ebp - 0x154]
push eax
call fcn.0049cc58
int3