Function at 0x1400e6fd0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x198
mov rax, qword [0x1401f0010]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov r12, qword [rcx + 8]
mov r10, rcx
mov esi, dword [rcx + 0x34]
mov r11d, edx
sub r11d, r12d
mov qword [rsp + 0x60], rdx
mov r13d, edx
mov qword [rsp + 0x68], r9
mov r9, qword [rcx + 0x38]
sub r13d, r12d
mov r14, rdx
mov qword [rsp + 0x58], r8
mov ebp, 1
mov qword [rsp + 0x50], r9
mov edx, ebp
mov dword [rsp + 0x2c], esi
mov ebx, r11d
mov dword [rsp + 0x20], r13d
mov r15, r8
mov dword [rsp + 0x30], r11d
mov r8, qword [rcx + 0x70]
mov eax, r11d
mov ecx, dword [rcx + 0x100]
mov edi, 3
shl edx, cl
mov ecx, dword [r10 + 0x1c]
sub ebx, edx
sub eax, ecx
mov qword [rsp + 0x48], r8
cmp eax, edx
mov dword [rsp + 0x24], setsockopt
mov eax, dword [r10 + 0x10c]
mov rdx, qword [r10 + 0x60]
cmovbe ebx, ecx
cmp dword [r10 + 0x28], 0
mov qword [rsp + 0x70], rdx
cmovne ebx, ecx
mov ecx, 4
cmp eax, ecx
mov dword [rsp + 0x40], ebx
cmovb ecx, eax
xor ebx, ebx
shl ebp, cl
mov dword [rsp + 0x28], ebp
cmp dword [r10 + 0x12c], ebx
jne 0x1400e7349
mov r11d, dword [r10 + 0x2c]
mov eax, r13d
mov ecx, dword [rsp + 0x2c]
sub eax, r11d
mov rsi, r8
mov r15, r9
mov edx, ecx
cmp eax, 0x180
jbe 0x1400e722e
lea eax, [r11 + 0x60]
cmp r11d, eax
jae 0x1400e719b
mov edi, 0x18
lea r15, [r12 + 8]
sub edi, ecx
mov esi, r11d
add r15, r11
mov ebp, eax
mov r14, r8
mov r13, r9
nop dword [rax]
nop word [rax + rax]
mov eax, dword [r10 + 0x60]
mov rcx, rdi
imul edx, dword [r15], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [r14 + rax*4]
prefetcht0 byte [rax + r13]
mov rax, rsi
lea r15, [r15 + 1]
and eax, 7
mov r9d, dword [r10 + rax*4 + 0x40]
mov r8d, r9d
mov dword [r10 + rax*4 + 0x40], edx
mov eax, ebx
shr r8, 4
and r8d, 0xffffff0
movzx ecx, byte [r8 + r13]
lea rdx, [r8 + r13]
dec ecx
and ecx, 0xf
cmove eax, dword [rsp + 0x24]
inc rsi
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [r14 + rax*4], r11d
inc r11d
cmp r11d, ebp
jb 0x1400e7100
mov rsi, qword [r10 + 0x70]
mov edi, 3
mov r15, qword [r10 + 0x38]
mov edx, dword [r10 + 0x34]
mov r14, qword [rsp + 0x60]
mov ebp, dword [rsp + 0x28]
mov r13d, dword [rsp + 0x20]
lea r11d, [r13 - 0x20]
lea rax, [r14 + 1]
mov r8d, r11d
mov ecx, eax
lea r9, [r11 + r12]
sub ecx, r11d
sub ecx, r12d
inc ecx
cmp r9, rax
mov eax, 8
cmova ecx, ebx
cmp ecx, eax
cmova ecx, eax
lea eax, [r11 + rcx]
cmp r11d, eax
jae 0x1400e722e
mov eax, 0x18
mov r13d, ecx
sub eax, edx
mov qword [rsp + 0x38], rax
mov ecx, eax
nop
mov eax, dword [r10 + 0x60]
imul edx, dword [r9], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [rsi + rax*4]
prefetcht0 byte [r15 + rax]
mov rax, r8
lea r9, [r9 + 1]
and eax, 7
inc r8
mov dword [r10 + rax*4 + 0x40], edx
sub r13, 1
jne 0x1400e71e0
mov rsi, qword [r10 + 0x70]
mov r15, qword [r10 + 0x38]
mov edx, dword [r10 + 0x34]
mov r13d, dword [rsp + 0x20]
mov rcx, qword [r10 + 8]
cmp r11d, r13d
jae 0x1400e72ed
mov ebp, dword [rsp + 0x20]
lea rdi, [rcx + 8]
mov r14d, 0x18
mov r13d, r11d
sub r14d, edx
add rdi, r13
nop dword [rax]
nop word [rax + rax]
mov eax, dword [r10 + 0x60]
mov rcx, r14
imul edx, dword [rdi], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [rsi + rax*4]
prefetcht0 byte [r15 + rax]
mov rax, r13
lea rdi, [rdi + 1]
and eax, 7
mov r9d, dword [r10 + rax*4 + 0x40]
mov r8d, r9d
mov dword [r10 + rax*4 + 0x40], edx
mov eax, ebx
shr r8, 4
and r8d, 0xffffff0
movzx ecx, byte [r8 + r15]
lea rdx, [r8 + r15]
dec ecx
and ecx, 0xf
cmove eax, dword [rsp + 0x24]
inc r13
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [rsi + rax*4], r11d
inc r11d
cmp r11d, ebp
jb 0x1400e7260
mov r14, qword [rsp + 0x60]
mov edi, 3
mov ebp, dword [rsp + 0x28]
mov r13d, dword [rsp + 0x20]
mov eax, dword [rsp + 0x70]
mov ecx, 0x18
sub ecx, dword [rsp + 0x2c]
mov r8d, dword [rsp + 0x30]
mov dword [r10 + 0x2c], r13d
imul edx, dword [r8 + r12 + 8], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov rcx, qword [rsp + 0x48]
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [rcx + rax*4]
mov rcx, qword [rsp + 0x50]
prefetcht0 byte [rax + rcx]
mov r15, qword [rsp + 0x58]
and r8d, 7
mov r9d, dword [r10 + r8*4 + 0x40]
mov dword [r10 + r8*4 + 0x40], edx
mov r8, qword [rsp + 0x48]
jmp 0x1400e7368
imul r9d, dword [r14], 0x9e3779b1
mov ecx, 0x18
sub ecx, esi
mov eax, edx
mov dword [r10 + 0x2c], r11d
xor r9, rax
shr r9, cl
mov rcx, qword [rsp + 0x50]
add dword [r10 + 0x68], r9d
mov eax, r9d
shr rax, 4
mov rsi, rbx
and eax, 0xffffff0
add rcx, rax
mov qword [rsp + 0x58], rcx
lea r11, [r8 + rax*4]
movzx eax, byte [rcx]
movdqu xmm0, xmmword [rcx]
mov dword [rsp + 0x38], eax
and eax, 0xf
mov r13d, eax
movsx eax, r9b
mov ecx, r13d
neg ecx
and ecx, 0xf
movd xmm1, eax
punpcklbw xmm1, xmm1
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
pcmpeqb xmm1, xmm0
pmovmskb eax, xmm1
movzx edx, ax
mov dword [rsp + 0x70], eax
movzx eax, dx
shl ax, cl
movzx ecx, r13b
movzx r8d, ax
mov eax, edx
shr rax, cl
or r8, rax
jbe 0x1400e7412
mov edx, dword [rsp + 0x40]
test ebp, ebp
je 0x1400e7412
bsf rcx, r8
add ecx, r13d
and ecx, 0xf
je 0x1400e7409
mov ecx, dword [r11 + rcx*4]
cmp ecx, edx
jb 0x1400e7412
prefetcht0 byte [rcx + r12]
mov dword [rsp + rsi*4 + 0x80], ecx
inc rsi
dec ebp
lea rax, [r8 - 1]
and r8, rax
ja 0x1400e73e0
mov ecx, dword [rsp + 0x38]
mov eax, ebx
dec ecx
mov edx, recv
and ecx, 0xf
cmove eax, edx
add ecx, eax
mov rax, qword [rsp + 0x58]
mov byte [rax], cl
mov byte [rcx + rax], r9b
mov eax, dword [r10 + 0x2c]
mov dword [r11 + rcx*4], eax
inc dword [r10 + 0x2c]
test rsi, rsi
je 0x1400e749a
mov r13, qword [rsp + 0x68]
nop dword [rax + rax]
mov ebp, dword [rsp + rbx*4 + 0x80]
mov eax, dword [rdi + r14 - 3]
lea rdx, [r12 + rbp]
cmp dword [rdx + rdi - 3], eax
jne 0x1400e7492
mov r8, r15
mov rcx, r14
call fcn.1400e5d10
mov rcx, rax
cmp rax, rdi
jbe 0x1400e7492
mov rdi, rax
mov eax, dword [rsp + 0x30]
sub eax, ebp
add eax, 3
mov qword [r13], rax
lea rax, [rcx + r14]
cmp rax, r15
je 0x1400e749a
inc rbx
cmp rbx, rsi
jb 0x1400e7450
mov rax, rdi
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140131ef0
add rsp, 0x198
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret