Function at 0x49f790
Capabilities:
Connect pipe
Create pipe
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6bcefe
mov eax, dword fs:[0]
push eax
mov eax, 0x10090
call fcn.0063c0c0
mov eax, dword [0x7f3784]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x10058], esi
mov dword [ebp - 0x10054], esi
mov dword [ebp - 0x10050], eax
push 0
push 0x7175c0
lea ecx, [ebp - 0x10028]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10018], 0
mov dword [ebp - 0x10014], 0xf
mov byte [ebp - 0x10028], 0
call fcn.0049f3b0
lea eax, [ebp - 0x10064]
mov byte [ebp - 4], 1
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea eax, [ebp - 0x10030]
mov dword [ebp - 0x10064], 0
push eax
mov dword [ebp - 0x10030], 0
mov word [ebp - 0x1002c], 0x100
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x49f910
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_initialize_group_sid__Error___d
push 0
push 2
push str.IPCXMLUtilityLog
push dword [0x7f9e68]
call fcn.005645a0
movups xmm0, xmmword [ebp - 0x10028]
mov dword [esi + 0x10], 0
add esp, 0x18
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x10018]
movq qword [esi + 0x10], xmm0
mov edx, dword [ebp + 0x20]
mov byte [ebp - 0x10028], 0
mov dword [ebp - 0x10014], 0xf
mov dword [ebp - 0x10018], 0
cmp edx, 0x10
jb 0x49f8f3
mov ecx, dword [ebp + 0xc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x49f8e9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a005c
push edx
push ecx
call fcn.0063bb18
add esp, 8
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.0063bad7
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10064]
xorps xmm0, xmm0
mov dword [ebp - 0x10080], eax
lea eax, [ebp - 0x10068]
push eax
push 0
lea eax, [ebp - 0x1009c]
mov dword [ebp - 0x1007c], 0xc
push eax
push 1
mov dword [ebp - 0x10074], 0
movlpd qword [ebp - 0x10090], xmm0
mov dword [ebp - 0x10098], 2
mov dword [ebp - 0x1009c], 0xc0100000
mov dword [ebp - 0x10094], 0
mov dword [ebp - 0x10088], 0
mov dword [ebp - 0x10084], 5
mov dword [ebp - 0x10068], 0
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
je 0x49f9a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_set_acl_entries__Error___d
jmp 0x49f868
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
jne 0x49f9ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_initialize_security_descriptor__Error___d
jmp 0x49f868
push 0
push dword [ebp - 0x10068]
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
jne 0x49fa57
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Failed_to_set_DACL__Error___d
push 0
push 2
push str.IPCXMLUtilityLog
push dword [0x7f9e68]
call fcn.005645a0
add esp, 0x18
lea eax, [ebp - 0x10028]
mov ecx, esi
push eax
call fcn.0048d690
mov edx, dword [ebp - 0x10014]
cmp edx, 0x10
jb 0x49f8a4
mov ecx, dword [ebp - 0x10028]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x49fa48
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a005c
push edx
push ecx
call fcn.0063bb18
add esp, 8
jmp 0x49f8a4
lea eax, [ebp - 0x1007c]
mov dword [ebp - 0x10078], edi
push eax
push 0
push 0x400
push 0x400
push 0xff
push 1
push 0xc0003
push dword [ebp - 0x10050]
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov edi, eax
test edi, edi
je 0x49ffa1
cmp edi, 0xffffffff
je 0x49ffa1
push 0
lea eax, [ebp - 0x1005c]
mov dword [ebp - 0x1005c], 0
push eax
push 1
push str.S:_ML__NW___LW_
mov dword [ebp - 0x10050], 0
mov dword [ebp - 0x10058], 0
mov dword [ebp - 0x10070], 0
mov byte [ebp - 0x10049], 0
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
je 0x49ff2d
lea eax, [ebp - 0x10070]
push eax
lea eax, [ebp - 0x10050]
push eax
lea eax, [ebp - 0x10058]
push eax
push dword [ebp - 0x1005c]
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorSacl]
test eax, eax
je 0x49fb4d
push dword [ebp - 0x10050]
push 0
push 0
push 0
push 0x10
push 6
push edi
call dword [sym.imp.ADVAPI32.dll_SetSecurityInfo]
test eax, eax
jne 0x49fb30
mov byte [ebp - 0x10049], 1
jmp 0x49fb4d
push eax
push str.Failed_to_SetSecurityInfo__Error___d
push 0
push 2
push str.IPCXMLUtilityLog
push dword [0x7f9e68]
call fcn.005645a0
add esp, 0x18
push dword [ebp - 0x1005c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp byte [ebp - 0x10049], 0
je 0x49ff2d
mov dword [ebp - 0x10050], 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10058], eax
test esi, esi
jne 0x49fb96
cmp eax, 0x217
je 0x49fc41
mov esi, dword [ebp - 0x10050]
inc esi
push 0x64
mov dword [ebp - 0x10050], esi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0x14
jl 0x49fb70
cmp dword [ebp - 0x10058], 0x217
je 0x49fc41
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.IPC_Server_:_Failed_to_make_connection_on_named_pipe__Error___d
push 0
push 2
push str.IPCXMLUtilityLog
push dword [0x7f9e68]
call fcn.005645a0
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x10054]
lea eax, [ebp - 0x10028]
push eax
mov ecx, esi
call fcn.0048d690
mov edx, dword [ebp - 0x10014]
cmp edx, 0x10
jb 0x49f8a4
mov ecx, dword [ebp - 0x10028]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x49fc32
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a005c
push edx
push ecx
call fcn.0063bb18
add esp, 8
jmp 0x49f8a4
sub esp, 0x18
lea eax, [ebp + 0xc]
mov ecx, esp
push eax
call fcn.0048d700
push edi
call fcn.004a12e0
add esp, 0x1c
test al, al
jne 0x49fcba
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x10054]
lea eax, [ebp - 0x10028]
push eax
mov ecx, esi
call fcn.0048d690
mov edx, dword [ebp - 0x10014]
cmp edx, 0x10
jb 0x49f8a4
mov ecx, dword [ebp - 0x10028]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x49fcab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a005c
push edx
push ecx
call fcn.0063bb18
add esp, 8
jmp 0x49f8a4
xor esi, esi
nop dword [eax]
push 0
lea eax, [ebp - 0x10060]
mov dword [ebp - 0x10060], 0
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x49feac
cmp dword [ebp - 0x10060], 0
jne 0x49fd89
push 0x64
inc esi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 0x96
jl 0x49fcc0
cmp dword [ebp - 0x10060], 0
jne 0x49fd89
push str.IPC_Server_:_Client_didnt_connect_to_the_server
push 0
push 2
push str.IPCXMLUtilityLog
push dword [0x7f9e68]
call fcn.005645a0
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x10054]
lea eax, [ebp - 0x10028]
push eax
mov ecx, esi
call fcn.0048d690
mov edx, dword [ebp - 0x10014]
cmp edx, 0x10
jb 0x49f8a4
mov ecx, dword [ebp - 0x10028]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x49fd7a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a005c
push edx
push ecx
call fcn.0063bb18
add esp, 8
jmp 0x49f8a4
push 0
lea eax, [ebp - 0x1006c]
mov dword [ebp - 0x1006c], 0
push eax
push 0x10000
lea eax, [ebp - 0x10010]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49fe2b
mov eax, dword [ebp - 0x1006c]
and eax, 0xfffffffe
cmp eax, 0x10000
jae 0x4a0061
xor ecx, ecx
mov word [ebp + eax - 0x10010], cx
lea eax, [ebp - 0x10010]
push eax
lea ecx, [ebp - 0x10048]
call fcn.0049ece0
cmp dword [ebp - 0x10034], 8
lea ecx, [ebp - 0x10048]
mov eax, dword [ebp - 0x10038]
cmovae ecx, dword [ebp - 0x10048]
mov byte [ebp - 4], 2
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x10048]
cmovae ecx, dword [ebp - 0x10048]
push eax
push ecx
lea ecx, [ebp - 0x10028]
call fcn.0049eb20
lea ecx, [ebp - 0x10048]
call fcn.00488f90
jmp 0x49fe4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.IPC_Server_:_Failed_to_read_data_from_the_pipe._d
push 0
push 2
push str.IPCXMLUtilityLog
push dword [0x7f9e68]
call fcn.005645a0
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x10054]
lea eax, [ebp - 0x10028]
push eax
mov ecx, esi
call fcn.0048d690
mov edx, dword [ebp - 0x10014]
cmp edx, 0x10
jb 0x49f8a4
mov ecx, dword [ebp - 0x10028]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x49fe9d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a005c
push edx
push ecx
call fcn.0063bb18
add esp, 8
jmp 0x49f8a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.IPC_Server_:_Failed_to_read_data_from_the_pipe__Error___d
push 0
push 2
push str.IPCXMLUtilityLog
push dword [0x7f9e68]
call fcn.005645a0
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x10054]
lea eax, [ebp - 0x10028]
push eax
mov ecx, esi
call fcn.0048d690
mov edx, dword [ebp - 0x10014]
cmp edx, 0x10
jb 0x49f8a4
mov ecx, dword [ebp - 0x10028]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x49ff1e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a005c
push edx
push ecx
call fcn.0063bb18
add esp, 8
jmp 0x49f8a4
push str.IPC_Server_:_Failed_to_create_low_integrity_outbound_pipe_instance
push 0
push 2
push str.IPCXMLUtilityLog
push dword [0x7f9e68]
call fcn.005645a0
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10028]
mov ecx, esi
push eax
call fcn.0048d690
mov edx, dword [ebp - 0x10014]
cmp edx, 0x10
jb 0x49f8a4
mov ecx, dword [ebp - 0x10028]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x49ff92
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a005c
push edx
push ecx
call fcn.0063bb18
add esp, 8
jmp 0x49f8a4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.IPC_Server_:_Failed_to_create_outbound_pipe_instance__Error___d
push 0
push 2
push str.IPCXMLUtilityLog
push dword [0x7f9e68]
call fcn.005645a0
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10028]
mov ecx, esi
push eax
call fcn.0048d690
mov edx, dword [ebp - 0x10014]
cmp edx, 0x10
jb 0x4a000f
mov ecx, dword [ebp - 0x10028]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4a0005
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4a005c
push edx
push ecx
call fcn.0063bb18
add esp, 8
mov edx, dword [ebp + 0x20]
mov dword [ebp - 0x10018], 0
mov dword [ebp - 0x10014], 0xf
mov byte [ebp - 0x10028], 0
cmp edx, 0x10
jb 0x49f8f3
mov ecx, dword [ebp + 0xc]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x49f8e9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x49f8e9
call fcn.0065a824
call fcn.0063bfda
int3