Function at 0x507780
Capabilities:
Create process on windows
Create process suspended
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push eax
mov eax, 0xec20
call fcn.0057e5f0
sub esp, eax
mov esi, edx
lea ecx, [ebp - 0xebf8]
mov eax, dword [esp + eax]
lea edx, [eax*4]
mov ebx, eax
lea eax, [esi + esi]
mov edi, edx
lea edx, [ebp - 0xebf4]
or edi, eax
mov eax, edi
mov dword [ebp - 0xebfc], edi
mov edi, str.message_read
call fcn.00506600
call fcn.0057d110
test esi, esi
mov dword [ebp - 0xec00], esi
mov esi, str.message_mode
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0xcad
mov eax, str.byte_read
cmove edi, eax
test ebx, ebx
mov eax, str.byte_mode
mov dword [esp], str.testing__s___s_server__client_writes..._n
cmove esi, eax
mov dword [esp + 8], edi
mov dword [esp + 4], esi
call fcn.004f61b0
mov ecx, dword [ebp - 0xec00]
mov dword [esp], ebx
mov dword [esp + 4], ecx
mov edx, dword [ebp - 0xebf4]
mov ecx, 0x1388
mov eax, dword [ebp - 0xebf8]
call reloc.kernel32.dll_VerifyVersionInfoA
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0xcb0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], str.testing__s___s_client__server_writes..._n
call fcn.004f61b0
mov esi, dword [ebp - 0xec00]
mov dword [esp], ebx
mov ecx, 0x1770
mov dword [esp + 4], esi
mov edx, dword [ebp - 0xebf8]
mov eax, dword [ebp - 0xebf4]
call reloc.kernel32.dll_VerifyVersionInfoA
mov eax, dword [ebp - 0xebf4]
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0xebf8]
sub esp, 4
mov dword [esp], eax
call ebx
lea edx, [ebp - 0xea6c]
sub esp, 4
mov dword [esp], edx
mov dword [esp + 8], 0xea60
mov dword [esp + 4], 0xaa
call dword [sym.imp.msvcrt.dll_memset]
mov edi, dword [ebp - 0xebfc]
lea edx, [ebp - 0xebf8]
mov ecx, edx
lea edx, [ebp - 0xebf4]
mov eax, edi
call fcn.00506600
lea eax, [ebp - 0xebdc]
mov dword [esp], 0x1b58
mov dword [esp + 4], eax
lea eax, [ebp - 0xea6c]
mov edx, dword [ebp - 0xebf8]
mov ecx, eax
mov eax, 0xcba
call fcn.004f6890
mov edx, dword [ebp - 0xebf8]
mov ecx, 0x6d
mov eax, 0xcbb
call fcn.004f75f0
mov esi, eax
mov eax, dword [ebp - 0xebf4]
mov dword [esp], eax
call ebx
lea eax, [ebp - 0xebdc]
sub esp, 4
mov ecx, eax
mov eax, 0xcbd
mov dword [esp], 0x6d
mov edx, dword [ebp - 0xebf8]
call fcn.005046a0
mov edx, esi
mov eax, 0xcbe
call fcn.004f6a60
mov eax, dword [ebp - 0xebf8]
mov dword [esp], eax
call ebx
lea eax, [ebp - 0xebf8]
lea edx, [ebp - 0xebf4]
sub esp, 4
mov ecx, eax
mov eax, edi
call fcn.00506600
lea eax, [ebp - 0xebdc]
mov dword [esp], 0x1b58
mov dword [esp + 4], eax
lea eax, [ebp - 0xea6c]
mov edx, dword [ebp - 0xebf4]
mov ecx, eax
mov eax, 0xcc3
call fcn.004f6890
mov edx, dword [ebp - 0xebf4]
mov ecx, 0x6d
mov eax, 0xcc4
call fcn.004f75f0
mov esi, eax
mov eax, dword [ebp - 0xebf8]
mov dword [esp], eax
call ebx
lea eax, [ebp - 0xebdc]
sub esp, 4
mov ecx, eax
mov eax, 0xcc6
mov dword [esp], 0x6d
mov edx, dword [ebp - 0xebf4]
call fcn.005046a0
mov edx, esi
mov eax, 0xcc7
call fcn.004f6a60
mov eax, dword [ebp - 0xebf4]
mov dword [esp], eax
call ebx
lea eax, [ebp - 0xebf8]
lea edx, [ebp - 0xebf4]
mov dword [ebp - 0xebfc], edi
sub esp, 4
mov ecx, eax
mov eax, edi
call fcn.00506600
lea edx, [ebp - 0xebdc]
lea edi, [ebp - 0xebc8]
mov dword [esp], 0x1b58
mov dword [esp + 4], edx
lea edx, [ebp - 0xea6c]
mov eax, 0xccc
mov ecx, edx
mov edx, dword [ebp - 0xebf4]
call fcn.004f6890
mov dword [esp + 4], edi
lea edx, [ebp - 0xea6c]
mov eax, 0xccd
mov dword [esp], 0x1b58
mov ecx, edx
mov edx, dword [ebp - 0xebf8]
call fcn.004f6890
mov edx, dword [ebp - 0xebf4]
mov ecx, 0xe9
mov eax, 0xcce
call fcn.004f75f0
mov dword [ebp - 0xec04], eax
mov eax, dword [ebp - 0xebf8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DisconnectNamedPipe]
sub esp, 4
mov dword [ebp - 0xec08], eax
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0xcd0
mov esi, dword fs:[0x18]
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.DisconnectNamedPipe_failed:__lu_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0xec08]
mov dword [esp], edx
call fcn.004f6800
lea ecx, [ebp - 0xebdc]
mov eax, 0xcd1
mov dword [esp], 0xe9
mov edx, dword [ebp - 0xebf4]
call fcn.005046a0
mov dword [esp], 0xe9
mov edx, dword [ebp - 0xebf4]
mov ecx, edi
mov eax, 0xcd2
lea edi, [ebp - 0xebb0]
call fcn.005046a0
mov edx, dword [ebp - 0xec04]
mov eax, 0xcd3
call fcn.004f6a60
mov eax, dword [ebp - 0xebf8]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0xebf4]
sub esp, 4
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0xebfc]
lea edx, [ebp - 0xebf8]
sub esp, 4
mov ecx, edx
lea edx, [ebp - 0xebf4]
call fcn.00506600
xor eax, eax
mov ecx, 0x10
mov edx, dword [ebp - 0xebf4]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xebf0]
mov dword [ebp - 0xebb4], 0x44
mov dword [ebp - 0xebfc], edx
mov dword [esp], eax
call fcn.0057d960
mov edx, dword [ebp - 0xebfc]
mov dword [esp + 0xc], edx
mov eax, dword [ebp - 0xebf0]
lea edx, [ebp - 0xeb70]
mov eax, dword [eax]
mov dword [esp], edx
mov dword [esp + 4], str.__s__pipe_writepipe__Ix
mov dword [esp + 8], eax
call fcn.004f5dc0
lea eax, [ebp - 0xebec]
lea edx, [ebp - 0xeb70]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], eax
lea eax, [ebp - 0xebb4]
mov dword [esp + 4], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateProcessA]
sub esp, 0x28
mov edi, eax
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0xc7a
mov eax, dword [esi + 0x34]
mov dword [esp], edi
mov dword [esp + 8], eax
mov dword [esp + 4], str.CreateProcess_failed:__lu_n
call fcn.004f6800
mov eax, dword [ebp - 0xebe8]
mov dword [esp], eax
call ebx
lea edx, [ebp - 0xeb70]
lea eax, [ebp - 0xea6c]
mov edi, dword [ebp - 0xebec]
sub esp, 4
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0xa
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xebf8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadFile]
mov edx, eax
mov eax, dword [ebp - 0xec00]
sub esp, 0x14
mov dword [ebp - 0xebfc], edx
test eax, eax
jne 0x507db0
mov eax, 0xcdd
call fcn.004f6080
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.ReadFile_failed:__lu_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0xebfc]
mov dword [esp], edx
call fcn.004f6800
mov eax, 0xce0
call fcn.004f6080
mov eax, dword [ebp - 0xeb70]
mov dword [esp + 4], str.read_bytes___lu_n
cmp eax, 0xa
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004f6800
mov dword [esp], edi
mov dword [esp + 4], 0
call dword [sym.imp.kernel32.dll_TerminateProcess]
sub esp, 8
call fcn.0057d110
mov dword [eax], 0x5ead94
mov dword [eax + 4], 0xce2
mov dword [esp], edi
call fcn.0057d980
lea eax, [ebp - 0xebdc]
mov dword [esp], 0xa
lea ecx, [ebp - 0xea6c]
mov dword [esp + 4], eax
mov edx, dword [ebp - 0xebf8]
mov eax, 0xce4
call fcn.004f6ad0
lea ecx, [ebp - 0xea6c]
mov eax, 0xce5
mov dword [esp], 1
mov edx, dword [ebp - 0xebf4]
call fcn.004f9300
lea ecx, [ebp - 0xebdc]
mov eax, 0xce6
mov dword [esp + 4], 0
mov dword [esp], 1
mov edx, dword [ebp - 0xebf8]
call fcn.00504970
mov dword [esp], edi
call ebx
mov eax, dword [ebp - 0xebf8]
sub esp, 4
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0xebf4]
sub esp, 4
mov dword [esp], eax
call ebx
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xcdf
call fcn.004f6080
mov edx, dword [ebp - 0xebfc]
mov ecx, dword [esi + 0x34]
xor eax, eax
test edx, edx
jne 0x507dd4
xor eax, eax
cmp ecx, 0xea
sete al
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], str.ReadFile_returned:__x__lu_n
mov dword [esp], eax
call fcn.004f6800
jmp 0x507cb6