Function at 0x1401f1690
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x168
mov rax, qword [0x140363d00]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rbp, qword [rcx + 0x38]
mov rdi, rcx
mov r12d, dword [rcx + 0x34]
mov r13d, edx
mov r10, rdx
mov qword [rsp + 0x48], r9
mov r9, qword [rcx + 0x70]
mov rbx, r8
mov r8, qword [rcx + 8]
mov r15d, 1
mov ecx, dword [rcx + 0x100]
sub r13d, r8d
mov edx, r15d
mov qword [rsp + 0x38], rbx
shl edx, cl
mov r11d, r13d
mov ecx, dword [rdi + 0x1c]
sub r11d, edx
mov eax, r13d
mov qword [rsp + 0x28], r9
sub eax, ecx
mov qword [rsp + 0x40], rbp
cmp eax, edx
mov dword [rsp + 0xc], r12d
mov eax, dword [rdi + 0x10c]
mov esi, 3
mov rdx, qword [rdi + 0x60]
cmovbe r11d, ecx
cmp dword [rdi + 0x28], 0
mov qword [rsp + 0x18], r8
cmovne r11d, ecx
mov dword [rsp], r13d
mov ecx, 4
mov dword [rsp + 0x20], r11d
cmp eax, ecx
mov qword [rsp + 0x30], rdx
mov dword [rsp + 4], 0xf
cmovb ecx, eax
xor r11d, r11d
shl r15d, cl
mov dword [rsp + 8], r15d
cmp dword [rdi + 0x12c], r11d
jne 0x1401f19f0
mov r14d, dword [rdi + 0x2c]
mov eax, r13d
mov edx, dword [rsp + 0xc]
sub eax, r14d
mov r12, r9
mov ecx, edx
cmp eax, 0x180
jbe 0x1401f18ee
lea eax, [r14 + 0x60]
cmp r14d, eax
jae 0x1401f183f
mov r13, qword [rsp + 0x40]
lea r12, [r8 + 8]
mov esi, 0x18
mov ebp, r14d
sub esi, edx
mov ebx, eax
add r12, r14
mov r15, r9
nop dword [rax]
imul edx, dword [r12], 0x9e3779b1
mov rcx, rsi
mov eax, dword [rdi + 0x60]
xor rdx, rax
shr rdx, cl
mov eax, edx
shr eax, 4
and eax, 0xffffff0
prefetcht0 byte [r15 + rax*4]
prefetcht0 byte [rax + r13]
mov rax, rbp
lea r12, [r12 + 1]
and eax, 7
mov r9d, dword [rdi + rax*4 + 0x40]
mov dword [rdi + rax*4 + 0x40], edx
mov eax, r9d
shr eax, 4
and eax, 0xffffff0
movzx ecx, byte [rax + r13]
lea rdx, [rax + r13]
dec ecx
mov r8d, eax
and ecx, 0xf
mov eax, r11d
cmove eax, dword [rsp + 4]
inc rbp
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [r15 + rax*4], r14d
inc r14d
cmp r14d, ebx
jb 0x1401f17b0
mov rbx, qword [rsp + 0x38]
mov esi, 3
mov r15d, dword [rsp + 8]
mov r13d, dword [rsp]
mov ecx, dword [rdi + 0x34]
lea r14d, [r13 - 0x20]
mov rdx, qword [rsp + 0x18]
lea rax, [r10 + 1]
mov r12, qword [rdi + 0x70]
mov rbp, qword [rdi + 0x38]
mov dword [rsp + 0x10], ecx
mov ecx, eax
sub ecx, r14d
mov r8d, r14d
sub ecx, edx
lea r9, [rdx + r14]
inc ecx
cmp r9, rax
mov eax, 8
cmova ecx, r11d
cmp ecx, eax
cmova ecx, eax
lea eax, [r14 + rcx]
cmp r14d, eax
jae 0x1401f18e6
mov eax, 0x18
mov r13d, ecx
sub eax, dword [rsp + 0x10]
mov qword [rsp + 0x10], rax
mov ecx, eax
nop dword [rax + rax]
imul edx, dword [r9], 0x9e3779b1
mov eax, dword [rdi + 0x60]
xor rdx, rax
shr rdx, cl
mov eax, edx
shr eax, 4
and eax, 0xffffff0
prefetcht0 byte [r12 + rax*4]
prefetcht0 byte [rax + rbp]
mov rax, r8
lea r9, [r9 + 1]
and eax, 7
inc r8
mov dword [rdi + rax*4 + 0x40], edx
sub r13, 1
jne 0x1401f18a0
mov r12, qword [rdi + 0x70]
mov rbp, qword [rdi + 0x38]
mov r13d, dword [rsp]
mov ecx, dword [rdi + 0x34]
mov r9, qword [rsp + 0x28]
mov rdx, qword [rdi + 8]
cmp r14d, r13d
jae 0x1401f19a0
mov esi, dword [rsp]
lea rbx, [rdx + 8]
mov r15d, 0x18
mov r13d, r14d
sub r15d, ecx
add rbx, r13
imul edx, dword [rbx], 0x9e3779b1
mov rcx, r15
mov eax, dword [rdi + 0x60]
xor rdx, rax
shr rdx, cl
mov eax, edx
shr eax, 4
and eax, 0xffffff0
prefetcht0 byte [r12 + rax*4]
prefetcht0 byte [rax + rbp]
mov rax, r13
lea rbx, [rbx + 1]
and eax, 7
mov r9d, dword [rdi + rax*4 + 0x40]
mov dword [rdi + rax*4 + 0x40], edx
mov eax, r9d
shr eax, 4
and eax, 0xffffff0
movzx ecx, byte [rax + rbp]
lea rdx, [rax + rbp]
dec ecx
mov r8d, eax
and ecx, 0xf
mov eax, r11d
cmove eax, dword [rsp + 4]
inc r13
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [r12 + rax*4], r14d
inc r14d
cmp r14d, esi
jb 0x1401f1911
mov rbx, qword [rsp + 0x38]
mov esi, 3
mov r15d, dword [rsp + 8]
mov r13d, dword [rsp]
mov r9, qword [rsp + 0x28]
mov rax, qword [rsp + 0x18]
mov ecx, 0x18
sub ecx, dword [rsp + 0xc]
mov r8d, r13d
mov dword [rdi + 0x2c], r13d
imul edx, dword [r8 + rax + 8], 0x9e3779b1
mov eax, dword [rsp + 0x30]
xor rdx, rax
shr rdx, cl
mov eax, edx
shr eax, 4
and eax, 0xffffff0
prefetcht0 byte [r9 + rax*4]
mov rbp, qword [rsp + 0x40]
prefetcht0 byte [rax + rbp]
and r8d, 7
mov r14d, dword [rdi + r8*4 + 0x40]
mov dword [rdi + r8*4 + 0x40], edx
jmp 0x1401f1a0b
imul r14d, dword [r10], 0x9e3779b1
mov ecx, 0x18
mov eax, edx
sub ecx, r12d
mov dword [rdi + 0x2c], r13d
xor r14, rax
shr r14, cl
add dword [rdi + 0x68], r14d
mov eax, r14d
shr eax, 4
and eax, 0xffffff0
movzx r13d, byte [rax + rbp]
lea rcx, [rax + rbp]
movdqu xmm0, xmmword [rcx]
mov qword [rsp + 0x30], rcx
mov rbp, r11
lea r12, [r9 + rax*4]
movsx eax, r14b
movd xmm1, eax
mov eax, r13d
and eax, 0xf
punpcklbw xmm1, xmm1
mov ecx, eax
punpcklwd xmm1, xmm1
mov edx, eax
pshufd xmm1, xmm1, 0
neg ecx
pcmpeqb xmm0, xmm1
and ecx, 0xf
pmovmskb r8d, xmm0
movzx eax, r8w
shl ax, cl
movzx ecx, dl
movzx r9d, ax
movzx eax, r8w
shr rax, cl
or r9, rax
jbe 0x1401f1ab5
mov rdx, qword [rsp + 0x18]
mov r8d, dword [rsp + 0x20]
test r15d, r15d
je 0x1401f1ab5
bsf rcx, r9
add ecx, r13d
and ecx, 0xf
mov ecx, dword [r12 + rcx*4]
je 0x1401f1aac
cmp ecx, r8d
jb 0x1401f1ab5
prefetcht0 byte [rcx + rdx]
mov dword [rsp + rbp*4 + 0x50], ecx
inc rbp
dec r15d
lea rax, [r9 - 1]
and r9, rax
ja 0x1401f1a84
lea ecx, [r13 - 1]
mov eax, r11d
and ecx, 0xf
mov edx, 0xf
cmove eax, edx
add ecx, eax
mov rax, qword [rsp + 0x30]
mov byte [rax], cl
mov byte [rcx + rax], r14b
mov eax, dword [rdi + 0x2c]
mov dword [r12 + rcx*4], eax
inc dword [rdi + 0x2c]
test rbp, rbp
je 0x1401f1bc7
mov rdi, qword [rsp + 0x48]
nop dword [rax]
mov r9d, dword [rsp + r11*4 + 0x50]
mov eax, dword [rsi + r10 - 3]
mov edx, r9d
add rdx, qword [rsp + 0x18]
cmp dword [rdx + rsi - 3], eax
jne 0x1401f1bbb
lea r8, [rbx - 7]
mov rax, r10
cmp r10, r8
jae 0x1401f1b59
mov rcx, qword [rdx]
xor rcx, qword [r10]
je 0x1401f1b2a
bsf rcx, rcx
shr rcx, 3
jmp 0x1401f1b9e
add rax, 8
add rdx, 8
cmp rax, r8
jae 0x1401f1b59
nop word [rax + rax]
mov rcx, qword [rax]
xor rcx, qword [rdx]
jne 0x1401f1bee
add rax, 8
add rdx, 8
cmp rax, r8
jb 0x1401f1b40
lea rcx, [rbx - 3]
cmp rax, rcx
jae 0x1401f1b70
mov ecx, dword [rax]
cmp dword [rdx], ecx
jne 0x1401f1b70
add rax, 4
add rdx, 4
lea rcx, [rbx - 1]
cmp rax, rcx
jae 0x1401f1b89
movzx ecx, word [rax]
cmp word [rdx], cx
jne 0x1401f1b89
add rax, 2
add rdx, 2
cmp rax, rbx
jae 0x1401f1b98
movzx ecx, byte [rax]
cmp byte [rdx], cl
jne 0x1401f1b98
inc rax
mov rcx, rax
sub rcx, r10
cmp rcx, rsi
jbe 0x1401f1bbb
mov eax, dword [rsp]
mov rsi, rcx
sub eax, r9d
add eax, 3
mov qword [rdi], rax
lea rax, [rcx + r10]
cmp rax, rbx
je 0x1401f1bc7
inc r11
cmp r11, rbp
jb 0x1401f1af0
mov rax, rsi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14022c4b0
add rsp, 0x168
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
bsf rcx, rcx
shr rcx, 3
sub rcx, r10
add rcx, rax
jmp 0x1401f1b9e