Function at 0x49fd00
Capabilities:
Create pipe
Get token privileges
Resolve function by parsing pe exports
Write file on windows
Write pipe

Disassembly:
push 0xffffffffffffffff
push 0x4da4d0
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56e01c]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov esi, dword [0x570a24]
push 0x4f81e4
lea ecx, [esp + 0x24]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_char_const__]
xor ebx, ebx
lea edi, [esp + 0x20]
mov dword [esp + 0xc0], ebx
call fcn.004acdb0
lea eax, [esp + 0x3c]
push eax
push 8
mov dword [esp + 0x44], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push 0x34
lea ecx, [esp + 0x84]
push ebx
push ecx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x88], ebx
call sub.MSVCR90.dll_memset
mov ecx, dword [esp + 0x48]
add esp, 0xc
lea edx, [esp + 0x68]
push edx
push 0x38
lea eax, [esp + 0x84]
push eax
push 0xa
push ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov edx, dword [esp + 0x3c]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebp
push 0x4f7fc4
lea ecx, [esp + 0x54]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_char_const__]
push 0x4f7fc0
lea ecx, [esp + 0x50]
mov byte [esp + 0xc4], 1
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_char_const__]
lea eax, [esp + 0x60]
push eax
mov byte [esp + 0xc4], 2
call dword [sym.imp.QtCore4.dll_public:_static_class_QDir___cdecl_QDir::home_void_]
add esp, 4
lea ecx, [esp + 0x74]
push ecx
mov ecx, eax
mov byte [esp + 0xc4], 3
call dword [sym.imp.QtCore4.dll_public:_class_QString___thiscall_QDir::dirName_void_]
lea edx, [esp + 0x40]
push edx
push 1
lea ecx, [esp + 0x58]
push ecx
push 1
lea edx, [esp + 0x5c]
mov byte [esp + 0xd0], 4
mov edi, dword [sym.imp.QtCore4.dll_public:_class_QString____thiscall_QString::remove_class_QString_const___enum_Qt::CaseSensitivity_]
push edx
mov ecx, eax
call edi
mov ecx, eax
call edi
mov edi, dword [sym.imp.QtCore4.dll_public:_class_QString___thiscall_QString::trimmed_void_]
mov ecx, eax
call edi
lea ecx, [esp + 0x74]
mov byte [esp + 0xc0], 6
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x60]
mov byte [esp + 0xc0], 7
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QDir::destructor_void_]
lea ecx, [esp + 0x4c]
mov byte [esp + 0xc0], 8
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x50]
mov byte [esp + 0xc0], 9
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x58], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov ecx, dword [esp + 0x54]
push 0xa
push ecx
lea edx, [esp + 0x3c]
push edx
call dword [sym.imp.QtCore4.dll_public:_static_class_QString___cdecl_QString::number_unsigned_long_int__int_]
add esp, 0xc
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0xc4], 0xa
call edi
mov edi, eax
push str._UID_
lea ecx, [esp + 0x74]
mov byte [esp + 0xc4], 0xb
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_char_const__]
push edi
push eax
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0xcc], 0xc
call fcn.004028f0
add esp, 0xc
lea ecx, [esp + 0x70]
mov byte [esp + 0xc0], 0xe
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x58]
mov byte [esp + 0xc0], 0xf
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
mov dl, byte [esi + 0x20]
mov byte [esp + 0x18], 0x20
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x4e]
mov byte [esp + 0x23], dl
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QChar::constructor_struct_QLatin1Char_]
mov edi, dword [sym.imp.QtCore4.dll_public:_class_QString___thiscall_QString::arg_class_QString_const___int__class_QChar_const__]
lea ecx, [esp + 0x4a]
push ecx
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x84]
push eax
mov ecx, 0x571a1c
call edi
lea ecx, [esp + 0x2c]
push ecx
push eax
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0xcc], 0x10
call fcn.004028f0
add esp, 0xc
lea ecx, [esp + 0x78]
mov byte [esp + 0xc0], 0x12
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
mov byte [esp + 0x18], 0x20
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x3e]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QChar::constructor_struct_QLatin1Char_]
lea ecx, [esp + 0x3a]
push ecx
push ebx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x70]
push eax
mov ecx, 0x571a20
call edi
push eax
lea ecx, [esp + 0x60]
push str..pipe_
push ecx
mov byte [esp + 0xcc], 0x13
call fcn.00402970
lea edx, [esp + 0x38]
push edx
push eax
lea eax, [esp + 0x3c]
push eax
mov byte [esp + 0xd8], 0x14
call fcn.004028f0
add esp, 0x18
lea ecx, [esp + 0x5c]
mov byte [esp + 0xc0], 0x16
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x64]
mov byte [esp + 0xc0], 0x17
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
mov edi, dword [sym.imp.QtCore4.dll_public:_unsigned_short_int_const____thiscall_QString::utf16_void_const]
lea ecx, [esp + 0x24]
call edi
push eax
push ebx
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [esi + 0xc], eax
cmp byte [esp + 0x1f], bl
je 0x4a0163
cmp eax, ebx
jne 0x4a0163
cmp byte [0x570a2e], bl
jne 0x4a0251
lea ecx, [esp + 0x24]
call edi
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0x14
mov dword [esi + 0xc], eax
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
mov ebp, eax
add esp, 4
mov dword [esp + 0x44], ebp
mov byte [esp + 0xc0], 0x19
cmp ebp, ebx
je 0x4a0078
push ebx
mov ecx, ebp
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QThread::constructor_class_QObject__]
mov dword [ebp], 0x533880
mov eax, ebp
jmp 0x4a007a
xor eax, eax
push ebx
push 0x3e8
push 0x64
mov byte [esp + 0xcc], 0x17
push 0x64
mov dword [esi + 8], eax
mov dword [eax + 8], esi
mov ecx, dword [esi + 8]
push 0xff
push 6
mov byte [ecx + 0xc], bl
push 0x40080001
lea ecx, [esp + 0x44]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov edx, dword [esi + 8]
mov dword [edx + 0x10], eax
mov ecx, dword [esi + 8]
push 7
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QThread::start_enum_QThread::Priority_]
mov ecx, dword [esi + 8]
mov edi, dword [sym.imp.QtCore4.dll_public:_bool___thiscall_QThread::isRunning_void_const]
call edi
test al, al
jne 0x4a00ee
mov ebp, dword [sym.imp.QtCore4.dll_public:_static_void___cdecl_QCoreApplication::processEvents_class_QFlags_enum_QEventLoop::ProcessEventsFlag__]
push ecx
mov eax, esp
mov dword [esp + 0x48], esp
mov dword [eax], ebx
call ebp
mov ecx, dword [esi + 8]
add esp, 4
call edi
test al, al
je 0x4a00d7
lea ecx, [esp + 0x28]
mov byte [esp + 0xc0], 0x12
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x24]
mov byte [esp + 0xc0], 0xf
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x2c]
mov byte [esp + 0xc0], 0xa
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x34]
mov byte [esp + 0xc0], 9
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x40]
mov byte [esp + 0xc0], bl
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x20]
mov dword [esp + 0xc0], 0xffffffff
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
mov al, 1
jmp 0x4a02c1
push ebx
push ebx
push 3
push ebx
push ebx
push 0x40000000
lea ecx, [esp + 0x40]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x44], eax
cmp eax, 0xffffffff
jne 0x4a019e
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str.initObjectOrSendParams___5
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_char_const__]
call fcn.004ae030
add esp, 4
push 0x4f81e4
lea ecx, [esp + 0x34]
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::constructor_char_const__]
mov eax, dword [esp + 0xc8]
mov byte [esp + 0xc0], 0x18
cmp dword [eax], 1
mov dword [esp + 0x18], 1
jle 0x4a020c
cmp dword [esp + 0x18], 1
jle 0x4a01df
push 0x4f8df0
lea ecx, [esp + 0x34]
call dword [sym.imp.QtCore4.dll_public:_class_QString____thiscall_QString::append_char_const__]
mov ecx, dword [esp + 0xcc]
mov edx, dword [esp + 0x18]
mov eax, dword [ecx + edx*4]
push eax
lea ecx, [esp + 0x34]
call dword [sym.imp.QtCore4.dll_public:_class_QString____thiscall_QString::append_char_const__]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xc8]
inc eax
cmp eax, dword [ecx]
mov dword [esp + 0x18], eax
jl 0x4a01c9
mov edx, dword [esp + 0x30]
mov dword [esp + 0x6c], ebx
mov eax, dword [edx + 8]
push ebx
lea ecx, [esp + 0x70]
push ecx
lea edx, [eax + eax]
push edx
lea ecx, [esp + 0x3c]
call edi
mov edi, dword [esp + 0x50]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call ebp
mov eax, dword [esi + 0xc]
push eax
call ebp
lea ecx, [esp + 0x30]
mov dword [esi + 0xc], ebx
mov byte [esp + 0xc0], 0x17
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x28]
mov byte [esp + 0xc0], 0x12
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x24]
mov byte [esp + 0xc0], 0xf
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x2c]
mov byte [esp + 0xc0], 0xa
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x34]
mov byte [esp + 0xc0], 9
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x40]
mov byte [esp + 0xc0], bl
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
lea ecx, [esp + 0x20]
mov dword [esp + 0xc0], 0xffffffff
call dword [sym.imp.QtCore4.dll_public:_void___thiscall_QString::destructor_void_]
xor al, al
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb0
ret 8