Function at 0x1400a2ef0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1d8
mov rax, qword [0x140114e78]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov eax, dword [rcx + 0x34]
mov r11, rcx
mov r14, qword [rcx + 0x70]
mov r10d, edx
mov r15, qword [rcx + 0x38]
mov rdi, rdx
mov dword [rsp + 0x40], eax
mov r13d, edx
mov eax, dword [rcx + 0x18]
mov rbx, r8
mov r8, qword [rcx + 8]
mov r12d, 1
mov ecx, dword [rcx + 0x100]
sub r10d, r8d
mov esi, dword [r11 + 0x10c]
sub r13d, r8d
mov dword [rsp + 0x28], eax
mov ebp, 3
add rax, r8
mov qword [rsp + 0x80], r9
mov qword [rsp + 0xb0], rax
mov r9d, r10d
mov qword [rsp + 0x90], rdx
mov eax, r10d
mov edx, r12d
mov qword [rsp + 0x58], rbx
shl edx, cl
mov ecx, dword [r11 + 0x1c]
sub r9d, edx
sub eax, ecx
mov qword [rsp + 0xa0], r14
cmp eax, edx
mov qword [rsp + 0x68], r15
mov rdx, qword [r11 + 0xf8]
mov eax, r12d
cmovbe r9d, ecx
mov qword [rsp + 0x48], r8
cmp dword [r11 + 0x28], 0
mov dword [rsp + 0x2c], r13d
cmovne r9d, ecx
mov dword [rsp + 0x30], r10d
mov ecx, 6
mov dword [rsp + 0x78], r9d
mov r9, qword [r11 + 0x60]
cmp esi, ecx
mov qword [rsp + 0x38], r9
cmovb ecx, esi
mov qword [rsp + 0x98], rbp
shl eax, cl
movabs rcx, 0xcf1bbcdcbf9b0000
mov dword [rsp + 0x44], eax
mov rax, qword [rdi]
imul rax, rcx
mov ecx, 0x42
mov qword [rsp + 0x50], rdx
sub ecx, dword [rdx + 0x108]
mov qword [rsp + 0x70], rax
shr rax, cl
lea rax, [rax*4]
lea rcx, [rax*4]
mov qword [rsp + 0xa8], rax
mov rax, qword [rdx + 0x70]
mov qword [rsp + 0x60], rcx
prefetcht0 byte [rcx + rax]
xor r12d, r12d
mov qword [rsp + 0x88], r12
cmp esi, 6
jbe 0x1400a305a
lea ecx, [rsi - 6]
mov eax, 1
shl eax, cl
mov dword [rsp + 0x24], eax
jmp 0x1400a305f
mov dword [rsp + 0x24], r12d
mov dword [rsp + 0x20], 0x3f
cmp dword [r11 + 0x12c], r12d
jne 0x1400a3396
mov r10d, dword [r11 + 0x2c]
mov eax, r13d
mov ecx, dword [rsp + 0x40]
sub eax, r10d
mov rsi, r14
mov r14, r15
mov r15d, ecx
mov rdx, r8
mov r13d, 0x38
cmp eax, 0x180
jbe 0x1400a324f
lea eax, [r10 + 0x60]
cmp r10d, eax
jae 0x1400a3187
mov rbp, qword [rsp + 0xa0]
lea r14, [r8 + 8]
mov rdi, qword [rsp + 0x68]
mov r15d, r13d
sub r15d, ecx
mov esi, r10d
add r14, r10
mov ebx, eax
movabs r13, 0xcf1bbcdcbf9b0000
nop word [rax + rax]
mov rdx, qword [r14]
mov ecx, r15d
imul rdx, r13
xor rdx, qword [r11 + 0x60]
shr rdx, cl
mov eax, edx
shr rax, 2
and eax, 0x3fffffc0
prefetcht0 byte [rbp + rax*4]
prefetcht0 byte [rbp + rax*4 + 0x40]
prefetcht0 byte [rdi + rax]
prefetcht0 byte [rdi + rax + 0x20]
mov rax, rsi
lea r14, [r14 + 1]
and eax, 7
mov r9d, dword [r11 + rax*4 + 0x40]
mov r8d, r9d
mov dword [r11 + rax*4 + 0x40], edx
mov eax, r12d
shr r8, 2
and r8d, 0x3fffffc0
movzx ecx, byte [rdi + r8]
lea rdx, [rdi + r8]
dec ecx
and ecx, 0x3f
cmove eax, dword [rsp + 0x20]
inc rsi
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [rbp + rax*4], r10d
inc r10d
cmp r10d, ebx
jb 0x1400a30e0
mov rdx, qword [r11 + 8]
mov r13d, 0x38
mov rbx, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x98]
mov r10d, dword [rsp + 0x2c]
lea rax, [rdi + 1]
mov r9, qword [rsp + 0x48]
add r10d, 0xffffffe0
mov rsi, qword [r11 + 0x70]
mov ecx, eax
mov r14, qword [r11 + 0x38]
sub ecx, r10d
sub ecx, dword [rsp + 0x48]
mov r15d, dword [r11 + 0x34]
inc ecx
mov r8d, r10d
add r9, r8
cmp r9, rax
mov eax, 8
cmova ecx, r12d
cmp ecx, eax
cmova ecx, eax
lea eax, [r10 + rcx]
cmp r10d, eax
jae 0x1400a324f
mov ebx, r13d
movabs r12, 0xcf1bbcdcbf9b0000
sub ebx, r15d
mov r15d, ecx
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [r9]
mov ecx, ebx
imul rdx, r12
xor rdx, qword [r11 + 0x60]
shr rdx, cl
mov eax, edx
shr rax, 2
and eax, 0x3fffffc0
prefetcht0 byte [rsi + rax*4]
prefetcht0 byte [rsi + rax*4 + 0x40]
prefetcht0 byte [r14 + rax]
prefetcht0 byte [r14 + rax + 0x20]
mov rax, r8
lea r9, [r9 + 1]
and eax, 7
inc r8
mov dword [r11 + rax*4 + 0x40], edx
sub r15, 1
jne 0x1400a31f0
mov rsi, qword [r11 + 0x70]
xor r12d, r12d
mov r14, qword [r11 + 0x38]
mov r15d, dword [r11 + 0x34]
mov rdx, qword [r11 + 8]
mov rbx, qword [rsp + 0x58]
mov eax, dword [rsp + 0x2c]
cmp r10d, eax
jae 0x1400a3326
mov ebp, r13d
lea rbx, [r10 + 8]
sub ebp, r15d
mov edi, eax
add rbx, rdx
mov r15d, r10d
movabs r13, 0xcf1bbcdcbf9b0000
nop dword [rax + rax]
mov rdx, qword [rbx]
mov ecx, ebp
imul rdx, r13
xor rdx, qword [r11 + 0x60]
shr rdx, cl
mov eax, edx
shr rax, 2
and eax, 0x3fffffc0
prefetcht0 byte [rsi + rax*4]
prefetcht0 byte [rsi + rax*4 + 0x40]
prefetcht0 byte [rax + r14]
prefetcht0 byte [rax + r14 + 0x20]
mov rax, r15
lea rbx, [rbx + 1]
and eax, 7
mov r9d, dword [r11 + rax*4 + 0x40]
mov r8d, r9d
mov dword [r11 + rax*4 + 0x40], edx
mov eax, r12d
shr r8, 2
and r8d, 0x3fffffc0
movzx ecx, byte [r8 + r14]
lea rdx, [r8 + r14]
dec ecx
and ecx, 0x3f
cmove eax, dword [rsp + 0x20]
inc r15
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [rsi + rax*4], r10d
inc r10d
cmp r10d, edi
jb 0x1400a3280
mov rbx, qword [rsp + 0x58]
mov r13d, 0x38
mov rdi, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x98]
mov eax, dword [rsp + 0x2c]
sub r13d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x30]
movzx ecx, r13b
mov r14, qword [rsp + 0xa0]
mov dword [r11 + 0x2c], eax
mov rax, qword [rsp + 0x48]
mov rdx, qword [r8 + rax + 8]
movabs rax, 0xcf1bbcdcbf9b0000
imul rdx, rax
xor rdx, qword [rsp + 0x38]
shr rdx, cl
mov eax, edx
shr rax, 2
and eax, 0x3fffffc0
prefetcht0 byte [r14 + rax*4]
prefetcht0 byte [r14 + rax*4 + 0x40]
mov r15, qword [rsp + 0x68]
prefetcht0 byte [rax + r15]
prefetcht0 byte [rax + r15 + 0x20]
and r8d, 7
mov r9d, dword [r11 + r8*4 + 0x40]
mov dword [r11 + r8*4 + 0x40], edx
jmp 0x1400a33ab
xor r9, qword [rsp + 0x70]
mov ecx, 0x38
sub ecx, dword [rsp + 0x40]
shr r9, cl
mov dword [r11 + 0x2c], r10d
add dword [r11 + 0x68], r9d
mov eax, r9d
shr rax, 2
mov rsi, r12
and eax, 0x3fffffc0
mov qword [rsp + 0x38], r9
movdqu xmm0, xmmword [rax + r15]
lea rcx, [rax + r15]
movzx r15d, byte [rax + r15]
lea r13, [r14 + rax*4]
mov qword [rsp + 0x68], rcx
movsx eax, r9b
mov r14, r12
movd xmm2, eax
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
movdqa xmm1, xmm2
pcmpeqb xmm1, xmm0
movdqu xmm0, xmmword [rcx + 0x10]
pmovmskb r9d, xmm1
movdqu xmm1, xmmword [rcx + 0x20]
pcmpeqb xmm0, xmm2
pmovmskb r8d, xmm0
pcmpeqb xmm1, xmm2
movdqu xmm0, xmmword [rcx + 0x30]
movzx ecx, r15b
pmovmskb eax, xmm1
and cl, 0x3f
pcmpeqb xmm0, xmm2
pmovmskb r10d, xmm0
shl r10, 0x10
or r10, rax
movsxd rax, r8d
shl r10, 0x10
or r10, rax
movsxd rax, r9d
shl r10, 0x10
or r10, rax
ror r10, cl
test r10, r10
je 0x1400a349e
mov edx, dword [rsp + 0x44]
mov rbx, qword [rsp + 0x48]
mov r8d, dword [rsp + 0x78]
test edx, edx
je 0x1400a3495
bsf rcx, r10
add ecx, r15d
and ecx, 0x3f
je 0x1400a348c
mov ecx, dword [r13 + rcx*4]
cmp ecx, r8d
jb 0x1400a3495
prefetcht0 byte [rcx + rbx]
mov dword [rsp + r14*4 + 0xc0], ecx
inc r14
dec edx
lea rax, [r10 - 1]
and r10, rax
ja 0x1400a3461
mov rbx, qword [rsp + 0x58]
mov dword [rsp + 0x44], edx
mov r9, qword [rsp + 0x38]
lea ecx, [r15 - 1]
and ecx, 0x3f
mov eax, r12d
mov edx, 0x3f
cmove eax, edx
add ecx, eax
mov rax, qword [rsp + 0x68]
mov byte [rax], cl
mov byte [rcx + rax], r9b
mov eax, dword [r11 + 0x2c]
mov dword [r13 + rcx*4], eax
inc dword [r11 + 0x2c]
test r14, r14
je 0x1400a35cb
mov r12, qword [rsp + 0x48]
mov r10, qword [rsp + 0x80]
nop word [rax + rax]
mov r9d, dword [rsp + rsi*4 + 0xc0]
mov eax, dword [rdi + rbp - 3]
lea rdx, [r12 + r9]
cmp dword [rdx + rbp - 3], eax
jne 0x1400a35bc
lea r8, [rbx - 7]
mov rax, rdi
cmp rdi, r8
jae 0x1400a3559
mov rcx, qword [rdx]
xor rcx, qword [rdi]
je 0x1400a3528
bsf rcx, rcx
shr rcx, 3
jmp 0x1400a359e
add rax, 8
add rdx, 8
cmp rax, r8
jae 0x1400a3559
nop word [rax + rax]
mov rcx, qword [rax]
xor rcx, qword [rdx]
jne 0x1400a372a
add rax, 8
add rdx, 8
cmp rax, r8
jb 0x1400a3540
lea rcx, [rbx - 3]
cmp rax, rcx
jae 0x1400a3570
mov ecx, dword [rax]
cmp dword [rdx], ecx
jne 0x1400a3570
add rax, 4
add rdx, 4
lea rcx, [rbx - 1]
cmp rax, rcx
jae 0x1400a3589
movzx ecx, word [rax]
cmp word [rdx], cx
jne 0x1400a3589
add rax, 2
add rdx, 2
cmp rax, rbx
jae 0x1400a3598
movzx ecx, byte [rax]
cmp byte [rdx], cl
jne 0x1400a3598
inc rax
mov rcx, rax
sub rcx, rdi
cmp rcx, rbp
jbe 0x1400a35bc
mov eax, dword [rsp + 0x30]
mov rbp, rcx
sub eax, r9d
add eax, 3
mov qword [r10], rax
lea rax, [rcx + rdi]
cmp rax, rbx
je 0x1400a35c8
inc rsi
cmp rsi, r14
jb 0x1400a34f0
xor r12d, r12d
mov r10, qword [rsp + 0x50]
mov r11d, 3
mov r13d, dword [rsp + 0x24]
mov r14d, r11d
add r13d, dword [rsp + 0x44]
mov rdx, qword [rsp + 0x60]
mov r8, qword [r10]
mov r15, qword [r10 + 8]
mov r9, qword [r10 + 0x70]
mov eax, r15d
sub eax, r8d
mov qword [rsp + 0x38], r8
add eax, dword [rsp + 0x28]
cmp r13d, r11d
mov dword [rsp + 0x20], eax
lea rcx, [rdx + r9]
cmovb r14d, r13d
mov dword [rsp + 0x28], r14d
nop word [rax + rax]
mov eax, dword [rcx]
prefetcht0 byte [rax + r15]
lea rcx, [rcx + 4]
sub r11, 1
jne 0x1400a3620
mov rax, qword [rsp + 0xa8]
mov ecx, dword [r9 + rax*4 + 0xc]
mov rax, qword [r10 + 0x80]
shr rcx, 8
prefetcht0 byte [rax + rcx*4]
mov dword [rsp + 0x24], r12d
mov r11d, r12d
test r14d, r14d
je 0x1400a3748
nop
mov rax, qword [r10 + 0x70]
mov r14d, dword [rdx + rax]
lea r11, [r15 + r14]
test r14d, r14d
je 0x1400a3861
mov eax, dword [rdi]
cmp dword [r11], eax
jne 0x1400a3706
add r11, 4
lea r12, [rdi + 4]
mov rcx, r12
mov rdx, r11
sub rcx, r11
add rcx, r8
mov r8, rbx
cmp rcx, rbx
cmovb r8, rcx
mov rcx, r12
call fcn.140092810
mov r8, qword [rsp + 0x38]
mov rsi, rax
lea rcx, [rax + r11]
cmp rcx, r8
jne 0x1400a36d3
mov rdx, qword [rsp + 0xb0]
lea rcx, [rax + r12]
mov r8, rbx
call fcn.140092810
mov r8, qword [rsp + 0x38]
add rsi, rax
add rsi, 4
cmp rsi, rbp
jbe 0x1400a3701
mov eax, dword [rsp + 0x30]
mov rbp, rsi
mov rcx, qword [rsp + 0x80]
sub eax, r14d
sub eax, dword [rsp + 0x20]
add eax, 3
mov qword [rcx], rax
lea rax, [rsi + rdi]
cmp rax, rbx
je 0x1400a373d
mov r10, qword [rsp + 0x50]
mov r11d, dword [rsp + 0x24]
add qword [rsp + 0x60], 4
inc r11d
mov dword [rsp + 0x24], r11d
cmp r11d, dword [rsp + 0x28]
jae 0x1400a3745
mov rdx, qword [rsp + 0x60]
jmp 0x1400a3660
bsf rcx, rcx
shr rcx, 3
sub rcx, rdi
add rcx, rax
jmp 0x1400a359e
mov rax, rsi
jmp 0x1400a3864
xor r12d, r12d
mov rax, qword [r10 + 0x70]
sub r13d, r11d
mov rcx, qword [rsp + 0xa8]
mov edx, r12d
mov ecx, dword [rax + rcx*4 + 0xc]
mov r14d, ecx
shr r14d, 8
movzx eax, cl
cmp r13d, eax
cmova r13d, eax
test r13d, r13d
je 0x1400a3861
mov r9, qword [r10 + 0x80]
nop
lea eax, [rdx + r14]
mov eax, dword [r9 + rax*4]
prefetcht0 byte [rax + r15]
inc edx
cmp edx, r13d
jb 0x1400a3780
nop dword [rax]
nop dword [rax + rax]
mov rax, qword [r10 + 0x80]
mov eax, dword [rax + r14*4]
lea r11, [r15 + rax]
mov dword [rsp + 0x28], eax
mov eax, dword [rdi]
cmp dword [r11], eax
jne 0x1400a3845
add r11, 4
lea r12, [rdi + 4]
mov rcx, r12
mov rdx, r11
sub rcx, r11
add rcx, r8
mov r8, rbx
cmp rcx, rbx
cmovb r8, rcx
mov rcx, r12
call fcn.140092810
mov rsi, rax
lea rcx, [rax + r11]
cmp rcx, qword [rsp + 0x38]
jne 0x1400a3809
mov rdx, qword [rsp + 0xb0]
lea rcx, [rax + r12]
mov r8, rbx
call fcn.140092810
add rsi, rax
add rsi, 4
cmp rsi, rbp
jbe 0x1400a3838
mov eax, dword [rsp + 0x30]
mov rbp, rsi
sub eax, dword [rsp + 0x28]
sub eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x80]
add eax, 3
mov qword [rcx], rax
lea rcx, [rsi + rdi]
cmp rcx, rbx
je 0x1400a3861
mov r10, qword [rsp + 0x50]
mov r12, qword [rsp + 0x88]
mov r8, qword [rsp + 0x38]
inc r12d
inc r14d
mov qword [rsp + 0x88], r12
cmp r12d, r13d
jb 0x1400a37a0
mov rax, rbp
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400db3a0
add rsp, 0x1d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret