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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x140051010]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov ebp, dword [rdx + 0xc]
mov r14d, dword [rdx]
mov ebx, dword [rdx + 4]
mov rax, qword [rcx + 8]
xor ebp, dword [rcx + rax*4 + 0x1c]
lea rax, [rcx + rax*4]
xor ebx, dword [rax + 0x14]
mov r13d, ebp
xor r14d, dword [rax + 0x10]
mov edi, ebx
mov esi, dword [rcx]
mov r9d, ebx
mov qword [rsp + 0x28], r8
mov r10d, ebx
mov r8d, dword [rdx + 8]
mov edx, ebp
xor r8d, dword [rax + 0x18]
add rax, 0x20
shr edx, 0x10
mov r15d, r8d
mov dword [rsp], edx
mov r12d, r8d
sar esi, 1
mov edx, ebp
shr edx, 8
mov r11d, r8d
shr edi, 0x10
dec esi
shr r9d, 8
shr r10d, 0x18
shr r15d, 8
shr r12d, 0x18
shr r11d, 0x10
shr r13d, 0x18
mov dword [rsp + 4], edx
test esi, esi
jle 0x140019bd5
mov ecx, edx
nop dword [rax + rax]
movzx ecx, cl
lea r9, [0x140000000]
mov edx, ebx
shr rdx, 0x18
mov edx, dword [r9 + rdx*4 + 0x54cc0]
xor edx, dword [r9 + rcx*4 + 0x559f0]
movzx ecx, r11b
xor edx, dword [r9 + rcx*4 + 0x569f0]
movzx ecx, r14b
xor edx, dword [r9 + rcx*4 + 0x55df0]
mov ecx, r14d
xor edx, dword [rax]
shr ecx, 8
mov r11d, edx
movzx edx, cl
movzx ecx, bl
mov r10d, dword [r9 + rdx*4 + 0x559f0]
xor r10d, dword [r9 + rcx*4 + 0x55df0]
movzx ecx, byte [rsp]
xor r10d, dword [r9 + rcx*4 + 0x569f0]
movzx ecx, r12b
xor r10d, dword [r9 + rcx*4 + 0x54cc0]
mov ecx, ebx
xor r10d, dword [rax + 4]
shr ecx, 8
movzx edi, cl
mov ecx, r14d
shr ecx, 0x10
movzx edx, cl
shr ebx, 0x10
mov edi, dword [r9 + rdi*4 + 0x559f0]
movzx ecx, r13b
lea r13, [0x140000000]
xor edi, dword [r9 + rdx*4 + 0x569f0]
movzx edx, bl
xor edi, dword [r13 + rcx*4 + 0x54cc0]
movzx ecx, r8b
mov edx, dword [r13 + rdx*4 + 0x569f0]
xor edi, dword [r13 + rcx*4 + 0x55df0]
xor edi, dword [rax + 8]
mov ecx, r14d
shr rcx, 0x18
mov r9d, edi
xor edx, dword [r13 + rcx*4 + 0x54cc0]
movzx ecx, bpl
xor edx, dword [r13 + rcx*4 + 0x55df0]
movzx ecx, r15b
xor edx, dword [r13 + rcx*4 + 0x559f0]
xor edx, dword [rax + 0xc]
mov ecx, edx
mov r8d, edx
shr ecx, 8
movzx edi, cl
mov ecx, r9d
shr ecx, 0x10
movzx edx, cl
mov ecx, r10d
shr rcx, 0x18
mov r14d, dword [r13 + rdi*4 + 0x559f0]
xor r14d, dword [r13 + rdx*4 + 0x569f0]
xor r14d, dword [r13 + rcx*4 + 0x54cc0]
movzx ecx, r11b
xor r14d, dword [r13 + rcx*4 + 0x55df0]
mov ecx, r11d
xor r14d, dword [rax + 0x10]
shr ecx, 8
movzx edi, cl
mov ecx, r8d
shr ecx, 0x10
movzx edx, cl
mov ecx, r9d
shr rcx, 0x18
mov ebx, dword [r13 + rdi*4 + 0x559f0]
xor ebx, dword [r13 + rdx*4 + 0x569f0]
xor ebx, dword [r13 + rcx*4 + 0x54cc0]
movzx ecx, r10b
xor ebx, dword [r13 + rcx*4 + 0x55df0]
xor ebx, dword [rax + 0x14]
mov ecx, ebx
shr ecx, 0x10
mov dword [rsp + 0x20], ecx
mov ecx, ebx
dec esi
shr ecx, 8
mov dword [rsp + 0x14], ecx
mov ecx, ebx
shr ecx, 0x18
mov dword [rsp + 8], ecx
mov ecx, r11d
shr ecx, 0x10
movzx edx, cl
mov ecx, r8d
shr rcx, 0x18
shr r11, 0x18
mov edi, dword [r13 + rdx*4 + 0x569f0]
xor edi, dword [r13 + rcx*4 + 0x54cc0]
mov ecx, r10d
shr ecx, 8
movzx edx, cl
movzx ecx, r9b
shr r9d, 8
shr r10d, 0x10
xor edi, dword [r13 + rdx*4 + 0x559f0]
xor edi, dword [r13 + rcx*4 + 0x55df0]
xor edi, dword [rax + 0x18]
mov edx, dword [r13 + r11*4 + 0x54cc0]
mov r12d, edi
movzx ecx, r9b
mov r15d, edi
shr r12d, 0x10
mov ebp, edi
shr ebp, 0x18
movzx r11d, r12b
shr r15d, 8
xor edx, dword [r13 + rcx*4 + 0x559f0]
movzx ecx, r10b
mov dword [rsp + 4], r12d
movzx r12d, bpl
mov dword [rsp + 0x10], ebp
mov dword [rsp + 0x1c], r15d
xor edx, dword [r13 + rcx*4 + 0x569f0]
movzx ecx, r8b
xor edx, dword [r13 + rcx*4 + 0x55df0]
xor edx, dword [rax + 0x1c]
add rax, 0x20
mov r9d, edx
mov r8d, edx
shr r8d, 0x10
mov r10d, edx
shr r9d, 0x18
movzx ebp, dl
shr r10d, 8
movzx r13d, r9b
mov dword [rsp + 0xc], r8d
movzx ecx, r10b
mov byte [rsp], r8b
movzx r8d, dil
mov dword [rsp + 0x18], r9d
test esi, esi
jg 0x140019930
mov ecx, dword [rsp + 0xc]
movzx esi, r10b
movzx r10d, byte [rsp + 8]
movzx r11d, byte [rsp + 4]
movzx r12d, byte [rsp + 0x10]
movzx r9d, byte [rsp + 0x14]
movzx r13d, byte [rsp + 0x18]
movzx edi, byte [rsp + 0x20]
mov byte [rsp], cl
jmp 0x140019bd9
mov esi, dword [rsp + 4]
movzx edx, r10b
lea r10, [0x140000000]
movzx ecx, r11b
mov edx, dword [r10 + rdx*4 + 0x54cc0]
xor edx, dword [r10 + rcx*4 + 0x569f0]
movzx ecx, sil
xor edx, dword [r10 + rcx*4 + 0x559f0]
movzx ecx, r14b
xor edx, dword [r10 + rcx*4 + 0x55df0]
mov ecx, r14d
xor edx, dword [rax]
shr ecx, 8
mov esi, edx
movzx edx, cl
movzx ecx, r12b
lea r12, [0x140000000]
mov edx, dword [r12 + rdx*4 + 0x559f0]
xor edx, dword [r12 + rcx*4 + 0x54cc0]
movzx ecx, byte [rsp]
xor edx, dword [r12 + rcx*4 + 0x569f0]
movzx ecx, bl
xor edx, dword [r12 + rcx*4 + 0x55df0]
mov ecx, r14d
xor edx, dword [rax + 4]
shr ecx, 0x10
mov ebx, edx
movzx edx, cl
movzx ecx, r13b
mov r11d, dword [r12 + rdx*4 + 0x569f0]
xor r11d, dword [r12 + rcx*4 + 0x54cc0]
movzx ecx, r9b
mov edx, r14d
shr rdx, 0x18
xor r11d, dword [r12 + rcx*4 + 0x559f0]
movzx ecx, r8b
mov r9d, dword [r12 + rdx*4 + 0x54cc0]
xor r11d, dword [r12 + rcx*4 + 0x55df0]
xor r11d, dword [rax + 8]
movzx ecx, dil
xor r9d, dword [r12 + rcx*4 + 0x569f0]
movzx ecx, r15b
xor r9d, dword [r12 + rcx*4 + 0x559f0]
movzx ecx, bpl
xor r9d, dword [r12 + rcx*4 + 0x55df0]
mov ecx, ebx
xor r9d, dword [rax + 0xc]
shr rcx, 0x18
movzx r10d, byte [rcx + r12 + 0x550c0]
mov ecx, r11d
shr ecx, 0x10
movzx edx, cl
shl r10d, 8
movzx ecx, byte [rdx + r12 + 0x550c0]
xor r10d, ecx
mov ecx, r9d
shr ecx, 8
movzx edx, cl
shl r10d, 8
movzx ecx, byte [rdx + r12 + 0x550c0]
xor r10d, ecx
movzx ecx, sil
shl r10d, 8
movzx ecx, byte [rcx + r12 + 0x550c0]
xor r10d, ecx
mov ecx, r11d
xor r10d, dword [rax + 0x10]
shr rcx, 0x18
movzx r8d, byte [rcx + r12 + 0x550c0]
mov ecx, r9d
shr ecx, 0x10
movzx edx, cl
shl r8d, 8
movzx ecx, byte [rdx + r12 + 0x550c0]
xor r8d, ecx
mov ecx, esi
shr ecx, 8
shl r8d, 8
movzx edx, cl
movzx ecx, byte [rdx + r12 + 0x550c0]
xor r8d, ecx
shl r8d, 8
movzx ecx, bl
movzx ecx, byte [rcx + r12 + 0x550c0]
xor r8d, ecx
mov ecx, r9d
xor r8d, dword [rax + 0x14]
shr rcx, 0x18
movzx edi, byte [rcx + r12 + 0x550c0]
mov ecx, esi
shr ecx, 0x10
movzx edx, cl
shl edi, 8
shr rsi, 0x18
movzx ecx, byte [rdx + r12 + 0x550c0]
xor edi, ecx
mov ecx, ebx
shr ecx, 8
movzx edx, cl
shl edi, 8
shr ebx, 0x10
movzx ecx, byte [rdx + r12 + 0x550c0]
movzx edx, byte [rsi + r12 + 0x550c0]
xor edi, ecx
shl edx, 8
shl edi, 8
movzx ecx, r11b
shr r11d, 8
movzx ecx, byte [rcx + r12 + 0x550c0]
xor edi, ecx
movzx ecx, bl
xor edi, dword [rax + 0x18]
movzx ecx, byte [rcx + r12 + 0x550c0]
xor edx, ecx
movzx ecx, r11b
shl edx, 8
movzx ecx, byte [rcx + r12 + 0x550c0]
xor edx, ecx
movzx ecx, r9b
shl edx, 8
movzx ecx, byte [rcx + r12 + 0x550c0]
xor edx, ecx
mov ecx, 0x20
xor edx, dword [rax + 0x1c]
mov rax, qword [rsp + 0x28]
mov dword [rax + 8], edi
lea rdi, [rsp + 0x30]
mov dword [rax], r10d
mov dword [rax + 4], r8d
mov dword [rax + 0xc], edx
xor eax, eax
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14001ae90
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov qword [rsp + 0x20], rbp
push rdi
push r12
push r14
sub rsp, 0x20
mov r12, r9
mov r14, r8
mov ebp, edx
mov rdi, rcx
cmp edx, 1
jbe 0x140019e92
mov eax, 0xffffffdf
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r12
pop rdi
ret
mov qword [rsp + 0x40], rbx
mov ebx, dword [0x140054ba0]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], r15
test ebx, ebx
jne 0x140019ee1
mov eax, 1
xor ecx, ecx
cpuid
mov dword [0x140054bac], ebx
mov esi, ecx
mov ebx, 1
mov dword [0x140054ba8], eax
mov dword [0x140054ba0], ebx
mov dword [0x140054bb0], ecx
mov dword [0x140054bb4], edx
mov dword [0x140054ba4], ecx
jmp 0x140019ee7
mov esi, dword [0x140054ba4]
bt esi, 0x19
jae 0x140019f02
mov rcx, rdi
shr rcx, 2
and ecx, 3
je 0x140019f02
mov eax, 4
sub eax, ecx
jmp 0x140019f04
xor eax, eax
mov rcx, qword [rdi + 8]
mov r15d, eax
cmp r15, rcx
je 0x140019f33
mov eax, dword [rdi]
add rcx, 4
inc eax
shl eax, 4
movsxd r8, eax
lea rdx, [rdi + rcx*4]
lea rcx, [rdi + 0x10]
lea rcx, [rcx + r15*4]
call fcn.14001e250
mov qword [rdi + 8], r15
mov r15, qword [rsp + 0x50]
test ebx, ebx
jne 0x140019f6f
mov eax, 1
mov dword [0x140054ba0], 1
xor ecx, ecx
cpuid
mov esi, ecx
mov dword [0x140054ba8], eax
mov dword [0x140054bac], ebx
mov dword [0x140054bb0], ecx
mov dword [0x140054bb4], edx
mov dword [0x140054ba4], ecx
mov rbx, qword [rsp + 0x40]
bt esi, 0x19
mov rsi, qword [rsp + 0x48]
jae 0x140019ff9
mov rax, qword [rdi + 8]
movups xmm0, xmmword [r14]
mov ecx, dword [rdi]
lea rax, [rdi + rax*4]
dec ecx
xorps xmm0, xmmword [rax + 0x10]
add rax, 0x20
test ebp, ebp
jne 0x140019fc9
test ecx, ecx
je 0x140019fae
nop
aesdec xmm0, xmmword [rax]
add rax, 0x10
add ecx, 0xffffffff
jne 0x140019fa0
aesdeclast xmm0, xmmword [rax]
movups xmmword [r12], xmm0
xor eax, eax
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r12
pop rdi
ret
test ecx, ecx
je 0x140019fde
nop dword [rax]
aesenc xmm0, xmmword [rax]
add rax, 0x10
add ecx, 0xffffffff
jne 0x140019fd0
aesenclast xmm0, xmmword [rax]
movups xmmword [r12], xmm0
xor eax, eax
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r12
pop rdi
ret
mov r8, r12
mov rdx, r14
mov rcx, rdi
cmp ebp, 1
jne 0x14001a01a
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r12
pop rdi
jmp fcn.1400192b0
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r12
pop rdi
jmp 0x140019880