Function at 0x1401f1590
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x188
mov rax, qword [0x14034bd48]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov rax, qword [rcx + 0x38]
mov rsi, rcx
mov r13, qword [rcx + 8]
mov rbx, r8
mov qword [rsp + 0x48], rax
mov r8d, edx
mov eax, dword [rcx + 0x34]
sub r8d, r13d
mov dword [rsp + 8], eax
mov r15d, edx
mov eax, r8d
mov dword [rsp + 0xc], r8d
sub r15d, r13d
mov qword [rsp + 0x30], rdx
mov ebp, 1
mov qword [rsp + 0x60], r9
mov r9, qword [rcx + 0x70]
mov r10, rdx
mov ecx, dword [rcx + 0x100]
mov edx, ebp
shl edx, cl
mov edi, 3
mov ecx, dword [rsi + 0x1c]
sub r8d, edx
sub eax, ecx
mov qword [rsp + 0x38], rbx
cmp eax, edx
mov qword [rsp + 0x20], r9
mov eax, dword [rsi + 0x10c]
cmovbe r8d, ecx
mov qword [rsp + 0x40], r13
cmp dword [rsi + 0x28], 0
mov dword [rsp], r15d
cmovne r8d, ecx
mov dword [rsp + 0x18], 0x1f
mov ecx, 5
mov dword [rsp + 0x28], r8d
cmp eax, ecx
cmovb ecx, eax
mov rax, qword [rsi + 0x60]
shl ebp, cl
xor r11d, r11d
mov qword [rsp + 0x58], rax
mov dword [rsp + 4], ebp
cmp dword [rsi + 0x12c], r11d
jne 0x1401f1955
mov r14d, dword [rsi + 0x2c]
lea r12d, [rdi + 0x35]
mov eax, r15d
movabs r15, 0xcf1bbcdcbb000000
sub eax, r14d
cmp eax, 0x180
jbe 0x1401f1819
lea eax, [r14 + 0x60]
cmp r14d, eax
jae 0x1401f175a
mov r10d, r12d
lea rbp, [r13 + 8]
sub r10d, dword [rsp + 8]
mov ebx, r14d
mov r12, qword [rsp + 0x48]
add rbp, r14
mov r13d, eax
mov rdi, r9
nop dword [rax + rax]
mov rdx, qword [rbp]
mov ecx, r10d
imul rdx, r15
xor rdx, qword [rsi + 0x60]
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [rdi + rax*4]
prefetcht0 byte [rdi + rax*4 + 0x40]
prefetcht0 byte [rax + r12]
mov rax, rbx
lea rbp, [rbp + 1]
and eax, 7
mov r9d, dword [rsi + rax*4 + 0x40]
mov r8d, r9d
mov dword [rsi + rax*4 + 0x40], edx
mov eax, r11d
shr r8, 3
and r8d, 0x1fffffe0
movzx ecx, byte [r8 + r12]
lea rdx, [r8 + r12]
dec ecx
and ecx, 0x1f
cmove eax, dword [rsp + 0x18]
inc rbx
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rcx + rdx], r9b
mov dword [rdi + rax*4], r14d
inc r14d
cmp r14d, r13d
jb 0x1401f16c0
mov r10, qword [rsp + 0x30]
mov edi, 3
mov rbx, qword [rsp + 0x38]
mov ebp, dword [rsp + 4]
mov r13, qword [rsp + 0x40]
lea r12d, [rdi + 0x35]
mov rcx, qword [rsi + 0x70]
lea rax, [r10 + 1]
mov r14d, dword [rsp]
mov qword [rsp + 0x10], rcx
add r14d, 0xffffffe0
mov rcx, qword [rsi + 0x38]
mov qword [rsp + 0x50], rcx
mov ecx, eax
sub ecx, r13d
mov r8d, r14d
sub ecx, r14d
lea r9, [r14 + r13]
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 0x1401f1814
mov rbp, qword [rsp + 0x10]
mov ebx, r12d
sub ebx, dword [rsi + 0x34]
mov r10, qword [rsp + 0x50]
mov r13d, ecx
nop word [rax + rax]
mov rdx, qword [r9]
mov ecx, ebx
imul rdx, r15
xor rdx, qword [rsi + 0x60]
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [rbp + rax*4]
prefetcht0 byte [rbp + rax*4 + 0x40]
prefetcht0 byte [r10 + rax]
mov rax, r8
lea r9, [r9 + 1]
and eax, 7
inc r8
mov dword [rsi + rax*4 + 0x40], edx
sub r13, 1
jne 0x1401f17c0
mov r10, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov ebp, dword [rsp + 4]
mov r13, qword [rsp + 0x40]
mov r9, qword [rsp + 0x20]
mov rax, qword [rsi + 0x70]
mov rcx, qword [rsi + 0x38]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp]
mov qword [rsp + 0x10], rcx
mov rcx, qword [rsi + 8]
cmp r14d, eax
jae 0x1401f1902
mov rbp, qword [rsp + 0x50]
lea rbx, [rcx + 8]
mov r10, qword [rsp + 0x10]
mov edi, r12d
sub edi, dword [rsi + 0x34]
mov r12d, eax
mov r13d, r14d
add rbx, r13
nop dword [rax + rax]
mov rdx, qword [rbx]
mov ecx, edi
imul rdx, r15
xor rdx, qword [rsi + 0x60]
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [rbp + rax*4]
prefetcht0 byte [rbp + rax*4 + 0x40]
prefetcht0 byte [r10 + rax]
mov rax, r13
lea rbx, [rbx + 1]
and eax, 7
mov r9d, dword [rsi + rax*4 + 0x40]
mov r8d, r9d
mov dword [rsi + rax*4 + 0x40], edx
mov eax, r11d
shr r8, 3
and r8d, 0x1fffffe0
movzx ecx, byte [r8 + r10]
lea rdx, [r8 + r10]
dec ecx
and ecx, 0x1f
cmove eax, dword [rsp + 0x18]
inc r13
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [rbp + rax*4], r14d
inc r14d
cmp r14d, r12d
jb 0x1401f1860
mov r10, qword [rsp + 0x30]
mov edi, 3
mov rbx, qword [rsp + 0x38]
mov ebp, dword [rsp + 4]
mov r13, qword [rsp + 0x40]
mov eax, dword [rsp]
lea r12d, [rdi + 0x35]
mov r9, qword [rsp + 0x20]
sub r12d, dword [rsp + 8]
mov dword [rsi + 0x2c], eax
movzx ecx, r12b
mov eax, dword [rsp + 0xc]
mov r8d, eax
mov rdx, qword [rax + r13 + 8]
imul rdx, r15
xor rdx, qword [rsp + 0x58]
shr rdx, cl
mov eax, edx
shr rax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r9 + rax*4]
prefetcht0 byte [r9 + rax*4 + 0x40]
mov rcx, qword [rsp + 0x48]
prefetcht0 byte [rax + rcx]
and r8d, 7
mov r14d, dword [rsi + r8*4 + 0x40]
mov dword [rsi + r8*4 + 0x40], edx
jmp 0x1401f1981
mov r14, qword [r10]
mov ecx, 0x38
sub ecx, dword [rsp + 8]
movabs r15, 0xcf1bbcdcbb000000
imul r14, r15
xor r14, rax
mov eax, dword [rsp + 0xc]
shr r14, cl
mov rcx, qword [rsp + 0x48]
mov dword [rsi + 0x2c], eax
add dword [rsi + 0x68], r14d
mov eax, r14d
shr rax, 3
and eax, 0x1fffffe0
add rcx, rax
mov qword [rsp + 0x58], rcx
lea r12, [r9 + rax*4]
mov r9, r11
movzx eax, byte [rcx]
movdqu xmm0, xmmword [rcx]
mov r15d, eax
mov dword [rsp + 0x10], eax
movsx eax, r14b
and r15d, 0x1f
movd xmm2, eax
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
movdqa xmm1, xmm2
pcmpeqb xmm1, xmm0
movdqu xmm0, xmmword [rcx + 0x10]
mov ecx, r15d
neg ecx
pmovmskb eax, xmm1
and ecx, 0x1f
pcmpeqb xmm0, xmm2
pmovmskb edx, xmm0
shl edx, 0x10
or edx, eax
mov r8d, edx
mov eax, edx
shl r8d, cl
mov ecx, r15d
shr rax, cl
or r8, rax
jbe 0x1401f1a34
mov edx, dword [rsp + 0x28]
test ebp, ebp
je 0x1401f1a34
bsf rcx, r8
add ecx, r15d
and ecx, 0x1f
je 0x1401f1a2b
mov ecx, dword [r12 + rcx*4]
cmp ecx, edx
jb 0x1401f1a34
prefetcht0 byte [rcx + r13]
mov dword [rsp + r9*4 + 0x70], ecx
inc r9
dec ebp
lea rax, [r8 - 1]
and r8, rax
ja 0x1401f1a04
mov ecx, dword [rsp + 0x10]
mov eax, r11d
dec ecx
mov edx, 0x1f
and ecx, 0x1f
cmove eax, edx
add ecx, eax
mov rax, qword [rsp + 0x58]
mov byte [rax], cl
mov byte [rcx + rax], r14b
mov eax, dword [rsi + 0x2c]
mov dword [r12 + rcx*4], eax
inc dword [rsi + 0x2c]
test r9, r9
je 0x1401f1b3a
mov r14, qword [rsp + 0x60]
nop dword [rax]
mov esi, dword [rsp + r11*4 + 0x70]
mov eax, dword [rdi + r10 - 3]
lea rdx, [rsi + r13]
cmp dword [rdx + rdi - 3], eax
jne 0x1401f1b2e
lea r8, [rbx - 7]
mov rax, r10
cmp r10, r8
jae 0x1401f1acc
mov rcx, qword [rdx]
xor rcx, qword [r10]
je 0x1401f1aa6
bsf rcx, rcx
shr rcx, 3
jmp 0x1401f1b11
add rax, 8
add rdx, 8
cmp rax, r8
jae 0x1401f1acc
mov rcx, qword [rax]
xor rcx, qword [rdx]
jne 0x1401f1b61
add rax, 8
add rdx, 8
cmp rax, r8
jb 0x1401f1ab3
lea rcx, [rbx - 3]
cmp rax, rcx
jae 0x1401f1ae3
mov ecx, dword [rax]
cmp dword [rdx], ecx
jne 0x1401f1ae3
add rax, 4
add rdx, 4
lea rcx, [rbx - 1]
cmp rax, rcx
jae 0x1401f1afc
movzx ecx, word [rax]
cmp word [rdx], cx
jne 0x1401f1afc
add rax, 2
add rdx, 2
cmp rax, rbx
jae 0x1401f1b0b
movzx ecx, byte [rax]
cmp byte [rdx], cl
jne 0x1401f1b0b
inc rax
mov rcx, rax
sub rcx, r10
cmp rcx, rdi
jbe 0x1401f1b2e
mov eax, dword [rsp + 0xc]
mov rdi, rcx
sub eax, esi
add eax, 3
mov qword [r14], rax
lea rax, [rcx + r10]
cmp rax, rbx
je 0x1401f1b3a
inc r11
cmp r11, r9
jb 0x1401f1a70
mov rax, rdi
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140234a20
add rsp, 0x188
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 0x1401f1b11