Function at 0x140241818
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 [0x140481f48]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov rax, qword [rcx + 0x38]
mov rdi, rcx
mov rsi, 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], rsi
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 r14d, r14d
cmp dword [rdi + 0x28], r14d
cmovne r11d, dword [rdi + 0x1c]
lea ecx, [r14 + 6]
mov dword [rsp + 0x34], r11d
cmp eax, ecx
lea ebx, [r14 + 3]
mov qword [rsp + 0x40], rbx
cmovb ecx, eax
lea eax, [r14 + 1]
shl eax, cl
mov dword [rsp + 0x30], eax
cmp dword [rdi + 0x12c], r14d
jne 0x140241c3e
mov esi, dword [rdi + 0x2c]
lea r15d, [r14 + 0x38]
mov eax, r13d
lea r12d, [r14 + 8]
sub eax, esi
cmp eax, 0x180
jbe 0x140241ad0
lea eax, [rsi + 0x60]
mov dword [rsp + 0x20], eax
cmp esi, eax
jae 0x1402419fc
mov eax, r15d
mov qword [rsp + 0x28], rsi
sub eax, r10d
mov r11d, esi
mov r15d, eax
movabs r13, 0xcf1bbcdcbf9b0000
mov r14, r8
mov rbx, qword [rdi + 0x60]
lea rdx, [r14 + 8]
add rdx, r11
lea rcx, [rsp + 0x58]
mov r8, r12
call fcn.1403318a0
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 [rcx + rax]
prefetcht0 byte [rcx + rax + 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], esi
inc esi
cmp esi, dword [rsp + 0x20]
jb 0x140241938
mov r13d, dword [rsp + 0x50]
xor r14d, r14d
mov r9, qword [rbp - 0x78]
mov r8, qword [rsp + 0x38]
lea r15d, [r14 + 0x38]
mov rax, qword [rdi + 0x70]
lea esi, [r13 - 0x20]
mov qword [rbp - 0x58], rax
lea rcx, [r9 + 1]
mov rax, qword [rdi + 0x38]
mov edx, ecx
sub edx, esi
mov qword [rsp + 0x68], rax
sub edx, r8d
mov eax, esi
inc edx
add rax, r8
cmp rax, rcx
cmova edx, r14d
cmp edx, r12d
cmova edx, r12d
lea eax, [rdx + rsi]
cmp esi, eax
jae 0x140241ad0
mov eax, r15d
movabs r13, 0xcf1bbcdcbf9b0000
sub eax, dword [rdi + 0x34]
mov dword [rsp + 0x20], eax
mov r14d, dword [rsp + 0x20]
mov eax, edx
mov qword [rsp + 0x28], rax
mov r15d, esi
mov rbx, qword [rdi + 0x60]
lea rdx, [r8 + r15]
mov r8, r12
lea rcx, [rbp - 0x70]
call fcn.1403318a0
mov rdx, qword [rbp - 0x70]
mov ecx, r14d
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 [rcx + rax]
prefetcht0 byte [rcx + rax + 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 0x140241a5f
mov r13d, dword [rsp + 0x50]
xor r14d, r14d
lea r15d, [r14 + 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 esi, r13d
jae 0x140241bc3
sub r15d, dword [rdi + 0x34]
movabs r14, 0xcf1bbcdcbf9b0000
mov r8d, esi
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.1403318a0
mov rdx, qword [rsp + 0x68]
mov ecx, r15d
imul rdx, r14
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 [rax + rcx]
prefetcht0 byte [rax + rcx + 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 [rdx + r9], r11b
mov dword [rbx + rax*4], esi
inc esi
cmp esi, r13d
jb 0x140241b09
xor r14d, r14d
lea r15d, [r14 + 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.1403318a0
sub r15d, dword [rsp + 0x48]
movabs rax, 0xcf1bbcdcbf9b0000
mov rdx, qword [rsp + 0x70]
mov cl, r15b
mov rsi, 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 [rsi + rax*4]
prefetcht0 byte [rsi + rax*4 + 0x40]
mov rcx, qword [rsp + 0x60]
prefetcht0 byte [rax + rcx]
prefetcht0 byte [rax + rcx + 0x20]
and ebx, 7
mov r9d, dword [rdi + rbx*4 + 0x40]
mov dword [rdi + rbx*4 + 0x40], edx
mov rbx, qword [rsp + 0x40]
jmp 0x140241c7c
mov r8d, 8
lea rcx, [rsp + 0x78]
mov rdx, r9
call fcn.1403318a0
mov r9, qword [rsp + 0x78]
mov ecx, 0x38
sub ecx, dword [rsp + 0x48]
movabs rax, 0xcf1bbcdcbf9b0000
imul r9, rax
mov dword [rdi + 0x2c], r13d
xor r9, r15
shr r9, cl
mov rcx, qword [rsp + 0x60]
add dword [rdi + 0x68], r9d
mov eax, r9d
shr rax, 2
xorps xmm0, xmm0
and eax, 0x3fffffc0
movups xmmword [rbp - 0x58], xmm0
lea r11, [rax + rcx]
mov rcx, r14
movzx r15d, byte [r11]
lea r12, [rsi + rax*4]
movsx eax, r9b
mov rsi, r14
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 - 0x58], eax
inc rcx
cmp rcx, 4
jl 0x140241cbd
movsxd rax, dword [rbp - 0x50]
mov edx, r15d
movsxd r8, dword [rbp - 0x4c]
and edx, 0x3f
shl r8, 0x10
mov ecx, edx
or r8, rax
neg ecx
movsxd rax, dword [rbp - 0x54]
and ecx, 0x3f
shl r8, 0x10
or r8, rax
movsxd rax, dword [rbp - 0x58]
shl r8, 0x10
or r8, rax
mov r10, r8
shl r10, cl
mov ecx, edx
shr r8, cl
or r10, r8
jbe 0x140241d63
mov rdx, qword [rsp + 0x38]
mov r8d, dword [rsp + 0x30]
mov ebx, dword [rsp + 0x34]
test r8d, r8d
je 0x140241d5e
bsf rcx, r10
add ecx, r15d
and ecx, 0x3f
je 0x140241d55
mov ecx, dword [r12 + rcx*4]
cmp ecx, ebx
jb 0x140241d5e
prefetcht0 byte [rcx + rdx]
mov dword [rbp + rsi*4 - 0x40], ecx
inc rsi
dec r8d
lea rax, [r10 - 1]
and r10, rax
ja 0x140241d2e
mov rbx, qword [rsp + 0x40]
lea edx, [r15 - 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 [rdi + 0x2c]
mov dword [r12 + rdx*4], eax
inc dword [rdi + 0x2c]
test rsi, rsi
je 0x140241e2e
mov r15, qword [rbp - 0x78]
mov r12, qword [rbp - 0x68]
mov edi, dword [rbp + r14*4 - 0x40]
lea rdx, [rbx - 3]
add rdi, qword [rsp + 0x38]
lea rcx, [rsp + 0x34]
add rdx, rdi
mov r8d, 4
call fcn.1403318a0
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.1403318a0
cmp ebx, dword [rsp + 0x30]
jne 0x140241e1d
mov r8, r12
mov rdx, rdi
mov rcx, r15
call fcn.14021a4e8
mov rbx, qword [rsp + 0x40]
cmp rax, rbx
jbe 0x140241e22
mov rdx, qword [rbp - 0x60]
mov ecx, r13d
sub ecx, dword [rbp + r14*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 0x140241e2e
jmp 0x140241e22
mov rbx, qword [rsp + 0x40]
inc r14
cmp r14, rsi
jb 0x140241d99
mov rax, rbx
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.140330e30
add rsp, 0x1d8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret