Function at 0x140061ac0
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 0x140061b53
mov rcx, qword [rsi + 0x10]
mov r15, qword [rsi + 0x20]
cmp rcx, qword [rsi + 0x18]
jne 0x140061b3f
lea rax, [rcx + rcx*2]
shr rax, 1
test rcx, rcx
mov edi, 0x20
cmovne rdi, rax
cmp rdi, rcx
jbe 0x140061b4d
mov rax, rdi
shr rax, 0x3d
jne 0x140061b4d
lea rdx, [rdi*8]
mov rcx, qword [rsi + 8]
call fcn.1400936b0
test rax, rax
je 0x140061b4d
mov qword [rsi + 8], rax
mov qword [rsi + 0x18], rdi
mov rcx, qword [rsi + 0x10]
jmp 0x140061b43
mov rax, qword [rsi + 8]
mov qword [rax + rcx*8], r15
inc qword [rsi + 0x10]
jmp 0x140061b53
mov word [rsi + 0x28], 0x101
mov rcx, rsi
call fcn.1400555e0
xor ebp, ebp
test rax, rax
je 0x1400623e4
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.140059500
test eax, eax
je 0x1400623e4
mov qword [rsp + 0x20], rsi
mov rcx, r15
mov rdx, r15
mov r8, rbx
mov r9, rbx
call fcn.140058b20
test eax, eax
je 0x1400623e4
mov r8, qword [r14 + 0x10]
movsxd rax, dword [r15 + 8]
movsxd rdx, dword [r8 + 8]
cmp eax, edx
jge 0x140061bd2
mov r9, qword [r8]
mov r11, rdx
sub r11, rax
cmp r11, 4
jae 0x140061bd6
xor ecx, ecx
mov r10, rax
jmp 0x140061c40
xor ecx, ecx
jmp 0x140061c4c
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 0x140061c00
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq rcx, xmm0
cmp r11, rdi
je 0x140061c4c
nop word cs:[rax + rax]
or rcx, qword [r9 + r10*8]
inc r10
cmp rdx, r10
jne 0x140061c40
cmp edx, eax
jge 0x140061cdc
mov r9, qword [r15]
mov r11, rax
sub r11, rdx
cmp r11, 4
jae 0x140061c68
mov r10, rdx
jmp 0x140061cd0
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 0x140061c90
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
movq rcx, xmm1
cmp r11, r12
je 0x140061cdc
nop word cs:[rax + rax]
or rcx, qword [r9 + r10*8]
inc r10
cmp rax, r10
jne 0x140061cd0
cmp eax, edx
cmovl edx, eax
test edx, edx
jle 0x140061d83
mov r9, qword [r15]
mov r10, qword [r8]
mov r11d, edx
cmp edx, 4
jae 0x140061cfb
xor edx, edx
jmp 0x140061d70
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 0x140061d20
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq rcx, xmm0
cmp rdx, r11
je 0x140061d83
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 0x140061d70
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 0x140061db7
mov r12, qword [r8]
mov rbp, r9
sub rbp, rax
cmp rbp, 4
jae 0x140061dbc
xor r10d, r10d
mov r13, rax
jmp 0x140061e20
xor r10d, r10d
jmp 0x140061e2c
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 0x140061de0
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq r10, xmm0
cmp rbp, rdi
mov rbx, qword [rsp + 0x38]
je 0x140061e2c
nop word [rax + rax]
or r10, qword [r12 + r13*8]
inc r13
cmp r9, r13
jne 0x140061e20
movsxd r11, r11d
cmp r9d, eax
jge 0x140061ebc
mov r12, qword [r15]
mov rdi, rax
sub rdi, r9
cmp rdi, 4
jae 0x140061e4c
mov r13, r9
jmp 0x140061eb0
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 0x140061e70
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
movq r10, xmm1
cmp rdi, rbp
mov rbx, qword [rsp + 0x38]
je 0x140061ebc
nop word [rax + rax]
or r10, qword [r12 + r13*8]
inc r13
cmp rax, r13
jne 0x140061eb0
or rcx, r11
cmp eax, r9d
cmovl r9d, eax
test r9d, r9d
jle 0x140061f73
mov rax, qword [r15]
mov r11, qword [r8]
mov r12d, r9d
cmp r9d, 4
jae 0x140061ee3
xor r9d, r9d
jmp 0x140061f60
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 0x140061f10
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq r10, xmm0
cmp r9, r12
je 0x140061f73
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 0x140061f60
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 0x1400623d3
mov ebp, 1
nop
cmp dword [r14 + 0x24], ebp
jne 0x140061fb0
cmp r12, 0xffffffffffffffff
jne 0x1400623d3
mov qword [rsp + 0x20], rsi
mov rcx, r15
mov rdx, r15
mov r8, r15
mov r9, rbx
call fcn.140058b20
test eax, eax
je 0x140062416
mov rdx, qword [r14 + 0x18]
movsxd rax, dword [r15 + 8]
movsxd rcx, dword [rdx + 8]
cmp eax, ecx
jge 0x140062000
mov r9, qword [rdx]
mov r11, rcx
sub r11, rax
cmp r11, 4
jae 0x140062010
mov r10, rax
xor r8d, r8d
jmp 0x140062070
xor r8d, r8d
jmp 0x14006207c
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 0x140062030
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq r8, xmm0
cmp r11, rdi
mov rbx, qword [rsp + 0x38]
je 0x14006207c
nop word [rax + rax]
or r8, qword [r9 + r10*8]
inc r10
cmp rcx, r10
jne 0x140062070
cmp ecx, eax
jge 0x14006210c
mov r9, qword [r15]
mov r11, rax
sub r11, rcx
cmp r11, 4
jae 0x1400620a0
mov r10, rcx
jmp 0x140062100
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 0x1400620c0
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
movq r8, xmm1
cmp r11, rdi
mov rbx, qword [rsp + 0x38]
je 0x14006210c
nop word [rax + rax]
or r8, qword [r9 + r10*8]
inc r10
cmp rax, r10
jne 0x140062100
cmp eax, ecx
cmovl ecx, eax
test ecx, ecx
jle 0x1400621b3
mov r9, qword [r15]
mov r10, qword [rdx]
mov r11d, ecx
cmp ecx, 4
jae 0x140062130
xor ecx, ecx
jmp 0x1400621a0
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 0x140062150
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq r8, xmm0
cmp rcx, r11
je 0x1400621b3
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 0x1400621a0
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 0x140062200
mov r10, qword [rdx]
mov r13, r8
sub r13, rax
cmp r13, 4
jae 0x140062210
mov r11, rax
xor r9d, r9d
jmp 0x140062270
xor r9d, r9d
jmp 0x14006227c
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 0x140062230
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq r9, xmm0
cmp r13, rdi
mov rbx, qword [rsp + 0x38]
je 0x14006227c
nop word [rax + rax]
or r9, qword [r10 + r11*8]
inc r11
cmp r8, r11
jne 0x140062270
cmp r8d, eax
jge 0x14006230c
mov r10, qword [r15]
mov r13, rax
sub r13, r8
cmp r13, 4
jae 0x1400622a0
mov r11, r8
jmp 0x140062300
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 0x1400622c0
por xmm0, xmm1
pshufd xmm1, xmm0, 0xee
por xmm1, xmm0
movq r9, xmm1
cmp r13, rdi
mov rbx, qword [rsp + 0x38]
je 0x14006230c
nop word [rax + rax]
or r9, qword [r10 + r11*8]
inc r11
cmp rax, r11
jne 0x140062300
cmp eax, r8d
cmovl r8d, eax
test r8d, r8d
jle 0x1400623b3
mov rax, qword [r15]
mov r10, qword [rdx]
mov r11d, r8d
cmp r8d, 4
jae 0x140062330
xor r8d, r8d
jmp 0x1400623a0
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 0x140062350
por xmm1, xmm0
pshufd xmm0, xmm1, 0xee
por xmm0, xmm1
movq r9, xmm0
cmp r8, r11
je 0x1400623b3
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 0x1400623a0
xor ecx, dword [rdx + 0x10]
movsxd rax, ecx
mov ecx, r12d
and ecx, 1
or rcx, r9
or rcx, rax
je 0x1400623d3
inc ebp
cmp ebp, dword [r14 + 0x20]
jl 0x140061fa0
and r12d, 1
mov rax, qword [rsp + 0x40]
mov dword [rax], r12d
mov ebp, 1
cmp byte [rsi + 0x28], 0
jne 0x140062403
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 0x140062403
jmp 0x1400623ea