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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
mov r14, rdx
mov r15, rcx
xor ecx, ecx
lea eax, [r8 - 0x10]
test eax, 0xfffffff7
je 0x180011c59
cmp r8d, 0x20
jne 0x180011f06
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x44], 1
mov dword [rsp + 0x48], 2
mov dword [rsp + 0x4c], 4
mov dword [rsp + 0x50], 8
mov dword [rsp + 0x54], 0x10
mov dword [rsp + 0x58], 0x20
mov dword [rsp + 0x5c], 0x40
mov dword [rsp + 0x60], 0x80
mov dword [rsp + 0x64], 0x1b
mov dword [rsp + 0x68], 0x36
mov eax, r8d
cdq
and edx, 3
add eax, edx
sar eax, 2
movsxd rsi, eax
cmp r8d, 0x10
je 0x180011ceb
cmp r8d, 0x18
je 0x180011cde
cmp r8d, 0x20
jne 0x180011edd
lea ebp, [r8 + 0x1c]
mov r12d, 0xf0
jmp 0x180011cf6
mov ebp, 0x34
mov r12d, 0xd0
jmp 0x180011cf6
mov ebp, 0x2c
mov r12d, 0xb0
mov eax, ebp
lea rbx, [rax*4]
mov rcx, rbx
call fcn.180015cf8
mov rdi, rax
mov qword [rsp + 0x28], rax
lea r13, [rbx + rax]
mov qword [rsp + 0x38], r13
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.1800305d0
mov qword [rsp + 0x30], r13
test esi, esi
jle 0x180011d50
mov rcx, rdi
sub r14, rdi
mov rdx, rsi
nop dword [rax + rax]
mov eax, dword [r14 + rcx]
mov dword [rcx], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x180011d40
mov r9d, esi
cmp esi, ebp
jge 0x180011e34
mov r10, rdi
lea r14, str.cw
nop word [rax + rax]
mov ecx, dword [r10 + rsi*4 - 4]
mov eax, r9d
cdq
idiv esi
movsxd r11, eax
test edx, edx
jne 0x180011dce
ror ecx, 8
mov r8d, ecx
shr rcx, 0x10
movzx edx, cl
movzx ecx, byte [rdx + 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 + 0x40]
jmp 0x180011e1d
cmp esi, 6
jle 0x180011e1d
cmp edx, 4
jne 0x180011e1d
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 [r10]
mov dword [r10 + rsi*4], ecx
inc r9d
add r10, 4
cmp r9d, ebp
jl 0x180011d70
xor eax, eax
mov qword [r15], rax
mov qword [r15 + 8], rax
mov qword [r15 + 0x10], rax
mov rcx, r12
call fcn.180015cf8
mov rbx, rax
mov qword [r15], rax
lea rcx, [r12 + rax]
mov qword [r15 + 0x10], rcx
mov r8, r12
xor edx, edx
mov rcx, rax
call fcn.1800305d0
add rbx, r12
mov qword [r15 + 8], rbx
sub r13, rdi
sar r13, 2
lea r8, [r13*4]
mov rdx, rdi
mov rcx, qword [r15]
call fcn.18002ff30
nop
test rdi, rdi
je 0x180011ebc
lea rdx, [r13*4]
cmp rdx, 0x1000
jb 0x180011eb4
add rdx, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x180011f00
mov rdi, rcx
mov rcx, rdi
call fcn.180015d34
mov rax, r15
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rdx, str.Invalid_key_size
lea rcx, [rsp + 0x28]
call fcn.18000ca40
lea rdx, [0x1800618a0]
lea rcx, [rsp + 0x28]
call fcn.18001702c
int3
call fcn.18001cb14
int3
lea rdx, str.Invalid_key_size
lea rcx, [rsp + 0x28]
call fcn.18000ca40
lea rdx, [0x1800618a0]
lea rcx, [rsp + 0x28]
call fcn.18001702c
int3