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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x501b84
mov eax, dword fs:[0]
push eax
sub esp, 0x200
mov eax, dword [0x55a064]
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 0x4e6f0f
sub esp, 8
mov eax, esp
mov dword [eax], str.Failed_to_get_active_console_session_ID.
mov dword [eax + 4], 0x28
call fcn.004271c0
add esp, 8
mov eax, 1
jmp 0x4e7522
lea ecx, [ebp - 0x198]
push ecx
push eax
call sub.WTSAPI32.dll_WTSQueryUserToken
test eax, eax
jne 0x4e6f57
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.00427510
add esp, 0xc
mov eax, 1
jmp 0x4e7522
cmp byte [ebp + 0x1c], 0
je 0x4e7007
cmp byte [ebp - 0x181], 0
je 0x4e7007
push dword [ebp - 0x198]
call fcn.004e76a0
add esp, 4
test al, al
jne 0x4e7007
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.004352a0
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 0x4e6fff
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.00427510
add esp, 0xc
mov eax, 1
jmp 0x4e7522
mov eax, dword [ebp - 0x1a8]
jmp 0x4e702e
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.004352a0
mov eax, dword [ebp - 0x198]
add esp, 0xc
mov dword [ebp - 0x1a8], eax
push eax
lea ecx, [ebp - 0x19c]
call fcn.004e6460
lea eax, [ebp - 0x1b8]
mov dword [ebp - 4], 0
push eax
push dword [ebp - 0x1a0]
push dword [ebp - 0x19c]
call fcn.004e7540
add esp, 0xc
test al, al
jne 0x4e706a
mov esi, 1
jmp 0x4e7515
push dword [ebp - 0x1b8]
lea ecx, [ebp - 0x1b4]
call fcn.004e6460
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 0x4e70d8
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.00427510
add esp, 0xc
mov esi, 1
jmp 0x4e750a
push dword [ebp - 0x1ac]
lea ecx, [ebp - 0x1b0]
call fcn.004e6460
push str.WinSta0Default
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 2
call fcn.0042fe80
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.00415750
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.004352a0
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 0x4e7347
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp - 0x181], 0
mov dword [ebp - 0x18c], eax
je 0x4e730b
cmp eax, 0x2e4
jne 0x4e730b
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.00446e70
add esp, 0xc
mov esi, 2
jmp 0x4e7454
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.004e6660
add esp, 0x18
mov esi, 1
jmp 0x4e7454
push 0x3e8
push dword [ebp - 0x1c8]
call fcn.004e5f70
mov esi, dword [ebp - 0x194]
add esp, 8
test al, al
jne 0x4e737f
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.004347a0
add esp, 0xc
push dword [ebp - 0x1c4]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
test eax, eax
jne 0x4e73be
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.004c8a00
add esp, 0xc
push dword [ebp - 0x1c8]
call edi
test eax, eax
jne 0x4e73f7
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.004c8a00
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.004e6ce0
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 0x4e746f
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x28]
call fcn.00418150
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.00411450
lea ecx, [ebp - 0xa0]
call fcn.00411450
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x4e74b1
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x40]
call fcn.00418150
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 0x4e74e0
lea eax, [eax*2 + 2]
push eax
push dword [ebp - 0x58]
call fcn.00418150
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.0042fe70
lea ecx, [ebp - 0x1b0]
call fcn.004e64f0
lea ecx, [ebp - 0x1b4]
call fcn.004e6530
lea ecx, [ebp - 0x19c]
call fcn.004e6530
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.004e9056
mov esp, ebp
pop ebp
ret