Function at 0x140050640
Capabilities:
Decrypt data using aes via x86 extensions
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, 0x68
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
mov r14, rcx
mov rax, qword [0x1400c0e18]
xor rax, rsp
mov qword [rsp + 0x60], rax
call fcn.140053160
test byte [rax + 0x1b], 2
je 0x1400506b8
cmp ebx, 0xe
je 0x140050b10
cmp ebx, 0xc
je 0x140050b3b
cmp ebx, 0xa
jne 0x1400506b8
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400556d0
mov rcx, r14
mov rdx, rsi
mov r8, rdi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp 0x140057a00
mov qword [rsp + 0x28], rsi
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x5c]
mov qword [rsp + 0x48], rax
movzx r13d, byte [r14 + 4]
movzx esi, byte [r14 + 8]
movzx r12d, byte [r14 + 0xc]
movzx eax, byte [r14]
movzx r15d, byte [r14 + 1]
movzx ebp, byte [r14 + 5]
movzx r11d, byte [r14 + 9]
movzx r10d, byte [r14 + 0xd]
movzx r9d, byte [r14 + 2]
movzx r8d, byte [r14 + 6]
movzx edx, byte [r14 + 0xa]
movzx ecx, byte [r14 + 0xe]
mov byte [rsp + 0x27], cl
movzx ecx, byte [r14 + 3]
mov byte [rsp + 0x5c], cl
movzx ecx, byte [r14 + 7]
mov byte [rsp + 0x5d], cl
movzx ecx, byte [r14 + 0xb]
mov byte [rsp + 0x5e], cl
movzx ecx, byte [r14 + 0xf]
mov byte [rsp + 0x5f], cl
movsxd rcx, ebx
shl rcx, 4
xor al, byte [rdi + rcx]
mov byte [rsp + 0x50], al
xor r13b, byte [rdi + rcx + 4]
mov byte [rsp + 0x51], r13b
xor sil, byte [rdi + rcx + 8]
mov byte [rsp + 0x52], sil
xor r12b, byte [rdi + rcx + 0xc]
mov byte [rsp + 0x53], r12b
xor r15b, byte [rdi + rcx + 1]
mov byte [rsp + 0x54], r15b
xor bpl, byte [rdi + rcx + 5]
mov byte [rsp + 0x55], bpl
xor r11b, byte [rdi + rcx + 9]
mov byte [rsp + 0x56], r11b
xor r10b, byte [rdi + rcx + 0xd]
mov byte [rsp + 0x57], r10b
xor r9b, byte [rdi + rcx + 2]
mov byte [rsp + 0x58], r9b
xor r8b, byte [rdi + rcx + 6]
mov byte [rsp + 0x59], r8b
xor dl, byte [rdi + rcx + 0xa]
mov byte [rsp + 0x5a], dl
movzx eax, byte [rsp + 0x27]
xor al, byte [rdi + rcx + 0xe]
mov byte [rsp + 0x5b], al
mov r15, qword [rsp + 0x48]
movzx eax, byte [rdi + rcx + 3]
xor byte [r15], al
movzx eax, byte [rdi + rcx + 7]
xor byte [r15 + 1], al
movzx eax, byte [rdi + rcx + 0xb]
xor byte [r15 + 2], al
movzx eax, byte [rdi + rcx + 0xf]
xor byte [r15 + 3], al
cmp ebx, 2
jl 0x140050953
mov r12d, ebx
inc r12
shl ebx, 4
add ebx, 0xfffffff0
lea r14, [rsp + 0x30]
nop word [rax + rax]
mov rcx, r14
call fcn.1400519a0
movzx eax, byte [rsp + 0x57]
movzx ecx, byte [rsp + 0x54]
movzx edx, byte [rsp + 0x55]
movzx r8d, byte [rsp + 0x56]
shl r8d, 0x18
shl edx, 0x10
shl ecx, 8
or ecx, eax
or ecx, edx
or ecx, r8d
mov dword [rsp + 0x54], ecx
movzx eax, byte [rsp + 0x58]
movzx ecx, byte [rsp + 0x59]
shl ecx, 0x18
shl eax, 0x10
movzx edx, word [rsp + 0x5a]
or edx, eax
or edx, ecx
mov dword [rsp + 0x58], edx
movzx eax, byte [r15 + 3]
movzx ecx, byte [r15]
shl ecx, 0x18
shl eax, 0x10
movzx edx, word [r15 + 1]
or edx, eax
or edx, ecx
mov dword [r15], edx
movsxd rbx, ebx
movzx eax, byte [rdi + rbx]
movzx ecx, byte [rdi + rbx + 8]
movzx edx, byte [rdi + rbx + 1]
movzx r8d, byte [rdi + rbx + 9]
movq xmm0, qword [rsp + 0x50]
movzx r9d, byte [rdi + rbx + 0xc]
shl r9d, 8
or r9d, ecx
movzx ecx, byte [rdi + rbx + 4]
shl ecx, 8
or ecx, eax
movd xmm1, ecx
pinsrw xmm1, r9d, 1
movzx eax, byte [rdi + rbx + 5]
shl eax, 8
or eax, edx
pinsrw xmm1, eax, 2
movzx eax, byte [rdi + rbx + 0xd]
shl eax, 8
or eax, r8d
pinsrw xmm1, eax, 3
pxor xmm1, xmm0
movq qword [rsp + 0x50], xmm1
movzx eax, byte [rdi + rbx + 2]
movzx ecx, byte [rdi + rbx + 0xa]
movq xmm0, qword [rsp + 0x58]
movzx edx, byte [rdi + rbx + 0xe]
shl edx, 8
or edx, ecx
movzx ecx, byte [rdi + rbx + 6]
shl ecx, 8
or ecx, eax
movd xmm1, ecx
pinsrw xmm1, edx, 1
pxor xmm1, xmm0
movd dword [rsp + 0x58], xmm1
movzx eax, byte [rdi + rbx + 3]
xor byte [r15], al
movzx eax, byte [rdi + rbx + 7]
xor byte [r15 + 1], al
movzx eax, byte [rdi + rbx + 0xb]
xor byte [r15 + 2], al
movzx eax, byte [rdi + rbx + 0xf]
xor byte [r15 + 3], al
mov rcx, r14
call fcn.140051ba0
dec r12
add ebx, 0xfffffff0
cmp r12, 2
ja 0x140050810
lea rcx, [rsp + 0x30]
call fcn.1400519a0
movzx eax, byte [rsp + 0x57]
movzx ecx, byte [rsp + 0x54]
movzx edx, byte [rsp + 0x55]
movzx r8d, byte [rsp + 0x56]
shl r8d, 0x18
shl edx, 0x10
shl ecx, 8
or ecx, eax
or ecx, edx
or ecx, r8d
mov dword [rsp + 0x54], ecx
movzx eax, byte [rsp + 0x58]
movzx ecx, byte [rsp + 0x59]
shl ecx, 0x18
shl eax, 0x10
movzx edx, word [rsp + 0x5a]
or edx, eax
or edx, ecx
mov dword [rsp + 0x58], edx
movzx eax, byte [r15 + 3]
movzx ecx, byte [r15]
shl ecx, 0x18
shl eax, 0x10
movzx edx, word [r15 + 1]
or edx, eax
or edx, ecx
mov dword [r15], edx
movzx eax, byte [rdi]
movzx ecx, byte [rdi + 8]
movzx edx, byte [rdi + 1]
movzx r8d, byte [rdi + 9]
movq xmm0, qword [rsp + 0x50]
movzx r9d, byte [rdi + 0xc]
shl r9d, 8
or r9d, ecx
movzx ecx, byte [rdi + 4]
shl ecx, 8
or ecx, eax
movd xmm1, ecx
pinsrw xmm1, r9d, 1
movzx eax, byte [rdi + 5]
shl eax, 8
or eax, edx
pinsrw xmm1, eax, 2
movzx eax, byte [rdi + 0xd]
shl eax, 8
or eax, r8d
pinsrw xmm1, eax, 3
pxor xmm1, xmm0
movq qword [rsp + 0x50], xmm1
movzx eax, byte [rdi + 2]
movzx ecx, byte [rdi + 0xa]
movq xmm0, qword [rsp + 0x58]
movzx edx, byte [rdi + 0xe]
shl edx, 8
or edx, ecx
movzx ecx, byte [rdi + 6]
shl ecx, 8
or ecx, eax
movd xmm1, ecx
pinsrw xmm1, edx, 1
pxor xmm1, xmm0
movd dword [rsp + 0x58], xmm1
movzx eax, byte [rdi + 3]
xor byte [r15], al
movzx eax, byte [rdi + 7]
xor byte [r15 + 1], al
movzx eax, byte [rdi + 0xb]
xor byte [r15 + 2], al
movzx eax, byte [rdi + 0xf]
xor byte [r15 + 3], al
mov rax, qword [rsp + 0x30]
movzx ecx, byte [rax]
mov rdx, qword [rsp + 0x28]
mov byte [rdx], cl
movzx ecx, byte [rax + 1]
mov byte [rdx + 4], cl
movzx ecx, byte [rax + 2]
mov byte [rdx + 8], cl
movzx eax, byte [rax + 3]
mov byte [rdx + 0xc], al
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rax]
mov byte [rdx + 1], cl
movzx ecx, byte [rax + 1]
mov byte [rdx + 5], cl
movzx ecx, byte [rax + 2]
mov byte [rdx + 9], cl
movzx eax, byte [rax + 3]
mov byte [rdx + 0xd], al
mov rax, qword [rsp + 0x40]
movzx ecx, byte [rax]
mov byte [rdx + 2], cl
movzx ecx, byte [rax + 1]
mov byte [rdx + 6], cl
movzx ecx, byte [rax + 2]
mov byte [rdx + 0xa], cl
movzx eax, byte [rax + 3]
mov byte [rdx + 0xe], al
mov rax, qword [rsp + 0x48]
movzx ecx, byte [rax]
mov byte [rdx + 3], cl
movzx ecx, byte [rax + 1]
mov byte [rdx + 7], cl
movzx ecx, byte [rax + 2]
mov byte [rdx + 0xb], cl
movzx eax, byte [rax + 3]
mov byte [rdx + 0xf], al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400556d0
nop
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400556d0
mov rcx, r14
mov rdx, rsi
mov r8, rdi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp 0x140057ba0
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400556d0
mov rcx, r14
mov rdx, rsi
mov r8, rdi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp 0x140057ac0
movdqu xmm1, xmmword [r8 + 0xa0]
xorps xmm1, xmmword [rcx]
movdqu xmmword [rdx], xmm1
aesimc xmm0, xmmword [r8 + 0x90]
aesdec xmm1, xmm0
movdqu xmmword [rdx], xmm1
aesimc xmm0, xmmword [r8 + 0x80]
aesdec xmm1, xmm0
movdqu xmmword [rdx], xmm1
aesimc xmm0, xmmword [r8 + 0x70]
aesdec xmm1, xmm0
movdqu xmmword [rdx], xmm1
aesimc xmm0, xmmword [r8 + 0x60]
aesdec xmm1, xmm0
movdqu xmmword [rdx], xmm1
aesimc xmm0, xmmword [r8 + 0x50]
aesdec xmm1, xmm0
movdqu xmmword [rdx], xmm1
aesimc xmm0, xmmword [r8 + 0x40]
aesdec xmm1, xmm0
movdqu xmmword [rdx], xmm1
aesimc xmm0, xmmword [r8 + 0x30]
aesdec xmm1, xmm0
movdqu xmmword [rdx], xmm1
aesimc xmm0, xmmword [r8 + 0x20]
aesdec xmm1, xmm0
movdqu xmmword [rdx], xmm1
aesimc xmm0, xmmword [r8 + 0x10]
aesdec xmm1, xmm0
movdqu xmmword [rdx], xmm1
aesdeclast xmm1, xmmword [r8]
movdqu xmmword [rdx], xmm1
ret
movdqu xmm1, xmmword [r8 + 0xc0]
xorps xmm1, xmmword [rcx]
movdqu xmmword [rdx], xmm1
aesimc xmm0, xmmword [r8 + 0xb0]
aesdec xmm1, xmm0
movdqu xmmword [rdx], xmm1
aesimc xmm0, xmmword [r8 + 0xa0]
aesdec xmm1, xmm0
movdqu xmmword [rdx], xmm1
aesimc xmm0, xmmword [r8 + 0x90]
aesdec xmm1, xmm0
movdqu xmmword [rdx], xmm1
aesimc xmm0, xmmword [r8 + 0x80]
aesdec xmm1, xmm0
movdqu xmmword [rdx], xmm1
aesimc xmm0, xmmword [r8 + 0x70]
aesdec xmm1, xmm0
movdqu xmmword [rdx], xmm1
aesimc xmm0, xmmword [r8 + 0x60]
aesdec xmm1, xmm0
movdqu xmmword [rdx], xmm1
aesimc xmm0, xmmword [r8 + 0x50]
aesdec xmm1, xmm0
movdqu xmmword [rdx], xmm1
aesimc xmm0, xmmword [r8 + 0x40]
aesdec xmm1, xmm0
movdqu xmmword [rdx], xmm1
aesimc xmm0, xmmword [r8 + 0x30]
aesdec xmm1, xmm0
movdqu xmmword [rdx], xmm1
aesimc xmm0, xmmword [r8 + 0x20]
aesdec xmm1, xmm0
movdqu xmmword [rdx], xmm1
aesimc xmm0, xmmword [r8 + 0x10]
aesdec xmm1, xmm0
movdqu xmmword [rdx], xmm1
aesdeclast xmm1, xmmword [r8]
movdqu xmmword [rdx], xmm1
ret
movdqu xmm1, xmmword [r8 + 0xe0]
xorps xmm1, xmmword [rcx]
movdqu xmmword [rdx], xmm1
aesimc xmm0, xmmword [r8 + 0xd0]
aesdec xmm1, xmm0
movdqu xmmword [rdx], xmm1
aesimc xmm0, xmmword [r8 + 0xc0]
aesdec xmm1, xmm0
movdqu xmmword [rdx], xmm1
aesimc xmm0, xmmword [r8 + 0xb0]
aesdec xmm1, xmm0
movdqu xmmword [rdx], xmm1
aesimc xmm0, xmmword [r8 + 0xa0]
aesdec xmm1, xmm0
movdqu xmmword [rdx], xmm1
aesimc xmm0, xmmword [r8 + 0x90]
aesdec xmm1, xmm0
movdqu xmmword [rdx], xmm1
aesimc xmm0, xmmword [r8 + 0x80]
aesdec xmm1, xmm0
movdqu xmmword [rdx], xmm1
aesimc xmm0, xmmword [r8 + 0x70]
aesdec xmm1, xmm0
movdqu xmmword [rdx], xmm1
aesimc xmm0, xmmword [r8 + 0x60]
aesdec xmm1, xmm0
movdqu xmmword [rdx], xmm1
aesimc xmm0, xmmword [r8 + 0x50]
aesdec xmm1, xmm0
movdqu xmmword [rdx], xmm1
aesimc xmm0, xmmword [r8 + 0x40]
aesdec xmm1, xmm0
movdqu xmmword [rdx], xmm1
aesimc xmm0, xmmword [r8 + 0x30]
aesdec xmm1, xmm0
movdqu xmmword [rdx], xmm1
aesimc xmm0, xmmword [r8 + 0x20]
aesdec xmm1, xmm0
movdqu xmmword [rdx], xmm1
aesimc xmm0, xmmword [r8 + 0x10]
aesdec xmm1, xmm0
movdqu xmmword [rdx], xmm1
aesdeclast xmm1, xmmword [r8]
movdqu xmmword [rdx], xmm1
ret