Function at 0x1400210e0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x150
movdqa xmmword [rsp + 0x140], xmm10
movdqa xmmword [rsp + 0x130], xmm9
movdqa xmmword [rsp + 0x120], xmm8
movdqa xmmword [rsp + 0x110], xmm7
movdqa xmmword [rsp + 0x100], xmm6
mov rdi, rdx
mov rsi, rcx
mov r9d, dword [rcx + 0x30]
movzx ecx, byte [rcx + 0x80]
not r9d
test rcx, rcx
je 0x14002117c
mov edx, 0x40
sub rdx, rcx
mov rax, r8
sub rax, rdx
jbe 0x14002115f
mov r10d, eax
and r10d, 0x3f
shr rax, 6
cmp r10, 1
sbb rax, 0xffffffffffffffff
cmp rax, r9
ja 0x14002119e
lea rax, [rsi + rcx]
add rax, 0x40
mov r14, r8
sub r14, rdx
jae 0x1400211a0
cmp r8, 8
jae 0x1400211ad
xor edx, edx
jmp 0x140021230
xor ecx, ecx
mov r15, r8
and r15, 0x3f
setne cl
mov rax, r8
shr rax, 6
add rcx, rax
mov r14, r8
cmp rcx, r9
jbe 0x140021306
ud2
cmp cl, 0x38
jbe 0x1400211b7
xor r8d, r8d
jmp 0x1400212e0
cmp r8, 0x20
jae 0x1400211c8
xor edx, edx
jmp 0x1400211fd
cmp cl, 0x20
jbe 0x140021250
xor r8d, r8d
jmp 0x1400212b2
mov rdx, r8
and rdx, 0xffffffffffffffe0
movdqu xmm0, xmmword [rdi]
movdqu xmm1, xmmword [rdi + 0x10]
movdqu xmm2, xmmword [rax]
pxor xmm2, xmm0
movdqu xmm0, xmmword [rax + 0x10]
pxor xmm0, xmm1
movdqu xmmword [rdi], xmm2
movdqu xmmword [rdi + 0x10], xmm0
cmp rdx, r8
je 0x140021245
test r8b, 0x18
je 0x140021230
mov r9, rdx
mov rdx, r8
and rdx, 0xfffffffffffffff8
nop word [rax + rax]
mov r10, qword [rax + r9]
xor qword [rdi + r9], r10
add r9, 8
cmp rdx, r9
jne 0x140021210
cmp rdx, r8
je 0x140021245
nop word cs:[rax + rax]
movzx r9d, byte [rax + rdx]
xor byte [rdi + rdx], r9b
lea r9, [rdx + 1]
mov rdx, r9
cmp r8, r9
jne 0x140021230
add r8b, cl
mov r15d, r8d
jmp 0x1400217e3
mov r8d, edx
and r8d, 0xffffffe0
add rcx, rsi
add rcx, 0x50
xor r9d, r9d
nop word cs:[rax + rax]
movdqu xmm0, xmmword [rdi + r9]
movdqu xmm1, xmmword [rdi + r9 + 0x10]
movdqu xmm2, xmmword [rcx + r9 - 0x10]
pxor xmm2, xmm0
movdqu xmm0, xmmword [rcx + r9]
pxor xmm0, xmm1
movdqu xmmword [rdi + r9], xmm2
movdqu xmmword [rdi + r9 + 0x10], xmm0
add r9, 0x20
cmp r8, r9
jne 0x140021270
cmp edx, r8d
je 0x1400212f5
test dl, 0x18
je 0x1400212e0
mov rcx, r8
mov r8d, edx
and r8d, 0xfffffff8
nop dword [rax]
mov r9, qword [rax + rcx]
xor qword [rdi + rcx], r9
add rcx, 8
cmp r8, rcx
jne 0x1400212c0
cmp edx, r8d
je 0x1400212f5
nop word cs:[rax + rax]
movzx ecx, byte [rax + r8]
xor byte [rdi + r8], cl
lea rcx, [r8 + 1]
mov r8, rcx
cmp rdx, rcx
jne 0x1400212e0
add rdi, rdx
mov rax, r14
shr rax, 6
mov r15d, r14d
and r15d, 0x3f
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rax
movzx ecx, byte [section..data]
cmp cl, 1
jne 0x14002133c
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.140021aa0
test r15, r15
jne 0x1400215ae
jmp 0x1400217e3
movdqu xmm0, xmmword [rsi + 0x30]
cmp r14, 0x40
jb 0x1400215a0
movdqu xmm1, xmmword [rsi]
movdqu xmm2, xmmword [rsi + 0x10]
movdqu xmm3, xmmword [rsi + 0x20]
xor ecx, ecx
pxor xmm4, xmm4
movd xmm5, dword [0x140058180]
nop word [rax + rax]
mov edx, 0xa
movdqa xmm8, xmm1
movdqa xmm6, xmm2
movdqa xmm7, xmm0
movdqa xmm9, xmm3
nop word [rax + rax]
paddd xmm8, xmm6
pxor xmm7, xmm8
movdqa xmm10, xmm7
psrld xmm10, 0x10
pslld xmm7, 0x10
por xmm7, xmm10
paddd xmm9, xmm7
pxor xmm6, xmm9
movdqa xmm10, xmm6
psrld xmm10, 0x14
pslld xmm6, 0xc
por xmm6, xmm10
paddd xmm8, xmm6
pxor xmm7, xmm8
movdqa xmm10, xmm7
psrld xmm10, 0x18
pslld xmm7, 8
por xmm7, xmm10
paddd xmm9, xmm7
pxor xmm6, xmm9
movdqa xmm10, xmm6
psrld xmm10, 0x19
pslld xmm6, 7
por xmm6, xmm10
pshufd xmm9, xmm9, 0x39
pshufd xmm7, xmm7, 0x4e
pshufd xmm8, xmm8, 0x93
paddd xmm8, xmm6
pxor xmm7, xmm8
movdqa xmm10, xmm7
psrld xmm10, 0x10
pslld xmm7, 0x10
por xmm7, xmm10
paddd xmm9, xmm7
pxor xmm6, xmm9
movdqa xmm10, xmm6
psrld xmm10, 0x14
pslld xmm6, 0xc
por xmm6, xmm10
paddd xmm8, xmm6
pxor xmm7, xmm8
movdqa xmm10, xmm7
psrld xmm10, 0x18
pslld xmm7, 8
por xmm7, xmm10
paddd xmm9, xmm7
pxor xmm6, xmm9
movdqa xmm10, xmm6
psrld xmm10, 0x19
pslld xmm6, 7
por xmm6, xmm10
pshufd xmm9, xmm9, 0x93
pshufd xmm7, xmm7, 0x4e
pshufd xmm8, xmm8, 0x39
dec rdx
jne 0x140021390
mov rdx, rcx
shl rdx, 6
paddd xmm8, xmm1
paddd xmm6, xmm2
paddd xmm9, xmm3
paddd xmm7, xmm0
movdqa xmmword [rsp + 0x40], xmm8
movdqa xmmword [rsp + 0x50], xmm6
movdqa xmmword [rsp + 0x60], xmm9
movdqa xmmword [rsp + 0x70], xmm7
movdqu xmm6, xmmword [rdi + rdx]
movdqu xmm7, xmmword [rdi + rdx + 0x10]
movdqu xmm8, xmmword [rdi + rdx + 0x20]
movdqu xmm9, xmmword [rdi + rdx + 0x30]
movdqa xmmword [rsp + 0xf0], xmm9
movdqa xmmword [rsp + 0xe0], xmm8
movdqa xmmword [rsp + 0xd0], xmm7
movdqa xmmword [rsp + 0xc0], xmm6
movdqa xmmword [rsp + 0xa0], xmm4
pxor xmm6, xmmword [rsp + 0x40]
pxor xmm7, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0xb0], xmm4
movdqa xmmword [rsp + 0x80], xmm6
pxor xmm8, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x90], xmm7
pxor xmm9, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0xa0], xmm8
movdqa xmmword [rsp + 0xb0], xmm9
inc rcx
paddd xmm0, xmm5
movdqu xmmword [rdi + rdx + 0x30], xmm9
movdqu xmmword [rdi + rdx + 0x20], xmm8
movdqu xmmword [rdi + rdx + 0x10], xmm7
movdqu xmmword [rdi + rdx], xmm6
cmp rax, rcx
jne 0x140021370
movd dword [rsi + 0x30], xmm0
test r15, r15
je 0x1400217e3
and r14, 0xffffffffffffffc0
lea rbx, [rsi + 0x40]
movzx eax, byte [section..data]
cmp al, 1
jne 0x1400215ea
mov rcx, rsi
mov rdx, rbx
call fcn.1400224e0
add rdi, r14
cmp r15d, 8
jb 0x140021769
cmp r15d, 0x20
jae 0x14002176d
xor eax, eax
jmp 0x1400217a2
movdqu xmm4, xmmword [rsi]
movdqu xmm2, xmmword [rsi + 0x10]
movdqu xmm1, xmmword [rsi + 0x20]
movdqu xmm0, xmmword [rsi + 0x30]
mov eax, 0xa
movdqa xmm6, xmm4
movdqa xmm3, xmm2
movdqa xmm5, xmm0
movdqa xmm7, xmm1
nop word cs:[rax + rax]
paddd xmm6, xmm3
pxor xmm5, xmm6
movdqa xmm8, xmm5
psrld xmm8, 0x10
pslld xmm5, 0x10
por xmm5, xmm8
paddd xmm7, xmm5
pxor xmm3, xmm7
movdqa xmm8, xmm3
psrld xmm8, 0x14
pslld xmm3, 0xc
por xmm3, xmm8
paddd xmm6, xmm3
pxor xmm5, xmm6
movdqa xmm8, xmm5
psrld xmm8, 0x18
pslld xmm5, 8
por xmm5, xmm8
paddd xmm7, xmm5
pxor xmm3, xmm7
movdqa xmm8, xmm3
psrld xmm8, 0x19
pslld xmm3, 7
por xmm3, xmm8
pshufd xmm7, xmm7, 0x39
pshufd xmm5, xmm5, 0x4e
pshufd xmm6, xmm6, 0x93
paddd xmm6, xmm3
pxor xmm5, xmm6
movdqa xmm8, xmm5
psrld xmm8, 0x10
pslld xmm5, 0x10
por xmm5, xmm8
paddd xmm7, xmm5
pxor xmm3, xmm7
movdqa xmm8, xmm3
psrld xmm8, 0x14
pslld xmm3, 0xc
por xmm3, xmm8
paddd xmm6, xmm3
pxor xmm5, xmm6
movdqa xmm8, xmm5
psrld xmm8, 0x18
pslld xmm5, 8
por xmm5, xmm8
paddd xmm7, xmm5
pxor xmm3, xmm7
movdqa xmm8, xmm3
psrld xmm8, 0x19
pslld xmm3, 7
por xmm3, xmm8
pshufd xmm7, xmm7, 0x93
pshufd xmm5, xmm5, 0x4e
pshufd xmm6, xmm6, 0x39
dec rax
jne 0x140021620
paddd xmm6, xmm4
paddd xmm3, xmm2
paddd xmm7, xmm1
paddd xmm5, xmm0
movdqu xmmword [rsi + 0x40], xmm6
movdqu xmmword [rsi + 0x50], xmm3
movdqu xmmword [rsi + 0x60], xmm7
movdqu xmmword [rsi + 0x70], xmm5
movd eax, xmm0
inc eax
mov dword [rsi + 0x30], eax
add rdi, r14
cmp r15d, 8
jae 0x1400215d9
xor eax, eax
jmp 0x1400217d0
mov eax, r15d
and eax, 0xffffffe0
movdqu xmm0, xmmword [rdi]
movdqu xmm1, xmmword [rdi + 0x10]
movdqu xmm2, xmmword [rsi + 0x40]
pxor xmm2, xmm0
movdqu xmm0, xmmword [rsi + 0x50]
pxor xmm0, xmm1
movdqu xmmword [rdi], xmm2
movdqu xmmword [rdi + 0x10], xmm0
cmp r15, rax
je 0x1400217e3
test r15b, 0x18
je 0x1400217d0
mov rcx, rax
mov eax, r15d
and eax, 0xfffffff8
nop dword [rax + rax]
mov rdx, qword [rbx + rcx]
xor qword [rdi + rcx], rdx
add rcx, 8
cmp rax, rcx
jne 0x1400217b0
cmp r15d, eax
je 0x1400217e3
nop word cs:[rax + rax]
movzx ecx, byte [rbx + rax]
xor byte [rdi + rax], cl
lea rcx, [rax + 1]
mov rax, rcx
cmp r15, rcx
jne 0x1400217d0
mov byte [rsi + 0x80], r15b
movaps xmm6, xmmword [rsp + 0x100]
movaps xmm7, xmmword [rsp + 0x110]
movaps xmm8, xmmword [rsp + 0x120]
movaps xmm9, xmmword [rsp + 0x130]
movaps xmm10, xmmword [rsp + 0x140]
add rsp, 0x150
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret