Function at 0x140216d40
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x70
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x80], rbx
mov qword [rbp + 0x88], rsi
mov qword [rbp + 0x90], rdi
movaps xmmword [rbp + 0x40], xmm6
movaps xmmword [rbp + 0x30], xmm7
mov rax, qword [0x1404a90f8]
xor rax, rbp
mov qword [rbp + 0x20], rax
xor edi, edi
mov rsi, rdx
xor edx, edx
mov rbx, rcx
mov r15d, edi
lea r8d, [rdi + 0x58]
call fcn.1400c0ec0
movsxd r8, dword [rsi + 4]
mov edx, edi
test r8d, r8d
jle 0x140216e74
cmp r8d, 8
jb 0x140216e74
mov r9, qword [rsi + 8]
xorps xmm5, xmm5
mov ecx, r8d
movdqa xmm4, xmm5
movdqa xmm3, xmm5
and ecx, 0x80000007
jge 0x140216dce
dec ecx
or ecx, 0xfffffff8
inc ecx
movdqa xmm6, xmmword [0x1404378b0]
mov eax, r8d
movdqa xmm7, xmmword [0x140437df0]
sub eax, ecx
movsxd rcx, eax
mov rax, rdi
nop dword [rax]
movdqu xmm2, xmmword [r9 + rax*4]
add edx, 8
movdqa xmm0, xmm6
pcmpgtd xmm2, xmm5
paddd xmm0, xmm4
pandn xmm2, xmm7
movdqa xmm1, xmm2
pand xmm2, xmm4
pandn xmm1, xmm0
movdqa xmm0, xmm6
movdqa xmm4, xmm1
paddd xmm0, xmm3
por xmm4, xmm2
movdqu xmm2, xmmword [r9 + rax*4 + 0x10]
add rax, 8
pcmpgtd xmm2, xmm5
pandn xmm2, xmm7
movdqa xmm1, xmm2
pand xmm2, xmm3
pandn xmm1, xmm0
movdqa xmm3, xmm1
por xmm3, xmm2
cmp rax, rcx
jl 0x140216df0
paddd xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
paddd xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
paddd xmm3, xmm0
movd r15d, xmm3
movsxd rdx, edx
cmp rdx, r8
jge 0x140216e99
mov r10, qword [rsi + 8]
mov ecx, dword [r10 + rdx*4]
lea eax, [r15 + 1]
inc rdx
test ecx, ecx
cmovle eax, r15d
mov r15d, eax
cmp rdx, r8
jl 0x140216e80
mov dword [rbx + 4], r8d
mov dword [rbx + 8], r15d
mov eax, dword [rsi]
mov dword [rbx], eax
test r15d, r15d
jle 0x14021746b
mov edx, dword [rsi + 4]
mov r8d, r15d
mov rcx, qword [rsi + 8]
call fcn.140217a00
movsxd r14, r15d
mov r13, rax
movabs r12, 0xffffffffffffff0
lea rcx, [r14*8]
lea rax, [rcx + 0xf]
cmp rax, rcx
ja 0x140216ee1
mov rax, r12
and rax, 0xfffffffffffffff0
call fcn.1400be3f0
sub rsp, rax
lea r10, [rsp + 0x20]
mov qword [rbp + 0x10], r10
test r13, r13
jne 0x140216f57
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140216f09
call fcn.1400c1bd0
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x140216f17
call fcn.1400c1bd0
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x140216f25
call fcn.1400c1bd0
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140216f33
call fcn.1400c1bd0
mov rcx, qword [rbx + 0x38]
test rcx, rcx
je 0x140216f41
call fcn.1400c1bd0
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0x58]
call fcn.1400c0ec0
or eax, 0xffffffff
jmp 0x14021746d
mov r9d, edi
mov r8, rdi
test r15d, r15d
jle 0x140216ffd
nop word [rax + rax]
mov ecx, dword [r13 + r8*4]
rol ecx, 0x10
mov eax, ecx
mov edx, ecx
shl ecx, 8
shr edx, 8
shl eax, 8
xor edx, eax
and edx, 0xff00ff
xor edx, ecx
mov ecx, edx
mov eax, edx
shr ecx, 4
shl eax, 4
xor ecx, eax
shl edx, 4
and ecx, 0xf0f0f0f
xor ecx, edx
mov edx, ecx
shr edx, 2
lea eax, [rcx*4]
xor edx, eax
lea eax, [rcx*4]
and edx, 0x33333333
xor edx, eax
mov ecx, edx
shr ecx, 1
lea eax, [rdx + rdx]
xor ecx, eax
lea eax, [rdx + rdx]
and ecx, 0x55555555
xor ecx, eax
movsxd rax, r9d
mov dword [r13 + r8*4], ecx
inc r9d
lea rcx, [rax*4]
add rcx, r13
mov qword [r10 + r8*8], rcx
inc r8
cmp r8, r14
jl 0x140216f70
lea r9, [0x1402174b0]
mov r8d, 8
mov rdx, r14
mov rcx, r10
call fcn.1400d1460
lea rcx, [r14*4]
lea rax, [rcx + 0xf]
mov qword [rbp + 8], rcx
cmp rax, rcx
ja 0x14021702d
mov rax, r12
and rax, 0xfffffffffffffff0
call fcn.1400be3f0
sub rsp, rax
lea r12, [rsp + 0x20]
call fcn.1400c1e7c
mov qword [rbx + 0x20], rax
mov edx, edi
mov rcx, rdi
test r15d, r15d
jle 0x1402170a9
mov r8, qword [rbp + 0x10]
nop word [rax + rax]
mov rax, qword [r8 + rcx*8]
inc rcx
sub rax, r13
sar rax, 2
cdqe
mov dword [r12 + rax*4], edx
inc edx
cmp rcx, r14
jl 0x140217060
test r15d, r15d
jle 0x1402170a9
mov r9, r13
mov rdx, r12
sub r9, r12
nop dword [rax]
movsxd r8, dword [rdx]
mov eax, dword [r9 + rdx]
lea rdx, [rdx + 4]
mov rcx, qword [rbx + 0x20]
mov dword [rcx + r8*4], eax
sub r14, 1
jne 0x140217090
mov rcx, r13
call fcn.1400c1bd0
mov r8, r12
mov edx, r15d
mov rcx, rsi
call fcn.1402176c0
mov rcx, qword [rbp + 8]
mov qword [rbx + 0x18], rax
call fcn.1400c1e7c
mov qword [rbx + 0x28], rax
mov r10d, edi
mov edx, edi
cmp dword [rsi + 4], edi
jle 0x140217106
mov r8, rdi
mov r9, r12
mov rax, qword [rsi + 8]
cmp dword [r8 + rax], edi
jle 0x1402170fb
movsxd rcx, dword [r9]
inc r10d
mov rax, qword [rbx + 0x28]
add r9, 4
mov dword [rax + rcx*4], edx
inc edx
add r8, 4
cmp edx, dword [rsi + 4]
jl 0x1402170e0
movsxd rcx, r10d
call fcn.1400c1e7c
mov qword [rbx + 0x30], rax
mov r15d, edi
mov r9d, edi
cmp dword [rsi + 4], edi
jle 0x14021714e
mov r8, rdi
mov rax, qword [rsi + 8]
cmp dword [r8 + rax], edi
jle 0x140217141
movsxd rdx, dword [r12]
inc r15d
mov rcx, qword [rbx + 0x30]
add r12, 4
movzx eax, byte [r8 + rax]
mov byte [rdx + rcx], al
inc r9d
add r8, 4
cmp r9d, dword [rsi + 4]
jl 0x140217120
mov eax, dword [rbx + 8]
mov ecx, edi
test eax, eax
je 0x14021715d
inc ecx
shr eax, 1
jne 0x140217157
add ecx, 0xfffffffc
mov eax, 5
cmp ecx, eax
mov edx, 4
cmovl ecx, eax
mov eax, 8
cmp ecx, 8
cmovg ecx, eax
mov eax, 1
shl eax, cl
mov dword [rbx + 0x40], ecx
movsxd rcx, eax
mov dword [rbp + 8], eax
call fcn.1400c1bc0
mov qword [rbx + 0x38], rax
mov r9, rdi
mov dword [rbx + 0x44], edi
movsxd r12, r15d
test r15d, r15d
jle 0x1402172aa
mov r11d, 1
nop dword [rax + rax]
mov eax, dword [rbx + 0x44]
mov rdx, qword [rbx + 0x30]
mov esi, dword [rbx + 0x40]
movsx ecx, byte [rdx + r9]
cmp eax, ecx
cmovl eax, ecx
mov dword [rbx + 0x44], eax
movsx r14d, byte [rdx + r9]
cmp r14d, esi
jg 0x14021729b
mov rax, qword [rbx + 0x20]
sub esi, r14d
mov r8d, edi
mov ecx, dword [rax + r9*4]
rol ecx, 0x10
mov edx, ecx
mov eax, ecx
shr edx, 8
shl eax, 8
xor edx, eax
shl ecx, 8
and edx, 0xff00ff
xor edx, ecx
mov ecx, edx
mov eax, edx
shl eax, 4
shl edx, 4
shr ecx, 4
xor ecx, eax
and ecx, 0xf0f0f0f
xor ecx, edx
mov edx, ecx
shr edx, 2
lea eax, [rcx*4]
xor edx, eax
lea eax, [rcx*4]
and edx, 0x33333333
movzx ecx, sil
xor edx, eax
mov r10d, edx
shr r10d, 1
lea eax, [rdx + rdx]
xor r10d, eax
lea eax, [rdx + rdx]
and r10d, 0x55555555
xor r10d, eax
mov eax, 1
shl eax, cl
test eax, eax
jle 0x14021729b
nop dword [rax]
mov rax, qword [rbx + 0x30]
movzx ecx, byte [r9 + rax]
mov eax, r8d
shl eax, cl
inc r8d
mov ecx, eax
mov eax, r10d
or rcx, rax
mov rax, qword [rbx + 0x38]
mov dword [rax + rcx*4], r11d
mov rax, qword [rbx + 0x30]
mov ecx, dword [rbx + 0x40]
movsx edx, byte [rax + r9]
sub ecx, edx
mov edx, 1
shl edx, cl
cmp r8d, edx
jl 0x140217260
inc r11d
inc r9
cmp r9, r12
jl 0x1402171b0
mov ecx, 0x1f
mov r13d, 0xfffffffe
sub ecx, dword [rbx + 0x40]
mov edx, edi
shl r13d, cl
mov r14d, edi
mov dword [rbp], edx
cmp dword [rbp + 8], edi
jle 0x14021746b
mov r11, rdi
mov rsi, rdi
nop dword [rax]
nop word [rax + rax]
mov r9, qword [rbx + 0x38]
mov r8d, edx
mov ecx, 0x20
mov qword [rbp + 0x18], r9
sub ecx, dword [rbx + 0x40]
shl r8d, cl
mov edx, r8d
rol edx, 0x10
mov ecx, edx
mov dword [rbp + 0x10], edx
shr ecx, 8
mov eax, edx
shl eax, 8
xor ecx, eax
mov eax, edx
and ecx, 0xff00ff
shl eax, 8
xor ecx, eax
mov edx, ecx
mov eax, ecx
shr edx, 4
shl ecx, 4
shl eax, 4
xor edx, eax
and edx, 0xf0f0f0f
xor edx, ecx
mov ecx, edx
shr ecx, 2
lea eax, [rdx*4]
xor ecx, eax
lea eax, [rdx*4]
and ecx, 0x33333333
xor ecx, eax
mov edx, ecx
shr rdx, 1
lea eax, [rcx + rcx]
add ecx, ecx
xor rdx, rax
and edx, 0x55555555
xor rdx, rcx
cmp dword [r9 + rdx*4], 0
jne 0x14021745a
lea ecx, [rdi + 1]
cmp ecx, r15d
jge 0x140217396
mov rdx, qword [rbx + 0x20]
add rdx, 4
lea rdx, [rdx + rsi*4]
cmp dword [rdx], r8d
ja 0x140217396
inc edi
inc ecx
inc rsi
add rdx, 4
cmp ecx, r15d
jl 0x140217381
cmp r11, r12
jge 0x1402173bc
mov rax, qword [rbx + 0x20]
lea rcx, [rax + r11*4]
mov eax, r13d
and eax, dword [rcx]
cmp r8d, eax
jb 0x1402173bc
inc r14d
inc r11
add rcx, 4
cmp r11, r12
jl 0x1402173a3
mov ecx, dword [rbp + 0x10]
mov eax, 0x7fff
mov edx, ecx
mov r9d, r15d
sub r9d, r14d
mov r10d, edi
cmp edi, eax
cmova r10d, eax
cmp r9d, eax
cmova r9d, eax
mov eax, ecx
shl eax, 8
or r10d, 0xffff0000
shr edx, 8
xor edx, eax
shl ecx, 8
and edx, 0xff00ff
shl r10d, 0xf
xor edx, ecx
or r10d, r9d
mov eax, edx
mov ecx, edx
shl eax, 4
shl edx, 4
shr ecx, 4
xor ecx, eax
and ecx, 0xf0f0f0f
xor ecx, edx
mov r8d, ecx
shr r8d, 2
lea eax, [rcx*4]
xor r8d, eax
lea eax, [rcx*4]
and r8d, 0x33333333
xor r8d, eax
mov edx, r8d
shr rdx, 1
lea eax, [r8 + r8]
xor rdx, rax
lea ecx, [r8 + r8]
mov rax, qword [rbp + 0x18]
and edx, 0x55555555
xor rdx, rcx
mov dword [rax + rdx*4], r10d
mov edx, dword [rbp]
inc edx
mov dword [rbp], edx
cmp edx, dword [rbp + 8]
jl 0x1402172e0
xor eax, eax
mov rcx, qword [rbp + 0x20]
xor rcx, rbp
call fcn.1400bd5f0
mov rbx, qword [rbp + 0x80]
mov rsi, qword [rbp + 0x88]
mov rdi, qword [rbp + 0x90]
movaps xmm6, xmmword [rbp + 0x40]
movaps xmm7, xmmword [rbp + 0x30]
lea rsp, [rbp + 0x50]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret