Function at 0x14005b6f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
push rbx
push rsi
push r13
push r15
sub rsp, 0x58
mov rsi, rdx
mov r13, r9
mov edx, dword [rcx + 0x10ee0]
mov r15, r8
mov rbx, rcx
cmp dword [rcx + 0x10edc], edx
je 0x14005b75f
imul rcx, rdx, 0x2c
mov eax, dword [rcx + rbx + 0x10ef8]
sub eax, edx
mov dword [r9], eax
mov eax, dword [rbx + 0x10ee0]
imul rcx, rax, 0x2c
mov eax, dword [rcx + rbx + 0x10efc]
mov dword [r8], eax
mov eax, dword [rbx + 0x10ee0]
imul rcx, rax, 0x2c
mov eax, dword [rcx + rbx + 0x10ef8]
mov dword [rbx + 0x10ee0], eax
add rsp, 0x58
pop r15
pop r13
pop rsi
pop rbx
ret
cmp dword [rsi + 0x1c], 0
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x50], r14
jne 0x14005b87e
cmp dword [rcx + 0x10e94], 0x80
jb 0x14005b78f
call fcn.14005bb50
cmp dword [rbx + 0x10ed8], 0x10
jb 0x14005b87e
xor edi, edi
lea r14, [rbx + 0x10e98]
lea rbp, [0x140074160]
nop dword [rax]
movzx eax, word [rbx + 0x71e2]
lea r14, [r14 + 4]
shr rax, 4
mov edx, edi
and edx, 1
mov r11d, edi
mov ecx, edx
shr r11d, 1
neg ecx
inc edi
shr rcx, 4
and ecx, 0x7f
lea r8d, [rdx + 2]
xor rcx, rax
mov edx, r11d
and edx, 1
shr r11d, 1
mov eax, edx
neg eax
movzx r10d, byte [rcx + rbp]
movzx ecx, word [rbx + r8*2 + 0x71e0]
lea r9d, [rdx + r8*2]
shr rax, 4
mov edx, r11d
and eax, 0x7f
shr rcx, 4
xor rcx, rax
shr r11d, 1
and edx, 1
and r11d, 1
movzx eax, byte [rcx + rbp]
movzx ecx, word [rbx + r9*2 + 0x71e0]
add r10d, eax
shr rcx, 4
mov eax, edx
neg eax
shr rax, 4
and eax, 0x7f
xor rcx, rax
movzx eax, byte [rcx + rbp]
add r10d, eax
lea eax, [rdx + r9*2]
movzx ecx, word [rbx + rax*2 + 0x71e0]
mov eax, r11d
neg eax
shr rcx, 4
shr rax, 4
and eax, 0x7f
xor rcx, rax
movzx eax, byte [rcx + rbp]
add r10d, eax
mov dword [r14 - 4], r10d
cmp edi, 0x10
jb 0x14005b7b0
mov dword [rbx + 0x10ed8], 0
mov r14d, dword [rsp + 0xa0]
mov r9, r13
mov r8, r15
mov dword [rsp + 0x20], r14d
mov rdx, rsi
mov rcx, rbx
call fcn.14005bd60
mov ebp, eax
cmp eax, 0xffffffff
je 0x14005ba26
movups xmm0, xmmword [rbx + 0x2e4]
mov edi, 1
movups xmmword [rsp + 0x40], xmm0
cmp eax, edi
jbe 0x14005b94d
mov qword [rsp + 0x98], r12
nop dword [rax + rax]
lea r8, [rbx + 0x2f4]
mov rcx, rsi
lea rdx, [rbx + 0xb84]
call fcn.14005f1e0
mov dword [rbx + 0xb88], eax
mov edx, dword [rsi + 0x60]
cmp eax, edx
jae 0x14005b93d
mov r8d, dword [rsi + 0x18]
mov eax, 0xfff
mov ecx, dword [rsi + 0x24]
sub eax, edi
sub ecx, r8d
mov r9d, ebp
inc ecx
dec r8
cmp ecx, eax
cmovae ecx, eax
add r8, qword [rsi]
mov dword [rsp + 0x38], ecx
lea eax, [rdi + r14]
mov dword [rsp + 0x30], edx
mov rcx, rbx
mov dword [rsp + 0x28], edi
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x20], eax
call fcn.14005c450
inc edi
mov ebp, eax
cmp edi, eax
jb 0x14005b8d0
mov r15, qword [rsp + 0x90]
mov r12, qword [rsp + 0x98]
mov dword [rbx + 0x10edc], edi
mov eax, edi
imul rcx, rax, 0x2c
mov r9d, dword [rcx + rbx + 0x10ef8]
mov r10d, dword [rcx + rbx + 0x10efc]
nop dword [rax]
mov eax, edi
imul rdx, rax, 0x2c
add rdx, rbx
cmp byte [rdx + 0x10ee8], 0
je 0x14005b9d6
mov eax, r9d
imul rcx, rax, 0x2c
lea eax, [r9 - 1]
mov dword [rcx + rbx + 0x10efc], 0xffffffff
mov byte [rcx + rbx + 0x10ee8], 0
mov dword [rcx + rbx + 0x10ef8], eax
cmp byte [rdx + 0x10ee9], 0
je 0x14005b9d6
imul rcx, rax, 0x2c
mov byte [rcx + rbx + 0x10ee8], 0
mov eax, dword [rdx + 0x10eec]
mov dword [rcx + rbx + 0x10ef8], eax
mov eax, dword [rdx + 0x10ef0]
mov dword [rcx + rbx + 0x10efc], eax
mov r8d, r9d
mov eax, r9d
imul rcx, rax, 0x2c
mov edx, r10d
mov r9d, dword [rcx + rbx + 0x10ef8]
mov r10d, dword [rcx + rbx + 0x10efc]
mov dword [rcx + rbx + 0x10ef8], edi
mov edi, r8d
mov dword [rcx + rbx + 0x10efc], edx
test r8d, r8d
jne 0x14005b970
mov eax, dword [rbx + 0x10ef8]
mov dword [rbx + 0x10ee0], eax
mov dword [r13], eax
mov eax, dword [rbx + 0x10efc]
mov dword [r15], eax
mov rdi, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x80]
mov r14, qword [rsp + 0x50]
add rsp, 0x58
pop r15
pop r13
pop rsi
pop rbx
ret