Function at 0x180021930
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x30
movzx r11d, word [rcx + 0x270]
mov r15d, 0x10b
movsxd rbx, r9d
mov rsi, r8
mov r14, rdx
mov r10, rcx
mov ebp, 0x20b
cmp r11w, r15w
jne 0x180021977
mov rax, qword [rcx + rbx*8 + 0xd0]
jmp 0x180021989
cmp r11w, bp
jne 0x180021bf1
mov rax, qword [rcx + rbx*8 + 0x1c0]
mov rcx, rax
mov qword [rsp + 0x50], rax
shr rcx, 0x20
mov rdx, rax
test ecx, ecx
jne 0x1800219ab
xor ecx, ecx
mov al, 1
mov dword [r8], ecx
mov dword [r14], ecx
jmp 0x180021bf3
cmp r11w, r15w
jne 0x1800219bd
mov r9d, dword [r10 + 0x8c]
add r9d, edx
jmp 0x1800219d1
cmp r11w, bp
jne 0x180021bf1
mov r9d, edx
add r9, qword [r10 + 0x168]
mov r8, qword [r10 + 0x240]
mov rdi, qword [r10 + 0x248]
cmp r8, rdi
je 0x180021a45
nop dword [rax]
nop dword [rax + rax]
movups xmm0, xmmword [r8]
movups xmm1, xmmword [r8 + 0x10]
movups xmmword [rsp], xmm0
cmp r11w, r15w
jne 0x180021a15
mov rdx, qword [rsp + 8]
shr rdx, 0x20
add edx, dword [r10 + 0x8c]
jmp 0x180021a2b
cmp r11w, bp
jne 0x180021a45
mov rdx, qword [rsp + 8]
shr rdx, 0x20
add rdx, qword [r10 + 0x168]
cmp r9, rdx
jb 0x180021a3c
mov ecx, dword [rsp + 8]
add rcx, rdx
cmp r9, rcx
jb 0x180021a6f
add r8, 0x28
cmp r8, rdi
jne 0x1800219f0
test ebx, ebx
je 0x180021b4e
sub ebx, 1
je 0x180021af1
cmp ebx, 4
jne 0x180021bf1
test eax, eax
je 0x180021a8e
mov ecx, eax
xorps xmm0, xmm0
cvtsi2ss xmm0, rcx
jmp 0x180021a96
psrldq xmm1, 4
sub r9d, edx
movd eax, xmm1
add r9d, eax
mov eax, dword [rsp + 0x54]
mov dword [r14], r9d
mov dword [rsi], eax
mov al, 1
jmp 0x180021bf3
movss xmm0, dword [0x180074be8]
cmp qword [0x180080680], 0x10
lea r8, [0x180080668]
mov r9, qword [0x180080678]
cmovae r8, qword [0x180080668]
xor ecx, ecx
mov edx, ecx
test r9, r9
je 0x180021bac
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdx + r8]
inc rdx
add eax, ecx
imul ecx, eax, 0x401
mov eax, ecx
shr eax, 6
xor ecx, eax
cmp rdx, r9
jne 0x180021ad0
jmp 0x180021bac
test eax, eax
je 0x180021b01
mov ecx, eax
xorps xmm0, xmm0
cvtsi2ss xmm0, rcx
jmp 0x180021b09
movss xmm0, dword [0x180074be8]
cmp qword [0x180080360], 0x10
lea r8, [0x180080348]
mov r9, qword [0x180080358]
cmovae r8, qword [0x180080348]
xor ecx, ecx
mov edx, ecx
test r9, r9
je 0x180021bac
movzx eax, byte [rdx + r8]
inc rdx
add eax, ecx
imul ecx, eax, 0x401
mov eax, ecx
shr eax, 6
xor ecx, eax
cmp rdx, r9
jne 0x180021b30
jmp 0x180021bac
test eax, eax
je 0x180021b5e
mov ecx, eax
xorps xmm0, xmm0
cvtsi2ss xmm0, rcx
jmp 0x180021b66
movss xmm0, dword [0x180074be8]
cmp qword [0x180080ba0], 0x10
lea r8, [0x180080b88]
mov r9, qword [0x180080b98]
cmovae r8, qword [0x180080b88]
xor ecx, ecx
mov edx, ecx
test r9, r9
je 0x180021bac
nop dword [rax]
movzx eax, byte [rdx + r8]
inc rdx
add eax, ecx
imul ecx, eax, 0x401
mov eax, ecx
shr eax, 6
xor ecx, eax
cmp rdx, r9
jne 0x180021b90
lea eax, [rcx + rcx*8]
mov ecx, eax
shr ecx, 0xb
xor ecx, eax
mov eax, 0x446f8657
imul r8d, ecx, 0x8001
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 7
imul eax, eax, 0xca
sub r8d, eax
mov rax, qword [r10 + 0x278]
add r8d, 0x36
addss xmm0, dword [rax + r8*4]
movss dword [rax + r8*4], xmm0
xor al, al
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret