Function at 0x140102340
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x178
mov rax, qword [0x14021b0e0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov r13, qword [rcx + 8]
mov rsi, rcx
mov rax, qword [rcx + 0x38]
mov rbx, r8
mov r12d, dword [rcx + 0x34]
mov r8d, edx
sub r8d, r13d
mov qword [rsp + 0x38], rax
mov ebp, edx
mov dword [rsp + 4], r8d
sub ebp, r13d
mov qword [rsp + 0x50], r9
mov r9, qword [rcx + 0x70]
mov eax, r8d
mov ecx, dword [rcx + 0x100]
mov r10, rdx
mov r15d, 1
mov qword [rsp + 0x30], rbx
mov edx, r15d
mov qword [rsp + 0x20], r9
shl edx, cl
mov edi, 3
mov ecx, dword [rsi + 0x1c]
sub r8d, edx
sub eax, ecx
mov dword [rsp + 0x28], r12d
cmp eax, edx
mov qword [rsp + 0x18], r13
mov eax, dword [rsi + 0x10c]
mov rdx, qword [rsi + 0x60]
cmovbe r8d, ecx
cmp dword [rsi + 0x28], 0
mov dword [rsp], ebp
cmovne r8d, ecx
mov qword [rsp + 0x48], rdx
mov ecx, 6
mov dword [rsp + 0x2c], r8d
cmp eax, ecx
mov dword [rsp + 8], 0x3f
cmovb ecx, eax
xor r11d, r11d
shl r15d, cl
mov dword [rsp + 0xc], r15d
cmp dword [rsi + 0x12c], r11d
jne 0x140102703
mov r14d, dword [rsi + 0x2c]
mov eax, ebp
sub eax, r14d
cmp eax, 0x180
jbe 0x1401025bb
lea eax, [r14 + 0x60]
cmp r14d, eax
jae 0x140102504
mov rdi, qword [rsp + 0x38]
mov r15d, 0x18
sub r15d, r12d
mov ebp, r14d
lea r12, [r13 + 8]
mov ebx, eax
add r12, r14
mov r13, r9
nop dword [rax + rax]
mov eax, dword [rsi + 0x60]
mov rcx, r15
imul edx, dword [r12], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 2
and eax, 0x3fffffc0
prefetcht0 byte [r13 + rax*4]
prefetcht0 byte [r13 + rax*4 + 0x40]
prefetcht0 byte [rdi + rax]
prefetcht0 byte [rdi + rax + 0x20]
mov rax, rbp
lea r12, [r12 + 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, 2
and r8d, 0x3fffffc0
movzx ecx, byte [r8 + rdi]
lea rdx, [r8 + rdi]
dec ecx
and ecx, 0x3f
cmove eax, dword [rsp + 8]
inc rbp
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [r13 + rax*4], r14d
inc r14d
cmp r14d, ebx
jb 0x140102460
mov rbx, qword [rsp + 0x30]
mov edi, 3
mov r15d, dword [rsp + 0xc]
mov r13, qword [rsp + 0x18]
mov ebp, dword [rsp]
mov rcx, qword [rsi + 0x70]
lea r14d, [rbp - 0x20]
mov rdx, qword [rsi + 0x38]
lea rax, [r10 + 1]
mov qword [rsp + 0x10], rcx
lea r9, [r14 + r13]
mov ecx, eax
mov r8d, r14d
sub ecx, r13d
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 0x1401025b6
mov rbx, qword [rsp + 0x10]
mov r12d, 0x18
sub r12d, dword [rsi + 0x34]
mov r13, rdx
mov ebp, ecx
nop dword [rax + rax]
mov eax, dword [rsi + 0x60]
mov rcx, r12
imul edx, dword [r9], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 2
and eax, 0x3fffffc0
prefetcht0 byte [rbx + rax*4]
prefetcht0 byte [rbx + rax*4 + 0x40]
prefetcht0 byte [rax + r13]
prefetcht0 byte [rax + r13 + 0x20]
mov rax, r8
lea r9, [r9 + 1]
and eax, 7
inc r8
mov dword [rsi + rax*4 + 0x40], edx
sub rbp, 1
jne 0x140102560
mov rbx, qword [rsp + 0x30]
mov r13, qword [rsp + 0x18]
mov ebp, dword [rsp]
mov r9, qword [rsp + 0x20]
mov rcx, qword [rsi + 0x38]
mov rax, qword [rsi + 0x70]
mov qword [rsp + 0x10], rcx
mov rcx, qword [rsi + 8]
cmp r14d, ebp
jae 0x1401026a9
mov rbx, qword [rsp + 0x10]
lea r12, [rcx + 8]
mov edi, dword [rsp]
mov r15d, 0x18
sub r15d, dword [rsi + 0x34]
mov r13, rax
mov ebp, r14d
add r12, rbp
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [rsi + 0x60]
mov rcx, r15
imul edx, dword [r12], 0x9e3779b1
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 2
and eax, 0x3fffffc0
prefetcht0 byte [r13 + rax*4]
prefetcht0 byte [r13 + rax*4 + 0x40]
prefetcht0 byte [rbx + rax]
prefetcht0 byte [rbx + rax + 0x20]
mov rax, rbp
lea r12, [r12 + 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, 2
and r8d, 0x3fffffc0
movzx ecx, byte [r8 + rbx]
lea rdx, [r8 + rbx]
dec ecx
and ecx, 0x3f
cmove eax, dword [rsp + 8]
inc rbp
add ecx, eax
mov byte [rdx], cl
mov eax, ecx
add rax, r8
mov byte [rdx + rcx], r9b
mov dword [r13 + rax*4], r14d
inc r14d
cmp r14d, edi
jb 0x140102600
mov rbx, qword [rsp + 0x30]
mov edi, 3
mov r15d, dword [rsp + 0xc]
mov r13, qword [rsp + 0x18]
mov ebp, dword [rsp]
mov r9, qword [rsp + 0x20]
mov eax, dword [rsp + 4]
mov ecx, 0x18
sub ecx, dword [rsp + 0x28]
mov r8d, eax
mov dword [rsi + 0x2c], ebp
imul edx, dword [rax + r13 + 8], 0x9e3779b1
mov eax, dword [rsp + 0x48]
xor rdx, rax
shr rdx, cl
mov eax, edx
shr rax, 2
and eax, 0x3fffffc0
prefetcht0 byte [r9 + rax*4]
prefetcht0 byte [r9 + rax*4 + 0x40]
mov rcx, qword [rsp + 0x38]
prefetcht0 byte [rax + rcx]
prefetcht0 byte [rax + rcx + 0x20]
and r8d, 7
mov r14d, dword [rsi + r8*4 + 0x40]
mov dword [rsi + r8*4 + 0x40], edx
jmp 0x140102726
imul r14d, dword [r10], 0x9e3779b1
mov ecx, 0x18
mov eax, edx
sub ecx, r12d
xor r14, rax
mov eax, dword [rsp + 4]
shr r14, cl
mov rcx, qword [rsp + 0x38]
mov dword [rsi + 0x2c], eax
add dword [rsi + 0x68], r14d
mov eax, r14d
shr rax, 2
mov rbp, r11
and eax, 0x3fffffc0
movdqu xmm0, xmmword [rax + rcx]
movzx r13d, byte [rax + rcx]
lea r12, [r9 + rax*4]
lea r9, [rax + rcx]
movsx eax, r14b
mov qword [rsp + 0x48], r9
movd xmm2, eax
punpcklbw xmm2, xmm2
punpcklwd xmm2, xmm2
pshufd xmm2, xmm2, 0
movdqa xmm1, xmm2
pcmpeqb xmm1, xmm0
movdqu xmm0, xmmword [r9 + 0x10]
pmovmskb r8d, xmm1
movdqu xmm1, xmmword [r9 + 0x20]
pcmpeqb xmm0, xmm2
pmovmskb edx, xmm0
pcmpeqb xmm1, xmm2
movdqu xmm0, xmmword [r9 + 0x30]
pmovmskb ecx, xmm1
pcmpeqb xmm0, xmm2
pmovmskb eax, xmm0
movsxd r9, eax
shl r9, 0x10
movsxd rax, ecx
or r9, rax
movsxd rax, edx
shl r9, 0x10
mov edx, r13d
or r9, rax
and edx, 0x3f
movsxd rax, r8d
mov ecx, edx
shl r9, 0x10
neg ecx
or r9, rax
and ecx, 0x3f
mov r8, r9
shl r8, cl
mov ecx, edx
shr r9, cl
or r8, r9
jbe 0x140102815
mov rdx, qword [rsp + 0x18]
mov r9d, dword [rsp + 0x2c]
test r15d, r15d
je 0x140102815
bsf rcx, r8
add ecx, r13d
and ecx, 0x3f
je 0x14010280c
mov ecx, dword [r12 + rcx*4]
cmp ecx, r9d
jb 0x140102815
prefetcht0 byte [rcx + rdx]
mov dword [rsp + rbp*4 + 0x60], ecx
inc rbp
dec r15d
lea rax, [r8 - 1]
and r8, rax
ja 0x1401027e4
lea ecx, [r13 - 1]
mov eax, r11d
and ecx, 0x3f
mov edx, 0x3f
cmove eax, edx
add ecx, eax
mov rax, qword [rsp + 0x48]
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 rbp, rbp
je 0x140102928
mov rsi, qword [rsp + 0x50]
nop dword [rax]
mov r9d, dword [rsp + r11*4 + 0x60]
mov eax, dword [rdi + r10 - 3]
mov edx, r9d
add rdx, qword [rsp + 0x18]
cmp dword [rdx + rdi - 3], eax
jne 0x14010291c
lea r8, [rbx - 7]
mov rax, r10
cmp r10, r8
jae 0x1401028b9
mov rcx, qword [rdx]
xor rcx, qword [r10]
je 0x14010288a
bsf rcx, rcx
shr rcx, 3
jmp 0x1401028fe
add rax, 8
add rdx, 8
cmp rax, r8
jae 0x1401028b9
nop word [rax + rax]
mov rcx, qword [rdx]
xor rcx, qword [rax]
jne 0x14010294f
add rax, 8
add rdx, 8
cmp rax, r8
jb 0x1401028a0
lea rcx, [rbx - 3]
cmp rax, rcx
jae 0x1401028d0
mov ecx, dword [rax]
cmp dword [rdx], ecx
jne 0x1401028d0
add rax, 4
add rdx, 4
lea rcx, [rbx - 1]
cmp rax, rcx
jae 0x1401028e9
movzx ecx, word [rax]
cmp word [rdx], cx
jne 0x1401028e9
add rax, 2
add rdx, 2
cmp rax, rbx
jae 0x1401028f8
movzx ecx, byte [rax]
cmp byte [rdx], cl
jne 0x1401028f8
inc rax
mov rcx, rax
sub rcx, r10
cmp rcx, rdi
jbe 0x14010291c
mov eax, dword [rsp + 4]
mov rdi, rcx
sub eax, r9d
add eax, 3
mov qword [rsi], rax
lea rax, [rcx + r10]
cmp rax, rbx
je 0x140102928
inc r11
cmp r11, rbp
jb 0x140102850
mov rax, rdi
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.140147af0
add rsp, 0x178
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 0x1401028fe