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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x90
mov rax, qword [0x14006f7c0]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r15, rdx
mov rbx, rcx
mov qword [rbp - 1], rcx
mov qword [rbp + 7], rcx
lea eax, [r8 - 0x10]
test eax, 0xfffffff7
je 0x14001fc03
cmp r8d, 0x20
jne 0x14001fe7c
and dword [rbp - 0x39], 0
mov dword [rbp - 0x35], 1
mov dword [rbp - 0x31], 2
mov dword [rbp - 0x2d], 4
mov dword [rbp - 0x29], 8
mov dword [rbp - 0x25], 0x10
mov dword [rbp - 0x21], 0x20
mov dword [rbp - 0x1d], 0x40
mov dword [rbp - 0x19], 0x80
mov dword [rbp - 0x15], 0x1b
mov dword [rbp - 0x11], 0x36
mov eax, r8d
cdq
and edx, 3
add eax, edx
sar eax, 2
movsxd rsi, eax
cmp r8d, 0x10
je 0x14001fc87
cmp r8d, 0x18
je 0x14001fc7c
cmp r8d, 0x20
jne 0x14001fe5b
lea edi, [r8 + 0x1c]
lea r14d, [r8 - 0x11]
jmp 0x14001fc90
mov edi, 0x34
lea r14d, [rdi - 0x27]
jmp 0x14001fc90
mov edi, 0x2c
lea r14d, [rdi - 0x21]
xor eax, eax
mov qword [rbp + 0x1f], rax
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xf], xmm1
and qword [rbp + 0x1f], rax
mov edx, edi
lea rcx, [rbp + 0xf]
call fcn.14001850c
nop
test esi, esi
jle 0x14001fcc7
xor edx, edx
mov ecx, dword [r15 + rdx*4]
mov rax, qword [rbp + 0xf]
mov dword [rax + rdx*4], ecx
inc rdx
cmp rdx, rsi
jl 0x14001fcb4
mov r10d, esi
cmp esi, edi
jge 0x14001fdb5
xor r9d, r9d
lea rbx, str.cw
mov r15, qword [rbp + 0xf]
lea rax, [r9 + r15]
mov r8d, dword [rax + rsi*4 - 4]
mov eax, r10d
cdq
idiv esi
movsxd r12, eax
test edx, edx
jne 0x14001fd45
ror r8d, 8
mov edx, r8d
mov eax, r8d
shr rax, 0x10
movzx ecx, al
movzx r8d, byte [rcx + rbx]
mov eax, edx
shr rax, 0x18
movzx eax, byte [rax + rbx]
shl eax, 8
or r8d, eax
shl r8d, 8
mov eax, edx
shr rax, 8
movzx ecx, al
movzx eax, byte [rcx + rbx]
or r8d, eax
shl r8d, 8
movzx eax, dl
movzx ecx, byte [rax + rbx]
or r8d, ecx
xor r8d, dword [rbp + r12*4 - 0x39]
jmp 0x14001fd95
cmp esi, 6
jle 0x14001fd95
cmp edx, 4
jne 0x14001fd95
mov rdx, r8
mov rax, r8
shr rax, 0x10
movzx ecx, al
movzx r8d, byte [rcx + rbx]
mov rax, rdx
shr rax, 0x18
movzx eax, byte [rax + rbx]
shl eax, 8
or r8d, eax
shl r8d, 8
mov rax, rdx
shr rax, 8
movzx ecx, al
movzx eax, byte [rcx + rbx]
or r8d, eax
shl r8d, 8
movzx eax, dl
movzx ecx, byte [rax + rbx]
or r8d, ecx
xor r8d, dword [r9 + r15]
lea rax, [r9 + rsi*4]
mov dword [rax + r15], r8d
inc r10d
add r9, 4
cmp r10d, edi
jl 0x14001fcdc
mov rbx, qword [rbp - 1]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
and qword [rbx], rax
and qword [rbx + 8], rax
and qword [rbx + 0x10], rax
mov rdx, r14
mov rcx, rbx
call fcn.1400185ac
mov r8, qword [rbp + 0x17]
mov rdx, qword [rbp + 0xf]
sub r8, rdx
and r8, 0xfffffffffffffffc
mov rcx, qword [rbx]
call sub.VCRUNTIME140.dll_memcpy
nop
mov rcx, qword [rbp + 0xf]
test rcx, rcx
je 0x14001fe30
mov rdx, qword [rbp + 0x1f]
sub rdx, rcx
and rdx, 0xfffffffffffffffc
mov rax, rcx
cmp rdx, 0x1000
jb 0x14001fe2b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14001fe2b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140052234
mov rax, rbx
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140052350
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
lea rdx, [0x14005d6d0]
lea rcx, [rbp - 0x39]
call fcn.140019300
lea rdx, [0x14006b798]
lea rcx, [rbp - 0x39]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, [0x14005d6d0]
lea rcx, [rbp - 0x39]
call fcn.140019300
lea rdx, [0x14006b798]
lea rcx, [rbp - 0x39]
call sub.VCRUNTIME140.dll__CxxThrowException
int3