Function at 0x1400bae20
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd0
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
movaps xmmword [rax - 0x78], xmm9
movaps xmmword [rax - 0x88], xmm10
movaps xmmword [rsp + 0x70], xmm11
mov rax, qword [0x140160140]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, qword [rsp + 0x130]
mov eax, edx
mov r13, rcx
mov dword [rsp + 0x30], edx
mov rcx, qword [rsp + 0x138]
xor edx, edx
mov qword [rsp + 0x38], rcx
mov rbx, r9
mov r9, r8
mov ebp, edx
mov qword [rcx], rdx
test eax, eax
jne 0x1400baf21
lea rax, [rbx + 8]
cmp qword [rsp + 0x140], rax
jb 0x1400bb1ba
lea rax, [rbx - 0x10]
movabs rcx, 0x1ffffffffffffe8
cmp rax, rcx
ja 0x1400bb1ba
test bl, 7
jne 0x1400bb1ba
mov rax, qword [0x140112ee8]
lea r12, [rdi + 8]
mov rcx, r12
mov qword [rdi], rax
mov r8, rbx
mov rdx, r9
call fcn.1400f9370
shr rbx, 3
lea r14, [rbx + rbx*2]
add r14, r14
lea r15, [rbx + 1]
mov rsi, r12
cmp r15, 3
jae 0x1400bb01e
mov ebp, 0xffff9f00
lea r8, [r15*8]
xor edx, edx
mov rcx, rdi
call fcn.1400f8fb0
jmp 0x1400baff9
mov rax, rbx
mov esi, 8
and eax, 7
sub rsi, rax
test rax, rax
lea rax, [rbx + 8]
cmove rsi, rdx
add rax, rsi
cmp qword [rsp + 0x140], rax
jb 0x1400bb1ba
lea rax, [rbx - 1]
mov ecx, 0xfffffffe
cmp rax, rcx
ja 0x1400bb1ba
mov eax, dword [0x140112ef0]
lea r12, [rdi + 8]
mov dword [rdi], eax
mov r8, rbx
mov eax, ebx
mov rdx, r9
bswap eax
mov rcx, r12
mov dword [rdi + 4], eax
call fcn.1400f9370
lea rcx, [rdi + 8]
mov r8, rsi
add rcx, rbx
xor edx, edx
call fcn.1400f8fb0
lea rax, [rbx + rsi]
shr rax, 3
lea r14, [rax + rax*2]
add r14, r14
lea r15, [rax + 1]
cmp dword [rsp + 0x30], 1
jne 0x1400baef8
cmp rbx, 8
ja 0x1400baef8
movups xmm0, xmmword [rdi]
lea rax, [rsp + 0x30]
mov r9, rdi
mov r8d, reloc.WS2_32.dll_recv
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov rcx, r13
movups xmmword [rsp + 0x40], xmm0
call fcn.140094e70
mov ebp, eax
test eax, eax
jne 0x1400baf0a
mov rcx, qword [rsp + 0x38]
lea rax, [r15*8]
mov qword [rcx], rax
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x40]
call fcn.140092fb0
mov edx, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x50]
call fcn.140092fb0
mov eax, ebp
jmp 0x1400bb1bf
mov ebx, 1
cmp rbx, r14
ja 0x1400bafe9
movdqa xmm7, xmmword [0x140113270]
movdqa xmm8, xmmword [0x140113230]
movdqa xmm9, xmmword [reloc.WS2_32.dll_closesocket]
movdqa xmm10, xmmword [0x140113250]
movdqa xmm11, xmmword [reloc.WS2_32.dll_getsockopt]
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [rdi]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x40]
mov rax, qword [rsi]
movq xmm6, rbx
mov qword [rsp + 0x48], rax
mov r8d, reloc.WS2_32.dll_recv
lea rax, [rsp + 0x30]
punpcklqdq xmm6, xmm6
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.140094e70
mov ebp, eax
test eax, eax
jne 0x1400baf0a
mov rax, qword [rsp + 0x50]
mov qword [rdi], rax
cmp dword [0x140160198], 5
jl 0x1400bb156
movzx eax, ax
movdqa xmm0, xmm11
psllq xmm0, 3
vpsrlvq xmm1, xmm6, xmm0
pshufb xmm1, xmm7
movd xmm0, eax
xorps xmm1, xmm0
movdqa xmm0, xmm10
movd eax, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm6, xmm0
mov word [rdi], ax
movzx eax, word [rdi + 2]
pshufb xmm1, xmm7
movd xmm0, eax
xorps xmm1, xmm0
movdqa xmm0, xmm9
movd eax, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm6, xmm0
mov word [rdi + 2], ax
movzx eax, word [rdi + 4]
pshufb xmm1, xmm7
movd xmm0, eax
xorps xmm1, xmm0
movdqa xmm0, xmm8
movd eax, xmm1
psllq xmm0, 3
vpsrlvq xmm1, xmm6, xmm0
mov word [rdi + 4], ax
movzx eax, word [rdi + 6]
pshufb xmm1, xmm7
movd xmm0, eax
xorps xmm1, xmm0
movd eax, xmm1
mov word [rdi + 6], ax
jmp 0x1400bb18f
mov rax, rdi
xor r8d, r8d
mov r9d, 8
nop dword [rax]
nop word [rax + rax]
mov ecx, 0x38
lea rax, [rax + 1]
sub cl, r8b
mov rdx, rbx
shr rdx, cl
add r8, 8
xor byte [rax - 1], dl
sub r9, 1
jne 0x1400bb170
mov rax, qword [rsp + 0x58]
lea rcx, [rsi + 8]
mov qword [rsi], rax
inc rbx
lea rax, [rdi + r15*8]
mov rsi, r12
cmp rcx, rax
cmovb rsi, rcx
cmp rbx, r14
jbe 0x1400bb060
jmp 0x1400bafe9
mov eax, 0xffff9f00
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400c86e0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
movaps xmm10, xmmword [r11 - 0x50]
movaps xmm11, xmmword [r11 - 0x60]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret