Function at 0x1400199c0
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, 0x40
mov rax, qword [0x140053010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rax, qword [rcx + 8]
mov esi, dword [rcx]
lea rax, [rcx + rax*4]
mov r9d, dword [rdx + 0xc]
xor r9d, dword [rax + 0x1c]
mov ebx, dword [rdx + 4]
mov ecx, r9d
xor ebx, dword [rax + 0x14]
mov r13d, r9d
mov ebp, dword [rdx + 8]
mov edi, ebx
xor ebp, dword [rax + 0x18]
mov r10d, ebx
mov r14d, dword [rdx]
mov r11d, ebp
xor r14d, dword [rax + 0x10]
mov r15d, ebp
shr ecx, 0x10
mov r12d, ebp
mov dword [rsp], ecx
add rax, 0x20
mov qword [rsp + 0x10], r8
mov ecx, r9d
sar esi, 1
mov r8d, ebx
shr ecx, 0x18
dec esi
shr edi, 0x18
shr r8d, 8
shr r10d, 0x10
shr r11d, 0x10
shr r15d, 0x18
shr r12d, 8
shr r13d, 8
mov dword [rsp + 0x18], r14d
mov dword [rsp + 0x1c], ebx
mov dword [rsp + 0x20], ebp
mov dword [rsp + 0x24], r9d
mov dword [rsp + 4], ecx
test esi, esi
jle 0x14001972d
nop dword [rax]
lea r13, [0x140000000]
mov ecx, r9d
shr ecx, 8
movzx edi, cl
mov ecx, ebp
shr ecx, 0x10
movzx edx, cl
mov ecx, ebx
mov r11d, dword [r13 + rdi*4 + 0x57a20]
shr rcx, 0x18
xor r11d, dword [r13 + rdx*4 + 0x58a20]
mov edi, r9d
shr rdi, 0x18
xor r11d, dword [r13 + rcx*4 + 0x56cf0]
movzx ecx, byte [rsp + 0x18]
xor r11d, dword [r13 + rcx*4 + 0x57e20]
mov ecx, r9d
mov r9d, dword [r13 + rdi*4 + 0x56cf0]
xor r11d, dword [rax]
shr ecx, 0x10
movzx edx, cl
mov ecx, ebp
shr rcx, 0x18
shr ebp, 8
mov r10d, dword [r13 + rdx*4 + 0x58a20]
xor r10d, dword [r13 + rcx*4 + 0x56cf0]
mov ecx, r14d
shr ecx, 8
movzx edx, cl
movzx ecx, byte [rsp + 0x1c]
xor r10d, dword [r13 + rdx*4 + 0x57a20]
xor r10d, dword [r13 + rcx*4 + 0x57e20]
mov ecx, ebx
xor r10d, dword [rax + 4]
shr ecx, 8
movzx edx, cl
mov ecx, r14d
shr ecx, 0x10
shr ebx, 0x10
xor r9d, dword [r13 + rdx*4 + 0x57a20]
movzx edx, cl
movzx ecx, byte [rsp + 0x20]
xor r9d, dword [r13 + rdx*4 + 0x58a20]
xor r9d, dword [r13 + rcx*4 + 0x57e20]
xor r9d, dword [rax + 8]
movzx ecx, bl
movzx edx, bpl
mov edx, dword [r13 + rdx*4 + 0x57a20]
xor edx, dword [r13 + rcx*4 + 0x58a20]
mov ecx, r14d
shr rcx, 0x18
xor edx, dword [r13 + rcx*4 + 0x56cf0]
movzx ecx, byte [rsp + 0x24]
xor edx, dword [r13 + rcx*4 + 0x57e20]
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 + 0x57a20]
xor r14d, dword [r13 + rdx*4 + 0x58a20]
xor r14d, dword [r13 + rcx*4 + 0x56cf0]
movzx ecx, r11b
xor r14d, dword [r13 + rcx*4 + 0x57e20]
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
mov dword [rsp + 0x18], r14d
mov ebx, dword [r13 + rdi*4 + 0x57a20]
xor ebx, dword [r13 + rdx*4 + 0x58a20]
shr rcx, 0x18
xor ebx, dword [r13 + rcx*4 + 0x56cf0]
dec esi
movzx ecx, r10b
xor ebx, dword [r13 + rcx*4 + 0x57e20]
xor ebx, dword [rax + 0x14]
mov ecx, ebx
mov dword [rsp + 0x1c], ebx
shr ecx, 0x10
mov r12d, ebx
mov dword [rsp + 0xc], ecx
mov edi, ebx
mov ecx, r11d
shr r12d, 8
shr ecx, 0x10
movzx edx, cl
mov ecx, r8d
shr rcx, 0x18
shr r11, 0x18
shr edi, 0x18
mov ebp, dword [r13 + rdx*4 + 0x58a20]
xor ebp, dword [r13 + rcx*4 + 0x56cf0]
mov ecx, r10d
shr ecx, 8
movzx edx, cl
movzx ecx, r9b
shr r9d, 8
shr r10d, 0x10
xor ebp, dword [r13 + rdx*4 + 0x57a20]
xor ebp, dword [r13 + rcx*4 + 0x57e20]
xor ebp, dword [rax + 0x18]
mov ecx, ebp
mov dword [rsp + 0x20], ebp
shr ecx, 0x10
mov edx, ebp
mov dword [rsp + 8], ecx
mov r15d, ebp
movzx ecx, r9b
mov r9d, dword [r13 + r11*4 + 0x56cf0]
shr edx, 8
shr r15d, 0x18
xor r9d, dword [r13 + rcx*4 + 0x57a20]
movzx ecx, r10b
xor r9d, dword [r13 + rcx*4 + 0x58a20]
movzx ecx, r8b
xor r9d, dword [r13 + rcx*4 + 0x57e20]
xor r9d, dword [rax + 0x1c]
add rax, 0x20
mov ecx, r9d
mov dword [rsp + 0x24], r9d
mov r8d, r9d
shr ecx, 0x18
mov r13d, r9d
shr r8d, 0x10
shr r13d, 8
test esi, esi
jg 0x1400194b0
movzx r11d, byte [rsp + 8]
movzx r10d, byte [rsp + 0xc]
mov byte [rsp], r8b
movzx r8d, r12b
movzx r12d, dl
mov byte [rsp + 4], cl
movzx ecx, r11b
movzx edx, dil
lea rdi, [0x140000000]
mov esi, dword [rdi + rdx*4 + 0x56cf0]
xor esi, dword [rdi + rcx*4 + 0x58a20]
movzx ecx, r13b
lea r13, [0x140000000]
xor esi, dword [r13 + rcx*4 + 0x57a20]
movzx ecx, byte [rsp + 0x18]
xor esi, dword [r13 + rcx*4 + 0x57e20]
mov ecx, r14d
xor esi, dword [rax]
shr ecx, 8
movzx edx, cl
movzx ecx, r15b
mov edx, dword [r13 + rdx*4 + 0x57a20]
xor edx, dword [r13 + rcx*4 + 0x56cf0]
movzx ecx, byte [rsp]
xor edx, dword [r13 + rcx*4 + 0x58a20]
movzx ecx, bl
xor edx, dword [r13 + rcx*4 + 0x57e20]
mov ecx, r14d
xor edx, dword [rax + 4]
shr ecx, 0x10
mov ebx, edx
movzx edx, cl
movzx ecx, byte [rsp + 4]
mov r11d, dword [r13 + rdx*4 + 0x58a20]
xor r11d, dword [r13 + rcx*4 + 0x56cf0]
movzx ecx, r8b
mov edx, r14d
shr rdx, 0x18
xor r11d, dword [r13 + rcx*4 + 0x57a20]
movzx ecx, bpl
mov edx, dword [r13 + rdx*4 + 0x56cf0]
xor r11d, dword [r13 + rcx*4 + 0x57e20]
xor r11d, dword [rax + 8]
movzx ecx, r10b
xor edx, dword [r13 + rcx*4 + 0x58a20]
movzx ecx, r12b
xor edx, dword [r13 + rcx*4 + 0x57a20]
movzx ecx, r9b
xor edx, dword [r13 + rcx*4 + 0x57e20]
mov ecx, ebx
xor edx, dword [rax + 0xc]
shr rcx, 0x18
mov r9d, edx
movzx r10d, byte [rcx + r13 + 0x570f0]
mov ecx, r11d
shr ecx, 0x10
movzx edx, cl
shl r10d, 8
movzx ecx, byte [rdx + r13 + 0x570f0]
xor r10d, ecx
mov ecx, r9d
shr ecx, 8
movzx edx, cl
shl r10d, 8
movzx ecx, byte [rdx + r13 + 0x570f0]
xor r10d, ecx
movzx ecx, sil
shl r10d, 8
movzx ecx, byte [rcx + r13 + 0x570f0]
xor r10d, ecx
mov ecx, r11d
xor r10d, dword [rax + 0x10]
shr rcx, 0x18
movzx r8d, byte [rcx + r13 + 0x570f0]
mov ecx, r9d
shr ecx, 0x10
movzx edx, cl
shl r8d, 8
movzx ecx, byte [rdx + r13 + 0x570f0]
xor r8d, ecx
mov ecx, esi
shr ecx, 8
shl r8d, 8
movzx edx, cl
movzx ecx, byte [rdx + r13 + 0x570f0]
xor r8d, ecx
shl r8d, 8
movzx ecx, bl
movzx ecx, byte [rcx + r13 + 0x570f0]
xor r8d, ecx
mov ecx, r9d
xor r8d, dword [rax + 0x14]
shr rcx, 0x18
movzx edi, byte [rcx + r13 + 0x570f0]
mov ecx, esi
shr ecx, 0x10
movzx edx, cl
shl edi, 8
shr rsi, 0x18
movzx ecx, byte [rdx + r13 + 0x570f0]
xor edi, ecx
mov ecx, ebx
shr ecx, 8
movzx edx, cl
shl edi, 8
shr ebx, 0x10
movzx ecx, byte [rdx + r13 + 0x570f0]
movzx edx, byte [rsi + r13 + 0x570f0]
xor edi, ecx
shl edx, 8
shl edi, 8
movzx ecx, r11b
shr r11d, 8
movzx ecx, byte [rcx + r13 + 0x570f0]
xor edi, ecx
movzx ecx, bl
xor edi, dword [rax + 0x18]
movzx ecx, byte [rcx + r13 + 0x570f0]
xor edx, ecx
movzx ecx, r11b
shl edx, 8
movzx ecx, byte [rcx + r13 + 0x570f0]
xor edx, ecx
movzx ecx, r9b
shl edx, 8
movzx ecx, byte [rcx + r13 + 0x570f0]
xor edx, ecx
mov ecx, 0x20
xor edx, dword [rax + 0x1c]
mov rax, qword [rsp + 0x10]
mov dword [rax + 8], edi
lea rdi, [rsp + 0x18]
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 + 0x38]
xor rcx, rsp
call fcn.14001a2c0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov qword [rsp + 0x20], rbp
push rdi
push r12
push r15
sub rsp, 0x20
mov r12, r9
mov r15, r8
mov ebp, edx
mov rdi, rcx
cmp edx, 1
jbe 0x1400199f2
mov eax, 0xffffffdf
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r12
pop rdi
ret
mov qword [rsp + 0x40], rbx
mov ebx, dword [0x1400569c4]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], r14
test ebx, ebx
jne 0x140019a41
mov eax, 1
xor ecx, ecx
cpuid
mov dword [0x140056bd4], ebx
mov esi, ecx
mov ebx, 1
mov dword [0x140056bd0], eax
mov dword [0x1400569c4], ebx
mov dword [0x140056bd8], ecx
mov dword [0x140056bdc], edx
mov dword [0x1400569c8], ecx
jmp 0x140019a47
mov esi, dword [0x1400569c8]
bt esi, 0x19
jae 0x140019a62
mov rcx, rdi
shr rcx, 2
and ecx, 3
je 0x140019a62
mov eax, 4
sub eax, ecx
jmp 0x140019a64
xor eax, eax
mov rcx, qword [rdi + 8]
mov r14d, eax
cmp r14, rcx
je 0x140019a93
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 + r14*4]
call fcn.14001d5c0
mov qword [rdi + 8], r14
mov r14, qword [rsp + 0x50]
test ebx, ebx
jne 0x140019acf
mov eax, 1
mov dword [0x1400569c4], 1
xor ecx, ecx
cpuid
mov esi, ecx
mov dword [0x140056bd0], eax
mov dword [0x140056bd4], ebx
mov dword [0x140056bd8], ecx
mov dword [0x140056bdc], edx
mov dword [0x1400569c8], ecx
mov rbx, qword [rsp + 0x40]
bt esi, 0x19
mov rsi, qword [rsp + 0x48]
jae 0x140019b59
mov rax, qword [rdi + 8]
movups xmm0, xmmword [r15]
mov ecx, dword [rdi]
lea rax, [rdi + rax*4]
dec ecx
pxor xmm0, xmmword [rax + 0x10]
add rax, 0x20
test ebp, ebp
jne 0x140019b29
test ecx, ecx
je 0x140019b0e
aesdec xmm0, xmmword [rax]
add rax, 0x10
add ecx, 0xffffffff
jne 0x140019b00
aesdeclast xmm0, xmmword [rax]
movups xmmword [r12], xmm0
xor eax, eax
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r12
pop rdi
ret
test ecx, ecx
je 0x140019b3e
nop dword [rax]
aesenc xmm0, xmmword [rax]
add rax, 0x10
add ecx, 0xffffffff
jne 0x140019b30
aesenclast xmm0, xmmword [rax]
movups xmmword [r12], xmm0
xor eax, eax
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r12
pop rdi
ret
mov r8, r12
mov rdx, r15
mov rcx, rdi
cmp ebp, 1
jne 0x140019b7a
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r12
pop rdi
jmp fcn.140018e10
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r12
pop rdi
jmp 0x1400193f0