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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x48], r8
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x20], rax
lea rcx, [r11 - 4]
neg rcx
sar rcx, 0x3f
and ecx, 4
lea rdx, [r11 - 8]
neg rdx
sar rdx, 0x3f
and edx, 8
lea rsi, [r11 - 0xc]
neg rsi
sar rsi, 0x3f
and esi, 0xc
shr rbx, 2
mov r10d, dword [r9]
bswap r10d
mov ecx, dword [r9 + rcx]
bswap ecx
mov edx, dword [r9 + rdx]
bswap edx
mov esi, dword [r9 + rsi]
bswap esi
nop
xor r10d, dword [rax]
xor ecx, dword [rax + 4]
xor edx, dword [rax + 8]
xor esi, dword [rax + 0xc]
add rbx, 0xfffffffffffffffe
xor r9d, r9d
xor r11d, r11d
xor r12d, r12d
xor r13d, r13d
mov r15d, 4
jmp 0x4f32d4
mov dword [rsp + 8], ecx
mov dword [rsp], edx
mov dword [rsp + 0xc], r10d
mov r9d, r10d
shr r10d, 0x18
movzx r10d, r10b
lea r11, [0x008b2180]
mov r10d, dword [r11 + r10*4]
xor r10d, dword [rax + r15*4]
mov r12d, esi
shr esi, 0x10
movzx esi, sil
lea r13, [0x008b2580]
xor r10d, dword [r13 + rsi*4]
mov esi, edx
shr edx, 8
movzx edx, dl
lea rdi, [0x008b2980]
xor r10d, dword [rdi + rdx*4]
movzx edx, cl
shr ecx, 0x18
movzx ecx, cl
mov ecx, dword [r11 + rcx*4]
xor ecx, dword [rax + r15*4 + 4]
shr r9d, 0x10
movzx r9d, r9b
xor ecx, dword [r13 + r9*4]
mov r9d, r12d
shr r12d, 8
movzx r12d, r12b
xor ecx, dword [rdi + r12*4]
movzx r12d, sil
shr esi, 0x18
movzx esi, sil
mov esi, dword [r11 + rsi*4]
xor esi, dword [rax + r15*4 + 8]
mov r8d, dword [rsp + 8]
shr r8d, 0x10
movzx r8d, r8b
xor esi, dword [r13 + r8*4]
mov r8d, dword [rsp + 0xc]
shr r8d, 8
movzx r8d, r8b
xor esi, dword [rdi + r8*4]
movzx r8d, r9b
shr r9d, 0x18
movzx r9d, r9b
mov r9d, dword [r11 + r9*4]
xor r9d, dword [rax + r15*4 + 0xc]
mov eax, dword [rsp]
shr eax, 0x10
movzx eax, al
xor r9d, dword [r13 + rax*4]
mov eax, dword [rsp + 8]
shr eax, 8
movzx eax, al
xor r9d, dword [rdi + rax*4]
mov eax, dword [rsp + 0xc]
movzx eax, al
dec rbx
lea rdi, [0x008b2d80]
xor r10d, dword [rdi + rdx*4]
xor ecx, dword [rdi + r12*4]
xor esi, dword [rdi + r8*4]
xor r9d, dword [rdi + rax*4]
add r15, 4
mov rax, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x38]
mov r8, qword [rsp + 0x48]
mov edx, esi
mov r11d, r9d
mov r12d, edx
mov r13d, ecx
mov esi, r11d
mov r9d, r10d
test rbx, rbx
jg 0x4f31aa
mov dword [rsp + 4], r13d
lea rcx, [r8 - 0xc]
neg rcx
sar rcx, 0x3f
and ecx, 0xc
mov edx, r9d
shr r9d, 0x18
lea rbx, [0x008ae000]
movzx esi, byte [rbx + r9]
shl esi, 0x18
mov r9d, r11d
shr r11d, 0x10
movzx r10d, r11b
movzx r10d, byte [r10 + rbx]
shl r10d, 0x10
or r10d, esi
mov esi, r12d
shr r12d, 8
movzx r11d, r12b
movzx r11d, byte [r11 + rbx]
shl r11d, 8
or r10d, r11d
movzx r11d, r13b
movzx r11d, byte [r11 + rbx]
or r11d, r10d
mov r10d, r13d
shr r13d, 0x18
movzx r12d, byte [rbx + r13]
shl r12d, 0x18
mov r13d, edx
shr edx, 0x10
movzx edx, dl
movzx edx, byte [rdx + rbx]
shl edx, 0x10
or edx, r12d
mov r12d, r9d
shr r9d, 8
movzx r9d, r9b
movzx r9d, byte [r9 + rbx]
shl r9d, 8
or edx, r9d
movzx r9d, sil
movzx r9d, byte [r9 + rbx]
or r9d, edx
mov edx, esi
shr esi, 0x18
movzx esi, byte [rbx + rsi]
shl esi, 0x18
shr r10d, 0x10
movzx r10d, r10b
movzx r10d, byte [r10 + rbx]
shl r10d, 0x10
or r10d, esi
mov esi, r13d
shr r13d, 8
movzx r13d, r13b
movzx r13d, byte [r13 + rbx]
shl r13d, 8
or r13d, r10d
movzx r10d, r12b
movzx r10d, byte [r10 + rbx]
or r10d, r13d
shr r12d, 0x18
movzx r12d, byte [r12 + rbx]
shl r12d, 0x18
shr edx, 0x10
movzx edx, dl
movzx edx, byte [rdx + rbx]
shl edx, 0x10
or r12d, edx
mov edx, dword [rsp + 4]
shr edx, 8
movzx edx, dl
movzx edx, byte [rdx + rbx]
shl edx, 8
or r12d, edx
movzx edx, sil
movzx edx, byte [rdx + rbx]
or edx, r12d
xor r11d, dword [rax + r15*4]
xor r9d, dword [rax + r15*4 + 4]
xor r10d, dword [rax + r15*4 + 8]
xor edx, dword [rax + r15*4 + 0xc]
lea rax, [r8 - 4]
neg rax
sar rax, 0x3f
and eax, 4
lea rbx, [r8 - 8]
neg rbx
sar rbx, 0x3f
and ebx, 8
bswap r11d
bswap r9d
bswap r10d
bswap edx
nop
mov dword [rdi], r11d
mov dword [rdi + rax], r9d
mov dword [rdi + rbx], r10d
mov dword [rdi + rcx], edx
add rsp, 0x10
pop rbp
ret