Function at 0x1401e0670
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov r14, qword [rcx + 0x70]
mov r15, rdx
mov edx, dword [r14 + 0x70]
mov r13, r8
mov rsi, r9
test edx, edx
jne 0x1401e07a0
mov r12d, dword [r14 + 0x20]
mov eax, esi
mov dword [rsp + 0x3c], esi
and eax, 0x3f
sub rsi, rax
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rax
cmp rsi, 0x3f
jbe 0x1401e0774
movabs rdi, 0x40000003f
lea rbp, [r14 + 0x20]
jmp 0x1401e0724
mov r8, rsi
shr r8, 6
mov edx, r8d
add edx, r12d
mov r12, rdx
cmp rdx, r8
jae 0x1401e073f
sub r8, rdx
mov qword [rsp + 0x20], rbp
mov rdx, r13
mov rcx, r15
mov rbx, r8
mov r9, r14
shl rbx, 6
mov r8, rbx
sub rsi, rbx
add r13, rbx
add r15, rbx
call fcn.1402a7dc0
mov dword [r14 + 0x20], 0
add dword [r14 + 0x24], 1
xor r12d, r12d
cmp rsi, 0x3f
jbe 0x1401e0774
cmp rsi, rdi
jbe 0x1401e06d0
mov edx, 0x10000000
mov r8d, 0x10000000
add edx, r12d
mov r12, rdx
cmp rdx, r8
jb 0x1401e06e5
mov rbx, r8
mov qword [rsp + 0x20], rbp
mov rdx, r13
mov rcx, r15
shl rbx, 6
mov r9, r14
mov r8, rbx
sub rsi, rbx
add r13, rbx
add r15, rbx
call fcn.1402a7dc0
mov dword [r14 + 0x20], r12d
test r12d, r12d
je 0x1401e0716
cmp rsi, 0x3f
ja 0x1401e0724
mov eax, dword [rsp + 0x38]
test eax, eax
jne 0x1401e0810
mov eax, 1
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
cmp edx, 0x3f
ja 0x1401e07d7
test r9, r9
je 0x1401e07d7
nop word [rax + rax]
mov r8d, edx
movzx ecx, byte [r13]
add r15, 1
add r13, 1
xor cl, byte [r14 + r8 + 0x30]
add edx, 1
mov byte [r15 - 1], cl
sub rsi, 1
je 0x1401e07d7
cmp edx, 0x3f
jbe 0x1401e07b0
mov dword [r14 + 0x70], edx
test rsi, rsi
je 0x1401e0780
mov r12d, dword [r14 + 0x20]
cmp edx, 0x40
jne 0x1401e069d
add r12d, 1
mov dword [r14 + 0x70], 0
mov dword [r14 + 0x20], r12d
jne 0x1401e069d
add dword [r14 + 0x24], 1
jmp 0x1401e069d
lea rcx, [r14 + 0x30]
lea rdx, [r14 + 0x20]
mov qword [r14 + 0x30], 0
mov r8d, 0x40
mov qword [r14 + 0x38], 0
mov r9, r14
mov qword [rcx + 0x10], 0
mov qword [rcx + 0x18], 0
mov qword [rcx + 0x20], 0
mov qword [rcx + 0x28], 0
mov qword [rcx + 0x30], 0
mov qword [rcx + 0x38], 0
mov qword [rsp + 0x20], rdx
mov rdx, rcx
call fcn.1402a7dc0
lea r8, [r14 + 0x31]
mov eax, dword [rsp + 0x38]
mov rcx, r15
sub rcx, r8
cmp rcx, 0xe
lea edx, [rax - 1]
seta r8b
cmp edx, 6
seta cl
test r8b, cl
je 0x1401e09ee
lea r8, [r13 + 1]
mov rcx, r15
sub rcx, r8
cmp rcx, 0xe
jbe 0x1401e09ee
cmp edx, 0xe
jbe 0x1401e0a0c
movdqu xmm0, xmmword [r13]
movdqu xmm2, xmmword [r14 + 0x30]
shr eax, 4
pxor xmm0, xmm2
movups xmmword [r15], xmm0
cmp eax, 1
je 0x1401e08fe
movdqu xmm0, xmmword [r13 + 0x10]
movdqu xmm3, xmmword [r14 + 0x40]
pxor xmm0, xmm3
movups xmmword [r15 + 0x10], xmm0
cmp eax, 3
jne 0x1401e08fe
movdqu xmm0, xmmword [r13 + 0x20]
movdqu xmm4, xmmword [r14 + 0x50]
pxor xmm0, xmm4
movups xmmword [r15 + 0x20], xmm0
mov eax, dword [rsp + 0x3c]
mov edi, dword [rsp + 0x38]
and eax, 0x30
cmp eax, edi
je 0x1401e09e1
mov ecx, edi
sub ecx, eax
lea edx, [rcx - 1]
cmp edx, 6
jbe 0x1401e0946
mov edx, eax
movq xmm0, qword [r13 + rdx]
movq xmm1, qword [r14 + rdx + 0x30]
pxor xmm0, xmm1
movq qword [r15 + rdx], xmm0
mov edx, ecx
and edx, 0xfffffff8
add eax, edx
cmp ecx, edx
je 0x1401e09e1
mov edx, eax
mov edi, dword [rsp + 0x38]
movzx ecx, byte [r13 + rdx]
xor cl, byte [r14 + rdx + 0x30]
mov byte [r15 + rdx], cl
lea edx, [rax + 1]
cmp edx, edi
jae 0x1401e09e1
movzx ecx, byte [r13 + rdx]
xor cl, byte [r14 + rdx + 0x30]
mov byte [r15 + rdx], cl
lea edx, [rax + 2]
cmp edi, edx
jbe 0x1401e09e1
movzx ecx, byte [r13 + rdx]
xor cl, byte [r14 + rdx + 0x30]
mov byte [r15 + rdx], cl
lea edx, [rax + 3]
cmp edi, edx
jbe 0x1401e09e1
movzx ecx, byte [r13 + rdx]
xor cl, byte [r14 + rdx + 0x30]
mov byte [r15 + rdx], cl
lea edx, [rax + 4]
cmp edi, edx
jbe 0x1401e09e1
movzx ecx, byte [r13 + rdx]
xor cl, byte [r14 + rdx + 0x30]
mov byte [r15 + rdx], cl
lea edx, [rax + 5]
cmp edi, edx
jbe 0x1401e09e1
movzx ecx, byte [r13 + rdx]
add eax, 6
xor cl, byte [r14 + rdx + 0x30]
mov byte [r15 + rdx], cl
cmp edi, eax
jbe 0x1401e09e1
mov edx, eax
movzx eax, byte [r13 + rdx]
xor al, byte [r14 + rdx + 0x30]
mov byte [r15 + rdx], al
mov eax, dword [rsp + 0x38]
mov dword [r14 + 0x70], eax
jmp 0x1401e0780
xor edx, edx
movzx ecx, byte [r14 + rdx + 0x30]
xor cl, byte [r13 + rdx]
mov byte [r15 + rdx], cl
add rdx, 1
cmp rdx, qword [rsp + 0x30]
jne 0x1401e09f0
jmp 0x1401e09e1
mov ecx, eax
xor eax, eax
jmp 0x1401e091d