Function at 0x140078be0
Capabilities:
Send data
Send data on socket
Terminate process

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov r14d, edx
mov rbx, rcx
lea rcx, [0x1401424a0]
call fcn.140030320
add r14, rbx
cmp rbx, r14
jae 0x140078e22
mov ecx, dword [0x140143e58]
mov rax, qword gs:[0x58]
lea r15, [rax + rcx*8]
xor r12d, r12d
mov r13d, reloc.OLEAUT32.dll_SafeArrayLock
mov edx, dword [0x140142c28]
nop dword [rax]
nop dword [rax + rax]
movzx ecx, word [rbx + 0x28]
lea ebp, [rcx*8 + 0x34]
add ebp, dword [rbx + 0x2c]
cmp word [rbx + 8], 1
jne 0x140078c59
mov qword [rbx + 0x14], r12
mov dword [rbx + 0x30], r12d
lea eax, [rdx - 1]
test eax, 0xfffffffc
jne 0x140078cbd
cmp edx, 3
je 0x140078cc6
mov rdx, rbx
lea rcx, [0x1401424a0]
call fcn.14002fd50
mov edx, dword [0x140142c28]
cmp edx, 2
jne 0x140078e14
cmp word [rbx + 8], 1
jne 0x140078e14
cmp word [rbx + 0xc], 1
ja 0x140078e14
movzx ecx, word [rbx + 0x28]
lea ecx, [rcx*8 + 0x34]
add ecx, dword [rbx + 0x2c]
mov ecx, dword [rcx + rbx]
add rbx, 4
add rbx, rcx
jmp 0x140078e14
cmp edx, 3
jne 0x140078e14
mov rax, qword [r15]
mov eax, dword [r13 + rax]
cmp dword [0x140142ca0], eax
jg 0x140078e7c
mov qword [rsp + 0x90], r12
lea r9, [rsp + 0x90]
lea r8, [0x140142630]
mov rdx, rbx
mov rcx, qword [0x140142c98]
call fcn.140078920
movzx ecx, word [rbx + 0x28]
lea r8d, [rcx*8 + 0x34]
add r8d, dword [rbx + 0x2c]
xor r9d, r9d
mov rdx, rbx
mov rcx, qword [0x14013c878]
call qword [sym.imp.WS2_32.dll_send]
movzx edx, word [rbx + 0x28]
lea edx, [rdx*8 + 0x34]
add edx, dword [rbx + 0x2c]
cmp eax, edx
jne 0x140078e4f
mov rdi, qword [rsp + 0x90]
test rdi, rdi
je 0x140078e0e
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x30], r12
mov r8, qword [0x140142c98]
lea r9, [r8 + 0x5d0]
add r8, 0x508
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14008c080
mov rax, qword [rsp + 0x28]
mov dword [rsp + 0x98], eax
mov ecx, eax
call fcn.1400b5c60
mov rsi, rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], r12
mov edx, dword [rsp + 0x98]
mov qword [rsp + 0x48], rdx
mov r8, qword [0x140142c98]
lea r9, [r8 + 0x5d0]
add r8, 0x508
lea rdx, [rsp + 0x38]
mov rcx, rdi
call fcn.14008c080
xor r9d, r9d
lea r8d, [r9 + 4]
lea rdx, [rsp + 0x98]
mov rcx, qword [0x14013c878]
call qword [sym.imp.WS2_32.dll_send]
xor r9d, r9d
mov r8d, dword [rsp + 0x98]
mov rdx, rsi
mov rcx, qword [0x14013c878]
call qword [sym.imp.WS2_32.dll_send]
cmp eax, dword [rsp + 0x40]
jne 0x140078e3a
mov rcx, rsi
call fcn.1400b56bc
mov edx, dword [0x140142c28]
mov eax, ebp
add rbx, rax
cmp rbx, r14
jb 0x140078c40
mov rbx, qword [rsp + 0xa8]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, str.PROCMON:_Terminating_due_to_unexpected_socket_error_r_n
call fcn.1400737b0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rcx, str.PROCMON:_Terminating_due_to_unexpected_socket_error_r_n
call fcn.1400737b0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov qword [0x140142c98], rax
lea rcx, [0x140142ca0]
call fcn.1400b5af0
jmp 0x140078cda
lea rcx, [0x140142ca0]
call fcn.1400b5b50
cmp dword [0x140142ca0], 0xffffffff
jne 0x140078cda
mov ecx, 0x688
call fcn.1400b5680
mov qword [rsp + 0xa0], rax
test rax, rax
je 0x140078eb6
mov rcx, rax
call fcn.14002f070
jmp 0x140078e64
mov rax, r12
jmp 0x140078e64