Function at 0x180021358
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xe0
mov rdi, rdx
mov rbx, rcx
lea r8, [rbp + 0x7f]
lea rdx, [rbp - 0x79]
mov rcx, qword [rdi]
call fcn.18000c59c
xor r13d, r13d
test al, al
je 0x180021536
mov esi, dword [rbp + 0x7f]
test esi, esi
je 0x1800213ad
mov rax, qword [rbp - 0x79]
mov ecx, esi
xor byte [rax], 0x55
inc rax
sub rcx, 1
jne 0x1800213a1
mov word [rbp + 0x79], r13w
mov al, byte [rbx + 0x90]
mov byte [rbp + 0x77], al
mov al, byte [rbx + 0x91]
mov byte [rbp + 0x78], al
xorps xmm0, xmm0
cmp byte [rbx + 0x92], r13b
je 0x18002149e
lea rax, [rbp - 0x69]
mov qword [rbp + 0x17], rax
lea rax, [rbp - 0x49]
mov qword [rbp + 0x1f], rax
movups xmmword [rbp - 0x69], xmm0
mov qword [rbp - 0x59], r13
mov qword [rbp - 0x51], r13
lea rdx, [rbx + 0x70]
cmp qword [rbx + 0x88], 7
jbe 0x180021402
mov rdx, qword [rbx + 0x70]
mov r8, qword [rbx + 0x80]
lea rcx, [rbp - 0x69]
call fcn.180003f6c
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x39], r13
mov qword [rbp - 0x31], r13
lea rdx, [rbx + 0x50]
cmp qword [rbx + 0x68], 7
jbe 0x180021431
mov rdx, qword [rbx + 0x50]
mov r8, qword [rbx + 0x60]
lea rcx, [rbp - 0x49]
call fcn.180003f6c
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], r13
mov qword [rbp - 0x11], r13
lea rdx, [rbx + 0x30]
cmp qword [rbx + 0x48], 7
jbe 0x18002145d
mov rdx, qword [rbx + 0x30]
mov r8, qword [rbx + 0x40]
lea rcx, [rbp - 0x29]
call fcn.180003f6c
lea r12, [rbx + 0x28]
mov qword [rsp + 0x38], r12
lea rax, [rbp + 0x77]
mov qword [rsp + 0x30], rax
mov al, byte [rbx + 0x10]
mov byte [rsp + 0x28], al
mov dword [rsp + 0x20], esi
mov r9, qword [rbp - 0x79]
lea r8, [rbp - 0x69]
lea rdx, [rbp - 0x49]
lea rcx, [rbp - 0x29]
call fcn.18001efbc
jmp 0x1800214f6
movups xmmword [rbp - 9], xmm0
mov qword [rbp + 7], r13
mov qword [rbp + 0xf], r13
lea rdx, [rbx + 0x30]
cmp qword [rbx + 0x48], 7
jbe 0x1800214b9
mov rdx, qword [rbx + 0x30]
mov r8, qword [rbx + 0x40]
lea rcx, [rbp - 9]
call fcn.180003f6c
lea r12, [rbx + 0x28]
mov eax, dword [rbx + 0x94]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r12
lea rax, [rbp + 0x77]
mov qword [rsp + 0x20], rax
mov r9b, byte [rbx + 0x10]
mov r8d, esi
mov rdx, qword [rbp - 0x79]
lea rcx, [rbp - 9]
call fcn.18001eea0
mov r15, rax
test esi, esi
je 0x180021510
mov rax, qword [rbp - 0x79]
mov rcx, rsi
xor byte [rax], 0x55
inc rax
sub rcx, 1
jne 0x180021504
mov rcx, qword [rbp - 0x79]
call fcn.180025b6c
test r15, r15
je 0x180021536
mov r9b, byte [rbx + 0x11]
xor r8d, r8d
mov rdx, r15
mov rcx, qword [r12]
call fcn.18001f2b4
test rax, rax
jne 0x18002156d
mov rdi, qword [rdi + 8]
test rdi, rdi
je 0x180021569
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdi + 8], eax
add eax, ebx
jne 0x180021569
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
mov eax, ebx
lock xadd dword [rdi + 0xc], eax
add eax, ebx
jne 0x180021569
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
xor al, al
jmp 0x1800215a2
mov rdi, qword [rdi + 8]
test rdi, rdi
je 0x1800215a0
or ebx, 0xffffffff
mov eax, ebx
lock xadd dword [rdi + 8], eax
add eax, ebx
jne 0x1800215a0
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx]
mov edx, ebx
lock xadd dword [rdi + 0xc], edx
add edx, ebx
jne 0x1800215a0
mov rdx, qword [rdi]
mov rcx, rdi
call qword [rdx + 8]
mov al, 1
add rsp, 0xe0
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret