Function at 0x140061610
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 0x1400616a3
mov rcx, qword [rsi + 0x10]
mov r15, qword [rsi + 0x20]
cmp rcx, qword [rsi + 0x18]
jne 0x14006168f
lea rax, [rcx + rcx*2]
shr rax, 1
test rcx, rcx
mov edi, 0x20
cmovne rdi, rax
cmp rdi, rcx
jbe 0x14006169d
mov rax, rdi
shr rax, 0x3d
jne 0x14006169d
lea rdx, [rdi*8]
mov rcx, qword [rsi + 8]
call fcn.140098700
test rax, rax
je 0x14006169d
mov qword [rsi + 8], rax
mov qword [rsi + 0x18], rdi
mov rcx, qword [rsi + 0x10]
jmp 0x140061693
mov rax, qword [rsi + 8]
mov qword [rax + rcx*8], r15
inc qword [rsi + 0x10]
jmp 0x1400616a3
mov word [rsi + 0x28], 0x101
mov rcx, rsi
call fcn.140054a90
xor ebp, ebp
test rax, rax
je 0x140061f34
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.140058c20
test eax, eax
je 0x140061f34
mov qword [rsp + 0x20], rsi
mov rcx, r15
mov rdx, r15
mov r8, rbx
mov r9, rbx
call fcn.140058280
test eax, eax
je 0x140061f34
mov r8, qword [r14 + 0x10]
movsxd rax, dword [r15 + 8]
movsxd rdx, dword [r8 + 8]
cmp eax, edx
jge 0x140061722
mov r9, qword [r8]
mov r11, rdx
sub r11, rax
cmp r11, 4
jae 0x140061726
xor ecx, ecx
mov r10, rax
jmp 0x140061790
xor ecx, ecx
jmp 0x14006179c
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 0x140061750
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq rcx, xmm0
cmp r11, rdi
je 0x14006179c
nop word cs:[rax + rax]
or rcx, qword [r9 + r10*8]
inc r10
cmp rdx, r10
jne 0x140061790
cmp edx, eax
jge 0x14006182c
mov r9, qword [r15]
mov r11, rax
sub r11, rdx
cmp r11, 4
jae 0x1400617b8
mov r10, rdx
jmp 0x140061820
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 0x1400617e0
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
movq rcx, xmm1
cmp r11, r12
je 0x14006182c
nop word cs:[rax + rax]
or rcx, qword [r9 + r10*8]
inc r10
cmp rax, r10
jne 0x140061820
cmp eax, edx
cmovl edx, eax
test edx, edx
jle 0x1400618d3
mov r9, qword [r15]
mov r10, qword [r8]
mov r11d, edx
cmp edx, 4
jae 0x14006184b
xor edx, edx
jmp 0x1400618c0
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 0x140061870
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq rcx, xmm0
cmp rdx, r11
je 0x1400618d3
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 0x1400618c0
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 0x140061907
mov r12, qword [r8]
mov rbp, r9
sub rbp, rax
cmp rbp, 4
jae 0x14006190c
xor r10d, r10d
mov r13, rax
jmp 0x140061970
xor r10d, r10d
jmp 0x14006197c
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 0x140061930
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq r10, xmm0
cmp rbp, rdi
mov rbx, qword [rsp + 0x38]
je 0x14006197c
nop word [rax + rax]
or r10, qword [r12 + r13*8]
inc r13
cmp r9, r13
jne 0x140061970
movsxd r11, r11d
cmp r9d, eax
jge 0x140061a0c
mov r12, qword [r15]
mov rdi, rax
sub rdi, r9
cmp rdi, 4
jae 0x14006199c
mov r13, r9
jmp 0x140061a00
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 0x1400619c0
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
movq r10, xmm1
cmp rdi, rbp
mov rbx, qword [rsp + 0x38]
je 0x140061a0c
nop word [rax + rax]
or r10, qword [r12 + r13*8]
inc r13
cmp rax, r13
jne 0x140061a00
or rcx, r11
cmp eax, r9d
cmovl r9d, eax
test r9d, r9d
jle 0x140061ac3
mov rax, qword [r15]
mov r11, qword [r8]
mov r12d, r9d
cmp r9d, 4
jae 0x140061a33
xor r9d, r9d
jmp 0x140061ab0
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 0x140061a60
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq r10, xmm0
cmp r9, r12
je 0x140061ac3
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 0x140061ab0
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 0x140061f23
mov ebp, 1
nop
cmp dword [r14 + 0x24], ebp
jne 0x140061b00
cmp r12, 0xffffffffffffffff
jne 0x140061f23
mov qword [rsp + 0x20], rsi
mov rcx, r15
mov rdx, r15
mov r8, r15
mov r9, rbx
call fcn.140058280
test eax, eax
je 0x140061f66
mov rdx, qword [r14 + 0x18]
movsxd rax, dword [r15 + 8]
movsxd rcx, dword [rdx + 8]
cmp eax, ecx
jge 0x140061b50
mov r9, qword [rdx]
mov r11, rcx
sub r11, rax
cmp r11, 4
jae 0x140061b60
mov r10, rax
xor r8d, r8d
jmp 0x140061bc0
xor r8d, r8d
jmp 0x140061bcc
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 0x140061b80
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq r8, xmm0
cmp r11, rdi
mov rbx, qword [rsp + 0x38]
je 0x140061bcc
nop word [rax + rax]
or r8, qword [r9 + r10*8]
inc r10
cmp rcx, r10
jne 0x140061bc0
cmp ecx, eax
jge 0x140061c5c
mov r9, qword [r15]
mov r11, rax
sub r11, rcx
cmp r11, 4
jae 0x140061bf0
mov r10, rcx
jmp 0x140061c50
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 0x140061c10
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
movq r8, xmm1
cmp r11, rdi
mov rbx, qword [rsp + 0x38]
je 0x140061c5c
nop word [rax + rax]
or r8, qword [r9 + r10*8]
inc r10
cmp rax, r10
jne 0x140061c50
cmp eax, ecx
cmovl ecx, eax
test ecx, ecx
jle 0x140061d03
mov r9, qword [r15]
mov r10, qword [rdx]
mov r11d, ecx
cmp ecx, 4
jae 0x140061c80
xor ecx, ecx
jmp 0x140061cf0
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 0x140061ca0
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq r8, xmm0
cmp rcx, r11
je 0x140061d03
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 0x140061cf0
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 0x140061d50
mov r10, qword [rdx]
mov r13, r8
sub r13, rax
cmp r13, 4
jae 0x140061d60
mov r11, rax
xor r9d, r9d
jmp 0x140061dc0
xor r9d, r9d
jmp 0x140061dcc
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 0x140061d80
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq r9, xmm0
cmp r13, rdi
mov rbx, qword [rsp + 0x38]
je 0x140061dcc
nop word [rax + rax]
or r9, qword [r10 + r11*8]
inc r11
cmp r8, r11
jne 0x140061dc0
cmp r8d, eax
jge 0x140061e5c
mov r10, qword [r15]
mov r13, rax
sub r13, r8
cmp r13, 4
jae 0x140061df0
mov r11, r8
jmp 0x140061e50
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 0x140061e10
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
movq r9, xmm1
cmp r13, rdi
mov rbx, qword [rsp + 0x38]
je 0x140061e5c
nop word [rax + rax]
or r9, qword [r10 + r11*8]
inc r11
cmp rax, r11
jne 0x140061e50
cmp eax, r8d
cmovl r8d, eax
test r8d, r8d
jle 0x140061f03
mov rax, qword [r15]
mov r10, qword [rdx]
mov r11d, r8d
cmp r8d, 4
jae 0x140061e80
xor r8d, r8d
jmp 0x140061ef0
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 0x140061ea0
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq r9, xmm0
cmp r8, r11
je 0x140061f03
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 0x140061ef0
xor ecx, dword [rdx + 0x10]
movsxd rax, ecx
mov ecx, r12d
and ecx, 1
or rcx, r9
or rcx, rax
je 0x140061f23
inc ebp
cmp ebp, dword [r14 + 0x20]
jl 0x140061af0
and r12d, 1
mov rax, qword [rsp + 0x40]
mov dword [rax], r12d
mov ebp, 1
cmp byte [rsi + 0x28], 0
jne 0x140061f53
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 0x140061f53
jmp 0x140061f3a