Function at 0x1400716a0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rbx, r9
mov r12, r8
mov qword [rsp + 0x40], rdx
mov r14, rcx
mov rsi, qword [rsp + 0xb0]
cmp byte [rsi + 0x28], 0
jne 0x140071733
mov rcx, qword [rsi + 0x10]
mov r15, qword [rsi + 0x20]
cmp rcx, qword [rsi + 0x18]
jne 0x14007171f
lea rax, [rcx + rcx*2]
shr rax, 1
test rcx, rcx
mov edi, 0x20
cmovne rdi, rax
cmp rdi, rcx
jbe 0x14007172d
mov rax, rdi
shr rax, 0x3d
jne 0x14007172d
lea rdx, [rdi*8]
mov rcx, qword [rsi + 8]
call fcn.1400c0a10
test rax, rax
je 0x14007172d
mov qword [rsi + 8], rax
mov qword [rsi + 0x18], rdi
mov rcx, qword [rsi + 0x10]
jmp 0x140071723
mov rax, qword [rsi + 8]
mov qword [rax + rcx*8], r15
inc qword [rsi + 0x10]
jmp 0x140071733
mov word [rsi + 0x28], 0x101
mov rcx, rsi
call fcn.140065eb0
xor ebp, ebp
test rax, rax
je 0x140071fc4
mov r15, rax
lea r9, [rbx + 0x18]
mov r8, qword [r14 + 8]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rsi
mov rcx, rax
mov rdx, r12
call fcn.140069780
test eax, eax
je 0x140071fc4
mov qword [rsp + 0x20], rsi
mov rcx, r15
mov rdx, r15
mov r8, rbx
mov r9, rbx
call fcn.140068c20
test eax, eax
je 0x140071fc4
mov r8, qword [r14 + 0x10]
movsxd rax, dword [r15 + 8]
movsxd rdx, dword [r8 + 8]
cmp eax, edx
jge 0x1400717b2
mov r9, qword [r8]
mov r11, rdx
sub r11, rax
cmp r11, 4
jae 0x1400717b6
xor ecx, ecx
mov r10, rax
jmp 0x140071820
xor ecx, ecx
jmp 0x14007182c
mov rdi, r11
and rdi, 0xfffffffffffffffc
lea r10, [rdi + rax]
lea rcx, [r9 + rax*8]
add rcx, 0x10
pxor xmm0, xmm0
xor r12d, r12d
pxor xmm1, xmm1
nop word cs:[rax + rax]
movdqu xmm2, xmmword [rcx + r12*8 - 0x10]
por xmm0, xmm2
movdqu xmm2, xmmword [rcx + r12*8]
por xmm1, xmm2
add r12, 4
cmp rdi, r12
jne 0x1400717e0
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq rcx, xmm0
cmp r11, rdi
je 0x14007182c
nop word cs:[rax + rax]
or rcx, qword [r9 + r10*8]
inc r10
cmp rdx, r10
jne 0x140071820
cmp edx, eax
jge 0x1400718bc
mov r9, qword [r15]
mov r11, rax
sub r11, rdx
cmp r11, 4
jae 0x140071848
mov r10, rdx
jmp 0x1400718b0
mov r12, r11
and r12, 0xfffffffffffffffc
lea r10, [r12 + rdx]
movq xmm1, rcx
lea rcx, [r9 + rdx*8]
add rcx, 0x10
pxor xmm0, xmm0
xor edi, edi
nop word cs:[rax + rax]
movdqu xmm2, xmmword [rcx + rdi*8 - 0x10]
por xmm1, xmm2
movdqu xmm2, xmmword [rcx + rdi*8]
por xmm0, xmm2
add rdi, 4
cmp r12, rdi
jne 0x140071870
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
movq rcx, xmm1
cmp r11, r12
je 0x1400718bc
nop word cs:[rax + rax]
or rcx, qword [r9 + r10*8]
inc r10
cmp rax, r10
jne 0x1400718b0
cmp eax, edx
cmovl edx, eax
test edx, edx
jle 0x140071963
mov r9, qword [r15]
mov r10, qword [r8]
mov r11d, edx
cmp edx, 4
jae 0x1400718db
xor edx, edx
jmp 0x140071950
mov edx, r11d
and edx, 0xfffffffc
movq xmm0, rcx
lea rcx, [r11*8]
and rcx, 0xffffffffffffffe0
pxor xmm1, xmm1
xor edi, edi
nop dword [rax + rax]
movdqu xmm2, xmmword [r9 + rdi]
movdqu xmm3, xmmword [r9 + rdi + 0x10]
movdqu xmm4, xmmword [r10 + rdi]
pxor xmm4, xmm2
por xmm0, xmm4
movdqu xmm2, xmmword [r10 + rdi + 0x10]
pxor xmm2, xmm3
por xmm1, xmm2
add rdi, 0x20
cmp rcx, rdi
jne 0x140071900
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq rcx, xmm0
cmp rdx, r11
je 0x140071963
nop word [rax + rax]
mov rdi, qword [r10 + rdx*8]
xor rdi, qword [r9 + rdx*8]
or rcx, rdi
inc rdx
cmp r11, rdx
jne 0x140071950
mov edx, dword [r15 + 0x10]
mov r11d, dword [r8 + 0x10]
xor r11d, edx
mov r8, qword [r14 + 0x18]
movsxd r9, dword [r8 + 8]
cmp eax, r9d
mov qword [rsp + 0x38], rbx
jge 0x140071997
mov r12, qword [r8]
mov rbp, r9
sub rbp, rax
cmp rbp, 4
jae 0x14007199c
xor r10d, r10d
mov r13, rax
jmp 0x140071a00
xor r10d, r10d
jmp 0x140071a0c
mov rdi, rbp
and rdi, 0xfffffffffffffffc
lea r13, [rdi + rax]
lea r10, [r12 + rax*8]
add r10, 0x10
pxor xmm0, xmm0
xor ebx, ebx
pxor xmm1, xmm1
nop dword [rax]
movdqu xmm2, xmmword [r10 + rbx*8 - 0x10]
por xmm0, xmm2
movdqu xmm2, xmmword [r10 + rbx*8]
por xmm1, xmm2
add rbx, 4
cmp rdi, rbx
jne 0x1400719c0
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq r10, xmm0
cmp rbp, rdi
mov rbx, qword [rsp + 0x38]
je 0x140071a0c
nop word [rax + rax]
or r10, qword [r12 + r13*8]
inc r13
cmp r9, r13
jne 0x140071a00
movsxd r11, r11d
cmp r9d, eax
jge 0x140071a9c
mov r12, qword [r15]
mov rdi, rax
sub rdi, r9
cmp rdi, 4
jae 0x140071a2c
mov r13, r9
jmp 0x140071a90
mov rbp, rdi
and rbp, 0xfffffffffffffffc
lea r13, [r9 + rbp]
movq xmm1, r10
lea r10, [r12 + r9*8]
add r10, 0x10
pxor xmm0, xmm0
xor ebx, ebx
nop word [rax + rax]
movdqu xmm2, xmmword [r10 + rbx*8 - 0x10]
por xmm1, xmm2
movdqu xmm2, xmmword [r10 + rbx*8]
por xmm0, xmm2
add rbx, 4
cmp rbp, rbx
jne 0x140071a50
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
movq r10, xmm1
cmp rdi, rbp
mov rbx, qword [rsp + 0x38]
je 0x140071a9c
nop word [rax + rax]
or r10, qword [r12 + r13*8]
inc r13
cmp rax, r13
jne 0x140071a90
or rcx, r11
cmp eax, r9d
cmovl r9d, eax
test r9d, r9d
jle 0x140071b53
mov rax, qword [r15]
mov r11, qword [r8]
mov r12d, r9d
cmp r9d, 4
jae 0x140071ac3
xor r9d, r9d
jmp 0x140071b40
mov r9d, r12d
and r9d, 0xfffffffc
movq xmm0, r10
lea r10, [r12*8]
and r10, 0xffffffffffffffe0
pxor xmm1, xmm1
xor edi, edi
nop word cs:[rax + rax]
movdqu xmm2, xmmword [rax + rdi]
movdqu xmm3, xmmword [rax + rdi + 0x10]
movdqu xmm4, xmmword [r11 + rdi]
pxor xmm4, xmm2
por xmm0, xmm4
movdqu xmm2, xmmword [r11 + rdi + 0x10]
pxor xmm2, xmm3
por xmm1, xmm2
add rdi, 0x20
cmp r10, rdi
jne 0x140071af0
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq r10, xmm0
cmp r9, r12
je 0x140071b53
nop dword [rax + rax]
mov rdi, qword [r11 + r9*8]
xor rdi, qword [rax + r9*8]
or r10, rdi
inc r9
cmp r12, r9
jne 0x140071b40
test rcx, rcx
sete al
xor edx, dword [r8 + 0x10]
movsxd rcx, edx
or rcx, r10
sete cl
or cl, al
movzx r12d, cl
neg r12
cmp dword [r14 + 0x20], 2
jl 0x140071fb3
mov ebp, 1
nop
cmp dword [r14 + 0x24], ebp
jne 0x140071b90
cmp r12, 0xffffffffffffffff
jne 0x140071fb3
mov qword [rsp + 0x20], rsi
mov rcx, r15
mov rdx, r15
mov r8, r15
mov r9, rbx
call fcn.140068c20
test eax, eax
je 0x140071ff6
mov rdx, qword [r14 + 0x18]
movsxd rax, dword [r15 + 8]
movsxd rcx, dword [rdx + 8]
cmp eax, ecx
jge 0x140071be0
mov r9, qword [rdx]
mov r11, rcx
sub r11, rax
cmp r11, 4
jae 0x140071bf0
mov r10, rax
xor r8d, r8d
jmp 0x140071c50
xor r8d, r8d
jmp 0x140071c5c
mov rdi, r11
and rdi, 0xfffffffffffffffc
lea r10, [rdi + rax]
lea r8, [r9 + rax*8]
add r8, 0x10
pxor xmm0, xmm0
xor ebx, ebx
pxor xmm1, xmm1
nop dword [rax]
movdqu xmm2, xmmword [r8 + rbx*8 - 0x10]
por xmm0, xmm2
movdqu xmm2, xmmword [r8 + rbx*8]
por xmm1, xmm2
add rbx, 4
cmp rdi, rbx
jne 0x140071c10
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq r8, xmm0
cmp r11, rdi
mov rbx, qword [rsp + 0x38]
je 0x140071c5c
nop word [rax + rax]
or r8, qword [r9 + r10*8]
inc r10
cmp rcx, r10
jne 0x140071c50
cmp ecx, eax
jge 0x140071cec
mov r9, qword [r15]
mov r11, rax
sub r11, rcx
cmp r11, 4
jae 0x140071c80
mov r10, rcx
jmp 0x140071ce0
mov rdi, r11
and rdi, 0xfffffffffffffffc
lea r10, [rdi + rcx]
movq xmm1, r8
lea r8, [r9 + rcx*8]
add r8, 0x10
pxor xmm0, xmm0
xor ebx, ebx
nop
movdqu xmm2, xmmword [r8 + rbx*8 - 0x10]
por xmm1, xmm2
movdqu xmm2, xmmword [r8 + rbx*8]
por xmm0, xmm2
add rbx, 4
cmp rdi, rbx
jne 0x140071ca0
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
movq r8, xmm1
cmp r11, rdi
mov rbx, qword [rsp + 0x38]
je 0x140071cec
nop word [rax + rax]
or r8, qword [r9 + r10*8]
inc r10
cmp rax, r10
jne 0x140071ce0
cmp eax, ecx
cmovl ecx, eax
test ecx, ecx
jle 0x140071d93
mov r9, qword [r15]
mov r10, qword [rdx]
mov r11d, ecx
cmp ecx, 4
jae 0x140071d10
xor ecx, ecx
jmp 0x140071d80
mov ecx, r11d
and ecx, 0xfffffffc
movq xmm0, r8
lea r8, [r11*8]
and r8, 0xffffffffffffffe0
pxor xmm1, xmm1
xor edi, edi
nop dword [rax]
movdqu xmm2, xmmword [r9 + rdi]
movdqu xmm3, xmmword [r9 + rdi + 0x10]
movdqu xmm4, xmmword [r10 + rdi]
pxor xmm4, xmm2
por xmm0, xmm4
movdqu xmm2, xmmword [r10 + rdi + 0x10]
pxor xmm2, xmm3
por xmm1, xmm2
add rdi, 0x20
cmp r8, rdi
jne 0x140071d30
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq r8, xmm0
cmp rcx, r11
je 0x140071d93
nop word [rax + rax]
mov rdi, qword [r10 + rcx*8]
xor rdi, qword [r9 + rcx*8]
or r8, rdi
inc rcx
cmp r11, rcx
jne 0x140071d80
mov ecx, dword [r15 + 0x10]
mov edx, dword [rdx + 0x10]
xor edx, ecx
movsxd rdx, edx
or rdx, r8
mov rdx, 0xffffffffffffffff
cmove r12, rdx
mov rdx, qword [r14 + 0x10]
movsxd r8, dword [rdx + 8]
cmp eax, r8d
jge 0x140071de0
mov r10, qword [rdx]
mov r13, r8
sub r13, rax
cmp r13, 4
jae 0x140071df0
mov r11, rax
xor r9d, r9d
jmp 0x140071e50
xor r9d, r9d
jmp 0x140071e5c
mov rdi, r13
and rdi, 0xfffffffffffffffc
lea r11, [rdi + rax]
lea r9, [r10 + rax*8]
add r9, 0x10
pxor xmm0, xmm0
xor ebx, ebx
pxor xmm1, xmm1
nop dword [rax]
movdqu xmm2, xmmword [r9 + rbx*8 - 0x10]
por xmm0, xmm2
movdqu xmm2, xmmword [r9 + rbx*8]
por xmm1, xmm2
add rbx, 4
cmp rdi, rbx
jne 0x140071e10
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq r9, xmm0
cmp r13, rdi
mov rbx, qword [rsp + 0x38]
je 0x140071e5c
nop word [rax + rax]
or r9, qword [r10 + r11*8]
inc r11
cmp r8, r11
jne 0x140071e50
cmp r8d, eax
jge 0x140071eec
mov r10, qword [r15]
mov r13, rax
sub r13, r8
cmp r13, 4
jae 0x140071e80
mov r11, r8
jmp 0x140071ee0
mov rdi, r13
and rdi, 0xfffffffffffffffc
lea r11, [rdi + r8]
movq xmm1, r9
lea r9, [r10 + r8*8]
add r9, 0x10
pxor xmm0, xmm0
xor ebx, ebx
nop
movdqu xmm2, xmmword [r9 + rbx*8 - 0x10]
por xmm1, xmm2
movdqu xmm2, xmmword [r9 + rbx*8]
por xmm0, xmm2
add rbx, 4
cmp rdi, rbx
jne 0x140071ea0
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
movq r9, xmm1
cmp r13, rdi
mov rbx, qword [rsp + 0x38]
je 0x140071eec
nop word [rax + rax]
or r9, qword [r10 + r11*8]
inc r11
cmp rax, r11
jne 0x140071ee0
cmp eax, r8d
cmovl r8d, eax
test r8d, r8d
jle 0x140071f93
mov rax, qword [r15]
mov r10, qword [rdx]
mov r11d, r8d
cmp r8d, 4
jae 0x140071f10
xor r8d, r8d
jmp 0x140071f80
mov r8d, r11d
and r8d, 0xfffffffc
movq xmm0, r9
lea r9, [r11*8]
and r9, 0xffffffffffffffe0
pxor xmm1, xmm1
xor edi, edi
nop
movdqu xmm2, xmmword [rax + rdi]
movdqu xmm3, xmmword [rax + rdi + 0x10]
movdqu xmm4, xmmword [r10 + rdi]
pxor xmm4, xmm2
por xmm0, xmm4
movdqu xmm2, xmmword [r10 + rdi + 0x10]
pxor xmm2, xmm3
por xmm1, xmm2
add rdi, 0x20
cmp r9, rdi
jne 0x140071f30
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq r9, xmm0
cmp r8, r11
je 0x140071f93
nop dword [rax + rax]
mov rdi, qword [r10 + r8*8]
xor rdi, qword [rax + r8*8]
or r9, rdi
inc r8
cmp r11, r8
jne 0x140071f80
xor ecx, dword [rdx + 0x10]
movsxd rax, ecx
mov ecx, r12d
and ecx, 1
or rcx, r9
or rcx, rax
je 0x140071fb3
inc ebp
cmp ebp, dword [r14 + 0x20]
jl 0x140071b80
and r12d, 1
mov rax, qword [rsp + 0x40]
mov dword [rax], r12d
mov ebp, 1
cmp byte [rsi + 0x28], 0
jne 0x140071fe3
mov rax, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
lea rdx, [rcx - 1]
mov qword [rsi + 0x10], rdx
mov rax, qword [rax + rcx*8 - 8]
mov qword [rsi + 0x20], rax
mov eax, ebp
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor ebp, ebp
cmp byte [rsi + 0x28], 0
jne 0x140071fe3
jmp 0x140071fca