Function at 0x10025380
Capabilities:
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1008d392
mov eax, dword fs:[0]
push eax
sub esp, 0x294
mov eax, dword [0x100d4254]
xor eax, esp
mov dword [esp + 0x290], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100d4254]
xor eax, esp
push eax
lea eax, [esp + 0x2a8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2bc]
lea ecx, [esp + 0x24]
mov esi, dword [esp + 0x2b8]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c0]
mov dword [esp + 0x48], esi
mov dword [esp + 0x28], eax
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_void_]
push str.winsta.dll
mov dword [esp + 0x2b4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, dword [sym.imp.Qt5Core.dll_public:_class_QDebug___thiscall_QMessageLogger::debug_void_]
mov edi, eax
mov ebp, dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QDebug::destructor_void_]
test edi, edi
je 0x1002551d
push str.WinStationQueryInformationW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100254d5
lea ecx, [esp + 0x14]
push ecx
push 0x208
lea ecx, [esp + 0xa4]
push ecx
push 0x21
push esi
push 0
call eax
test al, al
je 0x100254ad
push 0xffffffffffffffff
lea eax, [esp + 0xa0]
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.Qt5Core.dll_public:_static_class_QString___cdecl_QString::fromWCharArray_wchar_t_const___int_]
add esp, 0xc
lea ecx, [esp + 0x24]
push eax
call dword [sym.imp.Qt5Core.dll_public:_class_QString____thiscall_QString::operator_class_QString__]
lea ecx, [esp + 0x1c]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x44]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QMessageLogger::constructor_char_const___int__char_const__]
mov ecx, eax
call ebx
lea ecx, [esp + 0x24]
mov byte [esp + 0x2b0], 1
push ecx
push str.CreateRemoteSessionProcess_WinStationQueryInformationW___
mov ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug____thiscall_QDebug::operator___char_const__]
mov ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug____thiscall_QDebug::operator___class_QString_const__]
jmp 0x10025503
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x44]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QMessageLogger::constructor_char_const___int__char_const__]
mov ecx, eax
call ebx
mov byte [esp + 0x2b0], 2
push str.CreateRemoteSessionProcess_load_WinStationQueryInformationW_exec_fail
jmp 0x100254fb
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x44]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QMessageLogger::constructor_char_const___int__char_const__]
mov ecx, eax
call ebx
mov byte [esp + 0x2b0], 3
push str.CreateRemoteSessionProcess_load_WinStationQueryInformationW_fail
mov ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug____thiscall_QDebug::operator___char_const__]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2b0], 0
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push edi
call esi
push edi
call esi
mov eax, dword [esp + 0x24]
cmp dword [eax + 4], 0
jne 0x100255ce
push 0x100d5948
lea ecx, [esp + 0x18]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::constructor_class_QString_const__]
mov esi, eax
push ecx
mov ecx, esp
mov byte [esp + 0x20], 0x20
push dword [esp + 0x20]
mov byte [esp + 0x2b8], 4
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QChar::constructor_struct_QLatin1Char_]
push 0xa
push 0
push dword [esp + 0x54]
lea eax, [esp + 0x3c]
mov ecx, esi
push eax
call dword [sym.imp.Qt5Core.dll_public:_class_QString___thiscall_QString::arg_unsigned_int__int__int__class_QChar_]
push eax
lea ecx, [esp + 0x28]
call dword [sym.imp.Qt5Core.dll_public:_class_QString____thiscall_QString::operator_class_QString__]
lea ecx, [esp + 0x2c]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x14]
mov byte [esp + 0x2b0], 0
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x44]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QMessageLogger::constructor_char_const___int__char_const__]
mov ecx, eax
call ebx
push str.CreateRemoteSessionProcess_pipe_name_use_default
mov ecx, eax
mov byte [esp + 0x2b4], 5
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug____thiscall_QDebug::operator___char_const__]
lea ecx, [esp + 0x14]
mov byte [esp + 0x2b0], 0
call ebp
mov edi, dword [sym.imp.Qt5Core.dll_public:_unsigned_short_int_const____thiscall_QString::utf16_void_const]
xor esi, esi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
lea ecx, [esp + 0x3c]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x2c], eax
cmp eax, 0xffffffff
jne 0x100256d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x10025652
push 0x7d0
lea ecx, [esp + 0x28]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x1002562a
inc esi
cmp esi, 3
jl 0x100255d6
jmp 0x1002568e
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x44]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QMessageLogger::constructor_char_const___int__char_const__]
mov ecx, eax
call ebx
mov byte [esp + 0x2b0], 7
push str.pipe_open_fail_WaitNamedPipe
jmp 0x10025678
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x44]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QMessageLogger::constructor_char_const___int__char_const__]
mov ecx, eax
call ebx
mov byte [esp + 0x2b0], 6
push str.CreateRemoteSessionProcess_pipe_open_fail_not_ERROR_PIPE_BUSY
mov ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug____thiscall_QDebug::operator___char_const__]
lea ecx, [esp + 0x14]
mov byte [esp + 0x2b0], 0
call ebp
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x44]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QMessageLogger::constructor_char_const___int__char_const__]
mov ecx, eax
call ebx
push str.CreateRemoteSessionProcess_pipe_open_fail_INVALID_HANDLE_VALUE
mov ecx, eax
mov byte [esp + 0x2b4], 8
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug____thiscall_QDebug::operator___char_const__]
lea ecx, [esp + 0x14]
mov byte [esp + 0x2b0], 0
call ebp
xor bl, bl
jmp 0x10025b52
xor eax, eax
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
cmp word [str.winsta0default], ax
jne 0x100256f8
xor ecx, ecx
jmp 0x1002570f
mov ecx, str.winsta0default
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10025700
sub ecx, edx
sar ecx, 1
push ecx
push str.winsta0default
lea ecx, [esp + 0x74]
call fcn.10025ee0
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x84]
push eax
mov byte [esp + 0x2b4], 9
call dword [sym.imp.Qt5Core.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_QString::toStdWString_void_]
mov eax, dword [esp + 0x94]
lea ecx, [esp + 0x20]
add eax, dword [esp + 0x7c]
lea ebp, [eax*2 + 0x9a]
mov dword [esp + 0x14], ebp
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::constructor_void_]
push ebp
lea ecx, [esp + 0x24]
mov byte [esp + 0x2b4], 0xb
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::resize_int_]
push ebp
push 0
lea ecx, [esp + 0x28]
call dword [sym.imp.Qt5Core.dll_public:_char____thiscall_QByteArray::data_void_]
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea ecx, [esp + 0x20]
call dword [sym.imp.Qt5Core.dll_public:_char____thiscall_QByteArray::data_void_]
mov ebx, eax
mov dword [esp + 0x18], ebx
mov dword [ebx], ebp
mov dword [ebx + 8], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebx + 4], eax
lea ecx, [esp + 0x84]
mov dword [ebx + 0x40], 0x44
lea edi, [esp + 0x84]
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0x94
cmp dword [esp + 0x98], 8
mov eax, dword [esp + 0x94]
cmovae ecx, dword [esp + 0x84]
cmovae edi, dword [esp + 0x84]
lea ebx, [ecx + eax*2]
lea ecx, [esp + 0x20]
call dword [sym.imp.Qt5Core.dll_public:_char____thiscall_QByteArray::data_void_]
sub ebx, edi
add eax, 0x94
sar ebx, 1
lea ecx, [ebx + ebx]
push ecx
push edi
push eax
call dword [sym.imp.MSVCR120.dll_memmove]
mov eax, dword [esp + 0xa0]
lea ecx, [esp + 0x78]
add esp, 0xc
lea edi, [esp + 0x6c]
lea ebp, [eax*2 + 0x96]
mov eax, dword [esp + 0x18]
mov dword [eax + 0x48], ebp
cmp dword [esp + 0x80], 8
mov eax, dword [esp + 0x7c]
cmovae ecx, dword [esp + 0x6c]
cmovae edi, dword [esp + 0x6c]
lea ebx, [ecx + eax*2]
lea ecx, [esp + 0x20]
call dword [sym.imp.Qt5Core.dll_public:_char____thiscall_QByteArray::data_void_]
sub ebx, edi
add eax, ebp
sar ebx, 1
lea ecx, [ebx + ebx]
push ecx
push edi
push eax
call dword [sym.imp.MSVCR120.dll_memmove]
add esp, 0xc
push 0
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x1c]
lea ecx, [esp + 0x2c]
call dword [sym.imp.Qt5Core.dll_public:_char____thiscall_QByteArray::data_void_]
mov esi, dword [esp + 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x100258bc
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x44]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QMessageLogger::constructor_char_const___int__char_const__]
mov ecx, eax
mov eax, dword [sym.imp.Qt5Core.dll_public:_class_QDebug___thiscall_QMessageLogger::debug_void_]
call eax
push str.Failed_to_send_CreateProcessAsUser_request
mov ecx, eax
mov byte [esp + 0x2b4], 0xc
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug____thiscall_QDebug::operator___char_const__]
jmp 0x10025a5f
push 0
lea eax, [esp + 0x34]
push eax
push 0x1c
lea eax, [esp + 0x58]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1002590d
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x44]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QMessageLogger::constructor_char_const___int__char_const__]
mov ecx, eax
mov eax, dword [sym.imp.Qt5Core.dll_public:_class_QDebug___thiscall_QMessageLogger::debug_void_]
call eax
push str.Failed_to_receive_CreateProcessAsUser_response
mov ecx, eax
mov byte [esp + 0x2b4], 0xd
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug____thiscall_QDebug::operator___char_const__]
jmp 0x10025a5f
cmp dword [esp + 0x30], 0x1c
je 0x1002596c
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x44]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QMessageLogger::constructor_char_const___int__char_const__]
mov ecx, eax
mov eax, dword [sym.imp.Qt5Core.dll_public:_class_QDebug___thiscall_QMessageLogger::debug_void_]
call eax
push str.CreateRemoteSessionProcess_bytes___sizeof_response_
mov ecx, eax
mov byte [esp + 0x2b4], 0xe
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug____thiscall_QDebug::operator___char_const__]
mov eax, dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QDebug::destructor_void_]
lea ecx, [esp + 0x18]
mov byte [esp + 0x2b0], 0xb
call eax
push 0x2c3
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor bl, bl
jmp 0x10025ad7
cmp dword [esp + 0x50], 0
jne 0x10025a00
push dword [esp + 0x54]
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [esp + 0x14]
push eax
call fcn.10026420
add esp, 4
mov esi, eax
lea eax, [esp + 0x18]
mov byte [esp + 0x2b0], 0xf
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x44]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QMessageLogger::constructor_char_const___int__char_const__]
mov ecx, eax
mov eax, dword [sym.imp.Qt5Core.dll_public:_class_QDebug___thiscall_QMessageLogger::debug_void_]
call eax
push esi
push str.CreateRemoteSessionProcess__response.success_error
mov ecx, eax
mov byte [esp + 0x2b8], 0x10
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug____thiscall_QDebug::operator___char_const__]
mov ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug____thiscall_QDebug::operator___class_QString_const__]
mov eax, dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QDebug::destructor_void_]
lea ecx, [esp + 0x18]
mov byte [esp + 0x2b0], 0xf
call eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x2b0], 0xb
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
xor bl, bl
jmp 0x10025ad7
cmp dword [esp + 0x58], 0
jne 0x10025a76
push dword [esp + 0x60]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [esp + 0x58], eax
test eax, eax
jne 0x10025a76
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x44]
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QMessageLogger::constructor_char_const___int__char_const__]
mov ecx, eax
mov eax, dword [sym.imp.Qt5Core.dll_public:_class_QDebug___thiscall_QMessageLogger::debug_void_]
call eax
push dword [esp + 0x60]
mov ecx, eax
mov byte [esp + 0x2b4], 0x11
push str.CreateRemoteSessionProcess_Failed_to_open_process
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug____thiscall_QDebug::operator___char_const__]
mov ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug____thiscall_QDebug::operator___unsigned_long_int_]
mov eax, dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QDebug::destructor_void_]
lea ecx, [esp + 0x18]
mov byte [esp + 0x2b0], 0xb
call eax
xor bl, bl
jmp 0x10025ad7
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x28]
movdqu xmm0, xmmword [esp + 0x58]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x44]
movdqu xmmword [esi], xmm0
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QMessageLogger::constructor_char_const___int__char_const__]
mov ecx, eax
mov eax, dword [sym.imp.Qt5Core.dll_public:_class_QDebug___thiscall_QMessageLogger::debug_void_]
call eax
push dword [esi + 8]
mov ecx, eax
mov byte [esp + 0x2b4], 0x12
push str.CreateRemoteSessionProcess_pid
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug____thiscall_QDebug::operator___char_const__]
mov ecx, eax
call dword [sym.imp.Qt5Core.dll_public:_class_QDebug____thiscall_QDebug::operator___unsigned_long_int_]
mov eax, dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QDebug::destructor_void_]
lea ecx, [esp + 0x28]
mov byte [esp + 0x2b0], 0xb
call eax
mov bl, 1
lea ecx, [esp + 0x20]
mov byte [esp + 0x2b0], 0xa
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QByteArray::destructor_void_]
cmp dword [esp + 0x98], 8
jb 0x10025b02
push dword [esp + 0x84]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esp + 0x98], 7
cmp dword [esp + 0x80], 8
mov dword [esp + 0x94], 0
mov word [esp + 0x84], ax
jb 0x10025b38
push dword [esp + 0x6c]
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
xor eax, eax
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], 0
mov word [esp + 0x6c], ax
lea ecx, [esp + 0x24]
mov dword [esp + 0x2b0], 0xffffffff
call dword [sym.imp.Qt5Core.dll_public:_void___thiscall_QString::destructor_void_]
mov al, bl
mov ecx, dword [esp + 0x2a8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x290]
xor ecx, esp
call fcn.10086f4e
add esp, 0x2a0
ret