Function at 0x140011280
Capabilities:
Read file on windows
Write file on windows

Disassembly:
jmp 0x140011a20
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
sub rsp, 0x220
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x4c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x248]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x1e8], rax
lea rcx, [0x1400230f3]
call fcn.140011398
lea rax, [rbp + 0x68]
lea rcx, str.EnableRead
mov rdi, rax
mov rsi, rcx
mov ecx, 0xb
rep movsb byte [rdi], byte [rsi]
lea r8, [rbp + 0x68]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenEventA]
mov qword [rbp + 0x48], rax
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rbp + 0x218]
mov rcx, qword [rcx + rax]
call qword [sym.imp.ucrtbased.dll_atoi]
cdqe
mov qword [rbp + 8], rax
mov eax, 8
imul rax, rax, 2
mov rcx, qword [rbp + 0x218]
mov rcx, qword [rcx + rax]
call qword [sym.imp.ucrtbased.dll_atoi]
cdqe
mov qword [rbp + 0x28], rax
lea rcx, str.Press_any_key_to_start_communication._n
call qword [sym.imp.ucrtbased.dll__cputs]
call qword [sym.imp.ucrtbased.dll__getch]
mov dword [rbp + 0x94], 0
jmp 0x140011b07
mov eax, dword [rbp + 0x94]
inc eax
mov dword [rbp + 0x94], eax
cmp dword [rbp + 0x94], 0xa
jge 0x140011b7d
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0xb4]
mov r8d, 4
lea rdx, [rbp + 0x94]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140011b66
lea rcx, str.Write_to_file_failed._n
call qword [sym.imp.ucrtbased.dll__cputs]
lea rcx, str.Press_any_key_to_finish._n
call qword [sym.imp.ucrtbased.dll__cputs]
call qword [sym.imp.ucrtbased.dll__getch]
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140011c63
mov edx, dword [rbp + 0x94]
lea rcx, str.The_number__d_is_written_to_the_pipe._n
call fcn.1400112ee
jmp 0x140011af9
lea rcx, str.The_process_finished_writing_to_the_pipe._n
call qword [sym.imp.ucrtbased.dll__cputs]
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rbp + 0xd4], 0
jmp 0x140011bb3
mov eax, dword [rbp + 0xd4]
inc eax
mov dword [rbp + 0xd4], eax
cmp dword [rbp + 0xd4], 0xa
jge 0x140011c23
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x114]
mov r8d, 4
lea rdx, [rbp + 0xf4]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140011c0f
lea rcx, str.Read_from_the_pipe_failed._n
call qword [sym.imp.ucrtbased.dll__cputs]
lea rcx, str.Press_any_key_to_finish._n
call qword [sym.imp.ucrtbased.dll__cputs]
call qword [sym.imp.ucrtbased.dll__getch]
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140011c63
mov edx, dword [rbp + 0xf4]
lea rcx, str.The_number__d_is_read_from_the_pipe._n
call fcn.1400112ee
jmp 0x140011ba5
lea rcx, str.The_process_finished_reading_from_the_pipe._n
call qword [sym.imp.ucrtbased.dll__cputs]
lea rcx, str.Press_any_key_to_exit._n
call qword [sym.imp.ucrtbased.dll__cputs]
call qword [sym.imp.ucrtbased.dll__getch]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001adb0]
call fcn.14001132f
mov rax, rdi
mov rcx, qword [rbp + 0x1e8]
xor rcx, rbp
call fcn.1400111bd
lea rsp, [rbp + 0x1f0]
pop rdi
pop rsi
pop rbp
ret