Function at 0x14020ef40
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 [0x14038bd00]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov r12, qword [rcx + 8]
mov rsi, rcx
mov rbp, qword [rcx + 0x38]
mov r15d, 1
mov r13d, dword [rcx + 0x34]
mov rbx, r8
mov r8, qword [rcx + 0x70]
mov r10, rdx
mov ecx, dword [rcx + 0x100]
mov edi, 3
mov qword [rsp + 0x60], r9
mov r9d, edx
sub r9d, r12d
mov qword [rsp + 0x30], rdx
mov edx, r15d
mov qword [rsp + 0x38], rbx
shl edx, cl
mov eax, r9d
mov ecx, dword [rsi + 0x1c]
mov r11d, r9d
sub eax, ecx
mov qword [rsp + 0x48], r8
sub r11d, edx
mov qword [rsp + 0x50], rbp
cmp eax, edx
mov dword [rsp + 8], r13d
mov eax, dword [rsi + 0x10c]
cmovbe r11d, ecx
mov qword [rsp + 0x40], r12
cmp dword [rsi + 0x28], 0
mov dword [rsp], r9d
cmovne r11d, ecx
mov dword [rsp + 0x10], 0x1f
mov ecx, 5
mov dword [rsp + 0x28], r11d
cmp eax, ecx
cmovb ecx, eax
mov rax, qword [rsi + 0x60]
shl r15d, cl
xor r11d, r11d
mov qword [rsp + 0x58], rax
mov dword [rsp + 4], r15d
cmp dword [rsi + 0x12c], r11d
jne 0x14020f304
mov r14d, dword [rsi + 0x2c]
mov eax, r9d
mov rdx, qword [rsp + 0x40]
sub eax, r14d
mov qword [rsp + 0x20], rbp
mov r12, r8
lea ebp, [rdi + 0x35]
mov r8d, r13d
mov rcx, rdx
movabs r13, 0xcf1bbcdcbb000000
cmp eax, 0x180
jbe 0x14020f1f0
lea ecx, [r14 + 0x60]
mov qword [rsp + 0x18], rdx
cmp r14d, ecx
jae 0x14020f122
mov rdi, qword [rsp + 0x48]
lea r15, [rdx + 8]
mov ebx, ebp
mov r12d, r14d
mov rbp, qword [rsp + 0x50]
sub ebx, r8d
add r15, r14
mov r10d, ecx
nop
mov rdx, qword [r15]
mov ecx, ebx
imul rdx, r13
xor rdx, qword [rsi + 0x60]
shr rdx, cl
mov eax, edx
shr eax, 3
and eax, 0x1fffffe0
prefetcht0 byte [rdi + rax*4]
prefetcht0 byte [rdi + rax*4 + 0x40]
prefetcht0 byte [rax + rbp]
mov rax, r12
lea r15, [r15 + 1]
and eax, 7
mov r9d, dword [rsi + rax*4 + 0x40]
mov dword [rsi + rax*4 + 0x40], edx
mov eax, r9d
shr eax, 3
and eax, 0x1fffffe0
movzx ecx, byte [rax + rbp]
lea rdx, [rax + rbp]
dec ecx
mov r8d, eax
and ecx, 0x1f
mov eax, r11d
cmove eax, dword [rsp + 0x10]
inc r12
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, r10d
jb 0x14020f080
mov rax, qword [rsi + 8]
mov edi, 3
mov r10, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov r15d, dword [rsp + 4]
mov rdx, qword [rsp + 0x40]
lea ebp, [rdi + 0x35]
mov r9d, dword [rsp]
mov qword [rsp + 0x18], rax
mov rcx, qword [rsi + 0x38]
lea r14d, [r9 - 0x20]
mov r12, qword [rsi + 0x70]
lea rax, [r10 + 1]
mov qword [rsp + 0x20], rcx
lea r9, [r14 + rdx]
mov ecx, dword [rsi + 0x34]
mov dword [rsp + 0xc], ecx
mov ecx, eax
sub ecx, edx
mov r8d, r14d
sub ecx, r14d
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 0x14020f1e3
mov rbx, qword [rsp + 0x20]
mov r10d, ebp
sub r10d, dword [rsp + 0xc]
mov r15d, ecx
nop dword [rax + rax]
mov rdx, qword [r9]
mov ecx, r10d
imul rdx, r13
xor rdx, qword [rsi + 0x60]
shr rdx, cl
mov eax, edx
shr eax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r12 + rax*4]
prefetcht0 byte [r12 + rax*4 + 0x40]
prefetcht0 byte [rax + rbx]
mov rax, r8
lea r9, [r9 + 1]
and eax, 7
inc r8
mov dword [rsi + rax*4 + 0x40], edx
sub r15, 1
jne 0x14020f180
mov rax, qword [rsi + 0x38]
mov r12, qword [rsi + 0x70]
mov rcx, qword [rsi + 8]
mov r10, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov r15d, dword [rsp + 4]
mov qword [rsp + 0x20], rax
jmp 0x14020f1e8
mov rcx, qword [rsp + 0x18]
mov r8d, dword [rsi + 0x34]
mov r9d, dword [rsp]
cmp r14d, r9d
jae 0x14020f2a8
mov rbx, qword [rsp + 0x20]
lea r15, [r14 + 8]
mov r10d, ebp
mov edi, r14d
mov ebp, dword [rsp]
sub r10d, r8d
add r15, rcx
mov rdx, qword [r15]
mov ecx, r10d
imul rdx, r13
xor rdx, qword [rsi + 0x60]
shr rdx, cl
mov eax, edx
shr eax, 3
and eax, 0x1fffffe0
prefetcht0 byte [r12 + rax*4]
prefetcht0 byte [r12 + rax*4 + 0x40]
prefetcht0 byte [rbx + rax]
mov rax, rdi
lea r15, [r15 + 1]
and eax, 7
mov r9d, dword [rsi + rax*4 + 0x40]
mov dword [rsi + rax*4 + 0x40], edx
mov eax, r9d
shr eax, 3
and eax, 0x1fffffe0
movzx ecx, byte [rax + rbx]
lea rdx, [rax + rbx]
dec ecx
mov r8d, eax
and ecx, 0x1f
mov eax, r11d
cmove eax, dword [rsp + 0x10]
inc rdi
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, ebp
jb 0x14020f211
mov r10, qword [rsp + 0x30]
mov edi, 3
mov rbx, qword [rsp + 0x38]
mov r15d, dword [rsp + 4]
mov r9d, dword [rsp]
lea ebp, [rdi + 0x35]
sub ebp, dword [rsp + 8]
mov r12, qword [rsp + 0x40]
movzx ecx, bpl
mov rax, qword [rsp + 0x48]
mov r8d, r9d
mov dword [rsi + 0x2c], r9d
mov rdx, qword [r8 + r12 + 8]
imul rdx, r13
xor rdx, qword [rsp + 0x58]
shr rdx, cl
mov ecx, edx
shr ecx, 3
and ecx, 0x1fffffe0
prefetcht0 byte [rax + rcx*4]
prefetcht0 byte [rax + rcx*4 + 0x40]
mov rax, qword [rsp + 0x50]
prefetcht0 byte [rcx + rax]
and r8d, 7
mov r14d, dword [rsi + r8*4 + 0x40]
mov dword [rsi + r8*4 + 0x40], edx
mov r8, qword [rsp + 0x48]
jmp 0x14020f328
mov r14, qword [r10]
movabs r13, 0xcf1bbcdcbb000000
imul r14, r13
mov ecx, 0x38
mov dword [rsi + 0x2c], r9d
sub ecx, dword [rsp + 8]
xor r14, rax
shr r14, cl
add dword [rsi + 0x68], r14d
mov eax, r14d
shr eax, 3
mov rbp, r11
and eax, 0x1fffffe0
lea rcx, [r8 + rax*4]
mov qword [rsp + 0x18], rcx
mov rcx, qword [rsp + 0x50]
add rcx, rax
movsx eax, r14b
mov qword [rsp + 0x58], rcx
movdqu xmm0, xmmword [rcx]
movzx r13d, byte [rcx]
movd xmm2, eax
mov edx, r13d
and edx, 0x1f
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
movdqa xmm1, xmm2
pcmpeqb xmm1, xmm0
movdqu xmm0, xmmword [rcx + 0x10]
mov ecx, edx
neg ecx
pmovmskb eax, xmm1
and ecx, 0x1f
pcmpeqb xmm0, xmm2
pmovmskb r8d, xmm0
shl r8d, 0x10
or r8d, eax
mov r9d, r8d
mov eax, r8d
shl r9d, cl
mov ecx, edx
mov rdx, qword [rsp + 0x18]
shr rax, cl
or r9, rax
jbe 0x14020f3e9
mov r8d, dword [rsp + 0x28]
test r15d, r15d
je 0x14020f3e9
bsf rcx, r9
add ecx, r13d
and ecx, 0x1f
mov ecx, dword [rdx + rcx*4]
je 0x14020f3e0
cmp ecx, r8d
jb 0x14020f3e9
prefetcht0 byte [rcx + r12]
mov dword [rsp + rbp*4 + 0x70], ecx
inc rbp
dec r15d
lea rax, [r9 - 1]
and r9, rax
ja 0x14020f3b8
lea ecx, [r13 - 1]
mov eax, r11d
and ecx, 0x1f
mov r8d, 0x1f
cmove eax, r8d
add ecx, eax
mov rax, qword [rsp + 0x58]
mov byte [rax], cl
mov byte [rcx + rax], r14b
mov eax, dword [rsi + 0x2c]
mov dword [rdx + rcx*4], eax
inc dword [rsi + 0x2c]
test rbp, rbp
je 0x14020f4f9
mov esi, dword [rsp]
mov r14, qword [rsp + 0x60]
nop dword [rax]
nop dword [rax + rax]
mov r9d, dword [rsp + r11*4 + 0x70]
mov eax, dword [rdi + r10 - 3]
lea rdx, [r12 + r9]
cmp dword [rdx + rdi - 3], eax
jne 0x14020f4ed
lea r8, [rbx - 7]
mov rax, r10
cmp r10, r8
jae 0x14020f48c
mov rcx, qword [rdx]
xor rcx, qword [r10]
je 0x14020f466
bsf rcx, rcx
shr rcx, 3
jmp 0x14020f4d1
add rax, 8
add rdx, 8
cmp rax, r8
jae 0x14020f48c
mov rcx, qword [rax]
xor rcx, qword [rdx]
jne 0x14020f520
add rax, 8
add rdx, 8
cmp rax, r8
jb 0x14020f473
lea rcx, [rbx - 3]
cmp rax, rcx
jae 0x14020f4a3
mov ecx, dword [rax]
cmp dword [rdx], ecx
jne 0x14020f4a3
add rax, 4
add rdx, 4
lea rcx, [rbx - 1]
cmp rax, rcx
jae 0x14020f4bc
movzx ecx, word [rax]
cmp word [rdx], cx
jne 0x14020f4bc
add rax, 2
add rdx, 2
cmp rax, rbx
jae 0x14020f4cb
movzx ecx, byte [rax]
cmp byte [rdx], cl
jne 0x14020f4cb
inc rax
mov rcx, rax
sub rcx, r10
cmp rcx, rdi
jbe 0x14020f4ed
mov eax, esi
mov rdi, rcx
sub eax, r9d
add eax, 3
mov qword [r14], rax
lea rax, [rcx + r10]
cmp rax, rbx
je 0x14020f4f9
inc r11
cmp r11, rbp
jb 0x14020f430
mov rax, rdi
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140248b50
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 0x14020f4d1