Function at 0x140106fb0
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 - 0x118]
sub rsp, 0x218
mov rax, qword [0x140201ce8]
xor rax, rsp
mov qword [rbp + 0x100], rax
mov rax, qword [rcx + 0x70]
mov r14, rcx
mov qword [rbp - 0x68], rax
mov r13, rdx
mov rax, qword [rcx + 0x38]
mov qword [rbp - 0x28], rax
mov eax, dword [rcx + 0x34]
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x64], eax
mov eax, dword [r14 + 0x18]
mov dword [rsp + 0x4c], eax
add rax, rcx
mov qword [rbp - 0x30], rax
mov eax, edx
sub eax, ecx
mov qword [rbp - 0x80], rcx
mov ecx, dword [r14 + 0x100]
mov dword [rsp + 0x34], eax
mov qword [rbp - 0x60], r8
mov r8d, dword [r14 + 0x1c]
mov qword [rsp + 0x78], rdx
mov edx, 1
shl edx, cl
mov ecx, eax
sub ecx, dword [r14 + 0x1c]
sub eax, edx
cmp ecx, edx
mov qword [rbp - 0x58], r9
mov rdx, r13
mov qword [rsp + 0x68], 3
cmova r8d, eax
mov eax, dword [r14 + 0x10c]
xor r15d, r15d
cmp dword [r14 + 0x28], r15d
cmovne r8d, dword [r14 + 0x1c]
lea ecx, [r15 + 6]
mov dword [rsp + 0x48], r8d
cmp eax, ecx
lea r8d, [r15 + 8]
cmovb ecx, eax
mov rax, qword [r14 + 0x60]
mov qword [rbp - 0x70], rax
lea eax, [r15 + 1]
shl eax, cl
lea rcx, [rbp - 0x50]
mov dword [rsp + 0x40], eax
mov rax, qword [r14 + 0xf8]
mov qword [rbp - 0x78], rax
mov rsi, qword [rax + 0x70]
mov rdi, qword [rax + 0x38]
mov ebx, dword [rax + 0x34]
call fcn.140146c55
mov rdx, qword [rbp - 0x50]
lea r12d, [r15 + 0x38]
movabs rax, 0xcf1bbcdcbb000000
mov ecx, r12d
imul rdx, rax
sub ecx, ebx
shr rdx, cl
mov eax, edx
mov qword [rbp - 0x18], rdx
shr rax, 2
and eax, 0x3fffffc0
lea rcx, [rax + rdi]
lea rax, [rsi + rax*4]
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x38], rax
prefetcht0 byte [rax]
prefetcht0 byte [rax + 0x40]
prefetcht0 byte [rcx]
prefetcht0 byte [rcx + 0x20]
cmp dword [r14 + 0x12c], r15d
jne 0x14010749a
mov r9, qword [r14 + 8]
mov esi, r13d
mov edi, dword [r14 + 0x2c]
sub esi, r9d
mov eax, esi
mov qword [rsp + 0x50], r9
sub eax, edi
mov dword [rsp + 0x60], esi
cmp eax, 0x180
jbe 0x140107320
mov r10, qword [r14 + 0x70]
lea eax, [rdi + 0x60]
mov r8d, dword [r14 + 0x34]
mov qword [rsp + 0x70], r10
mov r10, qword [r14 + 0x38]
mov qword [rsp + 0x58], r10
mov dword [rsp + 0x30], eax
cmp edi, eax
jae 0x140107248
mov r13, qword [rsp + 0x70]
mov eax, r12d
sub eax, r8d
mov qword [rsp + 0x38], rdi
mov r12d, eax
mov r11d, edi
mov r15, r9
mov rsi, r10
mov rbx, qword [r14 + 0x60]
lea rdx, [r15 + 8]
add rdx, r11
lea rcx, [rbp - 0x48]
mov r8d, 8
call fcn.140146c55
mov rdx, qword [rbp - 0x48]
movabs rax, 0xcf1bbcdcbb000000
imul rdx, rax
mov ecx, r12d
xor rdx, rbx
shr rdx, cl
mov ecx, 0x3fffffc0
mov eax, edx
shr rax, 2
and rax, rcx
prefetcht0 byte [r13 + rax*4]
prefetcht0 byte [r13 + rax*4 + 0x40]
prefetcht0 byte [rax + rsi]
prefetcht0 byte [rax + rsi + 0x20]
mov r11, qword [rsp + 0x38]
mov rax, r11
and eax, 7
mov r10d, dword [r14 + rax*4 + 0x40]
mov r9d, r10d
mov dword [r14 + rax*4 + 0x40], edx
shr r9, 2
and r9, rcx
lea r8, [r9 + rsi]
movzx edx, byte [r8]
dec edx
and edx, 0x3f
mov eax, edx
neg eax
sbb ecx, ecx
inc r11
not ecx
mov qword [rsp + 0x38], r11
and ecx, 0x3f
add edx, ecx
mov byte [r8], dl
mov eax, edx
add rax, r9
mov byte [rdx + r8], r10b
mov dword [r13 + rax*4], edi
inc edi
cmp edi, dword [rsp + 0x30]
jb 0x140107167
mov rax, qword [r14 + 0x70]
xor r15d, r15d
mov r8d, dword [r14 + 0x34]
mov r13, qword [rsp + 0x78]
mov esi, dword [rsp + 0x60]
mov r9, qword [rsp + 0x50]
lea r12d, [r15 + 0x38]
mov qword [rsp + 0x70], rax
mov rax, qword [r14 + 0x38]
mov qword [rsp + 0x58], rax
lea edi, [rsi - 0x20]
lea rcx, [r13 + 1]
mov eax, edi
add rax, r9
mov edx, ecx
sub edx, r9d
mov r9d, 8
sub edx, edi
inc edx
cmp rax, rcx
cmova edx, r15d
cmp edx, r9d
cmova edx, r9d
lea eax, [rdx + rdi]
cmp edi, eax
jae 0x140107326
mov r13, qword [rsp + 0x50]
mov eax, r12d
mov r12, qword [rsp + 0x70]
sub eax, r8d
mov dword [rsp + 0x30], eax
mov esi, dword [rsp + 0x30]
mov eax, edx
mov qword [rsp + 0x38], rax
mov r15d, edi
mov rbx, qword [r14 + 0x60]
lea rdx, [r15 + r13]
mov r8, r9
lea rcx, [rsp + 0x70]
call fcn.140146c55
mov rdx, qword [rsp + 0x70]
movabs rax, 0xcf1bbcdcbb000000
imul rdx, rax
mov ecx, esi
xor rdx, rbx
shr rdx, cl
mov eax, edx
shr rax, 2
and eax, 0x3fffffc0
prefetcht0 byte [r12 + rax*4]
prefetcht0 byte [r12 + rax*4 + 0x40]
mov rcx, qword [rsp + 0x58]
prefetcht0 byte [rcx + rax]
prefetcht0 byte [rcx + rax + 0x20]
mov rax, r15
mov r9d, 8
and eax, 7
inc r15
sub qword [rsp + 0x38], 1
mov dword [r14 + rax*4 + 0x40], edx
jne 0x14010729e
mov r13, qword [rsp + 0x78]
lea r12d, [r9 + 0x30]
mov esi, dword [rsp + 0x60]
xor r15d, r15d
jmp 0x140107326
mov r9d, 8
mov rcx, qword [r14 + 0x38]
mov rax, qword [r14 + 0x70]
mov qword [rsp + 0x58], rcx
mov rcx, qword [r14 + 8]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x38], rax
cmp edi, esi
jae 0x14010741f
mov eax, r12d
mov r15d, edi
sub eax, dword [r14 + 0x34]
mov r12, qword [rsp + 0x38]
mov r13d, eax
mov rbx, qword [r14 + 0x60]
lea rdx, [rcx + 8]
add rdx, r15
lea rcx, [rsp + 0x38]
mov r8, r9
call fcn.140146c55
mov rdx, qword [rsp + 0x38]
movabs rax, 0xcf1bbcdcbb000000
imul rdx, rax
mov ecx, r13d
mov r8d, 0x3fffffc0
xor rdx, rbx
shr rdx, cl
mov eax, edx
shr rax, 2
and rax, r8
prefetcht0 byte [r12 + rax*4]
prefetcht0 byte [r12 + rax*4 + 0x40]
mov rcx, qword [rsp + 0x58]
prefetcht0 byte [rax + rcx]
prefetcht0 byte [rax + rcx + 0x20]
mov rax, r15
and eax, 7
mov r11d, dword [r14 + rax*4 + 0x40]
mov r10d, r11d
mov dword [r14 + rax*4 + 0x40], edx
shr r10, 2
and r10, r8
lea r9, [rcx + r10]
movzx edx, byte [r9]
dec edx
and edx, 0x3f
mov eax, edx
neg eax
sbb ecx, ecx
inc r15
not ecx
and ecx, 0x3f
add edx, ecx
mov rcx, qword [rsp + 0x50]
mov byte [r9], dl
mov eax, edx
add rax, r10
mov byte [rdx + r9], r11b
mov r9d, 8
mov dword [r12 + rax*4], edi
inc edi
cmp edi, esi
jb 0x14010735b
mov r13, qword [rsp + 0x78]
lea r12d, [r9 + 0x30]
xor r15d, r15d
mov rdx, qword [rbp - 0x80]
lea rcx, [rsp + 0x58]
mov ebx, dword [rsp + 0x34]
add rdx, 8
add rdx, rbx
mov dword [r14 + 0x2c], esi
mov r8d, 8
call fcn.140146c55
sub r12d, dword [rsp + 0x64]
movabs rax, 0xcf1bbcdcbb000000
mov rdx, qword [rsp + 0x58]
mov cl, r12b
imul rdx, rax
xor rdx, qword [rbp - 0x70]
shr rdx, cl
mov rcx, qword [rbp - 0x68]
mov eax, edx
shr rax, 2
and eax, 0x3fffffc0
prefetcht0 byte [rcx + rax*4]
prefetcht0 byte [rcx + rax*4 + 0x40]
mov r8, qword [rbp - 0x28]
prefetcht0 byte [rax + r8]
prefetcht0 byte [rax + r8 + 0x20]
and ebx, 7
mov r9d, dword [r14 + rbx*4 + 0x40]
mov dword [r14 + rbx*4 + 0x40], edx
jmp 0x1401074df
mov r8d, 8
lea rcx, [rsp + 0x50]
mov rdx, r13
call fcn.140146c55
sub r12d, dword [rsp + 0x64]
movabs rax, 0xcf1bbcdcbb000000
mov r9, qword [rsp + 0x50]
mov cl, r12b
mov r8, qword [rbp - 0x28]
imul r9, rax
mov eax, dword [rsp + 0x34]
xor r9, qword [rbp - 0x70]
shr r9, cl
mov rcx, qword [rbp - 0x68]
mov dword [r14 + 0x2c], eax
add dword [r14 + 0x68], r9d
mov eax, r9d
shr rax, 2
xorps xmm0, xmm0
and eax, 0x3fffffc0
mov rdi, r15
mov r12, r15
movups xmmword [rbp - 0x28], xmm0
lea r11, [rax + r8]
movzx ebx, byte [r11]
lea rsi, [rcx + rax*4]
movsx eax, r9b
mov rcx, r15
mov rdx, r11
movd xmm2, eax
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
movdqu xmm0, xmmword [rdx]
lea rdx, [rdx + 0x10]
movdqa xmm1, xmm2
pcmpeqb xmm1, xmm0
pmovmskb eax, xmm1
mov dword [rbp + rcx*4 - 0x28], eax
inc rcx
cmp rcx, 4
jl 0x140107523
movsxd rax, dword [rbp - 0x20]
mov edx, ebx
movsxd r8, dword [rbp - 0x1c]
and edx, 0x3f
shl r8, 0x10
mov ecx, edx
or r8, rax
neg ecx
movsxd rax, dword [rbp - 0x24]
and ecx, 0x3f
shl r8, 0x10
or r8, rax
movsxd rax, dword [rbp - 0x28]
shl r8, 0x10
or r8, rax
mov r10, r8
shl r10, cl
mov ecx, edx
shr r8, cl
or r10, r8
jbe 0x1401075c9
mov edx, dword [rsp + 0x40]
mov r8, qword [rbp - 0x80]
mov r13d, dword [rsp + 0x48]
test edx, edx
je 0x1401075c0
bsf rcx, r10
add ecx, ebx
and ecx, 0x3f
je 0x1401075b7
mov ecx, dword [rsi + rcx*4]
cmp ecx, r13d
jb 0x1401075c0
prefetcht0 byte [rcx + r8]
mov dword [rbp + rdi*4], ecx
inc rdi
dec edx
lea rax, [r10 - 1]
and r10, rax
ja 0x140107592
mov r13, qword [rsp + 0x78]
mov dword [rsp + 0x40], edx
lea edx, [rbx - 1]
and edx, 0x3f
mov eax, edx
neg eax
sbb ecx, ecx
not ecx
and ecx, 0x3f
add edx, ecx
mov byte [r11], dl
mov byte [rdx + r11], r9b
mov eax, dword [r14 + 0x2c]
mov dword [rsi + rdx*4], eax
inc dword [r14 + 0x2c]
test rdi, rdi
je 0x140107686
mov r14, qword [rsp + 0x68]
mov r15, qword [rbp - 0x60]
mov esi, dword [rbp + r12*4]
lea rdx, [r14 - 3]
add rsi, qword [rbp - 0x80]
lea rcx, [rsp + 0x48]
add rdx, rsi
mov r8d, 4
call fcn.140146c55
mov ebx, dword [rsp + 0x48]
lea rdx, [r13 - 3]
add rdx, r14
lea rcx, [rsp + 0x30]
mov r8d, 4
call fcn.140146c55
cmp ebx, dword [rsp + 0x30]
jne 0x140107676
mov r8, r15
mov rdx, rsi
mov rcx, r13
call fcn.1400f7978
mov rcx, rax
cmp rax, r14
jbe 0x140107676
mov rdx, qword [rbp - 0x58]
mov r14, rax
mov eax, dword [rsp + 0x34]
sub eax, dword [rbp + r12*4]
add eax, 3
mov qword [rdx], rax
lea rax, [rcx + r13]
cmp rax, r15
je 0x14010767e
inc r12
cmp r12, rdi
jb 0x140107600
mov qword [rsp + 0x68], r14
xor r15d, r15d
mov rbx, qword [rbp - 0x78]
xorps xmm0, xmm0
mov rdx, qword [rbp - 0x40]
mov rdi, r15
mov rcx, r15
mov rax, qword [rbx]
mov r10, qword [rbx + 8]
movzx r11d, byte [rdx]
mov r14d, r10d
sub r14d, eax
mov qword [rbp - 0x78], rax
movsx eax, byte [rbp - 0x18]
add r14d, dword [rsp + 0x4c]
mov qword [rbp - 0x28], r10
movups xmmword [rbp - 0x18], xmm0
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 - 0x18], eax
inc rcx
cmp rcx, 4
jl 0x1401076ce
movsxd rax, dword [rbp - 0x10]
mov edx, r11d
movsxd r8, dword [rbp - 0xc]
and edx, 0x3f
shl r8, 0x10
mov ecx, edx
or r8, rax
neg ecx
movsxd rax, dword [rbp - 0x14]
and ecx, 0x3f
shl r8, 0x10
or r8, rax
movsxd rax, dword [rbp - 0x18]
shl r8, 0x10
or r8, rax
mov r9, r8
shl r9, cl
mov ecx, edx
shr r8, cl
or r9, r8
jbe 0x14010780d
mov edx, dword [rsp + 0x40]
mov r8, qword [rbp - 0x38]
test edx, edx
je 0x140107769
bsf rcx, r9
add ecx, r11d
and ecx, 0x3f
je 0x140107760
mov ecx, dword [r8 + rcx*4]
cmp ecx, dword [rbx + 0x18]
jb 0x140107769
prefetcht0 byte [rcx + r10]
mov dword [rbp + rdi*4], ecx
inc rdi
dec edx
lea rax, [r9 - 1]
and r9, rax
ja 0x140107739
mov r12, qword [rsp + 0x68]
test rdi, rdi
je 0x140107812
mov esi, dword [rbp + r15*4]
lea rcx, [rsp + 0x4c]
add rsi, r10
mov r8d, 4
mov rdx, rsi
call fcn.140146c55
mov ebx, dword [rsp + 0x4c]
lea rcx, [rsp + 0x44]
mov r8d, 4
mov rdx, r13
call fcn.140146c55
cmp ebx, dword [rsp + 0x44]
jne 0x1401077fb
mov rax, qword [rbp - 0x30]
lea rdx, [rsi + 4]
mov rbx, qword [rbp - 0x60]
lea rcx, [r13 + 4]
mov r9, qword [rbp - 0x78]
mov r8, rbx
mov qword [rsp + 0x20], rax
call fcn.140120cc0
add rax, 4
cmp rax, r12
jbe 0x1401077fb
mov ecx, dword [rsp + 0x34]
mov r12, rax
sub ecx, dword [rbp + r15*4]
mov rdx, qword [rbp - 0x58]
sub ecx, r14d
add ecx, 3
mov qword [rdx], rcx
lea rcx, [rax + r13]
cmp rcx, rbx
je 0x140107812
mov r10, qword [rbp - 0x28]
inc r15
cmp r15, rdi
jb 0x140107777
jmp 0x140107812
mov r12, qword [rsp + 0x68]
mov rax, r12
mov rcx, qword [rbp + 0x100]
xor rcx, rsp
call fcn.1401461d0
add rsp, 0x218
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret