Function at 0x140020fe0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x30
movzx r11d, byte [rdx + 0xf]
lea r13, [0x140051ab8]
mov r12, rcx
mov eax, r11d
and eax, 0xf
mov r14, r8
add rax, rax
and r11, 0xfffffffffffffff0
mov r15, rdx
lea rdx, [rbp - 0x10]
mov r9, qword [r8 + rax*8 + 8]
mov r10, qword [r8 + rax*8]
mov rax, r9
shr rax, 4
mov r8, r10
shl r8, 0x3c
or r8, rax
shr r10, 4
movzx eax, r9b
mov r9d, reloc.WS2_32.dll_recv
and eax, 0xf
mov qword [rbp - 8], r8
lea r8, [r14 + r11]
movzx ecx, word [r13 + rax*2]
shl rcx, 0x30
xor rcx, r10
mov qword [rbp - 0x10], rcx
lea rcx, [rbp - 0x10]
call fcn.140018500
mov esi, reloc.WS2_32.dll_ntohl
nop word [rax + rax]
mov r8, qword [rbp - 0x10]
mov rcx, qword [rbp - 8]
mov rax, r8
movzx r9d, byte [rsi + r15]
movzx edx, cl
shr rcx, 4
and dl, 0xf
shl rax, 0x3c
movzx edi, r9b
or rax, rcx
shr r8, 4
mov qword [rbp - 8], rax
and r9d, 0xf
movzx eax, dl
add r9, r9
shr dil, 4
xor edx, edx
movzx ecx, word [r13 + rax*2]
lea rax, [rbp - 0x10]
shl rcx, 0x30
xor rcx, r8
lea r8, [r14 + r9*8]
mov r10, r8
mov qword [rbp - 0x10], rcx
sub r10, rax
nop dword [rax]
mov rax, qword [r8 + rdx]
xor qword [rbp + rdx - 0x10], rax
add rdx, 8
lea rax, [rdx + 8]
cmp rax, 0x10
jbe 0x1400210e0
mov r9d, reloc.WS2_32.dll_recv
sub r9, rdx
cmp rdx, 0x10
jae 0x1400211e7
cmp r9, 0x40
jb 0x1400211d0
lea rcx, [rbp - 0x10]
add rcx, rdx
lea rax, [r8 + 0xf]
lea r11, [rdx + r8]
cmp rcx, rax
ja 0x140021135
lea rax, [rbp - 1]
cmp rax, r11
jae 0x1400211d0
and r9d, 0x3f
mov ebx, reloc.WS2_32.dll_recv
sub rbx, r9
lea rcx, [rbp - 0x10]
sub rcx, r8
lea r9, [rbp]
sub r9, r8
lea rax, [r11 + 0x20]
nop dword [rax]
nop word [rax + rax]
movdqu xmm0, xmmword [rcx + rax - 0x20]
add rdx, 0x40
movdqu xmm1, xmmword [rax - 0x20]
lea rax, [rax + 0x40]
pxor xmm1, xmm0
movdqu xmmword [rcx + rax - 0x60], xmm1
movdqu xmm0, xmmword [r9 + rax - 0x60]
movdqu xmm1, xmmword [rax - 0x50]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [r9 + rax - 0x60], xmm1
movdqu xmm1, xmmword [rcx + rax - 0x40]
pxor xmm1, xmm0
movdqu xmmword [rcx + rax - 0x40], xmm1
movdqu xmm0, xmmword [r9 + rax - 0x40]
movdqu xmm1, xmmword [rax - 0x30]
pxor xmm1, xmm0
movdqu xmmword [r9 + rax - 0x40], xmm1
cmp rdx, rbx
jb 0x140021160
cmp rdx, 0x10
jae 0x1400211e7
nop dword [rax + rax]
lea rcx, [rbp - 0x10]
add rcx, rdx
inc rdx
movzx eax, byte [r10 + rcx]
xor byte [rcx], al
cmp rdx, 0x10
jb 0x1400211d0
mov r8, qword [rbp - 0x10]
mov rcx, qword [rbp - 8]
mov rax, r8
movzx edx, cl
shr r8, 4
shr rcx, 4
and dl, 0xf
shl rax, 0x3c
or rax, rcx
mov qword [rbp - 8], rax
movzx eax, dl
movzx ecx, word [r13 + rax*2]
xor eax, eax
shl rcx, 0x30
xor rcx, r8
movzx r8d, dil
shl r8, 4
add r8, r14
mov qword [rbp - 0x10], rcx
mov r10, r8
lea rcx, [rbp - 0x10]
sub r10, rcx
nop word [rax + rax]
mov rcx, qword [r8 + rax]
xor qword [rbp + rax - 0x10], rcx
add rax, 8
lea rcx, [rax + 8]
cmp rcx, 0x10
jbe 0x140021240
mov r9d, reloc.WS2_32.dll_recv
sub r9, rax
cmp rax, 0x10
jae 0x140021347
cmp r9, 0x40
jb 0x140021330
lea rdx, [rbp - 0x10]
add rdx, rax
lea rcx, [r8 + 0xf]
lea rbx, [rax + r8]
cmp rdx, rcx
ja 0x140021295
lea rcx, [rbp - 1]
cmp rcx, rbx
jae 0x140021330
and r9d, 0x3f
mov r11d, reloc.WS2_32.dll_recv
sub r11, r9
lea rdx, [rbp - 0x10]
sub rdx, r8
lea r9, [rbp]
sub r9, r8
lea rcx, [rbx + 0x20]
nop dword [rax]
nop dword [rax + rax]
movdqu xmm0, xmmword [rdx + rcx - 0x20]
add rax, 0x40
movdqu xmm1, xmmword [rcx - 0x20]
lea rcx, [rcx + 0x40]
pxor xmm1, xmm0
movdqu xmmword [rdx + rcx - 0x60], xmm1
movdqu xmm0, xmmword [r9 + rcx - 0x60]
movdqu xmm1, xmmword [rcx - 0x50]
pxor xmm1, xmm0
movdqu xmmword [r9 + rcx - 0x60], xmm1
movdqu xmm0, xmmword [rdx + rcx - 0x40]
movdqu xmm1, xmmword [rcx - 0x40]
pxor xmm1, xmm0
movdqu xmmword [rdx + rcx - 0x40], xmm1
movdqu xmm0, xmmword [r9 + rcx - 0x40]
movdqu xmm1, xmmword [rcx - 0x30]
pxor xmm1, xmm0
movdqu xmmword [r9 + rcx - 0x40], xmm1
cmp rax, r11
jb 0x1400212c0
cmp rax, 0x10
jae 0x140021347
nop dword [rax + rax]
lea rdx, [rbp - 0x10]
add rdx, rax
inc rax
movzx ecx, byte [rdx + r10]
xor byte [rdx], cl
cmp rax, 0x10
jb 0x140021330
sub rsi, 1
jns 0x140021080
mov rax, qword [rbp - 0x10]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
bswap rax
mov qword [r12], rax
mov rax, qword [rbp - 8]
bswap rax
mov qword [r12 + 8], rax
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rbp
ret