Function at 0x1400e36cc
Capabilities:
Decrypt data using aes via x86 extensions
Encode data using xor

Disassembly:
test r8, r8
je 0x1400e3b55
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r13
push r14
mov rbp, rsp
sub rsp, 0x30
shr r8, 4
mov r11, rdx
cmp byte [rcx], 0
mov r10, rcx
je 0x1400e378e
lea rdx, [rcx + 0x18]
movdqu xmm2, xmmword [rcx + 8]
test r8, r8
je 0x1400e3783
movsxd rcx, dword [r10 + 4]
mov rax, r11
add r11, 0x10
movdqu xmm3, xmmword [rax]
mov rax, rcx
add rax, rax
movdqu xmm1, xmmword [rdx + rax*8]
lea eax, [rcx - 1]
movsxd rcx, eax
xorps xmm1, xmm3
test eax, eax
jle 0x1400e375b
mov rax, rcx
shl rax, 4
add rax, rdx
movdqu xmm0, xmmword [rax]
dec rcx
lea rax, [rax - 0x10]
aesdec xmm1, xmm0
test rcx, rcx
jg 0x1400e3746
cmp byte [r10 + 1], 0
movdqu xmm0, xmmword [rdx]
aesdeclast xmm1, xmm0
je 0x1400e376e
xorps xmm1, xmm2
mov rax, r9
movdqa xmm2, xmm3
add r9, 0x10
movdqu xmmword [rax], xmm1
sub r8, 1
jne 0x1400e3715
movdqu xmmword [r10 + 8], xmm2
jmp 0x1400e3b38
movups xmm1, xmmword [rcx + 8]
movups xmmword [rbp - 0x10], xmm1
test r8, r8
je 0x1400e3b32
lea rsi, [rcx + 0x28]
sub r9, rdx
mov r12d, 4
lea r13, [0x140000000]
movsxd r14, dword [r10 + 4]
lea rbx, [rbp - 0x30]
mov rcx, r14
mov rdx, r11
shl rcx, 4
mov rdi, r12
add rcx, 0x18
add rcx, r10
sub rdx, rcx
sub rbx, rcx
mov eax, dword [rdx + rcx]
xor eax, dword [rcx]
mov dword [rbx + rcx], eax
add rcx, r12
sub rdi, 1
jne 0x1400e37d5
movzx ecx, byte [rbp - 0x30]
movzx eax, byte [rbp - 0x29]
mov edx, dword [r13 + rcx*4 + 0x16cc40]
xor edx, dword [r13 + rax*4 + 0x16d840]
movzx eax, byte [rbp - 0x26]
movzx ecx, byte [rbp - 0x2f]
xor edx, dword [r13 + rax*4 + 0x16dd40]
movzx eax, byte [rbp - 0x23]
xor edx, dword [r13 + rax*4 + 0x16ed40]
movzx eax, byte [rbp - 0x2c]
mov dword [rbp - 0x20], edx
mov edx, dword [r13 + rcx*4 + 0x16ed40]
movzx ecx, byte [rbp - 0x2e]
xor edx, dword [r13 + rax*4 + 0x16cc40]
movzx eax, byte [rbp - 0x25]
xor edx, dword [r13 + rax*4 + 0x16d840]
movzx eax, byte [rbp - 0x22]
xor edx, dword [r13 + rax*4 + 0x16dd40]
movzx eax, byte [rbp - 0x2b]
mov dword [rbp - 0x1c], edx
mov edx, dword [r13 + rcx*4 + 0x16dd40]
movzx ecx, byte [rbp - 0x2d]
xor edx, dword [r13 + rax*4 + 0x16ed40]
movzx eax, byte [rbp - 0x28]
xor edx, dword [r13 + rax*4 + 0x16cc40]
movzx eax, byte [rbp - 0x21]
xor edx, dword [r13 + rax*4 + 0x16d840]
movzx eax, byte [rbp - 0x2a]
mov dword [rbp - 0x18], edx
mov edx, dword [r13 + rcx*4 + 0x16d840]
xor edx, dword [r13 + rax*4 + 0x16dd40]
movzx eax, byte [rbp - 0x27]
xor edx, dword [r13 + rax*4 + 0x16ed40]
movzx eax, byte [rbp - 0x24]
xor edx, dword [r13 + rax*4 + 0x16cc40]
lea eax, [r14 - 1]
movsxd rcx, eax
mov dword [rbp - 0x14], edx
cmp rcx, 1
jle 0x1400e39d1
mov rbx, rcx
lea rdx, [rbp - 0x20]
shl rbx, 4
lea rdi, [rcx - 1]
sub rbx, rdx
add rbx, 0x18
add rbx, r10
xor edx, edx
lea rax, [rbp - 0x20]
add rax, rdx
mov ecx, dword [rbx + rax]
xor ecx, dword [rax]
mov dword [rbp + rdx - 0x30], ecx
add rdx, r12
cmp rdx, 0x10
jl 0x1400e38de
movzx ecx, byte [rbp - 0x30]
sub rbx, 0x10
movzx eax, byte [rbp - 0x29]
mov edx, dword [r13 + rcx*4 + 0x16cc40]
xor edx, dword [r13 + rax*4 + 0x16d840]
movzx eax, byte [rbp - 0x26]
movzx ecx, byte [rbp - 0x2f]
xor edx, dword [r13 + rax*4 + 0x16dd40]
movzx eax, byte [rbp - 0x23]
xor edx, dword [r13 + rax*4 + 0x16ed40]
movzx eax, byte [rbp - 0x2c]
mov dword [rbp - 0x20], edx
mov edx, dword [r13 + rcx*4 + 0x16ed40]
movzx ecx, byte [rbp - 0x2e]
xor edx, dword [r13 + rax*4 + 0x16cc40]
movzx eax, byte [rbp - 0x25]
xor edx, dword [r13 + rax*4 + 0x16d840]
movzx eax, byte [rbp - 0x22]
xor edx, dword [r13 + rax*4 + 0x16dd40]
movzx eax, byte [rbp - 0x2b]
mov dword [rbp - 0x1c], edx
mov edx, dword [r13 + rcx*4 + 0x16dd40]
movzx ecx, byte [rbp - 0x2d]
xor edx, dword [r13 + rax*4 + 0x16ed40]
movzx eax, byte [rbp - 0x28]
xor edx, dword [r13 + rax*4 + 0x16cc40]
movzx eax, byte [rbp - 0x21]
xor edx, dword [r13 + rax*4 + 0x16d840]
movzx eax, byte [rbp - 0x2a]
mov dword [rbp - 0x18], edx
mov edx, dword [r13 + rcx*4 + 0x16d840]
xor edx, dword [r13 + rax*4 + 0x16dd40]
movzx eax, byte [rbp - 0x27]
xor edx, dword [r13 + rax*4 + 0x16ed40]
movzx eax, byte [rbp - 0x24]
xor edx, dword [r13 + rax*4 + 0x16cc40]
mov dword [rbp - 0x14], edx
sub rdi, 1
jne 0x1400e38dc
lea rdx, [rbp - 0x20]
mov rcx, rsi
sub rdx, rsi
lea rbx, [rbp - 0x30]
sub rbx, rsi
mov rdi, r12
mov eax, dword [rdx + rcx]
xor eax, dword [rcx]
mov dword [rbx + rcx], eax
add rcx, r12
sub rdi, 1
jne 0x1400e39e5
movzx eax, byte [rbp - 0x30]
xor ecx, ecx
mov al, byte [rax + r13 + 0x16dc40]
mov byte [rbp - 0x20], al
movzx eax, byte [rbp - 0x23]
mov al, byte [rax + r13 + 0x16dc40]
mov byte [rbp - 0x1f], al
movzx eax, byte [rbp - 0x26]
mov al, byte [rax + r13 + 0x16dc40]
mov byte [rbp - 0x1e], al
movzx eax, byte [rbp - 0x29]
mov al, byte [rax + r13 + 0x16dc40]
mov byte [rbp - 0x1d], al
movzx eax, byte [rbp - 0x2c]
mov al, byte [rax + r13 + 0x16dc40]
mov byte [rbp - 0x1c], al
movzx eax, byte [rbp - 0x2f]
mov al, byte [rax + r13 + 0x16dc40]
mov byte [rbp - 0x1b], al
movzx eax, byte [rbp - 0x22]
mov al, byte [rax + r13 + 0x16dc40]
mov byte [rbp - 0x1a], al
movzx eax, byte [rbp - 0x25]
mov al, byte [rax + r13 + 0x16dc40]
mov byte [rbp - 0x19], al
movzx eax, byte [rbp - 0x28]
mov al, byte [rax + r13 + 0x16dc40]
mov byte [rbp - 0x18], al
movzx eax, byte [rbp - 0x2b]
mov al, byte [rax + r13 + 0x16dc40]
mov byte [rbp - 0x17], al
movzx eax, byte [rbp - 0x2e]
mov al, byte [rax + r13 + 0x16dc40]
mov byte [rbp - 0x16], al
movzx eax, byte [rbp - 0x21]
mov al, byte [rax + r13 + 0x16dc40]
mov byte [rbp - 0x15], al
movzx eax, byte [rbp - 0x24]
mov al, byte [rax + r13 + 0x16dc40]
mov byte [rbp - 0x14], al
movzx eax, byte [rbp - 0x27]
mov al, byte [rax + r13 + 0x16dc40]
mov byte [rbp - 0x13], al
movzx eax, byte [rbp - 0x2a]
mov al, byte [rax + r13 + 0x16dc40]
mov byte [rbp - 0x12], al
movzx eax, byte [rbp - 0x2d]
mov al, byte [rax + r13 + 0x16dc40]
mov byte [rbp - 0x11], al
mov eax, dword [r10 + rcx*4 + 0x18]
xor dword [rbp + rcx*4 - 0x20], eax
inc rcx
cmp rcx, r12
jl 0x1400e3ae8
cmp byte [r10 + 1], 0
je 0x1400e3b13
xor ecx, ecx
mov eax, dword [rbp + rcx - 0x10]
xor dword [rbp + rcx - 0x20], eax
add rcx, r12
cmp rcx, 0x10
jl 0x1400e3b02
movups xmm1, xmmword [r11]
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [rbp - 0x10], xmm1
movups xmmword [r9 + r11], xmm0
add r11, 0x10
sub r8, 1
jne 0x1400e37b3
movdqu xmmword [r10 + 8], xmm1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop r13
pop rbp
ret