Function at 0x140001ad0
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
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rbp - 8], rax
mov r12, rdx
mov r14, rcx
mov qword [rbp - 0x28], rcx
xor ecx, ecx
lea eax, [r8 - 0x10]
test eax, 0xfffffff7
je 0x140001b19
cmp r8d, 0x20
jne 0x140001de4
mov dword [rbp - 0x60], ecx
mov dword [rbp - 0x5c], 1
mov dword [rbp - 0x58], 2
mov dword [rbp - 0x54], 4
mov dword [rbp - 0x50], 8
mov dword [rbp - 0x4c], 0x10
mov dword [rbp - 0x48], 0x20
mov dword [rbp - 0x44], 0x40
mov dword [rbp - 0x40], 0x80
mov dword [rbp - 0x3c], 0x1b
mov dword [rbp - 0x38], 0x36
mov eax, r8d
cdq
and edx, 3
add eax, edx
sar eax, 2
movsxd rsi, eax
cmp r8d, 0x10
je 0x140001ba1
cmp r8d, 0x18
je 0x140001b93
cmp r8d, 0x20
jne 0x140001dca
lea r15d, [r8 + 0x1c]
mov r13d, 0xf0
jmp 0x140001bad
mov r15d, 0x34
mov r13d, 0xd0
jmp 0x140001bad
mov r15d, 0x2c
mov r13d, 0xb0
xorps xmm0, xmm0
mov eax, r15d
movdqu xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rcx
lea rdi, [rax*4]
mov rcx, rdi
call fcn.140002b60
mov qword [rbp - 0x20], rax
lea rbx, [rdi + rax]
mov qword [rbp - 0x10], rbx
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rbp - 0x18], rbx
test esi, esi
jle 0x140001c03
xor edx, edx
nop
mov ecx, dword [r12 + rdx*4]
mov rax, qword [rbp - 0x20]
mov dword [rax + rdx*4], ecx
inc rdx
cmp rdx, rsi
jl 0x140001bf0
mov r10d, esi
cmp esi, r15d
jge 0x140001d01
xor r9d, r9d
lea rbx, [rsi*4]
lea r12, str.cw
nop dword [rax]
nop word [rax + rax]
lea rcx, [rbx + r9]
mov r11, qword [rbp - 0x20]
mov ecx, dword [rcx + r11 - 4]
mov eax, r10d
cdq
idiv esi
movsxd rdi, eax
test edx, edx
jne 0x140001c97
ror ecx, 8
mov r8d, ecx
mov eax, ecx
shr rax, 0x10
movzx ecx, al
movzx ecx, byte [rcx + r12]
mov eax, r8d
shr rax, 0x18
movzx eax, byte [rax + r12]
shl eax, 8
or ecx, eax
shl ecx, 8
mov eax, r8d
shr rax, 8
movzx edx, al
movzx eax, byte [rdx + r12]
or ecx, eax
shl ecx, 8
movzx eax, r8b
movzx edx, byte [rax + r12]
or ecx, edx
xor ecx, dword [rbp + rdi*4 - 0x60]
jmp 0x140001ce6
cmp esi, 6
jle 0x140001ce6
cmp edx, 4
jne 0x140001ce6
mov r8, rcx
mov rax, rcx
shr rax, 0x10
movzx ecx, al
movzx ecx, byte [rcx + r12]
mov rax, r8
shr rax, 0x18
movzx eax, byte [rax + r12]
shl eax, 8
or ecx, eax
shl ecx, 8
mov rax, r8
shr rax, 8
movzx edx, al
movzx eax, byte [rdx + r12]
or ecx, eax
shl ecx, 8
movzx eax, r8b
movzx edx, byte [rax + r12]
or ecx, edx
xor ecx, dword [r9 + r11]
lea rax, [r9 + r11]
mov dword [rax + rbx], ecx
inc r10d
add r9, 4
cmp r10d, r15d
jl 0x140001c30
xorps xmm0, xmm0
xor eax, eax
movups xmmword [r14], xmm0
mov qword [r14], rax
mov qword [r14 + 8], rax
mov qword [r14 + 0x10], rax
mov rcx, r13
call fcn.140002b60
mov rbx, rax
mov qword [r14], rax
add rax, r13
mov qword [r14 + 0x10], rax
mov r8, r13
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
lea rax, [rbx + r13]
mov qword [r14 + 8], rax
mov r8, qword [rbp - 0x18]
mov rdx, qword [rbp - 0x20]
sub r8, rdx
sar r8, 2
lea r8, [r8*4]
mov rcx, qword [r14]
call sub.VCRUNTIME140.dll_memcpy
nop
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x140001da0
mov rdx, qword [rbp - 0x10]
sub rdx, rcx
and rdx, 0xfffffffffffffffc
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001d9b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001d9b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002ba4
mov rax, r14
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140002b40
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rcx, [rbp - 0x60]
call fcn.140001290
lea rdx, [0x140005420]
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rcx, [rbp - 0x60]
call fcn.140001290
lea rdx, [0x140005420]
lea rcx, [rbp - 0x60]
call sub.VCRUNTIME140.dll__CxxThrowException
int3