Function at 0x180011930
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 [0x1800620a0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov r14, rdx
mov r15, rcx
mov qword [rsp + 0x40], rcx
xor ecx, ecx
lea eax, [r8 - 0x10]
test eax, 0xfffffff7
je 0x180011978
cmp r8d, 0x20
jne 0x180011c31
mov dword [rsp + 0x48], ecx
mov dword [rsp + 0x4c], 1
mov dword [rsp + 0x50], 2
mov dword [rsp + 0x54], 4
mov dword [rsp + 0x58], 8
mov dword [rsp + 0x5c], 0x10
mov dword [rsp + 0x60], 0x20
mov dword [rsp + 0x64], 0x40
mov dword [rsp + 0x68], 0x80
mov dword [rsp + 0x6c], 0x1b
mov dword [rsp + 0x70], 0x36
mov eax, r8d
cdq
and edx, 3
add eax, edx
sar eax, 2
movsxd rsi, eax
cmp r8d, 0x10
je 0x180011a0a
cmp r8d, 0x18
je 0x1800119fd
cmp r8d, 0x20
jne 0x180011c08
lea ebp, [r8 + 0x1c]
mov r12d, 0xf0
jmp 0x180011a15
mov ebp, 0x34
mov r12d, 0xd0
jmp 0x180011a15
mov ebp, 0x2c
mov r12d, 0xb0
mov eax, ebp
lea rbx, [rax*4]
mov rcx, rbx
call fcn.180015c14
mov rdi, rax
mov qword [rsp + 0x20], rax
lea r13, [rbx + rax]
mov qword [rsp + 0x30], r13
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.180018440
mov qword [rsp + 0x28], r13
test esi, esi
jle 0x180011a70
mov rcx, rdi
sub r14, rdi
mov rdx, rsi
nop word [rax + rax]
mov eax, dword [r14 + rcx]
mov dword [rcx], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x180011a60
mov r10d, esi
cmp esi, ebp
jge 0x180011b56
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 0x180011af0
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 + 0x48]
jmp 0x180011b3f
cmp esi, 6
jle 0x180011b3f
cmp edx, 4
jne 0x180011b3f
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 0x180011a90
xor eax, eax
mov qword [r15], rax
mov qword [r15 + 8], rax
mov qword [r15 + 0x10], rax
mov rcx, r12
call fcn.180015c14
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 fcn.180018440
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.180017da0
nop
test rdi, rdi
je 0x180011bdd
lea rdx, [r13*4]
cmp rdx, 0x1000
jb 0x180011bd5
add rdx, 0x27
mov rcx, qword [rdi - 8]
sub rdi, rcx
lea rax, [rdi - 8]
cmp rax, 0x1f
ja 0x180011c2b
mov rdi, rcx
mov rcx, rdi
call fcn.180015c50
mov rax, r15
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180016210
mov rbx, qword [rsp + 0xc8]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.Invalid_key_size
lea rcx, [rsp + 0x20]
call fcn.18000c5c0
lea rdx, [0x1800603c0]
lea rcx, [rsp + 0x20]
call fcn.180016f5c
int3
call fcn.18001c58c
int3
lea rdx, str.Invalid_key_size
lea rcx, [rsp + 0x20]
call fcn.18000c5c0
lea rdx, [0x1800603c0]
lea rcx, [rsp + 0x20]
call fcn.180016f5c
int3