Function at 0x14000e530
Capabilities:
Encode data using xor
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push r15
mov eax, 0x2068
call fcn.1400bc1e0
sub rsp, rax
mov rax, qword [0x1400e3008]
xor rax, rsp
mov qword [rsp + 0x2050], rax
lea rcx, [0x1401762d8]
movsxd rbp, r9d
mov rbx, r8
movsxd rsi, edx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test esi, esi
js 0x14000e7cb
xor r15d, r15d
cmp esi, 0x1388
mov eax, r15d
setl al
test eax, eax
je 0x14000e7cb
mov qword [rsp + 0x2090], rdi
lea rax, [0x1400ecbb0]
imul rdi, rsi, 0x70
add rdi, rax
mov ecx, dword [rdi + 8]
test ecx, ecx
js 0x14000e7b7
cmp ecx, 0x1388
mov eax, r15d
setl al
test eax, eax
je 0x14000e7b7
cmp dword [rdi + 0xc], r15d
je 0x14000e7b7
cmp qword [rdi + 0x20], 0xffffffffffffffff
je 0x14000e7b7
mov r8, rbp
mov qword [rsp + 0x2060], r14
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.1400a12f0
lea r9d, [rbp - 6]
mov r10d, r15d
test r9d, r9d
jle 0x14000e63c
lea r8, [rsp + 0x56]
nop dword [rax]
mov eax, 0xaaaaaaab
lea r8, [r8 + 1]
mul r10d
shr edx, 1
lea ecx, [rdx + rdx*2]
mov eax, ecx
sub eax, r10d
add eax, 2
cdqe
movzx edx, byte [rsp + rax + 0x53]
mov eax, r10d
xor dl, byte [r8 - 1]
sub eax, ecx
movsxd rcx, eax
inc r10d
sub dl, byte [rsp + rcx + 0x53]
mov byte [r8 - 1], dl
cmp r10d, r9d
jl 0x14000e600
cmp ebp, 0x2000
jle 0x14000e66c
mov r9d, ebp
lea rdx, str._SocketManager__Max_msg_size__Type:_1__Index:__d__Size:__d_
mov r8d, esi
mov ecx, 1
call fcn.14009f970
lea rcx, [0x1401762d8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x14000e6d5
mov rbx, qword [rdi + 0x30]
movsxd rax, dword [rbx + 0x34]
test eax, eax
jle 0x14000e702
movsxd rax, dword [rbx + 0x1203c]
lea r9d, [rax + rbp]
cmp r9d, 0x10000
jle 0x14000e6a9
mov r8d, esi
lea rdx, str._SocketManager__Max_msg_size__Type:_2__Index:__d__Size:__d_
mov ecx, 1
call fcn.14009f970
jmp 0x14000e795
lea rcx, [rbx + 0x203c]
mov r8, rbp
add rcx, rax
lea rdx, [rsp + 0x50]
call fcn.1400a12f0
add dword [rbx + 0x1203c], ebp
lea rcx, [0x1401762d8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
mov r14, qword [rsp + 0x2060]
mov rdi, qword [rsp + 0x2090]
mov rcx, qword [rsp + 0x2050]
xor rcx, rsp
call fcn.1400a02d0
add rsp, 0x2068
pop r15
pop rsi
pop rbp
pop rbx
ret
lea rcx, [rbx + 0x38]
mov r8, rbp
add rcx, rax
lea rdx, [rsp + 0x50]
call fcn.1400a12f0
add dword [rbx + 0x34], ebp
lea rax, [rbx + 0x38]
mov ecx, dword [rbx + 0x34]
lea rdx, [rbx + 0x20]
mov qword [rbx + 0x28], rax
lea r9, [rsp + 0x40]
mov dword [rdx], ecx
mov r8d, 1
mov dword [rbx + 0x2038], r15d
mov dword [rbx + 0x30], 1
mov rcx, qword [rdi + 0x20]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x20], r15d
call qword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x14000e6c6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x14000e6c6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str._SocketManager__WSASend___failed_with_error:__d
mov ecx, 1
mov r8d, eax
call fcn.14009f970
mov edx, esi
lea rcx, [0x1401761f0]
call fcn.14000e7e0
lea rcx, [0x1401762d8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x14000e6d5
lea rcx, [0x1401762d8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x14000e6dd
lea rcx, [0x1401762d8]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
jmp 0x14000e6e5