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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov ebp, r8d
mov r12, rdx
mov rsi, rcx
mov rcx, qword [rcx + 0x50]
mov rdx, qword [rsi + 0x58]
cmp rcx, 0x1238
je 0x1400145ff
test rdx, rdx
je 0x1400145f2
mov rdi, rdx
xor eax, eax
rep stosb byte [rdi], al
mov rcx, rdx
call fcn.14003270c
mov ecx, 0x1238
call fcn.140005ac0
mov rdx, rax
mov qword [rsi + 0x58], rdx
mov qword [rsi + 0x50], 0x1238
mov qword [rsi + 0x48], 0
mov r14d, ebp
shr r14d, 2
lea eax, [r14 + 6]
mov dword [rsi + 0x18], eax
lea r15d, [rax*4 + 4]
mov rcx, qword [rsi + 0x30]
mov rbx, qword [rsi + 0x38]
cmp rcx, r15
je 0x14001466b
test rbx, rbx
je 0x14001464a
mov rdi, rbx
xor eax, eax
rep stosd dword [rdi], eax
mov rcx, rbx
call fcn.140034224
mov rcx, r15
call fcn.140015fb0
test r15, r15
jne 0x14001465b
xor ebx, ebx
jmp 0x14001466b
lea rcx, [r15*4]
call fcn.140005a40
mov rbx, rax
mov qword [rsi + 0x38], rbx
mov qword [rsi + 0x30], r15
movabs rax, 0x3fffffffffffffff
mov qword [rsi + 0x28], rax
movzx eax, byte [0x1400750eb]
test al, al
jne 0x140014698
call fcn.14001a9a0
movzx eax, byte [0x1400750eb]
cmp byte [0x1400750e8], 0
je 0x14001474a
test al, al
jne 0x1400146ae
call fcn.14001a9a0
cmp byte [0x1400750e9], 0
je 0x14001474a
mov rdx, rbp
mov r8, rbx
mov rcx, r12
call fcn.14001af00
lea rcx, [rsi + 8]
mov rax, qword [rcx]
call qword [rax + 0x40]
test al, al
jne 0x14001509f
mov rdi, qword [rsi + 0x38]
mov eax, dword [rsi + 0x18]
lea ecx, [rax*4]
movdqu xmm1, xmmword [rdi]
movdqu xmm0, xmmword [rdi + rcx*4]
movdqu xmmword [rdi], xmm0
movdqu xmmword [rdi + rcx*4], xmm1
mov r11d, 4
lea edx, [rcx - 4]
cmp edx, r11d
jbe 0x140014737
nop dword [rax]
mov eax, r11d
lea rcx, [rdi + rax*4]
aesimc xmm1, xmmword [rcx]
aesimc xmm0, xmmword [rdi + rdx*4]
movdqu xmmword [rcx], xmm0
movdqu xmmword [rdi + rdx*4], xmm1
add r11d, 4
add edx, 0xfffffffc
cmp r11d, edx
jb 0x140014710
mov eax, r11d
aesimc xmm0, xmmword [rdi + rax*4]
movdqu xmmword [rdi + rax*4], xmm0
jmp 0x14001509f
mov r15, rbp
and r15, 0xfffffffffffffffc
test ebp, ebp
je 0x1400147b5
test rbx, rbx
jne 0x140014767
call fcn.140034188
mov dword [rax], SafeArrayGetElement
jmp 0x1400147b0
test r12, r12
je 0x140014781
cmp r15, rbp
jb 0x140014781
mov r8, rbp
mov rdx, r12
mov rcx, rbx
call fcn.140025d30
jmp 0x1400147b5
mov r8, r15
xor edx, edx
mov rcx, rbx
call fcn.1400263e0
test r12, r12
jne 0x1400147a0
call fcn.140034188
mov dword [rax], SafeArrayGetElement
jmp 0x1400147b0
cmp r15, rbp
jae 0x1400147b5
call fcn.140034188
mov dword [rax], 0x22
call fcn.140032674
mov r8, r15
sub r8, rbp
lea rcx, [rbx + rbp]
xor edx, edx
call fcn.1400263e0
lea r8, [rbp + 3]
and r8, 0xfffffffffffffffc
mov rdx, rbx
mov rcx, rbx
call fcn.140016030
lea eax, [r14 - 1]
lea r9, [rax*4]
mov edx, dword [r9 + rbx]
mov eax, edx
shr eax, 0x10
movzx ecx, al
lea r13, [0x140000000]
movzx edi, byte [rcx + r13 + 0x631a0]
xor edi, 1
shl edi, 8
mov eax, edx
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x631a0]
xor edi, eax
shl edi, 8
movzx eax, dl
movzx eax, byte [rax + r13 + 0x631a0]
xor edi, eax
shl edi, 8
mov eax, edx
shr rax, 0x18
movzx eax, byte [rax + r13 + 0x631a0]
xor edi, eax
xor edi, dword [rbx]
mov dword [r15 + rbx], edi
lea r8, [0x140062cac]
xor edi, dword [rbx + 4]
lea eax, [r14 + 1]
lea r10, [rax*4]
mov dword [r10 + rbx], edi
xor edi, dword [rbx + 8]
lea eax, [r14 + 2]
lea r11, [rax*4]
mov dword [r11 + rbx], edi
lea eax, [r14 + 3]
lea r12, [rax*4]
xor edi, dword [rbx + 0xc]
mov dword [r12 + rbx], edi
mov r14, qword [rsi + 0x38]
mov rax, qword [rsi + 0x30]
lea rcx, [r14 + rax*4]
lea rax, [r15 + 0x10]
add rax, rbx
cmp rax, rcx
je 0x1400149b4
cmp ebp, 0x18
jne 0x1400148b7
mov eax, dword [rbx + 0x24]
xor eax, dword [rbx + 0x10]
mov dword [rbx + 0x28], eax
xor eax, dword [rbx + 0x14]
mov dword [rbx + 0x2c], eax
jmp 0x140014923
cmp ebp, 0x20
jne 0x140014923
mov edx, dword [rbx + 0x2c]
mov eax, edx
shr rax, 0x18
movzx edi, byte [rax + r13 + 0x631a0]
shl edi, 8
mov eax, edx
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x631a0]
xor edi, eax
shl edi, 8
mov eax, edx
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x631a0]
xor edi, eax
shl edi, 8
movzx eax, dl
movzx eax, byte [rax + r13 + 0x631a0]
xor edi, eax
xor edi, dword [rbx + 0x10]
mov dword [rbx + 0x30], edi
xor edi, dword [rbx + 0x14]
mov dword [rbx + 0x34], edi
xor edi, dword [rbx + 0x18]
mov dword [rbx + 0x38], edi
xor edi, dword [rbx + 0x1c]
mov dword [rbx + 0x3c], edi
add rbx, r15
mov edx, dword [r9 + rbx]
mov eax, edx
shr eax, 0x10
movzx ecx, al
movzx edi, byte [rcx + r13 + 0x631a0]
shl edi, 8
mov eax, edx
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x631a0]
xor edi, eax
shl edi, 8
movzx eax, dl
movzx eax, byte [rax + r13 + 0x631a0]
xor edi, eax
shl edi, 8
mov eax, edx
shr rax, 0x18
movzx eax, byte [rax + r13 + 0x631a0]
xor edi, eax
xor edi, dword [r8]
xor edi, dword [rbx]
mov dword [r15 + rbx], edi
add r8, 4
xor edi, dword [rbx + 4]
mov dword [r10 + rbx], edi
xor edi, dword [rbx + 8]
mov dword [r11 + rbx], edi
xor edi, dword [rbx + 0xc]
mov dword [rbx + r12], edi
mov r14, qword [rsi + 0x38]
mov rax, qword [rsi + 0x30]
lea rcx, [r14 + rax*4]
lea rax, [r15 + 0x10]
add rax, rbx
cmp rax, rcx
jne 0x1400148a1
lea rcx, [rsi + 8]
mov rax, qword [rcx]
call qword [rax + 0x40]
test al, al
je 0x140014a82
movzx eax, byte [0x1400750ee]
test al, al
jne 0x140014a54
xor ebx, ebx
mov r11d, ebx
nop word [rax + rax]
movzx r9d, byte [r11 + r13 + 0x631a0]
lea r8d, [r9 + r9]
mov edi, r9d
shr edi, 7
mov r10d, r8d
shl r10d, 0x18
imul ecx, edi, 0x1b000000
xor r10, rcx
mov eax, r9d
shl eax, 8
or eax, r9d
shl eax, 8
or r10, rax
imul ecx, edi, 0x11b
mov eax, r8d
xor rcx, rax
xor rcx, r9
or rcx, r10
shl rcx, 0x20
or rcx, r10
mov qword [r13 + r11*8 + 0x748d0], rcx
inc r11
cmp r11, 0x100
jl 0x1400149e0
mov qword [0x1400750d8], rbx
mov qword [0x1400750d0], rbx
mov byte [0x1400750ee], 1
mov r8d, 0x10
mov rdx, r14
mov rcx, r14
call fcn.140016030
mov eax, dword [rsi + 0x18]
shl eax, 2
lea rcx, [r14 + rax*4]
mov r8d, 0x10
mov rdx, rcx
call fcn.140016030
jmp 0x140015070
movzx eax, byte [0x1400750ef]
test al, al
jne 0x140014a92
call fcn.140014380
mov r11d, 4
mov eax, dword [rsi + 0x18]
lea ebx, [rax*4 - 4]
cmp ebx, r11d
jbe 0x140014e2b
lea ebp, [rbx + 2]
lea r15d, [r11 + 2]
nop dword [rax]
nop word [rax + rax]
mov eax, r11d
lea r10, [r14 + rax*4]
mov edi, dword [r10]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r13 + 0x631a0]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x631a0]
mov r9d, dword [r13 + rdx*8 + 0x752c4]
xor r9d, dword [r13 + rax*8 + 0x752c1]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x631a0]
xor r9d, dword [r13 + rax*8 + 0x752c2]
movzx eax, dil
movzx ecx, byte [rax + r13 + 0x631a0]
xor r9d, dword [r13 + rcx*8 + 0x752c3]
lea r8, [r14 + rbx*4]
mov edi, dword [r8]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r13 + 0x631a0]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x631a0]
mov edx, dword [r13 + rdx*8 + 0x752c4]
xor edx, dword [r13 + rax*8 + 0x752c1]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x631a0]
xor edx, dword [r13 + rax*8 + 0x752c2]
movzx eax, dil
movzx ecx, byte [rax + r13 + 0x631a0]
xor edx, dword [r13 + rcx*8 + 0x752c3]
mov dword [r10], edx
mov dword [r8], r9d
lea eax, [r15 - 1]
lea r10, [r14 + rax*4]
mov edi, dword [r10]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r13 + 0x631a0]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x631a0]
mov r9d, dword [r13 + rdx*8 + 0x752c4]
xor r9d, dword [r13 + rax*8 + 0x752c1]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x631a0]
xor r9d, dword [r13 + rax*8 + 0x752c2]
movzx eax, dil
movzx ecx, byte [rax + r13 + 0x631a0]
xor r9d, dword [r13 + rcx*8 + 0x752c3]
lea eax, [rbp - 1]
lea r8, [r14 + rax*4]
mov edi, dword [r8]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r13 + 0x631a0]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x631a0]
mov edx, dword [r13 + rdx*8 + 0x752c4]
xor edx, dword [r13 + rax*8 + 0x752c1]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x631a0]
xor edx, dword [r13 + rax*8 + 0x752c2]
movzx eax, dil
movzx ecx, byte [rax + r13 + 0x631a0]
xor edx, dword [r13 + rcx*8 + 0x752c3]
mov dword [r10], edx
mov dword [r8], r9d
mov eax, r15d
lea r10, [r14 + rax*4]
mov edi, dword [r10]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r13 + 0x631a0]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x631a0]
mov r9d, dword [r13 + rdx*8 + 0x752c4]
xor r9d, dword [r13 + rax*8 + 0x752c1]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x631a0]
xor r9d, dword [r13 + rax*8 + 0x752c2]
movzx eax, dil
movzx ecx, byte [rax + r13 + 0x631a0]
xor r9d, dword [r13 + rcx*8 + 0x752c3]
lea r8, [r14 + rbp*4]
mov edi, dword [r8]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r13 + 0x631a0]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x631a0]
mov edx, dword [r13 + rdx*8 + 0x752c4]
xor edx, dword [r13 + rax*8 + 0x752c1]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x631a0]
xor edx, dword [r13 + rax*8 + 0x752c2]
movzx eax, dil
movzx ecx, byte [rax + r13 + 0x631a0]
xor edx, dword [r13 + rcx*8 + 0x752c3]
mov dword [r10], edx
mov dword [r8], r9d
lea eax, [r15 + 1]
lea r10, [r14 + rax*4]
mov edi, dword [r10]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r13 + 0x631a0]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x631a0]
mov r9d, dword [r13 + rdx*8 + 0x752c4]
xor r9d, dword [r13 + rax*8 + 0x752c1]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x631a0]
xor r9d, dword [r13 + rax*8 + 0x752c2]
movzx eax, dil
movzx ecx, byte [rax + r13 + 0x631a0]
xor r9d, dword [r13 + rcx*8 + 0x752c3]
lea eax, [rbp + 1]
lea r8, [r14 + rax*4]
mov edi, dword [r8]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r13 + 0x631a0]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x631a0]
mov edx, dword [r13 + rdx*8 + 0x752c4]
xor edx, dword [r13 + rax*8 + 0x752c1]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x631a0]
xor edx, dword [r13 + rax*8 + 0x752c2]
movzx eax, dil
movzx ecx, byte [rax + r13 + 0x631a0]
xor edx, dword [r13 + rcx*8 + 0x752c3]
mov dword [r10], edx
mov dword [r8], r9d
add r11d, 4
add r15d, 4
add ebx, 0xfffffffc
lea ebp, [rbp - 4]
cmp r11d, ebx
jb 0x140014ac0
mov eax, r11d
lea r8, [r14 + rax*4]
mov edi, dword [r8]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r13 + 0x631a0]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x631a0]
mov edx, dword [r13 + rdx*8 + 0x752c4]
xor edx, dword [r13 + rax*8 + 0x752c1]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x631a0]
xor edx, dword [r13 + rax*8 + 0x752c2]
movzx eax, dil
movzx ecx, byte [rax + r13 + 0x631a0]
xor edx, dword [r13 + rcx*8 + 0x752c3]
mov dword [r8], edx
lea eax, [r11 + 1]
lea r8, [r14 + rax*4]
mov edi, dword [r8]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r13 + 0x631a0]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x631a0]
mov edx, dword [r13 + rdx*8 + 0x752c4]
xor edx, dword [r13 + rax*8 + 0x752c1]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x631a0]
xor edx, dword [r13 + rax*8 + 0x752c2]
movzx eax, dil
movzx ecx, byte [rax + r13 + 0x631a0]
xor edx, dword [r13 + rcx*8 + 0x752c3]
mov dword [r8], edx
lea eax, [r11 + 2]
lea r8, [r14 + rax*4]
mov edi, dword [r8]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r13 + 0x631a0]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x631a0]
mov edx, dword [r13 + rdx*8 + 0x752c4]
xor edx, dword [r13 + rax*8 + 0x752c1]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x631a0]
xor edx, dword [r13 + rax*8 + 0x752c2]
movzx eax, dil
movzx ecx, byte [rax + r13 + 0x631a0]
xor edx, dword [r13 + rcx*8 + 0x752c3]
mov dword [r8], edx
lea eax, [r11 + 3]
lea r8, [r14 + rax*4]
mov edi, dword [r8]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r13 + 0x631a0]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x631a0]
mov edx, dword [r13 + rdx*8 + 0x752c4]
xor edx, dword [r13 + rax*8 + 0x752c1]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r13 + 0x631a0]
xor edx, dword [r13 + rax*8 + 0x752c2]
movzx eax, dil
movzx ecx, byte [rax + r13 + 0x631a0]
xor edx, dword [r13 + rcx*8 + 0x752c3]
mov dword [r8], edx
mov edx, dword [r14]
bswap edx
mov eax, dword [rsi + 0x18]
shl eax, 2
mov ecx, dword [r14 + rax*4]
bswap ecx
mov dword [r14], ecx
mov eax, dword [rsi + 0x18]
shl eax, 2
mov dword [r14 + rax*4], edx
mov edx, dword [r14 + 4]
bswap edx
mov eax, dword [rsi + 0x18]
lea eax, [rax*4 + 1]
mov eax, dword [r14 + rax*4]
bswap eax
mov dword [r14 + 4], eax
mov eax, dword [rsi + 0x18]
lea eax, [rax*4 + 1]
mov dword [r14 + rax*4], edx
mov edx, dword [r14 + 8]
bswap edx
mov eax, dword [rsi + 0x18]
lea eax, [rax*4 + 2]
mov eax, dword [r14 + rax*4]
bswap eax
mov dword [r14 + 8], eax
mov eax, dword [rsi + 0x18]
lea eax, [rax*4 + 2]
mov dword [r14 + rax*4], edx
mov edx, dword [r14 + 0xc]
bswap edx
mov eax, dword [rsi + 0x18]
lea eax, [rax*4 + 3]
mov eax, dword [r14 + rax*4]
bswap eax
mov dword [r14 + 0xc], eax
mov eax, dword [rsi + 0x18]
lea eax, [rax*4 + 3]
mov dword [r14 + rax*4], edx
cmp byte [0x1400750eb], 0
jne 0x14001507e
call fcn.14001a9a0
cmp byte [0x1400750e8], 0
je 0x14001509f
mov r8d, dword [rsi + 0x18]
shl r8d, 4
sub r8d, 0x10
lea rcx, [r14 + 0x10]
mov rdx, rcx
call fcn.140016030
mov rbx, qword [rsp + 0x78]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret