Function at 0x64b160
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, 0x38
lea rsi, [0x008fb980]
lea r11, [0x008fc180]
lea r10, [0x008fbd80]
movzx eax, byte [rcx]
movzx ebp, byte [rcx + 4]
movzx r12d, byte [rcx + 8]
shl eax, 0x18
shl ebp, 0x18
shl r12d, 0x18
mov qword [rsp + 0x88], rdx
movzx edx, byte [rcx + 1]
mov rdi, r8
mov qword [rsp + 0x90], r8
mov r9, qword [rsp + 0x90]
shl edx, 0x10
xor eax, edx
movzx edx, byte [rcx + 3]
xor eax, edx
movzx edx, byte [rcx + 2]
shl edx, 8
xor eax, edx
movzx edx, byte [rcx + 5]
xor eax, dword [r8]
mov r14d, eax
shl edx, 0x10
xor ebp, edx
movzx edx, byte [rcx + 7]
xor ebp, edx
movzx edx, byte [rcx + 6]
shl edx, 8
xor ebp, edx
movzx edx, byte [rcx + 9]
xor ebp, dword [r8 + 4]
shl edx, 0x10
xor r12d, edx
movzx edx, byte [rcx + 0xb]
xor r12d, edx
movzx edx, byte [rcx + 0xa]
shl edx, 8
xor r12d, edx
movzx edx, byte [rcx + 0xd]
xor r12d, dword [r8 + 8]
movzx r8d, byte [rcx + 0xc]
shl edx, 0x10
shl r8d, 0x18
xor r8d, edx
movzx edx, byte [rcx + 0xf]
xor r8d, edx
movzx edx, byte [rcx + 0xe]
shl edx, 8
xor r8d, edx
xor r8d, dword [rdi + 0xc]
mov edi, dword [rdi + 0xf0]
mov ecx, edi
mov dword [rsp + 4], edi
lea rdi, [0x008fc580]
sar ecx, 1
lea edx, [rcx - 1]
mov ecx, r8d
mov dword [rsp + 0x2c], edx
add rdx, 1
shl rdx, 5
add rdx, qword [rsp + 0x90]
mov qword [rsp + 0x20], rdx
jmp 0x64b2e6
mov eax, dword [rdi + r15*4]
xor eax, dword [rsi + r14*4]
mov r14d, dword [r11 + rbp*4]
xor eax, r8d
mov r8d, dword [rsi + r12*4]
mov r12d, dword [r9 + 8]
mov ecx, dword [rdi + rcx*4]
xor r14d, eax
mov eax, dword [rsp + 8]
xor ecx, dword [rsi + rdx*4]
xor ecx, dword [r9 + 0xc]
xor r14d, dword [r10 + rax*4]
mov eax, dword [rsp + 0xc]
mov ebp, dword [rdi + rax*4]
mov eax, dword [rsp + 0x10]
xor ebp, dword [rsi + r13*4]
xor ebp, dword [r9 + 4]
xor ebp, dword [r11 + rax*4]
mov eax, dword [rsp + 0x14]
xor ebp, dword [r10 + rax*4]
mov eax, dword [rsp + 0x18]
mov eax, dword [rdi + rax*4]
xor r8d, eax
mov eax, dword [rsp + 0x1c]
xor r12d, r8d
xor r12d, dword [r11 + rax*4]
mov eax, dword [rsp + 0x28]
xor r12d, dword [r10 + rax*4]
mov eax, ebx
xor ecx, dword [r11 + rax*4]
mov eax, dword [rsp + 4]
xor ecx, dword [r10 + rax*4]
mov eax, r14d
movzx r8d, bpl
movzx ebx, ch
movzx r13d, cl
shr eax, 0x18
add r9, 0x20
mov edx, dword [rdi + rax*4]
mov eax, ecx
xor edx, dword [rsi + r8*4]
movzx r8d, r12b
shr eax, 0x10
xor edx, dword [r9 - 0x10]
shr ecx, 0x18
movzx eax, al
mov ecx, dword [rdi + rcx*4]
xor edx, dword [r11 + rax*4]
mov eax, r12d
movzx eax, ah
xor edx, dword [r10 + rax*4]
mov eax, ebp
shr eax, 0x18
mov r15d, edx
mov eax, dword [rdi + rax*4]
xor eax, dword [rsi + r8*4]
mov r8d, r14d
shr r15d, 0x18
shr r8d, 0x10
xor eax, dword [r9 - 0xc]
movzx r8d, r8b
xor eax, dword [r11 + r8*4]
mov r8d, r12d
xor eax, dword [r10 + rbx*4]
shr r12d, 0x10
shr r8d, 0x18
mov dword [rsp + 4], eax
mov eax, r14d
movzx r12d, r12b
mov ebx, dword [rdi + r8*4]
mov r8d, ebp
movzx eax, ah
xor ebx, dword [rsi + r13*4]
shr r8d, 0x10
xor ebx, dword [r9 - 8]
movzx r14d, r14b
movzx r8d, r8b
xor ecx, dword [rsi + r14*4]
xor ecx, dword [r9 - 4]
xor ebx, dword [r11 + r8*4]
xor ebx, dword [r10 + rax*4]
mov eax, ebp
xor ecx, dword [r11 + r12*4]
movzx ebp, ah
mov r12d, edx
movzx eax, bh
shr r12d, 0x10
xor ecx, dword [r10 + rbp*4]
mov r8d, dword [r9]
mov dword [rsp + 8], eax
mov eax, dword [rsp + 4]
movzx r13d, r12b
mov r12d, ebx
mov ebp, ecx
shr r12d, 0x18
mov dword [rsp + 0x10], r13d
shr ebp, 0x10
movzx r13d, bl
movzx r14d, al
shr eax, 0x18
mov dword [rsp + 0x18], r12d
movzx ebp, bpl
mov dword [rsp + 0xc], eax
mov r12d, dword [rsp + 4]
movzx eax, ch
mov dword [rsp + 0x14], eax
movzx eax, dh
movzx edx, dl
mov dword [rsp + 0x28], eax
shr r12d, 0x10
mov eax, dword [rsp + 4]
movzx r12d, r12b
mov dword [rsp + 0x1c], r12d
movzx eax, ah
movzx r12d, cl
shr ecx, 0x18
shr ebx, 0x10
mov dword [rsp + 4], eax
movzx ebx, bl
cmp r9, qword [rsp + 0x20]
jne 0x64b270
mov eax, r8d
mov r8d, ecx
mov ecx, dword [rsp + 0x2c]
lea r9, [0x008fb880]
movzx r10d, byte [r9 + r14]
mov rsi, qword [rsp + 0x88]
mov edi, ebx
add rcx, 1
mov ebx, dword [rsp + 4]
shl rcx, 5
add rcx, qword [rsp + 0x90]
xor eax, r10d
mov r11, rcx
movzx ecx, byte [r9 + r15]
shl ecx, 0x18
xor eax, ecx
movzx ecx, byte [r9 + rbp]
shl ecx, 0x10
xor eax, ecx
mov ecx, dword [rsp + 8]
movzx ecx, byte [r9 + rcx]
shl ecx, 8
xor eax, ecx
mov ecx, dword [rsp + 0xc]
bswap eax
mov dword [rsi], eax
movzx eax, byte [r9 + r13]
movzx ecx, byte [r9 + rcx]
xor eax, dword [r11 + 4]
shl ecx, 0x18
xor ecx, eax
mov eax, dword [rsp + 0x10]
movzx eax, byte [r9 + rax]
shl eax, 0x10
xor ecx, eax
mov eax, dword [rsp + 0x14]
movzx eax, byte [r9 + rax]
shl eax, 8
xor eax, ecx
movzx ecx, byte [r9 + r12]
mov r12d, dword [rsp + 0x1c]
bswap eax
mov dword [rsi + 4], eax
mov eax, dword [rsp + 0x18]
xor ecx, dword [r11 + 8]
movzx eax, byte [r9 + rax]
shl eax, 0x18
xor eax, ecx
movzx ecx, byte [r9 + r12]
shl ecx, 0x10
xor ecx, eax
mov eax, dword [rsp + 0x28]
movzx eax, byte [r9 + rax]
shl eax, 8
xor eax, ecx
mov ecx, edi
bswap eax
mov dword [rsi + 8], eax
movzx eax, byte [r9 + rdx]
xor eax, dword [r11 + 0xc]
mov edx, eax
mov eax, r8d
movzx eax, byte [r9 + rax]
shl eax, 0x18
xor eax, edx
movzx edx, byte [r9 + rcx]
shl edx, 0x10
xor eax, edx
movzx edx, byte [r9 + rbx]
shl edx, 8
xor eax, edx
bswap eax
mov dword [rsi + 0xc], eax
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret