Function at 0x140021980
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
sub rsp, 8
mov rax, 0xffffffffffffffff
test rcx, rcx
je 0x140021e07
test r8, r8
je 0x140021e07
mov r10d, 0x10000800
movups xmm0, xmmword [rcx]
xorps xmm4, xmm4
and r10d, dword [0x14046fe94]
lea rax, [r8 + 0x10]
cmp edx, 0x100
je 0x140021c80
cmp edx, 0xc0
je 0x140021b70
cmp edx, 0x80
jne 0x140021e00
mov edx, 9
cmp r10d, 0x10000000
je 0x140021a70
movups xmmword [r8], xmm0
aeskeygenassist xmm1, xmm0, 1
call fcn.140021e37
aeskeygenassist xmm1, xmm0, 2
call fcn.140021e30
aeskeygenassist xmm1, xmm0, 4
call fcn.140021e30
aeskeygenassist xmm1, xmm0, 8
call fcn.140021e30
aeskeygenassist xmm1, xmm0, 0x10
call fcn.140021e30
aeskeygenassist xmm1, xmm0, 0x20
call fcn.140021e30
aeskeygenassist xmm1, xmm0, 0x40
call fcn.140021e30
aeskeygenassist xmm1, xmm0, 0x80
call fcn.140021e30
aeskeygenassist xmm1, xmm0, 0x1b
call fcn.140021e30
aeskeygenassist xmm1, xmm0, 0x36
call fcn.140021e30
movups xmmword [rax], xmm0
mov dword [rax + 0x50], edx
xor eax, eax
jmp 0x140021e07
movdqa xmm5, xmmword [0x140021f50]
mov r10d, 8
movdqa xmm4, xmmword [0x140021f70]
movdqa xmm2, xmm0
movdqu xmmword [r8], xmm0
jmp 0x140021aa0
pshufb xmm0, xmm5
aesenclast xmm0, xmm4
pslld xmm4, 1
lea rax, [rax + 0x10]
movdqa xmm3, xmm2
pslldq xmm2, 4
pxor xmm3, xmm2
pslldq xmm2, 4
pxor xmm3, xmm2
pslldq xmm2, 4
pxor xmm2, xmm3
pxor xmm0, xmm2
movdqu xmmword [rax - 0x10], xmm0
movdqa xmm2, xmm0
dec r10d
jne 0x140021aa0
movdqa xmm4, xmmword [0x140021f80]
pshufb xmm0, xmm5
aesenclast xmm0, xmm4
pslld xmm4, 1
movdqa xmm3, xmm2
pslldq xmm2, 4
pxor xmm3, xmm2
pslldq xmm2, 4
pxor xmm3, xmm2
pslldq xmm2, 4
pxor xmm2, xmm3
pxor xmm0, xmm2
movdqu xmmword [rax], xmm0
movdqa xmm2, xmm0
pshufb xmm0, xmm5
aesenclast xmm0, xmm4
movdqa xmm3, xmm2
pslldq xmm2, 4
pxor xmm3, xmm2
pslldq xmm2, 4
pxor xmm3, xmm2
pslldq xmm2, 4
pxor xmm2, xmm3
pxor xmm0, xmm2
movdqu xmmword [rax + 0x10], xmm0
mov dword [rax + 0x60], edx
xor eax, eax
jmp 0x140021e07
movq xmm2, qword [rcx + 0x10]
mov edx, 0xb
cmp r10d, 0x10000000
je 0x140021bf0
movups xmmword [r8], xmm0
aeskeygenassist xmm1, xmm2, 1
call fcn.140021e57
aeskeygenassist xmm1, xmm2, 2
call fcn.140021e90
aeskeygenassist xmm1, xmm2, 4
call fcn.140021e50
aeskeygenassist xmm1, xmm2, 8
call fcn.140021e90
aeskeygenassist xmm1, xmm2, 0x10
call fcn.140021e50
aeskeygenassist xmm1, xmm2, 0x20
call fcn.140021e90
aeskeygenassist xmm1, xmm2, 0x40
call fcn.140021e50
aeskeygenassist xmm1, xmm2, 0x80
call fcn.140021e90
movups xmmword [rax], xmm0
mov dword [rax + 0x30], edx
xor rax, rax
jmp 0x140021e07
movdqa xmm5, xmmword [0x140021f60]
movdqa xmm4, xmmword [0x140021f70]
mov r10d, 8
movdqu xmmword [r8], xmm0
jmp 0x140021c10
movq qword [rax], xmm2
movdqa xmm1, xmm2
pshufb xmm2, xmm5
aesenclast xmm2, xmm4
pslld xmm4, 1
lea rax, [rax + 0x18]
movdqa xmm3, xmm0
pslldq xmm0, 4
pxor xmm3, xmm0
pslldq xmm0, 4
pxor xmm3, xmm0
pslldq xmm0, 4
pxor xmm0, xmm3
pshufd xmm3, xmm0, 0xff
pxor xmm3, xmm1
pslldq xmm1, 4
pxor xmm3, xmm1
pxor xmm0, xmm2
pxor xmm2, xmm3
movdqu xmmword [rax - 0x10], xmm0
dec r10d
jne 0x140021c10
mov dword [rax + 0x20], edx
xor eax, eax
jmp 0x140021e07
movups xmm2, xmmword [rcx + 0x10]
mov edx, 0xd
lea rax, [rax + 0x10]
cmp r10d, 0x10000000
je 0x140021d40
movups xmmword [r8], xmm0
movups xmmword [r8 + 0x10], xmm2
aeskeygenassist xmm1, xmm2, 1
call fcn.140021eb7
aeskeygenassist xmm1, xmm0, 1
call fcn.140021ed0
aeskeygenassist xmm1, xmm2, 2
call fcn.140021eb0
aeskeygenassist xmm1, xmm0, 2
call fcn.140021ed0
aeskeygenassist xmm1, xmm2, 4
call fcn.140021eb0
aeskeygenassist xmm1, xmm0, 4
call fcn.140021ed0
aeskeygenassist xmm1, xmm2, 8
call fcn.140021eb0
aeskeygenassist xmm1, xmm0, 8
call fcn.140021ed0
aeskeygenassist xmm1, xmm2, 0x10
call fcn.140021eb0
aeskeygenassist xmm1, xmm0, 0x10
call fcn.140021ed0
aeskeygenassist xmm1, xmm2, 0x20
call fcn.140021eb0
aeskeygenassist xmm1, xmm0, 0x20
call fcn.140021ed0
aeskeygenassist xmm1, xmm2, 0x40
call fcn.140021eb0
movups xmmword [rax], xmm0
mov dword [rax + 0x10], edx
xor rax, rax
jmp 0x140021e07
movdqa xmm5, xmmword [0x140021f50]
movdqa xmm4, xmmword [0x140021f70]
mov r10d, 7
movdqu xmmword [r8], xmm0
movdqa xmm1, xmm2
movdqu xmmword [r8 + 0x10], xmm2
jmp 0x140021d70
pshufb xmm2, xmm5
aesenclast xmm2, xmm4
movdqa xmm3, xmm0
pslldq xmm0, 4
pxor xmm3, xmm0
pslldq xmm0, 4
pxor xmm3, xmm0
pslldq xmm0, 4
pxor xmm0, xmm3
pslld xmm4, 1
pxor xmm0, xmm2
movdqu xmmword [rax], xmm0
dec r10d
je 0x140021deb
pshufd xmm2, xmm0, 0xff
pxor xmm3, xmm3
aesenclast xmm2, xmm3
movdqa xmm3, xmm1
pslldq xmm1, 4
pxor xmm3, xmm1
pslldq xmm1, 4
pxor xmm3, xmm1
pslldq xmm1, 4
pxor xmm1, xmm3
pxor xmm2, xmm1
movdqu xmmword [rax + 0x10], xmm2
lea rax, [rax + 0x20]
movdqa xmm1, xmm2
jmp 0x140021d70
mov dword [rax + 0x10], edx
xor eax, eax
jmp 0x140021e07
mov rax, 0xfffffffffffffffe
pxor xmm0, xmm0
pxor xmm1, xmm1
pxor xmm2, xmm2
pxor xmm3, xmm3
pxor xmm4, xmm4
pxor xmm5, xmm5
add rsp, 8
repz ret