Function at 0x140105f94
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 - 0x128]
sub rsp, 0x228
mov rax, qword [0x140201ce8]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov rax, qword [rcx + 0x70]
mov rsi, rcx
mov qword [rbp - 0x60], rax
mov r15, rdx
mov rax, qword [rcx + 0x38]
mov qword [rbp - 0x18], rax
mov eax, dword [rcx + 0x34]
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x60], eax
mov eax, dword [rsi + 0x18]
mov dword [rsp + 0x54], eax
add rax, rcx
mov qword [rbp - 0x20], rax
mov eax, edx
sub eax, ecx
mov qword [rbp - 0x78], rcx
mov ecx, dword [rsi + 0x100]
mov dword [rsp + 0x38], eax
mov qword [rbp - 0x50], r8
mov r8d, dword [rsi + 0x1c]
mov qword [rsp + 0x78], rdx
mov edx, 1
shl edx, cl
mov ecx, eax
sub ecx, dword [rsi + 0x1c]
sub eax, edx
cmp ecx, edx
mov qword [rbp - 0x48], r9
mov rdx, r15
cmova r8d, eax
mov eax, dword [rsi + 0x10c]
xor r14d, r14d
cmp dword [rsi + 0x28], r14d
cmovne r8d, dword [rsi + 0x1c]
lea ecx, [r14 + 4]
mov dword [rsp + 0x50], r8d
cmp eax, ecx
lea r13d, [r14 + 3]
lea r8d, [r14 + 8]
mov qword [rbp - 0x80], r13
cmovb ecx, eax
mov rax, qword [rsi + 0x60]
mov qword [rbp - 0x68], rax
lea eax, [r14 + 1]
shl eax, cl
mov dword [rsp + 0x48], eax
mov rax, qword [rsi + 0xf8]
mov qword [rbp - 0x70], rax
mov rcx, qword [rax + 0x38]
mov rdi, qword [rax + 0x70]
mov ebx, dword [rax + 0x34]
mov qword [rbp - 0x58], rcx
lea rcx, [rbp - 0x40]
call fcn.140146c55
mov rdx, qword [rbp - 0x40]
lea r12d, [r14 + 0x38]
movabs rax, 0xcf1bbcdcbb000000
mov ecx, r12d
imul rdx, rax
sub ecx, ebx
shr rdx, cl
mov eax, edx
mov qword [rbp - 8], rdx
shr rax, 4
and eax, 0xffffff0
mov qword [rbp - 0x30], rax
lea rcx, [rdi + rax*4]
mov qword [rbp - 0x28], rcx
prefetcht0 byte [rcx]
mov rcx, qword [rbp - 0x58]
prefetcht0 byte [rax + rcx]
cmp dword [rsi + 0x12c], r14d
jne 0x140106452
mov r8, qword [rsi + 8]
mov eax, r15d
mov edi, dword [rsi + 0x2c]
sub eax, r8d
mov dword [rsp + 0x34], eax
sub eax, edi
mov qword [rsp + 0x68], r8
cmp eax, 0x180
jbe 0x1401062e3
mov r10, qword [rsi + 0x70]
lea eax, [rdi + 0x60]
mov r9d, dword [rsi + 0x34]
mov qword [rsp + 0x70], r10
mov r10, qword [rsi + 0x38]
mov qword [rsp + 0x58], r10
mov dword [rsp + 0x30], eax
cmp edi, eax
jae 0x140106214
mov r14, qword [rsp + 0x70]
mov eax, r12d
sub eax, r9d
mov qword [rsp + 0x40], rdi
mov r15d, eax
mov r11d, edi
mov r13, r8
mov r12, r10
mov rbx, qword [rsi + 0x60]
lea rdx, [r13 + 8]
add rdx, r11
lea rcx, [rbp - 0x38]
mov r8d, 8
call fcn.140146c55
mov rdx, qword [rbp - 0x38]
movabs rax, 0xcf1bbcdcbb000000
imul rdx, rax
mov ecx, r15d
xor rdx, rbx
shr rdx, cl
mov ecx, 0xffffff0
mov eax, edx
shr rax, 4
and rax, rcx
prefetcht0 byte [r14 + rax*4]
prefetcht0 byte [rax + r12]
mov r11, qword [rsp + 0x40]
mov rax, r11
and eax, 7
mov r10d, dword [rsi + rax*4 + 0x40]
mov r9d, r10d
mov dword [rsi + rax*4 + 0x40], edx
shr r9, 4
and r9, rcx
lea r8, [r12 + r9]
movzx edx, byte [r8]
dec edx
and edx, 0xf
mov eax, edx
neg eax
sbb ecx, ecx
inc r11
not ecx
mov qword [rsp + 0x40], r11
and ecx, 0xf
add edx, ecx
mov byte [r8], dl
mov eax, edx
add rax, r9
mov byte [rdx + r8], r10b
mov dword [r14 + rax*4], edi
inc edi
cmp edi, dword [rsp + 0x30]
jb 0x140106140
mov rax, qword [rsi + 0x70]
xor r14d, r14d
mov r9d, dword [rsi + 0x34]
mov r15, qword [rsp + 0x78]
mov r13, qword [rbp - 0x80]
mov r8, qword [rsp + 0x68]
lea r12d, [r14 + 0x38]
mov qword [rsp + 0x70], rax
mov rax, qword [rsi + 0x38]
mov qword [rsp + 0x58], rax
mov edi, dword [rsp + 0x34]
lea rcx, [r15 + 1]
add edi, 0xffffffe0
mov edx, ecx
sub edx, r8d
mov eax, edi
sub edx, edi
add rax, r8
inc edx
mov r8d, 8
cmp rax, rcx
cmova edx, r14d
cmp edx, r8d
cmova edx, r8d
lea eax, [rdx + rdi]
cmp edi, eax
jae 0x1401062e9
mov r14, qword [rsp + 0x68]
mov eax, r12d
mov r12, qword [rsp + 0x70]
sub eax, r9d
mov dword [rsp + 0x30], eax
mov r15d, dword [rsp + 0x30]
mov eax, edx
mov qword [rsp + 0x40], rax
mov r13d, edi
mov rbx, qword [rsi + 0x60]
lea rdx, [r14 + r13]
lea rcx, [rsp + 0x70]
call fcn.140146c55
mov rdx, qword [rsp + 0x70]
movabs rax, 0xcf1bbcdcbb000000
imul rdx, rax
mov ecx, r15d
xor rdx, rbx
shr rdx, cl
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [r12 + rax*4]
mov rcx, qword [rsp + 0x58]
prefetcht0 byte [rcx + rax]
mov rax, r13
mov r8d, 8
and eax, 7
inc r13
sub qword [rsp + 0x40], 1
mov dword [rsi + rax*4 + 0x40], edx
jne 0x14010626f
mov r15, qword [rsp + 0x78]
lea r12d, [r8 + 0x30]
mov r13, qword [rbp - 0x80]
xor r14d, r14d
jmp 0x1401062e9
mov r8d, 8
mov rax, qword [rsi + 0x70]
mov rcx, qword [rsi + 8]
mov qword [rsp + 0x40], rax
mov rax, qword [rsi + 0x38]
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x34]
mov qword [rsp + 0x68], rcx
cmp edi, eax
jae 0x1401063e4
mov r13d, dword [rsp + 0x34]
mov eax, r12d
sub eax, dword [rsi + 0x34]
mov r12, qword [rsp + 0x40]
mov r15d, eax
mov r14d, edi
mov rbx, qword [rsi + 0x60]
lea rdx, [rcx + 8]
add rdx, r14
lea rcx, [rsp + 0x40]
call fcn.140146c55
mov rdx, qword [rsp + 0x40]
movabs rax, 0xcf1bbcdcbb000000
imul rdx, rax
mov ecx, r15d
mov r8d, 0xffffff0
xor rdx, rbx
shr rdx, cl
mov eax, edx
shr rax, 4
and rax, r8
prefetcht0 byte [r12 + rax*4]
mov rcx, qword [rsp + 0x58]
prefetcht0 byte [rax + rcx]
mov rax, r14
and eax, 7
mov r11d, dword [rsi + rax*4 + 0x40]
mov r10d, r11d
mov dword [rsi + rax*4 + 0x40], edx
shr r10, 4
and r10, r8
mov r8d, 8
lea r9, [rcx + r10]
movzx edx, byte [r9]
dec edx
and edx, 0xf
mov eax, edx
neg eax
sbb ecx, ecx
inc r14
not ecx
and ecx, 0xf
add edx, ecx
mov rcx, qword [rsp + 0x68]
mov byte [r9], dl
mov eax, edx
add rax, r10
mov byte [rdx + r9], r11b
mov dword [r12 + rax*4], edi
inc edi
cmp edi, r13d
jb 0x140106326
mov r15, qword [rsp + 0x78]
lea r12d, [r8 + 0x30]
mov r13, qword [rbp - 0x80]
xor r14d, r14d
mov eax, dword [rsp + 0x34]
mov rdx, qword [rbp - 0x78]
lea rcx, [rsp + 0x78]
mov ebx, dword [rsp + 0x38]
add rdx, 8
add rdx, rbx
mov dword [rsi + 0x2c], eax
mov r8d, 8
call fcn.140146c55
sub r12d, dword [rsp + 0x60]
movabs rax, 0xcf1bbcdcbb000000
mov rdx, qword [rsp + 0x78]
mov cl, r12b
imul rdx, rax
xor rdx, qword [rbp - 0x68]
shr rdx, cl
mov rcx, qword [rbp - 0x60]
mov eax, edx
shr rax, 4
and eax, 0xffffff0
prefetcht0 byte [rcx + rax*4]
mov r9, qword [rbp - 0x18]
prefetcht0 byte [rax + r9]
and ebx, 7
mov r8d, dword [rsi + rbx*4 + 0x40]
mov dword [rsi + rbx*4 + 0x40], edx
jmp 0x140106496
mov r8d, 8
lea rcx, [rsp + 0x58]
mov rdx, r15
call fcn.140146c55
sub r12d, dword [rsp + 0x60]
movabs rax, 0xcf1bbcdcbb000000
mov r8, qword [rsp + 0x58]
mov cl, r12b
mov r9, qword [rbp - 0x18]
imul r8, rax
mov eax, dword [rsp + 0x38]
xor r8, qword [rbp - 0x68]
shr r8, cl
mov rcx, qword [rbp - 0x60]
mov dword [rsi + 0x2c], eax
add dword [rsi + 0x68], r8d
mov eax, r8d
shr rax, 4
mov rdi, r14
and eax, 0xffffff0
mov r12, r14
lea rbx, [rcx + rax*4]
lea r10, [rax + r9]
movsx eax, r8b
movdqu xmm0, xmmword [r10]
movzx r11d, byte [r10]
and r11d, 0xf
movd xmm1, eax
mov ecx, r11d
punpcklbw xmm1, xmm1
neg ecx
and ecx, 0xf
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
pcmpeqb xmm1, xmm0
pmovmskb eax, xmm1
mov dword [rbp - 0x18], eax
shl ax, cl
mov cl, r11b
movzx edx, ax
movzx eax, word [rbp - 0x18]
shr rax, cl
or rdx, rax
jbe 0x140106546
mov r9d, dword [rsp + 0x48]
mov r13d, dword [rsp + 0x50]
test r9d, r9d
je 0x14010653d
bsf rcx, rdx
add ecx, r11d
and ecx, 0xf
je 0x140106534
mov ecx, dword [rbx + rcx*4]
cmp ecx, r13d
jb 0x14010653d
mov eax, ecx
add rax, qword [rbp - 0x78]
prefetcht0 byte [rax]
mov dword [rbp + rdi*4 + 0x10], ecx
inc rdi
dec r9d
lea rax, [rdx - 1]
and rdx, rax
ja 0x140106508
mov r13, qword [rbp - 0x80]
mov dword [rsp + 0x48], r9d
movzx edx, byte [r10]
dec edx
and edx, 0xf
mov eax, edx
neg eax
sbb ecx, ecx
not ecx
and ecx, 0xf
add edx, ecx
mov byte [r10], dl
mov byte [rdx + r10], r8b
mov eax, dword [rsi + 0x2c]
mov dword [rbx + rdx*4], eax
inc dword [rsi + 0x2c]
test rdi, rdi
je 0x1401065fa
mov r14, qword [rbp - 0x50]
mov esi, dword [rbp + r12*4 + 0x10]
lea rdx, [r13 - 3]
add rsi, qword [rbp - 0x78]
lea rcx, [rsp + 0x50]
add rdx, rsi
mov r8d, 4
call fcn.140146c55
mov ebx, dword [rsp + 0x50]
lea rdx, [r13 - 3]
add rdx, r15
lea rcx, [rsp + 0x30]
mov r8d, 4
call fcn.140146c55
cmp ebx, dword [rsp + 0x30]
jne 0x1401065ef
mov r8, r14
mov rdx, rsi
mov rcx, r15
call fcn.1400f7978
mov rcx, rax
cmp rax, r13
jbe 0x1401065ef
mov rdx, qword [rbp - 0x48]
mov r13, rax
mov eax, dword [rsp + 0x38]
sub eax, dword [rbp + r12*4 + 0x10]
add eax, 3
mov qword [rdx], rax
lea rax, [rcx + r15]
cmp rax, r14
je 0x1401065f7
inc r12
cmp r12, rdi
jb 0x140106579
xor r14d, r14d
mov r11, qword [rbp - 0x70]
mov rdi, r14
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp - 0x58]
mov rax, qword [r11]
mov r9, qword [r11 + 8]
movdqu xmm0, xmmword [rcx + rdx]
movzx r10d, byte [rcx + rdx]
mov r12d, r9d
sub r12d, eax
mov qword [rbp - 0x70], rax
movsx eax, byte [rbp - 8]
and r10d, 0xf
add r12d, dword [rsp + 0x54]
mov ecx, r10d
neg ecx
mov qword [rbp - 0x18], r9
and ecx, 0xf
movd xmm1, eax
punpcklbw xmm1, xmm1
punpcklwd xmm1, xmm1
pshufd xmm1, xmm1, 0
pcmpeqb xmm0, xmm1
pmovmskb eax, xmm0
mov dword [rbp - 8], eax
shl ax, cl
mov cl, r10b
movzx edx, ax
movzx eax, word [rbp - 8]
shr rax, cl
or rdx, rax
jbe 0x14010674a
mov r8d, dword [rsp + 0x48]
mov rbx, qword [rbp - 0x28]
test r8d, r8d
je 0x1401066ad
bsf rcx, rdx
add ecx, r10d
and ecx, 0xf
je 0x1401066a4
mov ecx, dword [rbx + rcx*4]
cmp ecx, dword [r11 + 0x18]
jb 0x1401066ad
prefetcht0 byte [rcx + r9]
mov dword [rbp + rdi*4 + 0x10], ecx
inc rdi
dec r8d
lea rax, [rdx - 1]
and rdx, rax
ja 0x14010667b
test rdi, rdi
je 0x14010674a
mov esi, dword [rbp + r14*4 + 0x10]
lea rcx, [rsp + 0x54]
add rsi, r9
mov r8d, 4
mov rdx, rsi
call fcn.140146c55
mov ebx, dword [rsp + 0x54]
lea rcx, [rsp + 0x4c]
mov r8d, 4
mov rdx, r15
call fcn.140146c55
cmp ebx, dword [rsp + 0x4c]
jne 0x14010673a
mov rax, qword [rbp - 0x20]
lea rdx, [rsi + 4]
mov rbx, qword [rbp - 0x50]
lea rcx, [r15 + 4]
mov r9, qword [rbp - 0x70]
mov r8, rbx
mov qword [rsp + 0x20], rax
call fcn.140120cc0
add rax, 4
cmp rax, r13
jbe 0x14010673a
mov ecx, dword [rsp + 0x38]
mov r13, rax
sub ecx, dword [rbp + r14*4 + 0x10]
mov rdx, qword [rbp - 0x48]
sub ecx, r12d
add ecx, 3
mov qword [rdx], rcx
lea rcx, [rax + r15]
cmp rcx, rbx
je 0x14010674a
mov r9, qword [rbp - 0x18]
inc r14
cmp r14, rdi
jb 0x1401066b6
mov rax, r13
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.1401461d0
add rsp, 0x228
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret