Function at 0x140001c10
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r14, rdx
mov r15, rcx
mov qword [rsp + 0x58], rcx
xor ecx, ecx
lea eax, [r8 - 0x10]
test eax, 0xfffffff7
je 0x140001c58
cmp r8d, 0x20
jne 0x140001f13
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x24], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x2c], 4
mov dword [rsp + 0x30], 8
mov dword [rsp + 0x34], 0x10
mov dword [rsp + 0x38], 0x20
mov dword [rsp + 0x3c], 0x40
mov dword [rsp + 0x40], 0x80
mov dword [rsp + 0x44], 0x1b
mov dword [rsp + 0x48], 0x36
mov eax, r8d
cdq
and edx, 3
add eax, edx
sar eax, 2
movsxd rsi, eax
cmp r8d, 0x10
je 0x140001cea
cmp r8d, 0x18
je 0x140001cdd
cmp r8d, 0x20
jne 0x140001ef7
lea ebp, [r8 + 0x1c]
mov r12d, 0xf0
jmp 0x140001cf5
mov ebp, 0x34
mov r12d, 0xd0
jmp 0x140001cf5
mov ebp, 0x2c
mov r12d, 0xb0
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov eax, ebp
lea rbx, [rax*4]
mov rcx, rbx
call fcn.140002b10
mov rdi, rax
mov qword [rsp + 0x60], rax
lea r13, [rbx + rax]
mov qword [rsp + 0x70], r13
mov r8, rbx
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x68], r13
test esi, esi
jle 0x140001d50
mov rcx, rdi
sub r14, rdi
mov rdx, rsi
nop
mov eax, dword [r14 + rcx]
mov dword [rcx], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x140001d40
mov r10d, esi
cmp esi, ebp
jge 0x140001e36
mov r9, rdi
lea r14, str.cw
nop word [rax + rax]
mov ecx, dword [r9 + rsi*4 - 4]
mov eax, r10d
cdq
idiv esi
movsxd r11, eax
test edx, edx
jne 0x140001dd0
ror ecx, 8
mov r8d, ecx
mov eax, ecx
shr rax, 0x10
movzx ecx, al
movzx ecx, byte [rcx + r14]
mov eax, r8d
shr rax, 0x18
movzx eax, byte [rax + r14]
shl eax, 8
or ecx, eax
shl ecx, 8
mov eax, r8d
shr rax, 8
movzx edx, al
movzx eax, byte [rdx + r14]
or ecx, eax
shl ecx, 8
movzx eax, r8b
movzx edx, byte [rax + r14]
or ecx, edx
xor ecx, dword [rsp + r11*4 + 0x20]
jmp 0x140001e1f
cmp esi, 6
jle 0x140001e1f
cmp edx, 4
jne 0x140001e1f
mov r8, rcx
mov rax, rcx
shr rax, 0x10
movzx ecx, al
movzx ecx, byte [rcx + r14]
mov rax, r8
shr rax, 0x18
movzx eax, byte [rax + r14]
shl eax, 8
or ecx, eax
shl ecx, 8
mov rax, r8
shr rax, 8
movzx edx, al
movzx eax, byte [rdx + r14]
or ecx, eax
shl ecx, 8
movzx eax, r8b
movzx edx, byte [rax + r14]
or ecx, edx
xor ecx, dword [r9]
mov dword [r9 + rsi*4], ecx
inc r10d
add r9, 4
cmp r10d, ebp
jl 0x140001d70
xorps xmm0, xmm0
xor eax, eax
movups xmmword [r15], xmm0
mov qword [r15], rax
mov qword [r15 + 8], rax
mov qword [r15 + 0x10], rax
mov rcx, r12
call fcn.140002b10
mov rbx, rax
mov qword [r15], rax
add rax, r12
mov qword [r15 + 0x10], rax
mov r8, r12
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
lea rax, [r12 + rbx]
mov qword [r15 + 8], rax
sub r13, rdi
sar r13, 2
lea r8, [r13*4]
mov rdx, rdi
mov rcx, qword [r15]
call sub.VCRUNTIME140.dll_memcpy
nop
test rdi, rdi
je 0x140001ec5
lea rdx, [r13*4]
cmp rdx, 0x1000
jb 0x140001ebd
add rdx, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x140001ef0
mov rdi, rcx
mov rcx, rdi
call fcn.140002b4c
mov rax, r15
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140002af0
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
lea rcx, [rsp + 0x60]
call fcn.140001290
lea rdx, [0x140005400]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rsp + 0x60]
call fcn.140001290
lea rdx, [0x140005400]
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
int3