Function at 0x1402b8ae8
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xd8]
sub rsp, 0x1d8
mov rax, qword [0x14051efc0]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov rax, qword [rcx + 0x38]
mov rdi, rcx
mov rsi, qword [rcx + 0x70]
mov r13d, edx
mov r10d, dword [rcx + 0x34]
mov qword [rsp + 0x60], rax
mov r11d, dword [rdi + 0x1c]
mov r15, qword [rdi + 0x60]
mov qword [rbp - 0x70], rdx
mov qword [rbp - 0x58], r9
mov r9, rdx
mov qword [rbp - 0x60], r8
mov edx, 1
mov r8, qword [rcx + 8]
mov ecx, dword [rcx + 0x100]
sub r13d, r8d
shl edx, cl
mov eax, r13d
sub eax, edx
mov qword [rbp - 0x78], rsi
mov ecx, r13d
mov dword [rsp + 0x50], r10d
sub ecx, dword [rdi + 0x1c]
cmp ecx, edx
mov qword [rsp + 0x40], r8
mov dword [rsp + 0x30], r13d
cmova r11d, eax
mov qword [rbp - 0x80], r15
mov eax, dword [rdi + 0x10c]
xor r14d, r14d
cmp dword [rdi + 0x28], r14d
cmovne r11d, dword [rdi + 0x1c]
lea ecx, [r14 + 5]
mov dword [rsp + 0x38], r11d
cmp eax, ecx
lea ebx, [r14 + 3]
mov qword [rsp + 0x48], rbx
cmovb ecx, eax
lea eax, [r14 + 1]
shl eax, cl
mov dword [rsp + 0x34], eax
cmp dword [rdi + 0x12c], r14d
jne 0x1402b8eff
mov esi, dword [rdi + 0x2c]
lea r15d, [r14 + 0x38]
mov eax, r13d
lea r12d, [r14 + 8]
sub eax, esi
cmp eax, 0x180
jbe 0x1402b8d97
lea eax, [rsi + 0x60]
mov dword [rsp + 0x20], eax
cmp esi, eax
jae 0x1402b8cc6
mov eax, r15d
mov qword [rsp + 0x28], rsi
sub eax, r10d
mov r11d, esi
mov r15d, eax
movabs r13, 0xcf1bbcdcbf9b0000
mov r14, r8
mov rbx, qword [rdi + 0x60]
lea rdx, [r14 + 8]
add rdx, r11
lea rcx, [rsp + 0x58]
mov r8, r12
call fcn.1403abad0
mov rdx, qword [rsp + 0x58]
mov ecx, r15d
imul rdx, r13
mov r8d, 0x1fffffe0
xor rdx, rbx
mov rbx, qword [rbp - 0x78]
shr rdx, cl
mov eax, edx
shr rax, 3
and rax, r8
prefetcht0 byte [rbx + rax*4]
prefetcht0 byte [rbx + rax*4 + 0x40]
mov rcx, qword [rsp + 0x60]
prefetcht0 byte [rcx + rax]
mov r11, qword [rsp + 0x28]
mov rax, r11
and eax, 7
mov r10d, dword [rdi + rax*4 + 0x40]
mov r9d, r10d
mov dword [rdi + rax*4 + 0x40], edx
shr r9, 3
and r9, r8
lea r8, [rcx + r9]
movzx edx, byte [r8]
dec edx
and edx, 0x1f
mov eax, edx
neg eax
sbb ecx, ecx
inc r11
not ecx
mov qword [rsp + 0x28], r11
and ecx, 0x1f
add edx, ecx
mov byte [r8], dl
mov eax, edx
add rax, r9
mov byte [r8 + rdx], r10b
mov dword [rbx + rax*4], esi
inc esi
cmp esi, dword [rsp + 0x20]
jb 0x1402b8c07
mov r13d, dword [rsp + 0x30]
xor r14d, r14d
mov r9, qword [rbp - 0x70]
mov r8, qword [rsp + 0x40]
lea r15d, [r14 + 0x38]
mov rax, qword [rdi + 0x70]
lea esi, [r13 - 0x20]
mov qword [rsp + 0x68], rax
lea rcx, [r9 + 1]
mov rax, qword [rdi + 0x38]
mov edx, ecx
sub edx, esi
mov qword [rsp + 0x70], rax
sub edx, r8d
mov eax, esi
inc edx
add rax, r8
cmp rax, rcx
cmova edx, r14d
cmp edx, r12d
cmova edx, r12d
lea eax, [rdx + rsi]
cmp esi, eax
jae 0x1402b8d97
mov eax, r15d
movabs r13, 0xcf1bbcdcbf9b0000
sub eax, dword [rdi + 0x34]
mov dword [rsp + 0x20], eax
mov r14d, dword [rsp + 0x20]
mov eax, edx
mov qword [rsp + 0x28], rax
mov r15d, esi
mov rbx, qword [rdi + 0x60]
lea rdx, [r8 + r15]
mov r8, r12
lea rcx, [rbp - 0x68]
call fcn.1403abad0
mov rdx, qword [rbp - 0x68]
mov ecx, r14d
imul rdx, r13
xor rdx, rbx
shr rdx, cl
mov rcx, qword [rsp + 0x68]
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [rcx + rax*4]
prefetcht0 byte [rcx + rax*4 + 0x40]
mov rcx, qword [rsp + 0x70]
prefetcht0 byte [rcx + rax]
mov r8, qword [rsp + 0x40]
mov rax, r15
and eax, 7
inc r15
sub qword [rsp + 0x28], 1
mov dword [rdi + rax*4 + 0x40], edx
jne 0x1402b8d2a
mov r13d, dword [rsp + 0x30]
xor r14d, r14d
lea r15d, [r14 + 0x38]
mov rax, qword [rdi + 0x70]
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x68], rax
mov rax, qword [rdi + 0x38]
mov qword [rbp - 0x50], rax
mov qword [rsp + 0x78], rcx
cmp esi, r13d
jae 0x1402b8e8a
mov eax, r15d
mov r8d, esi
sub eax, dword [rdi + 0x34]
movabs r14, 0xcf1bbcdcbf9b0000
mov r15d, eax
mov qword [rsp + 0x28], r8
mov rbx, qword [rdi + 0x60]
lea rdx, [r8 + 8]
add rdx, rcx
mov r8, r12
lea rcx, [rsp + 0x70]
call fcn.1403abad0
mov rdx, qword [rsp + 0x70]
mov ecx, r15d
imul rdx, r14
mov r9d, 0x1fffffe0
xor rdx, rbx
mov rbx, qword [rsp + 0x68]
shr rdx, cl
mov eax, edx
shr rax, 3
and rax, r9
prefetcht0 byte [rbx + rax*4]
prefetcht0 byte [rbx + rax*4 + 0x40]
mov rcx, qword [rbp - 0x50]
prefetcht0 byte [rax + rcx]
mov r8, qword [rsp + 0x28]
mov rax, r8
and eax, 7
mov r11d, dword [rdi + rax*4 + 0x40]
mov r10d, r11d
mov dword [rdi + rax*4 + 0x40], edx
shr r10, 3
and r10, r9
lea r9, [rcx + r10]
movzx edx, byte [r9]
dec edx
and edx, 0x1f
mov eax, edx
neg eax
sbb ecx, ecx
inc r8
not ecx
mov qword [rsp + 0x28], r8
and ecx, 0x1f
add edx, ecx
mov rcx, qword [rsp + 0x78]
mov byte [r9], dl
mov eax, edx
add rax, r10
mov byte [rdx + r9], r11b
mov dword [rbx + rax*4], esi
inc esi
cmp esi, r13d
jb 0x1402b8dd5
xor r14d, r14d
lea r15d, [r14 + 0x38]
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x78]
add rdx, r12
mov ebx, r13d
add rdx, rbx
mov dword [rdi + 0x2c], r13d
mov r8, r12
call fcn.1403abad0
sub r15d, dword [rsp + 0x50]
movabs rax, 0xcf1bbcdcbf9b0000
mov rdx, qword [rsp + 0x78]
mov cl, r15b
mov rsi, qword [rbp - 0x78]
imul rdx, rax
xor rdx, qword [rbp - 0x80]
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [rsi + rax*4]
prefetcht0 byte [rsi + rax*4 + 0x40]
mov rcx, qword [rsp + 0x60]
prefetcht0 byte [rax + rcx]
and ebx, 7
mov r8d, dword [rdi + rbx*4 + 0x40]
mov dword [rdi + rbx*4 + 0x40], edx
mov rbx, qword [rsp + 0x48]
jmp 0x1402b8f3b
mov r8d, 8
lea rcx, [rbp - 0x80]
mov rdx, r9
call fcn.1403abad0
mov r8, qword [rbp - 0x80]
mov ecx, 0x38
sub ecx, dword [rsp + 0x50]
movabs rax, 0xcf1bbcdcbf9b0000
imul r8, rax
mov dword [rdi + 0x2c], r13d
xor r8, r15
shr r8, cl
mov rcx, qword [rsp + 0x60]
add dword [rdi + 0x68], r8d
mov eax, r8d
shr rax, 3
xorps xmm0, xmm0
and eax, 0x1fffffe0
movups xmmword [rbp - 0x50], xmm0
lea r11, [rax + rcx]
mov rcx, r14
movzx r12d, byte [r11]
lea r15, [rsi + rax*4]
movsx eax, r8b
mov r10d, r12d
and r10d, 0x1f
mov rsi, r14
mov rdx, r11
movd xmm1, eax
punpcklbw xmm1, xmm1
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
movdqu xmm0, xmmword [rdx]
lea rdx, [rdx + 0x10]
pcmpeqb xmm0, xmm1
pmovmskb eax, xmm0
mov dword [rbp + rcx*4 - 0x50], eax
inc rcx
cmp rcx, 2
jl 0x1402b8f83
mov edx, dword [rbp - 0x4c]
mov ecx, r10d
neg ecx
shl edx, 0x10
or edx, dword [rbp - 0x50]
and ecx, 0x1f
mov r9d, edx
mov eax, edx
shl r9d, cl
mov ecx, r10d
shr rax, cl
or r9, rax
jbe 0x1402b900b
mov rdx, qword [rsp + 0x40]
mov ebx, dword [rsp + 0x34]
mov r13d, dword [rsp + 0x38]
test ebx, ebx
je 0x1402b9001
bsf rcx, r9
add ecx, r10d
and ecx, 0x1f
je 0x1402b8ff8
mov ecx, dword [r15 + rcx*4]
cmp ecx, r13d
jb 0x1402b9001
prefetcht0 byte [rcx + rdx]
mov dword [rbp + rsi*4 - 0x40], ecx
inc rsi
dec ebx
lea rax, [r9 - 1]
and r9, rax
ja 0x1402b8fd2
mov r13d, dword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
lea edx, [r12 - 1]
and edx, 0x1f
mov eax, edx
neg eax
sbb ecx, ecx
not ecx
and ecx, 0x1f
add edx, ecx
mov byte [r11], dl
mov byte [rdx + r11], r8b
mov eax, dword [rdi + 0x2c]
mov dword [r15 + rdx*4], eax
inc dword [rdi + 0x2c]
test rsi, rsi
je 0x1402b90d7
mov r15, qword [rbp - 0x70]
mov r12, qword [rbp - 0x60]
mov edi, dword [rbp + r14*4 - 0x40]
lea rdx, [rbx - 3]
add rdi, qword [rsp + 0x40]
lea rcx, [rsp + 0x38]
add rdx, rdi
mov r8d, 4
call fcn.1403abad0
mov rdx, qword [rsp + 0x48]
lea rcx, [rsp + 0x34]
mov ebx, dword [rsp + 0x38]
add rdx, 0xfffffffffffffffd
add rdx, r15
mov r8d, 4
call fcn.1403abad0
cmp ebx, dword [rsp + 0x34]
jne 0x1402b90c6
mov r8, r12
mov rdx, rdi
mov rcx, r15
call fcn.140291d6c
mov rbx, qword [rsp + 0x48]
cmp rax, rbx
jbe 0x1402b90cb
mov rdx, qword [rbp - 0x58]
mov ecx, r13d
sub ecx, dword [rbp + r14*4 - 0x40]
mov rbx, rax
add ecx, 3
mov qword [rsp + 0x48], rax
mov qword [rdx], rcx
lea rcx, [rax + r15]
cmp rcx, r12
je 0x1402b90d7
jmp 0x1402b90cb
mov rbx, qword [rsp + 0x48]
inc r14
cmp r14, rsi
jb 0x1402b9042
mov rax, rbx
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.1403ab020
add rsp, 0x1d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret