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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x108
movaps xmmword [rsp + 0xf0], xmm6
mov rsi, qword [rcx]
mov rax, qword [0x1404a6020]
movzx eax, byte [rax]
cmp al, 1
jne 0x14005483f
mov rcx, rsi
movaps xmm6, xmmword [rsp + 0xf0]
add rsp, 0x108
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp 0x140054bc0
mov r13, qword [rdx]
mov r15, qword [rdx + 8]
mov r14, qword [rdx + 0x10]
mov rcx, qword [rdx + 0x18]
mov eax, ecx
and eax, 3
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
cmp rcx, 4
jb 0x14005497d
mov rbp, qword [rsp + 0x20]
shr rbp, 2
mov r12d, 0x30
lea rdi, [rsp + 0xb0]
lea rbx, [rsp + 0x30]
nop word cs:[rax + rax]
mov eax, dword [r13 + 0x10]
mov r9d, dword [r13 + 0xc]
mov ecx, dword [r13]
mov edx, dword [r13 + 4]
mov r8d, dword [r13 + 8]
lea r10d, [r9 + rax]
bswap r10d
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x34], edx
mov dword [rsp + 0x38], r8d
mov dword [rsp + 0x3c], r10d
lea r10d, [r9 + rax + 1]
bswap r10d
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x44], edx
mov dword [rsp + 0x48], r8d
mov dword [rsp + 0x4c], r10d
lea r10d, [r9 + rax + 2]
bswap r10d
mov dword [rsp + 0x50], ecx
mov dword [rsp + 0x54], edx
mov dword [rsp + 0x58], r8d
mov dword [rsp + 0x5c], r10d
add r9d, eax
add r9d, 3
bswap r9d
add eax, 4
mov dword [r13 + 0x10], eax
mov dword [rsp + 0x60], ecx
mov dword [rsp + 0x64], edx
mov dword [rsp + 0x68], r8d
mov dword [rsp + 0x6c], r9d
mov rcx, rdi
mov rdx, rsi
mov r8, rbx
call fcn.1401e69d0
movups xmm0, xmmword [r15 + r12 - 0x30]
movups xmm1, xmmword [r15 + r12 - 0x20]
movups xmm2, xmmword [r15 + r12 - 0x10]
movups xmm3, xmmword [r15 + r12]
xorps xmm0, xmmword [rsp + 0xb0]
xorps xmm1, xmmword [rsp + 0xc0]
xorps xmm2, xmmword [rsp + 0xd0]
xorps xmm3, xmmword [rsp + 0xe0]
movups xmmword [r14 + r12 - 0x30], xmm0
movups xmmword [r14 + r12 - 0x20], xmm1
movups xmmword [r14 + r12 - 0x10], xmm2
movups xmmword [r14 + r12], xmm3
add r12, 0x40
dec rbp
jne 0x140054890
xorps xmm6, xmm6
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
mov rbp, qword [rsp + 0x28]
test rbp, rbp
je 0x140054a81
movabs rax, 0xffffffffffffffc
mov rcx, qword [rsp + 0x20]
and rcx, rax
shl rcx, 4
add r15, rcx
add r14, rcx
lea r12, [rsp + 0x40]
shl ebp, 4
xor edi, edi
lea rbx, [rsp + 0x30]
nop word cs:[rax + rax]
mov eax, dword [r13 + 0x10]
mov ecx, dword [r13 + 8]
mov edx, dword [r13 + 0xc]
add edx, eax
bswap edx
inc eax
mov dword [r13 + 0x10], eax
mov rax, qword [r13]
movups xmmword [r12 + 0x20], xmm6
movups xmmword [r12 + 0x10], xmm6
movups xmmword [r12], xmm6
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], ecx
mov dword [rsp + 0x3c], edx
lea rcx, [rsp + 0xb0]
mov rdx, rsi
mov r8, rbx
call fcn.1401e69d0
movups xmm0, xmmword [rsp + 0xb0]
movups xmmword [rsp + rdi + 0x70], xmm0
add rdi, 0x10
cmp rbp, rdi
jne 0x1400549e0
movups xmm0, xmmword [r15]
xorps xmm0, xmmword [rsp + 0x70]
movups xmmword [r14], xmm0
mov rax, qword [rsp + 0x28]
cmp eax, 1
je 0x140054a81
movups xmm0, xmmword [r15 + 0x10]
xorps xmm0, xmmword [rsp + 0x80]
movups xmmword [r14 + 0x10], xmm0
cmp eax, 2
je 0x140054a81
movups xmm0, xmmword [r15 + 0x20]
xorps xmm0, xmmword [rsp + 0x90]
movups xmmword [r14 + 0x20], xmm0
movaps xmm6, xmmword [rsp + 0xf0]
add rsp, 0x108
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x228
movdqa xmmword [rsp + 0x210], xmm15
movdqa xmmword [rsp + 0x200], xmm14
movdqa xmmword [rsp + 0x1f0], xmm13
movdqa xmmword [rsp + 0x1e0], xmm12
movdqa xmmword [rsp + 0x1d0], xmm11
movdqa xmmword [rsp + 0x1c0], xmm10
movdqa xmmword [rsp + 0x1b0], xmm9
movdqa xmmword [rsp + 0x1a0], xmm8
movdqa xmmword [rsp + 0x190], xmm7
movdqa xmmword [rsp + 0x180], xmm6
mov r10, qword [rdx]
mov r8, qword [rdx + 8]
mov rax, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x18]
mov r9d, edx
and r9d, 7
cmp rdx, 8
jb 0x140055205
mov r11, rdx
shr r11, 3
movaps xmm0, xmmword [rcx]
movaps xmmword [rsp + 0xa0], xmm0
movaps xmm0, xmmword [rcx + 0x10]
movaps xmmword [rsp + 0x90], xmm0
movaps xmm0, xmmword [rcx + 0x20]
movaps xmmword [rsp], xmm0
movaps xmm0, xmmword [rcx + 0x30]
movaps xmmword [rsp + 0x10], xmm0
movaps xmm0, xmmword [rcx + 0x40]
movaps xmmword [rsp + 0x80], xmm0
movaps xmm0, xmmword [rcx + 0x50]
movaps xmmword [rsp + 0x70], xmm0
movaps xmm0, xmmword [rcx + 0x60]
movaps xmmword [rsp + 0x60], xmm0
movaps xmm0, xmmword [rcx + 0x70]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm0, xmmword [rcx + 0x80]
movaps xmmword [rsp + 0x40], xmm0
movaps xmm0, xmmword [rcx + 0x90]
movaps xmmword [rsp + 0x30], xmm0
movaps xmm0, xmmword [rcx + 0xa0]
movaps xmmword [rsp + 0x20], xmm0
movaps xmm0, xmmword [rcx + 0xb0]
movaps xmmword [rsp + 0x170], xmm0
movaps xmm0, xmmword [rcx + 0xc0]
movaps xmmword [rsp + 0x160], xmm0
movaps xmm0, xmmword [rcx + 0xd0]
movaps xmmword [rsp + 0x150], xmm0
movdqa xmm0, xmmword [rcx + 0xe0]
movdqa xmmword [rsp + 0x140], xmm0
mov esi, 0x70
nop word [rax + rax]
mov edi, dword [r10 + 0xc]
mov ebx, dword [r10 + 0x10]
lea ebp, [rbx + 8]
movsd xmm1, qword [r10 + 4]
mov dword [r10 + 0x10], ebp
movss xmm6, dword [r10]
lea ebp, [rdi + rbx + 7]
shufps xmm6, xmm1, 0x4c
bswap ebp
movd xmm0, ebp
shufps xmm0, xmm1, 0xd4
movaps xmm9, xmm6
lea ebp, [rdi + rbx + 6]
bswap ebp
movd xmm3, ebp
shufps xmm9, xmm0, 0x28
shufps xmm3, xmm1, 0xd4
movaps xmm7, xmm6
shufps xmm7, xmm3, 0x28
movaps xmm0, xmmword [rsp + 0xa0]
xorps xmm9, xmm0
xorps xmm7, xmm0
movaps xmm2, xmm0
lea ebp, [rdi + rbx + 5]
movdqa xmm3, xmmword [rsp + 0x90]
aesenc xmm9, xmm3
bswap ebp
movd xmm0, ebp
aesenc xmm7, xmm3
movdqa xmm4, xmm3
shufps xmm0, xmm1, 0xd4
movaps xmm15, xmm6
movdqa xmm3, xmmword [rsp]
aesenc xmm9, xmm3
shufps xmm15, xmm0, 0x28
xorps xmm15, xmm2
aesenc xmm7, xmm3
aesenc xmm15, xmm4
movdqa xmm0, xmmword [rsp + 0x10]
aesenc xmm9, xmm0
aesenc xmm15, xmm3
movdqa xmm5, xmm3
aesenc xmm7, xmm0
lea ebp, [rdi + rbx + 4]
aesenc xmm15, xmm0
movdqa xmm10, xmm0
bswap ebp
movd xmm3, ebp
movdqa xmm8, xmmword [rsp + 0x80]
aesenc xmm9, xmm8
shufps xmm3, xmm1, 0xd4
movaps xmmword [rsp + 0xb0], xmm1
movaps xmm0, xmm6
aesenc xmm7, xmm8
shufps xmm0, xmm3, 0x28
xorps xmm0, xmm2
movaps xmm12, xmm2
aesenc xmm15, xmm8
aesenc xmm0, xmm4
movdqa xmm11, xmm4
movdqa xmm2, xmmword [rsp + 0x70]
aesenc xmm9, xmm2
aesenc xmm0, xmm5
aesenc xmm7, xmm2
aesenc xmm0, xmm10
aesenc xmm15, xmm2
aesenc xmm0, xmm8
movdqa xmm13, xmm8
aesenc xmm0, xmm2
lea ebp, [rdi + rbx + 3]
movdqa xmm14, xmmword [rsp + 0x60]
aesenc xmm9, xmm14
bswap ebp
movd xmm4, ebp
aesenc xmm7, xmm14
shufps xmm4, xmm1, 0xd4
movaps xmm3, xmm6
aesenc xmm15, xmm14
shufps xmm3, xmm4, 0x28
movaps xmm8, xmm12
xorps xmm3, xmm12
aesenc xmm0, xmm14
movdqa xmm4, xmm14
aesenc xmm3, xmm11
movdqa xmm1, xmmword [rsp + 0x50]
aesenc xmm9, xmm1
aesenc xmm3, xmm5
aesenc xmm7, xmm1
aesenc xmm3, xmm10
aesenc xmm15, xmm1
movdqa xmm10, xmm13
aesenc xmm3, xmm13
aesenc xmm0, xmm1
movdqa xmm5, xmm1
aesenc xmm3, xmm2
movdqa xmm1, xmmword [rsp + 0x40]
aesenc xmm9, xmm1
aesenc xmm3, xmm14
movdqa xmm12, xmm14
aesenc xmm7, xmm1
aesenc xmm3, xmm5
movdqa xmm14, xmm5
aesenc xmm15, xmm1
lea ebp, [rdi + rbx + 2]
aesenc xmm0, xmm1
bswap ebp
movd xmm5, ebp
aesenc xmm3, xmm1
movdqa xmm13, xmm1
shufps xmm5, xmmword [rsp + 0xb0], 0xd4
movaps xmm4, xmm6
movdqa xmm1, xmmword [rsp + 0x30]
aesenc xmm9, xmm1
shufps xmm4, xmm5, 0x28
xorps xmm4, xmm8
aesenc xmm7, xmm1
aesenc xmm4, xmm11
aesenc xmm15, xmm1
aesenc xmm4, xmmword [rsp]
aesenc xmm0, xmm1
aesenc xmm4, xmmword [rsp + 0x10]
aesenc xmm3, xmm1
aesenc xmm4, xmm10
movdqa xmm5, xmmword [rsp + 0x20]
aesenc xmm9, xmm5
aesenc xmm4, xmm2
aesenc xmm7, xmm5
aesenc xmm4, xmm12
aesenc xmm15, xmm5
aesenc xmm4, xmm14
aesenc xmm0, xmm5
aesenc xmm4, xmm13
aesenc xmm3, xmm5
aesenc xmm4, xmm1
aesenc xmm4, xmm5
lea ebp, [rdi + rbx + 1]
movdqa xmm10, xmmword [rsp + 0x170]
aesenc xmm9, xmm10
bswap ebp
movd xmm8, ebp
aesenc xmm7, xmm10
movaps xmm1, xmmword [rsp + 0xb0]
shufps xmm8, xmm1, 0xd4
movaps xmm5, xmm6
aesenc xmm15, xmm10
shufps xmm5, xmm8, 0x28
add edi, ebx
aesenc xmm0, xmm10
bswap edi
movd xmm8, edi
aesenc xmm3, xmm10
shufps xmm8, xmm1, 0xd4
movaps xmm11, xmmword [rsp + 0xa0]
xorps xmm5, xmm11
aesenc xmm4, xmm10
movdqa xmm12, xmmword [rsp + 0x90]
aesenc xmm5, xmm12
movdqa xmm2, xmmword [rsp + 0x160]
aesenc xmm9, xmm2
aesenc xmm5, xmmword [rsp]
aesenc xmm7, xmm2
movdqa xmm13, xmmword [rsp + 0x10]
aesenc xmm5, xmm13
aesenc xmm15, xmm2
movdqa xmm14, xmmword [rsp + 0x80]
aesenc xmm5, xmm14
aesenc xmm0, xmm2
aesenc xmm5, xmmword [rsp + 0x70]
aesenc xmm3, xmm2
aesenc xmm5, xmmword [rsp + 0x60]
aesenc xmm4, xmm2
aesenc xmm5, xmmword [rsp + 0x50]
movdqa xmm1, xmmword [rsp + 0x150]
aesenc xmm9, xmm1
aesenc xmm5, xmmword [rsp + 0x40]
aesenc xmm7, xmm1
aesenc xmm5, xmmword [rsp + 0x30]
aesenc xmm15, xmm1
aesenc xmm5, xmmword [rsp + 0x20]
aesenc xmm0, xmm1
aesenc xmm5, xmm10
aesenc xmm3, xmm1
aesenc xmm5, xmm2
aesenc xmm4, xmm1
shufps xmm6, xmm8, 0x28
xorps xmm6, xmm11
aesenc xmm5, xmm1
aesenc xmm6, xmm12
movdqa xmm8, xmmword [rsp + 0x140]
aesenclast xmm9, xmm8
aesenc xmm6, xmmword [rsp]
aesenclast xmm7, xmm8
aesenc xmm6, xmm13
aesenclast xmm15, xmm8
aesenc xmm6, xmm14
aesenclast xmm0, xmm8
aesenc xmm6, xmmword [rsp + 0x70]
aesenclast xmm3, xmm8
aesenc xmm6, xmmword [rsp + 0x60]
aesenclast xmm4, xmm8
aesenc xmm6, xmmword [rsp + 0x50]
aesenclast xmm5, xmm8
movdqu xmm14, xmmword [r8 + rsi]
aesenc xmm6, xmmword [rsp + 0x40]
pxor xmm9, xmm14
movdqu xmm13, xmmword [r8 + rsi - 0x10]
aesenc xmm6, xmmword [rsp + 0x30]
pxor xmm7, xmm13
movdqu xmm12, xmmword [r8 + rsi - 0x20]
aesenc xmm6, xmmword [rsp + 0x20]
pxor xmm15, xmm12
movdqu xmm11, xmmword [r8 + rsi - 0x30]
aesenc xmm6, xmm10
pxor xmm0, xmm11
movdqu xmm10, xmmword [r8 + rsi - 0x40]
aesenc xmm6, xmm2
pxor xmm3, xmm10
movdqu xmm2, xmmword [r8 + rsi - 0x50]
aesenc xmm6, xmm1
pxor xmm4, xmm2
movdqu xmm2, xmmword [r8 + rsi - 0x60]
aesenclast xmm6, xmm8
pxor xmm5, xmm2
movdqu xmm2, xmmword [r8 + rsi - 0x70]
pxor xmm6, xmm2
movdqu xmmword [rax + rsi - 0x70], xmm6
movdqu xmmword [rax + rsi - 0x60], xmm5
movdqu xmmword [rax + rsi - 0x50], xmm4
movdqu xmmword [rax + rsi - 0x40], xmm3
movdqu xmmword [rax + rsi - 0x30], xmm0
movdqu xmmword [rax + rsi - 0x20], xmm15
movdqu xmmword [rax + rsi - 0x10], xmm7
movdqu xmmword [rax + rsi], xmm9
sub rsi, 0xffffffffffffff80
dec r11
jne 0x140054d10
pxor xmm0, xmm0
movdqa xmmword [rsp + 0x130], xmm0
movdqa xmmword [rsp + 0x120], xmm0
movdqa xmmword [rsp + 0x110], xmm0
movdqa xmmword [rsp + 0x100], xmm0
movdqa xmmword [rsp + 0xf0], xmm0
movdqa xmmword [rsp + 0xe0], xmm0
movdqa xmmword [rsp + 0xd0], xmm0
movdqa xmmword [rsp + 0xc0], xmm0
test r9, r9
je 0x140055702
movaps xmm0, xmmword [rcx]
movdqa xmm12, xmmword [rcx + 0x10]
movdqa xmm11, xmmword [rcx + 0x20]
movdqa xmm10, xmmword [rcx + 0x30]
movdqa xmm9, xmmword [rcx + 0x40]
movdqa xmm8, xmmword [rcx + 0x50]
movdqa xmm7, xmmword [rcx + 0x60]
movdqa xmm6, xmmword [rcx + 0x70]
movdqa xmm5, xmmword [rcx + 0x80]
movdqa xmm4, xmmword [rcx + 0x90]
movdqa xmm3, xmmword [rcx + 0xa0]
movdqa xmm14, xmmword [rcx + 0xb0]
movdqa xmm2, xmmword [rcx + 0xc0]
mov esi, dword [r10 + 0xc]
mov r11d, dword [r10 + 0x10]
movsd xmm1, qword [r10 + 4]
movss xmm13, dword [r10]
unpcklps xmm1, xmm13
lea edi, [rsi + r11]
bswap edi
movd xmm13, edi
shufps xmm13, xmm1, 0xe4
movaps xmm15, xmm1
shufps xmm15, xmm13, 0x21
movdqa xmm13, xmmword [rcx + 0xd0]
xorps xmm15, xmm0
aesenc xmm15, xmm12
aesenc xmm15, xmm11
aesenc xmm15, xmm10
aesenc xmm15, xmm9
aesenc xmm15, xmm8
aesenc xmm15, xmm7
aesenc xmm15, xmm6
aesenc xmm15, xmm5
aesenc xmm15, xmm4
aesenc xmm15, xmm3
movdqa xmmword [rsp], xmm14
aesenc xmm15, xmm14
aesenc xmm15, xmm2
lea edi, [r11 + 1]
aesenc xmm15, xmm13
movdqa xmm14, xmmword [rcx + 0xe0]
mov dword [r10 + 0x10], edi
aesenclast xmm15, xmm14
movdqa xmmword [rsp + 0xc0], xmm15
movabs rcx, 0xffffffffffffff8
and rcx, rdx
shl rcx, 4
cmp r9d, 1
je 0x140055690
pshufd xmm15, xmm1, 0xe1
add edi, esi
bswap edi
movdqa xmmword [rsp + 0x10], xmm2
movd xmm2, edi
shufps xmm2, xmm15, 0xe4
movdqa xmm1, xmm15
shufps xmm1, xmm2, 0x24
lea edi, [r11 + 2]
mov dword [r10 + 0x10], edi
xorps xmm1, xmm0
aesenc xmm1, xmm12
aesenc xmm1, xmm11
aesenc xmm1, xmm10
aesenc xmm1, xmm9
aesenc xmm1, xmm8
aesenc xmm1, xmm7
aesenc xmm1, xmm6
aesenc xmm1, xmm5
aesenc xmm1, xmm4
aesenc xmm1, xmm3
aesenc xmm1, xmmword [rsp]
aesenc xmm1, xmmword [rsp + 0x10]
aesenc xmm1, xmm13
aesenclast xmm1, xmm14
movdqa xmmword [rsp + 0xd0], xmm1
cmp r9d, 2
je 0x140055690
add edi, esi
bswap edi
movd xmm2, edi
shufps xmm2, xmm15, 0xe4
movdqa xmm1, xmm15
shufps xmm1, xmm2, 0x24
lea edi, [r11 + 3]
mov dword [r10 + 0x10], edi
xorps xmm1, xmm0
aesenc xmm1, xmm12
aesenc xmm1, xmm11
aesenc xmm1, xmm10
aesenc xmm1, xmm9
aesenc xmm1, xmm8
aesenc xmm1, xmm7
aesenc xmm1, xmm6
aesenc xmm1, xmm5
aesenc xmm1, xmm4
aesenc xmm1, xmm3
aesenc xmm1, xmmword [rsp]
aesenc xmm1, xmmword [rsp + 0x10]
aesenc xmm1, xmm13
aesenclast xmm1, xmm14
movdqa xmmword [rsp + 0xe0], xmm1
cmp r9d, 3
je 0x140055690
add edi, esi
bswap edi
movd xmm2, edi
shufps xmm2, xmm15, 0xe4
movdqa xmm1, xmm15
shufps xmm1, xmm2, 0x24
lea edi, [r11 + 4]
mov dword [r10 + 0x10], edi
xorps xmm1, xmm0
aesenc xmm1, xmm12
aesenc xmm1, xmm11
aesenc xmm1, xmm10
aesenc xmm1, xmm9
aesenc xmm1, xmm8
aesenc xmm1, xmm7
aesenc xmm1, xmm6
aesenc xmm1, xmm5
aesenc xmm1, xmm4
aesenc xmm1, xmm3
aesenc xmm1, xmmword [rsp]
aesenc xmm1, xmmword [rsp + 0x10]
aesenc xmm1, xmm13
aesenclast xmm1, xmm14
movdqa xmmword [rsp + 0xf0], xmm1
cmp r9d, 4
je 0x140055690
add edi, esi
bswap edi
movd xmm2, edi
shufps xmm2, xmm15, 0xe4
movdqa xmm1, xmm15
shufps xmm1, xmm2, 0x24
lea edi, [r11 + 5]
mov dword [r10 + 0x10], edi
xorps xmm1, xmm0
aesenc xmm1, xmm12
aesenc xmm1, xmm11
aesenc xmm1, xmm10
aesenc xmm1, xmm9
aesenc xmm1, xmm8
aesenc xmm1, xmm7
aesenc xmm1, xmm6
aesenc xmm1, xmm5
aesenc xmm1, xmm4
aesenc xmm1, xmm3
aesenc xmm1, xmmword [rsp]
aesenc xmm1, xmmword [rsp + 0x10]
aesenc xmm1, xmm13
aesenclast xmm1, xmm14
movdqa xmmword [rsp + 0x100], xmm1
cmp r9d, 5
je 0x140055690
add edi, esi
bswap edi
movd xmm2, edi
shufps xmm2, xmm15, 0xe4
movdqa xmm1, xmm15
shufps xmm1, xmm2, 0x24
movdqa xmm2, xmmword [rsp + 0x10]
lea edi, [r11 + 6]
mov dword [r10 + 0x10], edi
xorps xmm1, xmm0
aesenc xmm1, xmm12
aesenc xmm1, xmm11
aesenc xmm1, xmm10
aesenc xmm1, xmm9
aesenc xmm1, xmm8
aesenc xmm1, xmm7
aesenc xmm1, xmm6
aesenc xmm1, xmm5
aesenc xmm1, xmm4
aesenc xmm1, xmm3
aesenc xmm1, xmmword [rsp]
aesenc xmm1, xmm2
aesenc xmm1, xmm13
aesenclast xmm1, xmm14
movdqa xmmword [rsp + 0x110], xmm1
cmp r9d, 6
je 0x140055690
add esi, edi
bswap esi
movd xmm1, esi
shufps xmm1, xmm15, 0xe4
shufps xmm15, xmm1, 0x24
xorps xmm0, xmm15
aesenc xmm0, xmm12
aesenc xmm0, xmm11
aesenc xmm0, xmm10
aesenc xmm0, xmm9
aesenc xmm0, xmm8
aesenc xmm0, xmm7
aesenc xmm0, xmm6
aesenc xmm0, xmm5
aesenc xmm0, xmm4
aesenc xmm0, xmm3
aesenc xmm0, xmmword [rsp]
aesenc xmm0, xmm2
aesenc xmm0, xmm13
aesenclast xmm0, xmm14
add r11d, 7
mov dword [r10 + 0x10], r11d
movdqa xmmword [rsp + 0x120], xmm0
add r8, rcx
add rax, rcx
and edx, 1
cmp r9d, 1
jne 0x1400556a3
xor ecx, ecx
jmp 0x1400556e5
sub r9, rdx
mov r10d, 0x10
xor ecx, ecx
nop
movups xmm0, xmmword [r8 + r10 - 0x10]
xorps xmm0, xmmword [rsp + r10 + 0xb0]
movups xmmword [rax + r10 - 0x10], xmm0
movups xmm0, xmmword [r8 + r10]
xorps xmm0, xmmword [rsp + r10 + 0xc0]
add rcx, 2
movups xmmword [rax + r10], xmm0
add r10, 0x20
cmp r9, rcx
jne 0x1400556b0
test rdx, rdx
je 0x140055702
shl rcx, 4
movdqu xmm0, xmmword [r8 + rcx]
pxor xmm0, xmmword [rsp + rcx + 0xc0]
movdqu xmmword [rax + rcx], xmm0
movaps xmm6, xmmword [rsp + 0x180]
movaps xmm7, xmmword [rsp + 0x190]
movaps xmm8, xmmword [rsp + 0x1a0]
movaps xmm9, xmmword [rsp + 0x1b0]
movaps xmm10, xmmword [rsp + 0x1c0]
movaps xmm11, xmmword [rsp + 0x1d0]
movaps xmm12, xmmword [rsp + 0x1e0]
movaps xmm13, xmmword [rsp + 0x1f0]
movaps xmm14, xmmword [rsp + 0x200]
movaps xmm15, xmmword [rsp + 0x210]
add rsp, 0x228
pop rbx
pop rbp
pop rdi
pop rsi
ret