Function at 0x1400a12e0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1c8
mov rax, qword [0x140114e78]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov eax, dword [rcx + 0x34]
mov r11, rcx
mov r14, qword [rcx + 0x70]
mov r10d, edx
mov r13, qword [rcx + 0x38]
mov rdi, rdx
mov dword [rsp + 0x40], eax
mov r15d, 1
mov eax, dword [rcx + 0x18]
mov rbx, r8
mov r8, qword [rcx + 8]
mov ebp, 3
mov ecx, dword [rcx + 0x100]
sub r10d, r8d
mov dword [rsp + 0x28], eax
mov esi, r10d
add rax, r8
mov qword [rsp + 0x90], rdx
mov qword [rsp + 0xa8], rax
mov eax, r10d
mov qword [rsp + 0x80], r9
mov r9d, edx
sub r9d, r8d
mov qword [rsp + 0x38], rbx
mov edx, r15d
mov qword [rsp + 0x68], r14
shl edx, cl
mov ecx, dword [r11 + 0x1c]
sub esi, edx
sub eax, ecx
mov qword [rsp + 0x78], r13
cmp eax, edx
mov qword [rsp + 0x48], r8
mov rax, qword [r11 + 0x60]
mov rdx, qword [r11 + 0xf8]
cmovbe esi, ecx
cmp dword [r11 + 0x28], 0
mov qword [rsp + 0x58], rax
mov eax, r15d
mov r15, qword [rdi]
cmovne esi, ecx
mov ecx, 6
mov dword [rsp + 0x74], esi
mov esi, dword [r11 + 0x10c]
cmp esi, ecx
mov dword [rsp + 0x2c], r9d
cmovb ecx, esi
mov dword [rsp + 0x30], r10d
shl eax, cl
mov ecx, 0x42
sub ecx, dword [rdx + 0x108]
mov dword [rsp + 0x44], eax
movabs rax, 0xcf1bbcdcbb000000
imul r15, rax
mov qword [rsp + 0x98], rbp
mov rax, r15
mov qword [rsp + 0x50], rdx
shr rax, cl
lea rax, [rax*4]
lea rcx, [rax*4]
mov qword [rsp + 0xa0], 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 0x1400a1441
lea ecx, [rsi - 6]
mov eax, 1
shl eax, cl
mov dword [rsp + 0x24], eax
jmp 0x1400a1446
mov dword [rsp + 0x24], r12d
mov dword [rsp + 0x20], 0x3f
cmp dword [r11 + 0x12c], r12d
jne 0x1400a1774
mov r10d, dword [r11 + 0x2c]
mov eax, r9d
mov ecx, dword [rsp + 0x40]
sub eax, r10d
mov rsi, r14
mov r14, r13
mov r15d, ecx
mov rdx, r8
mov r13d, 0x38
cmp eax, 0x180
jbe 0x1400a1634
lea eax, [r10 + 0x60]
cmp r10d, eax
jae 0x1400a156c
mov rbp, qword [rsp + 0x68]
lea r14, [r8 + 8]
mov rdi, qword [rsp + 0x78]
mov r15d, r13d
sub r15d, ecx
mov esi, r10d
add r14, r10
mov ebx, eax
movabs r13, 0xcf1bbcdcbb000000
nop dword [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 0x1400a14c0
mov rdx, qword [r11 + 8]
mov r13d, 0x38
mov rbx, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x98]
mov r9d, dword [rsp + 0x2c]
mov rsi, qword [r11 + 0x70]
lea r10d, [r9 - 0x20]
mov r9, qword [rsp + 0x48]
lea rax, [rdi + 1]
mov r14, qword [r11 + 0x38]
mov ecx, eax
mov r15d, dword [r11 + 0x34]
sub ecx, r10d
sub ecx, dword [rsp + 0x48]
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 0x1400a162f
mov ebx, r13d
movabs r12, 0xcf1bbcdcbb000000
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 0x1400a15d0
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 + 0x38]
mov r9d, dword [rsp + 0x2c]
cmp r10d, r9d
jae 0x1400a1707
mov edi, dword [rsp + 0x2c]
lea rbx, [r10 + 8]
mov ebp, r13d
movabs r13, 0xcf1bbcdcbb000000
sub ebp, r15d
mov r15d, r10d
add rbx, rdx
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 0x1400a1660
mov rbx, qword [rsp + 0x38]
mov r13d, 0x38
mov rdi, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x98]
mov r9d, dword [rsp + 0x2c]
mov rax, qword [rsp + 0x48]
sub r13d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x30]
movzx ecx, r13b
mov r14, qword [rsp + 0x68]
mov dword [r11 + 0x2c], r9d
mov rdx, qword [r8 + rax + 8]
movabs rax, 0xcf1bbcdcbb000000
imul rdx, rax
xor rdx, qword [rsp + 0x58]
shr rdx, cl
mov eax, edx
shr rax, 2
and eax, 0x3fffffc0
prefetcht0 byte [r14 + rax*4]
prefetcht0 byte [r14 + rax*4 + 0x40]
mov r9, qword [rsp + 0x78]
prefetcht0 byte [rax + r9]
prefetcht0 byte [rax + r9 + 0x20]
and r8d, 7
mov r15d, dword [r11 + r8*4 + 0x40]
mov dword [r11 + r8*4 + 0x40], edx
jmp 0x1400a178c
xor r15, qword [rsp + 0x58]
mov ecx, 0x38
sub ecx, dword [rsp + 0x40]
mov r9, r13
shr r15, cl
mov dword [r11 + 0x2c], r10d
add dword [r11 + 0x68], r15d
mov eax, r15d
shr rax, 2
mov rsi, r12
and eax, 0x3fffffc0
movdqu xmm0, xmmword [rax + r9]
movzx r13d, byte [rax + r9]
lea rcx, [r14 + rax*4]
mov r14, r12
mov qword [rsp + 0x58], rcx
lea rcx, [rax + r9]
mov rdx, qword [rsp + 0x58]
movsx eax, r15b
mov qword [rsp + 0x68], rcx
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, r13b
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 0x1400a1886
mov r8d, dword [rsp + 0x44]
mov rbx, qword [rsp + 0x48]
mov r9d, dword [rsp + 0x74]
test r8d, r8d
je 0x1400a187c
bsf rcx, r10
add ecx, r13d
and ecx, 0x3f
je 0x1400a1873
mov ecx, dword [rdx + rcx*4]
cmp ecx, r9d
jb 0x1400a187c
prefetcht0 byte [rcx + rbx]
mov dword [rsp + r14*4 + 0xb0], ecx
inc r14
dec r8d
lea rax, [r10 - 1]
and r10, rax
ja 0x1400a1848
mov rbx, qword [rsp + 0x38]
mov dword [rsp + 0x44], r8d
lea ecx, [r13 - 1]
mov eax, r12d
and ecx, 0x3f
mov r8d, 0x3f
cmove eax, r8d
add ecx, eax
mov rax, qword [rsp + 0x68]
mov byte [rax], cl
mov byte [rcx + rax], r15b
mov eax, dword [r11 + 0x2c]
mov dword [rdx + rcx*4], eax
inc dword [r11 + 0x2c]
test r14, r14
je 0x1400a19ab
mov r12, qword [rsp + 0x48]
mov r10, qword [rsp + 0x80]
nop dword [rax + rax]
mov r9d, dword [rsp + rsi*4 + 0xb0]
mov eax, dword [rdi + rbp - 3]
lea rdx, [r12 + r9]
cmp dword [rdx + rbp - 3], eax
jne 0x1400a199c
lea r8, [rbx - 7]
mov rax, rdi
cmp rdi, r8
jae 0x1400a1939
mov rcx, qword [rdx]
xor rcx, qword [rdi]
je 0x1400a1908
bsf rcx, rcx
shr rcx, 3
jmp 0x1400a197e
add rax, 8
add rdx, 8
cmp rax, r8
jae 0x1400a1939
nop word [rax + rax]
mov rcx, qword [rax]
xor rcx, qword [rdx]
jne 0x1400a1b0a
add rax, 8
add rdx, 8
cmp rax, r8
jb 0x1400a1920
lea rcx, [rbx - 3]
cmp rax, rcx
jae 0x1400a1950
mov ecx, dword [rax]
cmp dword [rdx], ecx
jne 0x1400a1950
add rax, 4
add rdx, 4
lea rcx, [rbx - 1]
cmp rax, rcx
jae 0x1400a1969
movzx ecx, word [rax]
cmp word [rdx], cx
jne 0x1400a1969
add rax, 2
add rdx, 2
cmp rax, rbx
jae 0x1400a1978
movzx ecx, byte [rax]
cmp byte [rdx], cl
jne 0x1400a1978
inc rax
mov rcx, rax
sub rcx, rdi
cmp rcx, rbp
jbe 0x1400a199c
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 0x1400a19a8
inc rsi
cmp rsi, r14
jb 0x1400a18d0
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 0x1400a1a00
mov rax, qword [rsp + 0xa0]
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 0x1400a1b28
nop
mov rax, qword [r10 + 0x70]
mov r14d, dword [rdx + rax]
lea r11, [r15 + r14]
test r14d, r14d
je 0x1400a1c41
mov eax, dword [rdi]
cmp dword [r11], eax
jne 0x1400a1ae6
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 0x1400a1ab3
mov rdx, qword [rsp + 0xa8]
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 0x1400a1ae1
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 0x1400a1b1d
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 0x1400a1b25
mov rdx, qword [rsp + 0x60]
jmp 0x1400a1a40
bsf rcx, rcx
shr rcx, 3
sub rcx, rdi
add rcx, rax
jmp 0x1400a197e
mov rax, rsi
jmp 0x1400a1c44
xor r12d, r12d
mov rax, qword [r10 + 0x70]
sub r13d, r11d
mov rcx, qword [rsp + 0xa0]
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 0x1400a1c41
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 0x1400a1b60
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 0x1400a1c25
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 0x1400a1be9
mov rdx, qword [rsp + 0xa8]
lea rcx, [rax + r12]
mov r8, rbx
call fcn.140092810
add rsi, rax
add rsi, 4
cmp rsi, rbp
jbe 0x1400a1c18
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 0x1400a1c41
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 0x1400a1b80
mov rax, rbp
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.1400db3a0
add rsp, 0x1c8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret