Function at 0x56be80
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5928f4
mov eax, dword fs:[0]
push eax
sub esp, 0x200
mov eax, dword [0x8f9064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x18c], eax
mov al, byte [ebp + 0x14]
mov byte [ebp - 0x181], al
mov byte [ebp - 0x1a0], al
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x194], esi
mov dword [ebp - 0x190], edi
mov dword [ebp - 0x1a4], eax
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
cmp eax, 0xffffffff
jne 0x56bf0f
sub esp, 8
mov eax, esp
mov dword [eax], str.Failed_to_get_active_console_session_ID.
mov dword [eax + 4], 0x28
call fcn.0042f040
add esp, 8
mov eax, 1
jmp 0x56c522
lea ecx, [ebp - 0x198]
push ecx
push eax
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
jne 0x56bf57
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x190], eax
lea eax, [ebp - 0x190]
push eax
sub esp, 8
mov eax, esp
mov dword [eax], str.Couldnt_get_query_user_token__error_code_
mov dword [eax + 4], 0x2c
call fcn.004671b0
add esp, 0xc
mov eax, 1
jmp 0x56c522
cmp byte [ebp + 0x1c], 0
je 0x56c007
cmp byte [ebp - 0x181], 0
je 0x56c007
push dword [ebp - 0x198]
call fcn.0056c6a0
add esp, 4
test al, al
jne 0x56c007
push edi
sub esp, 8
mov eax, esp
mov dword [eax], str.RunUserProcess_will_use_SYSTEM_impersonation_for_elevated_process:_
mov dword [eax + 4], 0x45
call fcn.00470180
add esp, 0xc
push dword [ebp - 0x198]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x1a8]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x56bfff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x190], eax
lea eax, [ebp - 0x190]
push eax
sub esp, 8
mov eax, esp
mov dword [eax], str.Couldnt_open_process_token__error_code_
mov dword [eax + 4], 0x2a
call fcn.004671b0
add esp, 0xc
mov eax, 1
jmp 0x56c522
mov eax, dword [ebp - 0x1a8]
jmp 0x56c02e
push edi
sub esp, 8
mov eax, esp
mov dword [eax], str.RunUserProcess_will_use_current_user_impersonation_for_elevated_process:_
mov dword [eax + 4], 0x4b
call fcn.00470180
mov eax, dword [ebp - 0x198]
add esp, 0xc
mov dword [ebp - 0x1a8], eax
push eax
lea ecx, [ebp - 0x19c]
call fcn.00568340
lea eax, [ebp - 0x1b8]
mov dword [ebp - 4], 0
push eax
push dword [ebp - 0x1a0]
push dword [ebp - 0x19c]
call fcn.0056c540
add esp, 0xc
test al, al
jne 0x56c06a
mov esi, 1
jmp 0x56c515
push dword [ebp - 0x1b8]
lea ecx, [ebp - 0x1b4]
call fcn.00568340
push 0
push dword [ebp - 0x19c]
lea eax, [ebp - 0x1ac]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x1ac], 0
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
jne 0x56c0d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1a0], eax
lea eax, [ebp - 0x1a0]
push eax
sub esp, 8
mov eax, esp
mov dword [eax], str.Couldnt_create_user_environment_block__error_code_
mov dword [eax + 4], 0x35
call fcn.004671b0
add esp, 0xc
mov esi, 1
jmp 0x56c50a
push dword [ebp - 0x1ac]
lea ecx, [ebp - 0x1b0]
call fcn.00568340
push str.WinSta0Default
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 2
call fcn.0045e320
cmp dword [ebp - 0x74], 8
lea eax, [ebp - 0x88]
xorps xmm0, xmm0
mov dword [ebp - 0x208], 0
cmovae eax, dword [ebp - 0x88]
mov dword [ebp - 0x204], eax
xor eax, eax
movlpd qword [ebp - 0x200], xmm0
movlpd qword [ebp - 0x1f8], xmm0
movlpd qword [ebp - 0x1f0], xmm0
movlpd qword [ebp - 0x1e8], xmm0
movlpd qword [ebp - 0x1e0], xmm0
movlpd qword [ebp - 0x1d8], xmm0
movlpd qword [ebp - 0x1d0], xmm0
mov dword [ebp - 0x20c], 0x44
movups xmmword [ebp - 0x1c8], xmm0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
mov edi, dword [sym.imp.PocoFoundation.dll_public:_static_void___cdecl_Poco::UnicodeConverter::convert_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t____]
lea eax, [ebp - 0x58]
push eax
push esi
mov byte [ebp - 4], 4
call edi
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 5
push eax
push dword [ebp - 0x190]
call edi
add esp, 0x10
lea ecx, [ebp - 0x180]
push esi
call dword [sym.imp.PocoFoundation.dll_public:_void___thiscall_Poco::Path::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, eax
mov byte [ebp - 4], 6
call dword [sym.imp.PocoFoundation.dll_public:_class_Poco::Path____thiscall_Poco::Path::makeAbsolute_void_]
lea ecx, [ebp - 0x110]
push ecx
mov ecx, eax
call dword [sym.imp.PocoFoundation.dll_public:_class_Poco::Path___thiscall_Poco::Path::parent_void_]
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 7
push ecx
mov ecx, eax
call dword [sym.imp.PocoFoundation.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_Poco::Path::toString_void_]
mov esi, dword [sym.imp.PocoFoundation.dll_public:_void___thiscall_Poco::Path::destructor_void_]
lea ecx, [ebp - 0x110]
call esi
lea ecx, [ebp - 0x180]
mov byte [ebp - 4], 0xa
call esi
mov ecx, dword [ebp - 0x18c]
lea eax, [ebp - 0xa0]
cmp dword [ecx + 0x10], 0
cmovne eax, ecx
lea ecx, [ebp - 0x70]
push eax
call fcn.0042b420
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 0xc
push eax
lea eax, [ebp - 0x70]
push eax
call edi
add esp, 8
lea eax, [ebp - 0xa0]
push eax
sub esp, 8
mov eax, esp
mov dword [eax], str.Default_working_dir:_
mov dword [eax + 4], 0x17
call fcn.00470180
add esp, 0xc
lea esi, [ebp - 0x1c8]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x2c], 8
push esi
cmovae edx, dword [ebp - 0x40]
lea esi, [ebp - 0x20c]
cmp dword [ebp - 0x44], 8
push esi
cmovae eax, dword [ebp - 0x58]
push ecx
push dword [ebp - 0x1b0]
push 0x428
push 0
push 0
push 0
push edx
push eax
push dword [ebp - 0x1b4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x56c347
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp - 0x181], 0
mov dword [ebp - 0x18c], eax
je 0x56c30b
cmp eax, 0x2e4
jne 0x56c30b
mov esi, dword [ebp - 0x194]
push esi
sub esp, 8
mov eax, esp
mov dword [eax], str.Couldnt_create_process_as_user_due_to_elevation_issues
mov dword [eax + 4], 0x37
call fcn.0042d0f0
add esp, 0xc
mov esi, 2
jmp 0x56c454
mov esi, dword [ebp - 0x194]
lea eax, [ebp - 0x18c]
push eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x190]
push esi
sub esp, 8
mov eax, esp
mov dword [eax], str.Couldnt_create_process_as_user._nProcess_path:___command_line___working_directory:___error_code_
mov dword [eax + 4], 0x68
call fcn.0056b650
add esp, 0x18
mov esi, 1
jmp 0x56c454
push 0x3e8
push dword [ebp - 0x1c8]
call fcn.0056a350
mov esi, dword [ebp - 0x194]
add esp, 8
test al, al
jne 0x56c37f
push esi
sub esp, 8
mov eax, esp
mov dword [eax], str.Waiting_for_process_initialization_failed_for_.
mov dword [eax + 4], 0x31
call fcn.0047cd00
add esp, 0xc
push dword [ebp - 0x1c4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
test eax, eax
jne 0x56c3be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18c], eax
lea eax, [ebp - 0x18c]
push eax
sub esp, 8
mov eax, esp
mov dword [eax], str.Couldnt_close_thread_handle__error_code_
mov dword [eax + 4], 0x2b
call fcn.0055c050
add esp, 0xc
push dword [ebp - 0x1c8]
call edi
test eax, eax
jne 0x56c3f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18c], eax
lea eax, [ebp - 0x18c]
push eax
sub esp, 8
mov eax, esp
mov dword [eax], str.Couldnt_close_process_handle__error_code_
mov dword [eax + 4], 0x2c
call fcn.0055c050
add esp, 0xc
cmp byte [ebp - 0x181], 0
mov ecx, str.not_elevated
mov eax, str.elevated
cmove eax, ecx
mov dword [ebp - 0x18c], eax
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x190]
lea eax, [ebp - 0x1c0]
push esi
push eax
lea eax, [ebp - 0x18c]
push eax
sub esp, 8
mov eax, esp
mov dword [eax], str.Created__process__id:___as_user._Process_path:___command_line___working_directory:_
mov dword [eax + 4], 0x5d
call fcn.0056bcd0
mov ecx, dword [ebp - 0x1a4]
add esp, 0x1c
mov eax, dword [ebp - 0x1c0]
xor esi, esi
mov dword [ecx], eax
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x56c46f
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x28]
call fcn.00431f80
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00416f30
lea ecx, [ebp - 0xa0]
call fcn.00416f30
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x56c4b1
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x40]
call fcn.00431f80
add esp, 8
xor eax, eax
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x2c], 7
cmp eax, 8
jb 0x56c4e0
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x58]
call fcn.00431f80
add esp, 8
xor eax, eax
mov dword [ebp - 0x48], 0
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
call fcn.0045e310
lea ecx, [ebp - 0x1b0]
call fcn.005683d0
lea ecx, [ebp - 0x1b4]
call fcn.00568410
lea ecx, [ebp - 0x19c]
call fcn.00568410
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056d0b2
mov esp, ebp
pop ebp
ret