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

Disassembly:
push rbx
push r14
sub rsp, 0x58
mov rbx, rcx
mov qword [rcx + 0x140], rdx
mov ecx, dword [rdx + 8]
mov r14d, 4
sub ecx, 0x80
je 0x140001809
sub ecx, 0x40
je 0x1400017f3
cmp ecx, 0x40
jne 0x140001809
mov dword [rdx + 4], 0xe
mov rax, qword [rbx + 0x140]
mov dword [rax], 8
jmp 0x14000181a
mov dword [rdx + 4], 0xc
mov rax, qword [rbx + 0x140]
mov dword [rax], 6
jmp 0x14000181a
mov dword [rdx + 4], 0xa
mov rax, qword [rbx + 0x140]
mov dword [rax], r14d
call fcn.140002140
cmp byte [0x14007c241], 1
mov r10, qword [rbx + 0x140]
mov rax, qword [r10 + 0x20]
jne 0x140001845
mov rdx, rax
mov rcx, rbx
add rsp, 0x58
pop r14
pop rbx
jmp 0x140002220
mov r11d, dword [r10]
xor r8d, r8d
mov qword [rsp + 0x50], r15
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x24], 2
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x2c], 8
mov dword [rsp + 0x30], 0x10
mov dword [rsp + 0x34], 0x20
mov dword [rsp + 0x38], 0x40
mov dword [rsp + 0x3c], 0x80
mov dword [rsp + 0x40], 0x1b
mov dword [rsp + 0x44], 0x36
test r11d, r11d
jle 0x1400018ec
mov r9d, 0x2e
lea rdx, [rax + 2]
sub r9, rax
nop
movzx eax, byte [rdx - 1]
inc r8d
movzx ecx, byte [rdx - 2]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx]
shl ecx, 8
or ecx, eax
movzx eax, byte [rdx + 1]
shl ecx, 8
or ecx, eax
lea rax, [r9 + rdx]
mov dword [rax + r10], ecx
lea rdx, [rdx + 4]
mov r10, qword [rbx + 0x140]
mov r11d, dword [r10]
cmp r8d, r11d
jl 0x1400018b0
mov eax, dword [r10 + 4]
lea r15, [0x140000000]
lea eax, [rax*4 + 4]
cmp r11d, eax
jge 0x140001a3f
mov qword [rsp + 0x70], rbp
movsxd rax, r11d
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x80], rdi
lea rdi, [rax*4 + 0x30]
nop dword [rax]
nop dword [rax + rax]
mov esi, dword [r10]
mov eax, r11d
mov ecx, dword [r10 + rdi - 4]
cdq
idiv esi
movsxd rbp, eax
test edx, edx
jne 0x14000199b
mov r9d, ecx
shr rcx, 8
movzx edx, cl
movzx ecx, byte [rdx + r15 + 0x55960]
shl ecx, 8
movzx edx, r9b
movzx eax, byte [rdx + r15 + 0x55960]
or ecx, eax
mov eax, r9d
shr rax, 0x10
movzx edx, al
shl ecx, 8
movzx r8d, byte [rdx + r15 + 0x55960]
xor r8d, dword [rsp + rbp*4 + 0x1c]
shl r8d, 0x18
or ecx, r8d
shr r9, 0x18
movzx eax, byte [r9 + r15 + 0x55960]
jmp 0x1400019f8
cmp esi, 6
jle 0x1400019fa
cmp edx, r14d
jne 0x1400019fa
mov r8, rcx
mov rax, rcx
shr rax, 0x10
movzx ecx, al
mov rax, r8
shr rax, 0x18
movzx ecx, byte [rcx + r15 + 0x55960]
movzx eax, byte [rax + r15 + 0x55960]
shl eax, 8
or ecx, eax
mov rax, r8
shr rax, 8
movzx edx, al
shl ecx, 8
movzx eax, byte [rdx + r15 + 0x55960]
or ecx, eax
movzx eax, r8b
shl ecx, 8
movzx eax, byte [rax + r15 + 0x55960]
or ecx, eax
mov eax, r11d
inc r11d
sub eax, esi
cdqe
mov edx, dword [r10 + rax*4 + 0x30]
xor edx, ecx
mov dword [r10 + rdi], edx
add rdi, r14
mov r10, qword [rbx + 0x140]
mov eax, dword [r10 + 4]
lea eax, [rax*4 + 4]
cmp r11d, eax
jl 0x140001930
mov rdi, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x70]
lea rax, [r10 + 0x30]
mov qword [r10 + 0x10], rax
mov rcx, qword [rbx + 0x140]
mov eax, dword [rcx + 0x30]
mov dword [rcx + 0x3f0], eax
mov rcx, qword [rbx + 0x140]
mov eax, dword [rcx + 0x34]
mov dword [rcx + 0x3f4], eax
mov rcx, qword [rbx + 0x140]
mov eax, dword [rcx + 0x38]
mov dword [rcx + 0x3f8], eax
mov rcx, qword [rbx + 0x140]
mov eax, dword [rcx + 0x3c]
mov dword [rcx + 0x3fc], eax
mov rdx, qword [rbx + 0x140]
mov eax, dword [rdx + 4]
shl eax, 2
cmp eax, r14d
jle 0x140001b90
mov r9d, 0x400
nop dword [rax]
nop word [rax + rax]
mov rdx, qword [rbx + 0x140]
lea r9, [r9 + 4]
inc r14d
movzx eax, byte [r9 + rdx - 0x3c1]
movzx ecx, byte [rax + r15 + 0x55960]
mov eax, dword [r15 + rcx*4 + 0x55f60]
mov dword [r9 + rdx - 4], eax
mov r8, qword [rbx + 0x140]
movzx eax, byte [r9 + r8 - 0x3c2]
movzx ecx, byte [rax + r15 + 0x55960]
mov edx, dword [r15 + rcx*4 + 0x55f60]
mov eax, edx
shl eax, 0x18
shr edx, 8
xor eax, edx
xor dword [r9 + r8 - 4], eax
mov r8, qword [rbx + 0x140]
movzx eax, byte [r9 + r8 - 0x3c3]
movzx ecx, byte [rax + r15 + 0x55960]
mov edx, dword [r15 + rcx*4 + 0x55f60]
mov eax, edx
shr eax, 0x10
shl edx, 0x10
xor eax, edx
xor dword [r9 + r8 - 4], eax
mov r8, qword [rbx + 0x140]
movzx eax, byte [r9 + r8 - 0x3c4]
movzx ecx, byte [rax + r15 + 0x55960]
mov edx, dword [r15 + rcx*4 + 0x55f60]
mov eax, edx
shr eax, 0x18
shl edx, 8
xor eax, edx
xor dword [r9 + r8 - 4], eax
mov rdx, qword [rbx + 0x140]
mov eax, dword [rdx + 4]
shl eax, 2
cmp r14d, eax
jl 0x140001ab0
nop dword [rax]
nop word [rax + rax]
mov eax, dword [rdx + 4]
mov r15, qword [rsp + 0x50]
shl eax, 2
movsxd rcx, eax
mov eax, dword [rdx + rcx*4 + 0x30]
mov dword [rdx + rcx*4 + 0x3f0], eax
mov rdx, qword [rbx + 0x140]
mov eax, dword [rdx + 4]
shl eax, 2
movsxd rcx, eax
mov eax, dword [rdx + rcx*4 + 0x34]
mov dword [rdx + rcx*4 + 0x3f4], eax
mov rdx, qword [rbx + 0x140]
mov eax, dword [rdx + 4]
shl eax, 2
movsxd rcx, eax
mov eax, dword [rdx + rcx*4 + 0x38]
mov dword [rdx + rcx*4 + 0x3f8], eax
mov rdx, qword [rbx + 0x140]
mov eax, dword [rdx + 4]
shl eax, 2
movsxd rcx, eax
mov eax, dword [rdx + rcx*4 + 0x3c]
mov dword [rdx + rcx*4 + 0x3fc], eax
mov rcx, qword [rbx + 0x140]
lea rax, [rcx + 0x3f0]
mov qword [rcx + 0x18], rax
add rsp, 0x58
pop r14
pop rbx
ret
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
movdqu xmm1, xmmword [rdx]
lea r9, [rbp - 0x69]
mov rbx, rcx
movaps xmmword [rax - 0x18], xmm6
lea r8, [rbp - 0x59]
movaps xmmword [rax - 0x28], xmm7
lea rdx, [rbp - 0x49]
movaps xmmword [rax - 0x38], xmm8
movaps xmmword [rax - 0x48], xmm9
movaps xmmword [rax - 0x58], xmm10
movaps xmmword [rax - 0x68], xmm11
movaps xmmword [rax - 0x78], xmm12
aeskeygenassist xmm0, xmm1, 1
movaps xmmword [rsp + 0x60], xmm13
movaps xmmword [rsp + 0x50], xmm14
movdqu xmmword [rcx], xmm1
movdqa xmmword [rbp - 0x69], xmm0
movdqa xmmword [rbp - 0x59], xmm1
call fcn.140002510
lea r9, [rbp - 0x59]
mov rcx, rbx
lea r8, [rbp - 0x69]
lea rdx, [rbp - 0x49]
movdqu xmm14, xmmword [rax]
aeskeygenassist xmm0, xmm14, 2
movdqa xmmword [rbp - 0x59], xmm0
movdqu xmmword [rbx + 0x10], xmm14
movdqa xmmword [rbp - 0x69], xmm14
call fcn.140002510
lea r9, [rbp - 0x59]
mov rcx, rbx
lea r8, [rbp - 0x69]
lea rdx, [rbp - 0x49]
movdqu xmm13, xmmword [rax]
aeskeygenassist xmm0, xmm13, 4
movdqa xmmword [rbp - 0x59], xmm0
movdqu xmmword [rbx + 0x20], xmm13
movdqa xmmword [rbp - 0x69], xmm13
call fcn.140002510
lea r9, [rbp - 0x59]
mov rcx, rbx
lea r8, [rbp - 0x69]
lea rdx, [rbp - 0x49]
movdqu xmm12, xmmword [rax]
aeskeygenassist xmm0, xmm12, 8
movdqa xmmword [rbp - 0x59], xmm0
movdqu xmmword [rbx + 0x30], xmm12
movdqa xmmword [rbp - 0x69], xmm12
call fcn.140002510
lea r9, [rbp - 0x59]
mov rcx, rbx
lea r8, [rbp - 0x69]
lea rdx, [rbp - 0x49]
movdqu xmm11, xmmword [rax]
aeskeygenassist xmm0, xmm11, 0x10
movdqa xmmword [rbp - 0x59], xmm0
movdqu xmmword [rbx + 0x40], xmm11
movdqa xmmword [rbp - 0x69], xmm11
call fcn.140002510
lea r9, [rbp - 0x59]
mov rcx, rbx
lea r8, [rbp - 0x69]
lea rdx, [rbp - 0x49]
movdqu xmm10, xmmword [rax]
aeskeygenassist xmm0, xmm10, 0x20
movdqa xmmword [rbp - 0x59], xmm0
movdqu xmmword [rbx + 0x50], xmm10
movdqa xmmword [rbp - 0x69], xmm10
call fcn.140002510
lea r9, [rbp - 0x59]
mov rcx, rbx
lea r8, [rbp - 0x69]
lea rdx, [rbp - 0x49]
movdqu xmm9, xmmword [rax]
aeskeygenassist xmm0, xmm9, 0x40
movdqa xmmword [rbp - 0x59], xmm0
movdqu xmmword [rbx + 0x60], xmm9
movdqa xmmword [rbp - 0x69], xmm9
call fcn.140002510
movdqu xmm8, xmmword [rax]
movdqu xmmword [rbx + 0x70], xmm8
aeskeygenassist xmm0, xmm8, 0x80
lea r9, [rbp - 0x59]
movdqa xmmword [rbp - 0x59], xmm0
lea r8, [rbp - 0x69]
movdqa xmmword [rbp - 0x69], xmm8
lea rdx, [rbp - 0x49]
mov rcx, rbx
call fcn.140002510
lea r9, [rbp - 0x59]
mov rcx, rbx
lea r8, [rbp - 0x69]
lea rdx, [rbp - 0x49]
movdqu xmm7, xmmword [rax]
aeskeygenassist xmm0, xmm7, 0x1b
movdqa xmmword [rbp - 0x59], xmm0
movdqu xmmword [rbx + 0x80], xmm7
movdqa xmmword [rbp - 0x69], xmm7
call fcn.140002510
lea r9, [rbp - 0x59]
mov rcx, rbx
lea r8, [rbp - 0x69]
lea rdx, [rbp - 0x49]
movdqu xmm6, xmmword [rax]
aeskeygenassist xmm0, xmm6, 0x36
movdqa xmmword [rbp - 0x59], xmm0
movdqu xmmword [rbx + 0x90], xmm6
movdqa xmmword [rbp - 0x69], xmm6
call fcn.140002510
lea r11, [rsp + 0xe0]
aesimc xmm1, xmm6
movaps xmm6, xmmword [r11 - 0x10]
movdqu xmm0, xmmword [rax]
movdqu xmmword [rbx + 0xa0], xmm0
movdqu xmmword [rbx + 0xb0], xmm1
aesimc xmm0, xmm7
movaps xmm7, xmmword [r11 - 0x20]
movdqu xmmword [rbx + 0xc0], xmm0
aesimc xmm1, xmm8
movaps xmm8, xmmword [r11 - 0x30]
movdqu xmmword [rbx + 0xd0], xmm1
aesimc xmm0, xmm9
movaps xmm9, xmmword [r11 - 0x40]
aesimc xmm1, xmm10
movaps xmm10, xmmword [r11 - 0x50]
movdqu xmmword [rbx + 0xe0], xmm0
movdqu xmmword [rbx + 0xf0], xmm1
aesimc xmm0, xmm11
movaps xmm11, xmmword [r11 - 0x60]
aesimc xmm1, xmm12
movaps xmm12, xmmword [r11 - 0x70]
movdqu xmmword [rbx + 0x100], xmm0
movdqu xmmword [rbx + 0x110], xmm1
aesimc xmm0, xmm13
movaps xmm13, xmmword [r11 - 0x80]
aesimc xmm1, xmm14
movaps xmm14, xmmword [rsp + 0x50]
movdqu xmmword [rbx + 0x120], xmm0
movdqu xmmword [rbx + 0x130], xmm1
mov rbx, qword [r11 + 0x10]
mov rsp, r11
pop rbp
ret