Function at 0x64ad50
Capabilities:
Encrypt data using aes

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
lea r10, [0x008fc980]
lea rsi, [0x008fd180]
lea r11, [0x008fcd80]
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]
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 edx, edi
mov dword [rsp], edi
lea rdi, [0x008fd580]
sar edx, 1
sub edx, 1
mov dword [rsp + 0x2c], edx
add rdx, 1
shl rdx, 5
add rdx, qword [rsp + 0x90]
mov qword [rsp + 0x20], rdx
jmp 0x64aed2
mov edx, dword [rsp + 0x28]
mov eax, dword [rdi + r12*4]
mov ebx, ebx
xor eax, dword [r10 + r13*4]
xor eax, r14d
xor eax, dword [rsi + rbp*4]
xor eax, dword [r11 + rdx*4]
mov edx, dword [rsp + 4]
mov ebp, dword [rdi + rdx*4]
mov edx, dword [rsp + 8]
xor ebp, dword [r10 + r8*4]
xor ebp, dword [r9 + 4]
xor ebp, dword [rsi + rdx*4]
mov edx, dword [rsp + 0xc]
xor ebp, dword [r11 + rdx*4]
mov edx, dword [rsp + 0x10]
mov r12d, dword [rdi + rdx*4]
mov edx, dword [rsp + 0x18]
xor r12d, dword [r10 + r15*4]
mov r15d, dword [rsp + 0x14]
xor r12d, dword [r9 + 8]
xor r12d, dword [rsi + r15*4]
xor r12d, dword [r11 + rdx*4]
mov edx, dword [rsp + 0x1c]
mov r8d, dword [rdi + rdx*4]
mov edx, dword [rsp]
xor r8d, dword [r10 + rcx*4]
xor r8d, dword [r9 + 0xc]
xor r8d, dword [rsi + rdx*4]
xor r8d, dword [r11 + rbx*4]
mov edx, eax
movzx ecx, r8b
mov ebx, r12d
movzx r13d, al
shr edx, 0x18
add r9, 0x20
mov edx, dword [rdi + rdx*4]
xor edx, dword [r10 + rcx*4]
mov ecx, ebp
shr ecx, 0x10
xor edx, dword [r9 - 0x10]
movzx ecx, cl
xor edx, dword [rsi + rcx*4]
movzx ecx, bh
xor edx, dword [r11 + rcx*4]
mov ecx, ebp
shr ecx, 0x18
mov r14d, edx
movzx edx, ah
shr eax, 0x10
mov ebx, dword [rdi + rcx*4]
mov ecx, r12d
xor ebx, dword [r10 + r13*4]
movzx r13d, bpl
shr ecx, 0x10
xor ebx, dword [r9 - 0xc]
movzx eax, al
mov dword [rsp], r14d
movzx ecx, cl
xor ebx, dword [rsi + rcx*4]
mov ecx, r8d
movzx ecx, ch
xor ebx, dword [r11 + rcx*4]
mov ecx, r12d
movzx r12d, r12b
shr ecx, 0x18
mov r15d, ebx
mov ecx, dword [rdi + rcx*4]
xor ecx, dword [r10 + r13*4]
mov r13d, r8d
shr r15d, 0x18
shr r13d, 0x10
xor ecx, dword [r9 - 8]
shr r8d, 0x18
mov dword [rsp + 4], r15d
movzx r13d, r13b
mov r8d, dword [rdi + r8*4]
xor r8d, dword [r10 + r12*4]
xor ecx, dword [rsi + r13*4]
xor ecx, dword [r11 + rdx*4]
mov edx, ebp
xor r8d, dword [r9 - 4]
movzx ebp, dh
xor r8d, dword [rsi + rax*4]
mov edx, r14d
mov r15d, ecx
shr edx, 0x18
mov eax, r8d
xor eax, dword [r11 + rbp*4]
shr r15d, 0x18
mov r12d, edx
movzx edx, ch
mov r8d, ecx
mov dword [rsp + 0x10], r15d
mov r15d, eax
shr r8d, 0x10
movzx r13d, al
shr r15d, 0x10
mov dword [rsp + 0x28], edx
movzx edx, ah
movzx r8d, r8b
mov dword [rsp + 0xc], edx
movzx edx, r15b
shr eax, 0x18
mov r14d, dword [r9]
mov dword [rsp + 0x14], edx
mov edx, dword [rsp]
mov ebp, ebx
movzx r15d, bl
mov dword [rsp + 8], r8d
movzx r8d, byte [rsp]
shr ebp, 0x10
movzx ebx, bh
movzx edx, dh
mov dword [rsp + 0x1c], eax
movzx ebp, bpl
movzx ecx, cl
mov dword [rsp + 0x18], edx
mov edx, dword [rsp]
shr edx, 0x10
movzx eax, dl
mov dword [rsp], eax
cmp r9, qword [rsp + 0x20]
jne 0x64ae60
mov edx, dword [rsp + 0x2c]
mov eax, r14d
mov r14d, dword [rsp + 0x28]
mov ebx, ebx
mov dword [rsp + 0x28], r8d
movzx r8d, byte [rsi + r13*4]
add rdx, 1
shl rdx, 5
add rdx, qword [rsp + 0x90]
mov r9, rdx
mov edx, dword [rdi + r14*4]
and edx, 0xff00
or edx, r8d
xor edx, eax
mov eax, dword [r11 + r12*4]
mov r8d, edx
mov edx, dword [r10 + rbp*4]
and eax, 0xff000000
and edx, 0xff0000
or eax, edx
mov rdx, qword [rsp + 0x88]
xor eax, r8d
mov r8d, dword [rsp + 8]
bswap eax
mov dword [rdx], eax
mov eax, dword [rsp + 0xc]
mov edx, dword [rsp + 0x28]
mov r8d, dword [r10 + r8*4]
mov eax, dword [rdi + rax*4]
movzx edx, byte [rsi + rdx*4]
and r8d, 0xff0000
and eax, 0xff00
or eax, edx
mov edx, dword [rsp + 4]
xor eax, dword [r9 + 4]
mov edx, dword [r11 + rdx*4]
and edx, 0xff000000
or edx, r8d
xor edx, eax
mov rax, qword [rsp + 0x88]
bswap edx
mov dword [rax + 4], edx
mov eax, dword [rsp + 0x18]
movzx edx, byte [rsi + r15*4]
mov r15d, dword [rsp + 0x14]
mov eax, dword [rdi + rax*4]
mov r8d, dword [r10 + r15*4]
and eax, 0xff00
or eax, edx
xor eax, dword [r9 + 8]
and r8d, 0xff0000
mov edx, eax
mov eax, dword [rsp + 0x10]
mov eax, dword [r11 + rax*4]
and eax, 0xff000000
or eax, r8d
xor eax, edx
mov rdx, qword [rsp + 0x88]
bswap eax
mov dword [rdx + 8], eax
mov eax, dword [rdi + rbx*4]
movzx edx, byte [rsi + rcx*4]
mov r8d, dword [rsp + 0x1c]
and eax, 0xff00
mov rsi, qword [rsp + 0x88]
or eax, edx
mov edx, dword [r11 + r8*4]
xor eax, dword [r9 + 0xc]
mov ecx, edx
mov edx, dword [rsp]
and ecx, 0xff000000
mov edx, dword [r10 + rdx*4]
and edx, 0xff0000
or edx, ecx
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