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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov edi, 9
mov rbx, rcx
mov qword [rsp + 0x98], rdx
mov r8, rdx
mov rdx, rcx
mov ecx, 0xa
call sym.AddRoundKey_unsigned_char__unsigned_char_____4__4___unsigned_char_const_
lea rax, [rbx + 4]
mov qword [rsp + 0x28], rax
lea rax, [rbx + 0x10]
mov qword [rsp + 0x30], rax
mov dl, byte [rbx + 9]
mov al, byte [rbx + 0xd]
mov rsi, rbx
mov byte [rbx + 0xd], dl
mov dl, byte [rbx + 5]
mov byte [rbx + 9], dl
mov dl, byte [rbx + 1]
mov byte [rbx + 1], al
mov al, byte [rbx + 2]
mov byte [rbx + 5], dl
mov dl, byte [rbx + 0xa]
mov byte [rbx + 0xa], al
mov al, byte [rbx + 6]
mov byte [rbx + 2], dl
mov dl, byte [rbx + 0xe]
mov byte [rbx + 0xe], al
mov al, byte [rbx + 3]
mov byte [rbx + 6], dl
mov dl, byte [rbx + 7]
mov byte [rbx + 3], dl
mov dl, byte [rbx + 0xb]
mov byte [rbx + 7], dl
mov dl, byte [rbx + 0xf]
mov byte [rbx + 0xf], al
mov byte [rbx + 0xb], dl
mov rdx, rbx
mov rax, rdx
xor ecx, ecx
movzx r8d, byte [rax]
lea r9, [0x1400eb080]
inc ecx
add rax, 4
mov r8b, byte [r9 + r8]
mov byte [rax - 4], r8b
cmp cl, 4
jne 0x140001862
inc rdx
cmp qword [rsp + 0x28], rdx
jne 0x14000185d
mov r8, qword [rsp + 0x98]
mov rdx, rbx
mov ecx, edi
call sym.AddRoundKey_unsigned_char__unsigned_char_____4__4___unsigned_char_const_
test edi, edi
je 0x1400019e9
movzx ecx, byte [rsi]
mov r14b, byte [rsi + 1]
mov r8b, byte [rsi + 2]
mov bpl, byte [rsi + 3]
mov r15d, ecx
call sym.xtime_unsigned_char_
movzx ecx, al
mov byte [rsp + 0x3a], al
call sym.xtime_unsigned_char_
movzx ecx, al
mov byte [rsp + 0x3b], al
call sym.xtime_unsigned_char_
movzx ecx, r14b
mov r11d, eax
call sym.xtime_unsigned_char_
movzx ecx, al
mov byte [rsp + 0x3c], al
call sym.xtime_unsigned_char_
movzx ecx, al
mov byte [rsp + 0x3d], al
call sym.xtime_unsigned_char_
movzx ecx, r8b
mov r10d, eax
call sym.xtime_unsigned_char_
movzx ecx, al
mov r13d, ecx
call sym.xtime_unsigned_char_
movzx ecx, al
mov r12d, ecx
call sym.xtime_unsigned_char_
movzx ecx, bpl
mov r9d, eax
call sym.xtime_unsigned_char_
movzx ecx, al
mov byte [rsp + 0x3e], al
call sym.xtime_unsigned_char_
movzx ecx, al
mov byte [rsp + 0x3f], cl
call sym.xtime_unsigned_char_
mov dl, byte [rsp + 0x3f]
mov ecx, eax
mov al, byte [rsp + 0x3a]
xor al, byte [rsp + 0x3b]
xor eax, r11d
xor eax, dword [rsp + 0x3c]
xor eax, r10d
xor eax, r12d
xor eax, r9d
xor eax, ecx
xor eax, r14d
xor eax, r8d
xor eax, ebp
mov byte [rsi], al
mov al, byte [rsp + 0x3c]
xor eax, r11d
xor al, byte [rsp + 0x3d]
xor eax, r10d
xor eax, r13d
xor eax, r9d
xor eax, edx
xor eax, ecx
xor eax, r15d
xor eax, r8d
xor eax, ebp
mov byte [rsi + 1], al
mov al, byte [rsp + 0x3b]
xor eax, r11d
add rsi, 4
xor eax, r10d
xor eax, r13d
xor eax, r12d
xor eax, r9d
xor al, byte [rsp + 0x3e]
xor eax, ecx
xor eax, r15d
xor eax, r14d
xor eax, ebp
mov byte [rsi - 2], al
mov al, byte [rsp + 0x3a]
xor eax, r11d
xor al, byte [rsp + 0x3d]
xor eax, r10d
xor eax, r9d
xor al, byte [rsp + 0x3e]
xor eax, edx
xor eax, ecx
xor eax, r15d
xor eax, r14d
xor eax, r8d
mov byte [rsi - 1], al
cmp qword [rsp + 0x30], rsi
jne 0x1400018a4
dec edi
jmp 0x14000180f
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret