Function at 0x140085608
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 [0x140485e58]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov rax, qword [rcx + 0x38]
mov rdi, rcx
mov r14, 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 - 0x78], rdx
mov qword [rbp - 0x60], r9
mov r9, rdx
mov qword [rbp - 0x68], 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 - 0x80], r14
mov ecx, r13d
mov dword [rsp + 0x48], r10d
sub ecx, dword [rdi + 0x1c]
cmp ecx, edx
mov qword [rsp + 0x38], r8
mov dword [rsp + 0x50], r13d
cmova r11d, eax
mov qword [rsp + 0x78], r15
mov eax, dword [rdi + 0x10c]
xor esi, esi
cmp dword [rdi + 0x28], esi
cmovne r11d, dword [rdi + 0x1c]
lea ecx, [rsi + 6]
mov dword [rsp + 0x34], r11d
cmp eax, ecx
lea ebx, [rsi + 3]
mov qword [rsp + 0x40], rbx
cmovb ecx, eax
lea eax, [rsi + 1]
shl eax, cl
mov dword [rsp + 0x30], eax
cmp dword [rdi + 0x12c], esi
jne 0x140085a31
mov r14d, dword [rdi + 0x2c]
lea r15d, [rsi + 0x38]
mov eax, r13d
lea r12d, [rsi + 8]
sub eax, r14d
cmp eax, 0x180
jbe 0x1400858c0
lea eax, [r14 + 0x60]
mov dword [rsp + 0x20], eax
cmp r14d, eax
jae 0x1400857ec
mov eax, r15d
mov qword [rsp + 0x28], r14
sub eax, r10d
mov r11d, r14d
mov r15d, eax
movabs r13, 0xcf1bbcdcbb000000
mov rsi, r8
mov rbx, qword [rdi + 0x60]
lea rdx, [rsi + 8]
add rdx, r11
lea rcx, [rsp + 0x58]
mov r8, r12
call fcn.1400a38c0
mov rdx, qword [rsp + 0x58]
mov ecx, r15d
imul rdx, r13
mov r8d, 0x3fffffc0
xor rdx, rbx
mov rbx, qword [rbp - 0x80]
shr rdx, cl
mov eax, edx
shr rax, 2
and rax, r8
prefetcht0 byte [rbx + rax*4]
prefetcht0 byte [rbx + rax*4 + 0x40]
mov rcx, qword [rsp + 0x60]
prefetcht0 byte [rax + rcx]
prefetcht0 byte [rax + rcx + 0x20]
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, 2
and r9, r8
lea r8, [rcx + r9]
movzx edx, byte [r8]
dec edx
and edx, 0x3f
mov eax, edx
neg eax
sbb ecx, ecx
inc r11
not ecx
mov qword [rsp + 0x28], r11
and ecx, 0x3f
add edx, ecx
mov byte [r8], dl
mov eax, edx
add rax, r9
mov byte [r8 + rdx], r10b
mov dword [rbx + rax*4], r14d
inc r14d
cmp r14d, dword [rsp + 0x20]
jb 0x140085726
mov r13d, dword [rsp + 0x50]
xor esi, esi
mov r9, qword [rbp - 0x78]
mov r8, qword [rsp + 0x38]
lea r15d, [rsi + 0x38]
mov rax, qword [rdi + 0x70]
lea r14d, [r13 - 0x20]
mov qword [rbp - 0x58], rax
lea rcx, [r9 + 1]
mov rax, qword [rdi + 0x38]
mov edx, ecx
sub edx, r14d
mov qword [rsp + 0x68], rax
sub edx, r8d
mov eax, r14d
inc edx
add rax, r8
cmp rax, rcx
cmova edx, esi
cmp edx, r12d
cmova edx, r12d
lea eax, [rdx + r14]
cmp r14d, eax
jae 0x1400858c0
mov eax, r15d
movabs r13, 0xcf1bbcdcbb000000
sub eax, dword [rdi + 0x34]
mov dword [rsp + 0x20], eax
mov esi, dword [rsp + 0x20]
mov eax, edx
mov qword [rsp + 0x28], rax
mov r15d, r14d
mov rbx, qword [rdi + 0x60]
lea rdx, [r8 + r15]
mov r8, r12
lea rcx, [rbp - 0x70]
call fcn.1400a38c0
mov rdx, qword [rbp - 0x70]
mov ecx, esi
imul rdx, r13
xor rdx, rbx
shr rdx, cl
mov rcx, qword [rbp - 0x58]
mov eax, edx
shr rax, 2
and eax, 0x3fffffc0
prefetcht0 byte [rcx + rax*4]
prefetcht0 byte [rcx + rax*4 + 0x40]
mov rcx, qword [rsp + 0x68]
prefetcht0 byte [rax + rcx]
prefetcht0 byte [rax + rcx + 0x20]
mov r8, qword [rsp + 0x38]
mov rax, r15
and eax, 7
inc r15
sub qword [rsp + 0x28], 1
mov dword [rdi + rax*4 + 0x40], edx
jne 0x140085851
mov r13d, dword [rsp + 0x50]
xor esi, esi
lea r15d, [rsi + 0x38]
mov rcx, qword [rdi + 0x38]
mov rax, qword [rdi + 0x70]
mov qword [rsp + 0x50], rcx
mov rcx, qword [rdi + 8]
mov qword [rsp + 0x70], rcx
mov qword [rbp - 0x58], rax
cmp r14d, r13d
jae 0x1400859b4
sub r15d, dword [rdi + 0x34]
movabs rsi, 0xcf1bbcdcbb000000
mov r8d, r14d
mov qword [rsp + 0x28], r8
mov rbx, qword [rdi + 0x60]
lea rdx, [r8 + 8]
add rdx, rcx
mov r8, r12
lea rcx, [rsp + 0x68]
call fcn.1400a38c0
mov rdx, qword [rsp + 0x68]
mov ecx, r15d
imul rdx, rsi
mov r9d, 0x3fffffc0
xor rdx, rbx
mov rbx, qword [rbp - 0x58]
shr rdx, cl
mov eax, edx
shr rax, 2
and rax, r9
prefetcht0 byte [rbx + rax*4]
prefetcht0 byte [rbx + rax*4 + 0x40]
mov rcx, qword [rsp + 0x50]
prefetcht0 byte [rcx + rax]
prefetcht0 byte [rcx + rax + 0x20]
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, 2
and r10, r9
lea r9, [rcx + r10]
movzx edx, byte [r9]
dec edx
and edx, 0x3f
mov eax, edx
neg eax
sbb ecx, ecx
inc r8
not ecx
mov qword [rsp + 0x28], r8
and ecx, 0x3f
add edx, ecx
mov rcx, qword [rsp + 0x70]
mov byte [r9], dl
mov eax, edx
add rax, r10
mov byte [r9 + rdx], r11b
mov dword [rbx + rax*4], r14d
inc r14d
cmp r14d, r13d
jb 0x1400858f9
xor esi, esi
lea r15d, [rsi + 0x38]
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x70]
add rdx, r12
mov ebx, r13d
add rdx, rbx
mov dword [rdi + 0x2c], r13d
mov r8, r12
call fcn.1400a38c0
sub r15d, dword [rsp + 0x48]
movabs rax, 0xcf1bbcdcbb000000
mov rdx, qword [rsp + 0x70]
mov cl, r15b
mov r14, qword [rbp - 0x80]
imul rdx, rax
xor rdx, qword [rsp + 0x78]
shr rdx, cl
mov eax, edx
shr rax, 2
and eax, 0x3fffffc0
prefetcht0 byte [r14 + rax*4]
prefetcht0 byte [r14 + rax*4 + 0x40]
mov rcx, qword [rsp + 0x60]
prefetcht0 byte [rax + rcx]
prefetcht0 byte [rax + rcx + 0x20]
and ebx, 7
mov r8d, dword [rdi + rbx*4 + 0x40]
mov dword [rdi + rbx*4 + 0x40], edx
mov rbx, qword [rsp + 0x40]
jmp 0x140085a6f
mov r8d, 8
lea rcx, [rsp + 0x78]
mov rdx, r9
call fcn.1400a38c0
mov r8, qword [rsp + 0x78]
mov ecx, 0x38
sub ecx, dword [rsp + 0x48]
movabs rax, 0xcf1bbcdcbb000000
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, 2
xorps xmm0, xmm0
and eax, 0x3fffffc0
movups xmmword [rbp - 0x58], xmm0
lea r9, [rax + rcx]
mov rcx, rsi
movzx r10d, byte [r9]
lea r11, [r14 + rax*4]
movsx eax, r8b
mov r14, rsi
mov rdx, r9
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 - 0x58], eax
inc rcx
cmp rcx, 4
jl 0x140085ab0
movsxd rax, dword [rbp - 0x50]
mov cl, r10b
movsxd rdx, dword [rbp - 0x4c]
and cl, 0x3f
shl rdx, 0x10
or rdx, rax
movsxd rax, dword [rbp - 0x54]
shl rdx, 0x10
or rdx, rax
movsxd rax, dword [rbp - 0x58]
shl rdx, 0x10
or rdx, rax
ror rdx, cl
test rdx, rdx
je 0x140085b45
mov r15, qword [rsp + 0x38]
mov r12d, dword [rsp + 0x30]
mov ebx, dword [rsp + 0x34]
test r12d, r12d
je 0x140085b40
bsf rcx, rdx
add ecx, r10d
and ecx, 0x3f
je 0x140085b37
mov ecx, dword [r11 + rcx*4]
cmp ecx, ebx
jb 0x140085b40
prefetcht0 byte [rcx + r15]
mov dword [rbp + r14*4 - 0x40], ecx
inc r14
dec r12d
lea rax, [rdx - 1]
and rdx, rax
ja 0x140085b0e
mov rbx, qword [rsp + 0x40]
lea edx, [r10 - 1]
and edx, 0x3f
mov eax, edx
neg eax
sbb ecx, ecx
not ecx
and ecx, 0x3f
add edx, ecx
mov byte [r9], dl
mov byte [rdx + r9], r8b
mov eax, dword [rdi + 0x2c]
mov dword [r11 + rdx*4], eax
inc dword [rdi + 0x2c]
test r14, r14
je 0x140085c0e
mov r15, qword [rbp - 0x78]
mov r12, qword [rbp - 0x68]
mov edi, dword [rbp + rsi*4 - 0x40]
lea rdx, [rbx - 3]
add rdi, qword [rsp + 0x38]
lea rcx, [rsp + 0x34]
add rdx, rdi
mov r8d, 4
call fcn.1400a38c0
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x30]
mov ebx, dword [rsp + 0x34]
add rdx, 0xfffffffffffffffd
add rdx, r15
mov r8d, 4
call fcn.1400a38c0
cmp ebx, dword [rsp + 0x30]
jne 0x140085bfd
mov r8, r12
mov rdx, rdi
mov rcx, r15
call fcn.14006bc6c
mov rbx, qword [rsp + 0x40]
cmp rax, rbx
jbe 0x140085c02
mov rdx, qword [rbp - 0x60]
mov ecx, r13d
sub ecx, dword [rbp + rsi*4 - 0x40]
mov rbx, rax
add ecx, 3
mov qword [rsp + 0x40], rax
mov qword [rdx], rcx
lea rcx, [rax + r15]
cmp rcx, r12
je 0x140085c0e
jmp 0x140085c02
mov rbx, qword [rsp + 0x40]
inc rsi
cmp rsi, r14
jb 0x140085b7b
mov rax, rbx
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.1400a2f00
add rsp, 0x1d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret