Function at 0x140003060
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x130
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov r14, qword [rsp + 0x188]
mov r15d, r8d
mov edi, edx
mov ebx, ecx
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0xd8
mov rsi, r9
call fcn.14001cde0
mov byte [rsp + 0x43], dil
mov rbp, rsi
mov rdi, qword [rsp + 0x180]
imul rbp, rdi
mov byte [rsp + 0x42], bl
xor ebx, ebx
mov byte [rsp + 0x40], reloc.WS2_32.dll_socket
test rbp, rbp
je 0x1400030fb
test r14, r14
je 0x1400030fb
mov r8, rbp
lea rcx, [rsp + 0x48]
mov rdx, r14
call fcn.14001c410
movzx eax, si
shl si, 8
shr ax, 8
and ax, 0xf
or ax, si
mov word [rsp + 0x44], ax
jmp 0x140003100
mov word [rsp + 0x44], bx
rol di, 8
mov word [rsp + 0x46], di
test r15d, r15d
je 0x140003126
cmp dword [0x140050384], ebx
mov r8d, dword [0x140050b94]
je 0x14000318a
test r8d, r8d
jne 0x1400031bf
movsxd r8, dword [0x14004cbe8]
mov byte [rsp + 0x41], bl
mov rcx, qword [0x140050b98]
lea rdx, [rsp + 0x40]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
jne 0x140003161
lea rdx, [0x140050a90]
lea rcx, str.write_to__s_failed
call fcn.140004ba0
or ebx, 0xffffffff
mov eax, ebx
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.14001b620
mov rbx, qword [rsp + 0x170]
add rsp, 0x130
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
test r8d, r8d
jne 0x1400031bf
call fcn.140004c00
mov r8d, eax
test eax, eax
jne 0x1400031b9
lea ecx, [rax + 2]
call fcn.14001df44
mov rcx, rax
lea rdx, str.Invalid_key_identifier_n
call fcn.140001040
mov eax, 1
jmp 0x140003163
mov dword [0x140050b94], eax
cmp r8d, dword [0x140051d38]
jne 0x1400031d6
movzx eax, word [0x140051cac]
and eax, 1
jne 0x140003247
jmp 0x14000320e
mov rax, qword [0x140051d20]
mov ecx, r8d
inc dword [0x140051ca8]
and ecx, 0x3f
mov rdx, qword [rax + rcx*8]
test rdx, rdx
je 0x140003208
cmp r8d, dword [rdx + 0x2c]
je 0x140003202
mov rdx, qword [rdx]
test rdx, rdx
jne 0x1400031f2
jmp 0x140003208
test byte [rdx + 0x40], 1
jne 0x140003247
inc dword [0x140051d2c]
call fcn.140016e00
cmp byte [rax], bl
jne 0x14000323a
mov ecx, 2
call fcn.14001df44
mov rcx, rax
lea rdx, str.Invalid_password_n
call fcn.140001040
mov eax, 1
jmp 0x140003163
mov r8, rax
call fcn.140017370
call fcn.140015e50
cmp qword [reloc.WS2_32.dll_recv], 0x10
mov byte [rsp + 0x41], 0x80
jbe 0x140003270
cmp dword [0x14004cbe8], 0xc0
jne 0x1400031b2
lea rdi, [rbp + 0x13]
and rdi, 0xfffffffffffffffc
jmp 0x140003277
movsxd rdi, dword [0x14004cbe8]
lea rcx, [rsp + 0x30]
call fcn.140016e60
mov r8d, dword [rsp + 0x34]
mov eax, r8d
add r8d, dword [0x14005044c]
mov ecx, dword [rsp + 0x30]
cmp r8d, eax
adc ecx, dword [0x140050448]
mov edx, ecx
mov eax, ecx
shr eax, 0x10
and edx, 0xff0000
or edx, eax
mov eax, ecx
shl eax, 0x10
and ecx, 0xff00
or eax, ecx
shr edx, 8
shl eax, 8
mov ecx, r8d
or edx, eax
and ecx, 0xff0000
mov eax, r8d
mov dword [rsp + rdi + 0x38], edx
shr eax, 0x10
or ecx, eax
mov eax, r8d
shl eax, 0x10
and r8d, 0xff00
or eax, r8d
shr ecx, 8
shl eax, 8
or ecx, eax
mov dword [rsp + rdi + 0x3c], ecx
cmp rdi, 0x7fffffff
ja 0x1400033b9
mov edx, dword [0x140050b94]
mov ecx, edx
inc dword [0x140051d3c]
movsxd r9, edi
mov rax, r9
shr rax, 2
bswap ecx
mov dword [rsp + rax*4 + 0x40], ecx
test edx, edx
jne 0x140003326
lea esi, [rdx + 4]
jmp 0x140003348
mov ecx, edx
call fcn.140015da0
test eax, eax
je 0x140003396
mov qword [rsp + 0x20], r9
lea r9, [rsp + 0x40]
call fcn.14001a280
mov rsi, rax
test rax, rax
je 0x140003396
mov rbp, qword [reloc.WS2_32.dll_recv]
add rbp, 4
cmp rsi, rbp
je 0x14000338d
mov ecx, 2
call fcn.14001df44
mov rdx, qword [reloc.WS2_32.dll_recv]
mov rcx, rax
mov qword [rsp + 0x20], rdx
mov r9, rbp
lea rdx, str._zu_octet_MAC___zu_expected_with__zu_octet_digest_n
mov r8, rsi
call fcn.140001040
mov eax, 1
jmp 0x140003163
lea r8d, [rsi + rdi]
jmp 0x140003131
mov ecx, 2
call fcn.14001df44
mov rcx, rax
lea rdx, str.Key_not_found_n
call fcn.140001040
mov eax, 1
jmp 0x140003163
call fcn.14001dc90
int3