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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x422213
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x432070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
push 0xfa0
push 0x400
push 0x400
push 0xff
push 6
push 3
push str..pipe_avt_getprocaddr
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov esi, eax
mov dword [ebp - 0x25c], esi
cmp esi, 0xffffffff
mov dword [ebp - 4], 0
sete al
test al, al
je 0x404ee5
push str.CreateNamedPipe_failed_with:_0x
push 0x432f98
call fcn.00401430
mov edi, eax
add esp, 8
test edi, edi
jne 0x404e88
xor ecx, ecx
jmp 0x404e8f
mov eax, dword [edi]
mov ecx, dword [eax + 4]
add ecx, edi
mov eax, dword [ecx + 0x14]
and eax, 0xfffff9ff
or eax, 0x800
push 0xa
mov dword [ecx + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, edi
call fcn.00402270
push eax
call fcn.004010d0
add esp, 8
cmp esi, 0xffffffff
je 0x404ec4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00407c2e
mov esp, ebp
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x404ef6
mov al, 1
jmp 0x404f04
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
sete al
test al, al
je 0x404ee5
push 0x20a
lea eax, [ebp - 0x24c]
push 0
push eax
call fcn.0040a5f0
add esp, 0xc
lea eax, [ebp - 0x250]
push 0
push eax
push 0x20a
lea eax, [ebp - 0x24c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4050af
mov eax, dword [ebp - 0x250]
test eax, eax
je 0x4050af
lea edi, [ebp - 0x24c]
add edi, eax
lea ecx, [ebp - 0x24c]
mov eax, edi
sub eax, ecx
push eax
mov eax, ecx
push 0x3a
push eax
call fcn.00409580
mov ecx, dword [ebp - 0x250]
add esp, 0xc
test eax, eax
cmovne edi, eax
lea eax, [ebp - 0x24c]
add eax, ecx
cmp edi, eax
je 0x4050af
lea eax, [ebp - 0x24c]
mov dword [ebp - 0x2c], 0xf
mov dword [ebp - 0x30], 0
mov byte [ebp - 0x40], 0
cmp eax, edi
je 0x404fc3
lea ecx, [ebp - 0x24c]
mov eax, edi
sub eax, ecx
push eax
mov eax, ecx
lea ecx, [ebp - 0x40]
push eax
call fcn.00403d90
mov ecx, dword [ebp - 0x250]
lea eax, [ebp - 0x24c]
mov byte [ebp - 4], 1
add eax, ecx
mov dword [ebp - 0x14], 0xf
lea ecx, [edi + 1]
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp ecx, eax
je 0x404ff4
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.00403d90
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push 1
cmovae eax, dword [ebp - 0x40]
xorps xmm0, xmm0
push 0
push eax
movlpd qword [ebp - 0x258], xmm0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
mov ebx, eax
cmovae ecx, dword [ebp - 0x28]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
test ecx, ecx
je 0x40504f
mov eax, ebx
xor edi, edi
cdq
cmp edx, edi
ja 0x40504f
jb 0x40503f
cmp eax, ecx
ja 0x40504f
sub ecx, eax
mov dword [ebp - 0x258], ecx
sbb edi, edx
mov dword [ebp - 0x254], edi
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push 0
lea eax, [ebp - 0x260]
push eax
push 8
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x405084
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.00403e90
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x4050af
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00403e90
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
jmp 0x404ee5