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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x68], rdi
mov qword [rsp + 0x80], r9
nop word [rax + rax]
cmp r10, 0xf
jbe 0x4f141c
nop
nop
nop
nop
test rbx, rbx
jbe 0x4f1412
mov edx, dword [r9]
bswap edx
xor edx, dword [rax]
nop
cmp rbx, 1
jbe 0x4f1405
mov r8d, dword [r9 + 4]
bswap r8d
xor r8d, dword [rax + 4]
cmp rbx, 2
jbe 0x4f13f3
mov r10d, dword [r9 + 8]
bswap r10d
xor r10d, dword [rax + 8]
cmp rbx, 3
jbe 0x4f13e6
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x68], rdi
mov rcx, rbx
shr rbx, 2
mov r9d, dword [r9 + 0xc]
bswap r9d
xor r9d, dword [rax + 0xc]
add rbx, 0xfffffffffffffffe
mov qword [rsp + 0x30], rbx
xor r11d, r11d
xor r12d, r12d
xor r13d, r13d
xor r15d, r15d
xor r12d, r12d
mov dword [rsp + 0x18], r12d
mov r12d, 4
mov qword [rsp + 0x38], r12
xor r12d, r12d
nop dword [rax + rax]
jmp 0x4f10e2
shr r10d, 0x18
movzx ebx, r10b
mov ebx, dword [r15 + rbx*4]
xor ebx, dword [rax + r12*4 + 0xc]
shr edx, 0x10
movzx edx, dl
xor ebx, dword [rdi + rdx*4]
shr r13d, 8
movzx edx, r13b
xor ebx, dword [rsi + rdx*4]
mov edx, dword [rsp + 0x24]
movzx edx, dl
mov r8, qword [rsp + 0x28]
inc r8
xor ebx, dword [r11 + rdx*4]
lea rdx, [r12 + 4]
mov r10, qword [rsp + 0x30]
mov r12d, dword [rsp + 0x20]
mov r13d, dword [rsp + 0x10]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x68]
mov r11, r8
mov r10d, r9d
mov r8d, r12d
mov r12d, r13d
mov r13d, ebx
mov r15d, r10d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x38], rdx
mov rbx, qword [rsp + 0x30]
mov edx, r12d
mov r9d, r13d
cmp r11, rbx
jge 0x4f120e
mov r12, qword [rsp + 0x38]
cmp rcx, r12
jbe 0x4f13de
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x14], r9d
mov r13d, edx
shr edx, 0x18
movzx edx, dl
lea r15, [0x006cd8e0]
mov edx, dword [r15 + rdx*4]
xor edx, dword [rax + r12*4]
shr r9d, 0x10
movzx r9d, r9b
lea rdi, [0x006cdce0]
xor edx, dword [rdi + r9*4]
mov r9d, r10d
shr r10d, 8
movzx r10d, r10b
lea rsi, [0x006ce0e0]
xor edx, dword [rsi + r10*4]
movzx r10d, r8b
lea rbx, [r12 + 1]
lea r11, [0x006ce4e0]
xor edx, dword [r11 + r10*4]
nop dword [rax + rax]
cmp rcx, rbx
jbe 0x4f13d6
mov dword [rsp + 0x10], edx
mov ebx, r8d
shr r8d, 0x18
movzx r8d, r8b
mov r8d, dword [r15 + r8*4]
xor r8d, dword [rax + r12*4 + 4]
mov r10d, r13d
shr r13d, 0x10
movzx r13d, r13b
xor r8d, dword [rdi + r13*4]
mov r13d, dword [rsp + 0x14]
shr r13d, 8
movzx r13d, r13b
xor r8d, dword [rsi + r13*4]
movzx r13d, r9b
lea rdx, [r12 + 2]
xor r8d, dword [r11 + r13*4]
cmp rcx, rdx
jbe 0x4f13ce
mov dword [rsp + 0x20], r8d
mov dword [rsp + 0x24], r10d
mov edx, r9d
shr r9d, 0x18
movzx r9d, r9b
mov r9d, dword [r15 + r9*4]
xor r9d, dword [rax + r12*4 + 8]
mov r13d, ebx
shr ebx, 0x10
movzx ebx, bl
xor r9d, dword [rdi + rbx*4]
shr r10d, 8
movzx r10d, r10b
xor r9d, dword [rsi + r10*4]
mov r10d, dword [rsp + 0x14]
movzx r8d, r10b
lea rbx, [r12 + 3]
xor r9d, dword [r11 + r8*4]
cmp rcx, rbx
ja 0x4f1065
jmp 0x4f13c6
mov dword [rsp + 0x1c], r15d
mov edx, r12d
shr r12d, 0x18
lea rbx, [0x006cbd60]
movzx r8d, byte [rbx + r12]
shl r8d, 0x18
mov r9d, r13d
shr r13d, 0x10
movzx r10d, r13b
movzx r10d, byte [r10 + rbx]
shl r10d, 0x10
or r8d, r10d
mov r10d, r15d
shr r15d, 8
movzx r11d, r15b
movzx r11d, byte [r11 + rbx]
shl r11d, 8
or r8d, r11d
mov r11d, dword [rsp + 0x18]
movzx r12d, r11b
movzx r12d, byte [r12 + rbx]
mov r13d, r11d
shr r11d, 0x18
movzx r11d, byte [rbx + r11]
shl r11d, 0x18
mov r15d, edx
shr edx, 0x10
movzx edx, dl
movzx edx, byte [rdx + rbx]
shl edx, 0x10
or r11d, edx
mov edx, r9d
shr r9d, 8
movzx r9d, r9b
movzx r9d, byte [r9 + rbx]
shl r9d, 8
or r11d, r9d
movzx r9d, r10b
movzx r9d, byte [r9 + rbx]
shr r10d, 0x18
movzx r10d, byte [rbx + r10]
shl r10d, 0x18
shr r13d, 0x10
movzx r13d, r13b
movzx r13d, byte [r13 + rbx]
shl r13d, 0x10
or r10d, r13d
mov r13d, r15d
shr r15d, 8
movzx r15d, r15b
movzx r15d, byte [r15 + rbx]
shl r15d, 8
or r10d, r15d
movzx r15d, dl
movzx r15d, byte [r15 + rbx]
shr edx, 0x18
movzx edx, byte [rbx + rdx]
shl edx, 0x18
mov edi, dword [rsp + 0x1c]
shr edi, 0x10
movzx edi, dil
movzx edi, byte [rdi + rbx]
shl edi, 0x10
or edx, edi
mov edi, dword [rsp + 0x18]
shr edi, 8
movzx edi, dil
movzx edi, byte [rdi + rbx]
shl edi, 8
or edi, edx
movzx edx, r13b
movzx edx, byte [rdx + rbx]
or r12d, r8d
or r9d, r11d
or r15d, r10d
or edx, edi
mov rbx, qword [rsp + 0x38]
cmp rcx, rbx
jbe 0x4f13be
lea rdi, [rbx + 1]
xor r12d, dword [rax + rbx*4]
cmp rcx, rdi
jbe 0x4f13b6
lea rdi, [rbx + 2]
xor r9d, dword [rax + rbx*4 + 4]
cmp rcx, rdi
jbe 0x4f13ae
lea rdi, [rbx + 3]
xor r15d, dword [rax + rbx*4 + 8]
cmp rcx, rdi
jbe 0x4f13a6
xor edx, dword [rax + rbx*4 + 0xc]
cmp rsi, 0xf
jbe 0x4f1399
bswap r12d
bswap r9d
bswap r15d
bswap edx
nop
mov rax, qword [rsp + 0x68]
mov dword [rax], r12d
nop
mov dword [rax + 4], r9d
nop
mov dword [rax + 8], r15d
nop
mov dword [rax + 0xc], edx
add rsp, 0x40
pop rbp
ret
mov eax, 0xf
mov rcx, rsi
call fcn.00464ca0
mov rax, rdi
call fcn.00464ca0
mov rax, rdi
call fcn.00464ca0
mov rax, rdi
call fcn.00464ca0
mov rax, rbx
call fcn.00464ca0
mov rax, rbx
call fcn.00464ca0
mov rax, rdx
call fcn.00464ca0
mov rax, rbx
call fcn.00464ca0
mov rax, r12
call fcn.00464ca0
mov eax, 3
mov rcx, rax
call fcn.00464ca0
mov eax, 2
mov rcx, rax
nop dword [rax + rax]
call fcn.00464ca0
mov eax, 1
mov rcx, rax
call fcn.00464ca0
xor eax, eax
mov rcx, rax
call fcn.00464ca0
mov eax, 0xf
mov rcx, r10
call fcn.00464ca0
nop
int3