Function at 0x180197380
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rbx
push rdi
push r13
push r15
sub rsp, 0x98
mov rax, qword [0x18029e198]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, qword [rsp + 0xe0]
lea rax, [rdx + 0xf]
mov r15, rdx
shr rax, 4
and r15d, 0xf
mov qword [rsp + 0x20], r8
mov qword [rsp + 0x28], rcx
mov r13, r9
mov qword [rsp + 0x38], r15
mov rdi, r8
test rax, rax
je 0x1801976b7
mov qword [r11 - 0x30], rsi
xor esi, esi
sub rax, 1
mov qword [r11 - 0x38], r12
mov qword [rsp + 0x30], rax
mov r12d, esi
je 0x18019757a
mov qword [r11 - 0x28], rbp
mov r15, r8
mov qword [r11 - 0x40], r14
nop dword [rax + rax]
movzx r8d, byte [r13]
mov r11, r12
add r11, r11
lea r10d, [r8 + r8]
movups xmm0, xmmword [rcx + r11*8]
mov r14, qword [rbx + r10*8 + 0x38]
lea eax, [r8*2 + 4]
and r14, qword [rbx + r10*8 + 0x28]
lea edx, [r8*2 + 6]
mov r9, qword [rbx + rdx*8]
movq rbp, xmm0
and r9, qword [rbx + rax*8]
lea eax, [r8*2 + 8]
xor r9, qword [rbx + rax*8]
xor r14, qword [rbx + r10*8 + 0x48]
xor r9, qword [rbx + r10*8 + 0x10]
xor r14, qword [rbx + r10*8 + 0x18]
xor rbp, r9
movups xmmword [rsp + 0x40], xmm0
xor r14, qword [rsp + 0x48]
mov qword [r15 + r11*8], rbp
mov qword [r15 + r11*8 + 8], r14
movzx ecx, byte [r13]
movzx eax, cl
shr al, 3
dec al
lea rdx, [rcx + 4]
and al, 1
add rcx, 3
shl al, 3
movzx esi, al
shl rdx, 4
shl rcx, 4
add rdx, rbx
add rcx, rbx
lea r8, [rsi + 4]
shl r8, 4
add r8, rbx
call fcn.180198b60
movzx ecx, byte [r13]
mov edi, esi
shl rdi, 4
add rdi, rbx
lea rdx, [rcx + 3]
add rcx, 2
shl rcx, 4
shl rdx, 4
lea r8, [rdi + 0x30]
add rcx, rbx
add rdx, rbx
call fcn.180198b60
movzx eax, byte [r13]
lea r8, [rdi + 0x20]
lea r9d, [rax + rax]
lea eax, [r9 + 4]
lea rdx, [rbx + rax*8]
lea eax, [r9 + 2]
lea rcx, [rbx + rax*8]
call fcn.180198b60
movzx r9d, byte [r13]
lea r8, [rdi + 0x10]
lea eax, [r9*2 + 2]
lea rdx, [rbx + rax*8]
lea eax, [r9 + r9]
lea rcx, [rbx + rax*8]
call fcn.180198b60
movzx edx, byte [r13]
mov r8, rdi
lea eax, [rdx + rdx]
xor rbp, qword [rbx + rax*8]
lea ecx, [rdx + rdx]
xor r14, qword [rbx + rcx*8 + 8]
lea eax, [rcx + 8]
lea rcx, [rbx + rax*8]
mov qword [rsp + 0x50], rbp
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x58], r14
call fcn.180198b60
inc r12
mov byte [r13], sil
cmp r12, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
jb 0x180197400
mov r15, qword [rsp + 0x38]
xor esi, esi
mov rdi, qword [rsp + 0x20]
mov r14, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x90]
add r12, r12
lea rax, [rcx + r12*8]
test r15, r15
je 0x18019761f
mov r8, r15
mov qword [rsp + 0x40], rsi
mov rdx, rax
mov qword [rsp + 0x48], rsi
lea rcx, [rsp + 0x40]
call fcn.18020b760
movzx r9d, byte [r13]
lea rcx, [rdi + r12*8]
lea r10d, [r9 + r9]
lea eax, [r9*2 + 4]
lea edx, [r9*2 + 6]
mov r8, qword [rbx + rdx*8]
lea rdx, [rsp + 0x40]
and r8, qword [rbx + rax*8]
lea eax, [r9*2 + 8]
xor r8, qword [rbx + rax*8]
xor r8, qword [rbx + r10*8 + 0x10]
mov rax, qword [rbx + r10*8 + 0x38]
and rax, qword [rbx + r10*8 + 0x28]
xor rax, qword [rbx + r10*8 + 0x48]
xor rax, qword [rbx + r10*8 + 0x18]
xor qword [rsp + 0x40], r8
mov r8, r15
xor qword [rsp + 0x48], rax
call fcn.18020b760
mov r8d, reloc.WS2_32.dll_recv
lea rcx, [rsp + 0x40]
sub r8, r15
add rcx, r15
xor edx, edx
call fcn.18020be10
jmp 0x18019768d
movups xmm0, xmmword [rax]
movzx r8d, byte [r13]
movups xmmword [rsp + 0x40], xmm0
lea r10d, [r8 + r8]
lea eax, [r8*2 + 4]
lea edx, [r8*2 + 6]
mov r9, qword [rbx + rdx*8]
and r9, qword [rbx + rax*8]
lea eax, [r8*2 + 8]
xor r9, qword [rbx + rax*8]
movq r8, xmm0
xor r9, qword [rbx + r10*8 + 0x10]
mov rax, qword [rbx + r10*8 + 0x38]
xor r8, r9
and rax, qword [rbx + r10*8 + 0x28]
xor rax, qword [rbx + r10*8 + 0x48]
xor rax, qword [rbx + r10*8 + 0x18]
xor rax, qword [rsp + 0x48]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], r8
mov qword [rdi + r12*8], r8
mov qword [rdi + r12*8 + 8], rax
lea r8, [rsp + 0x40]
mov rdx, rbx
mov rcx, r13
call fcn.1801986a0
mov r12, qword [rsp + 0x80]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rsi
mov rsi, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1801e67e0
add rsp, 0x98
pop r15
pop r13
pop rdi
pop rbx
ret