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

Disassembly:
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x88], r9
cmp r10, 0xf
jbe 0x52efb6
nop
nop
nop
nop
mov edx, dword [r9]
mov r8d, dword [r9 + 4]
mov r10d, dword [r9 + 8]
mov r9d, dword [r9 + 0xc]
nop dword [rax]
test rbx, rbx
jbe 0x52efac
bswap edx
xor edx, dword [rax]
cmp rbx, 1
jbe 0x52ef9f
bswap r8d
xor r8d, dword [rax + 4]
nop
cmp rbx, 2
jbe 0x52ef92
bswap r10d
xor r10d, dword [rax + 8]
cmp rbx, 3
jbe 0x52ef85
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x70], rdi
bswap r9d
xor r9d, dword [rax + 0xc]
mov rcx, rbx
shr rbx, 2
add rbx, 0xfffffffffffffffe
mov qword [rsp + 0x38], rbx
xor r11d, r11d
xor r12d, r12d
xor r13d, r13d
xor r15d, r15d
xor r12d, r12d
mov dword [rsp + 0x14], r12d
mov r12d, 4
mov qword [rsp + 0x40], r12
xor r12d, r12d
nop
jmp 0x52ec69
mov rbx, qword [rsp + 0x30]
lea r11, [rbx + 1]
shr r8d, 0x18
movzx ebx, r8b
mov ebx, dword [r15 + rbx*4]
xor ebx, dword [rax + r12*4 + 0xc]
mov edi, dword [rsp + 0x28]
shr edi, 8
movzx r8d, r13b
mov r13d, dword [rsp + 0x1c]
shr r13d, 0x10
movzx edi, dil
movzx r13d, r13b
xor ebx, dword [rsi + r13*4]
xor ebx, dword [r9 + rdi*4]
xor ebx, dword [r10 + r8*4]
lea rdi, [r12 + 4]
mov r8, qword [rsp + 0x38]
mov r12d, dword [rsp + 0x20]
mov r13d, dword [rsp + 0x24]
mov rsi, qword [rsp + 0x78]
mov r10d, edx
mov r9d, ebx
mov edx, r13d
mov r8d, r12d
mov r12d, r10d
mov r13d, r9d
mov r15d, edx
mov dword [rsp + 0x14], r8d
mov qword [rsp + 0x40], rdi
mov rbx, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x70]
cmp r11, rbx
jge 0x52ed9f
mov r12, qword [rsp + 0x40]
nop word [rax + rax]
cmp rcx, r12
jbe 0x52ef7d
mov dword [rsp + 0x1c], r10d
mov dword [rsp + 0x18], r9d
mov r13d, edx
shr edx, 0x18
movzx edx, dl
lea r15, [0x00609a60]
mov edx, dword [r15 + rdx*4]
xor edx, dword [rax + r12*4]
shr r10d, 8
movzx edi, r8b
shr r9d, 0x10
movzx r10d, r10b
movzx r9d, r9b
lea rsi, [0x00608e60]
xor edx, dword [rsi + r9*4]
lea r9, [0x00608660]
xor edx, dword [r9 + r10*4]
lea r10, [0x00608a60]
xor edx, dword [r10 + rdi*4]
lea rdi, [r12 + 1]
cmp rcx, rdi
jbe 0x52ef75
mov qword [rsp + 0x30], r11
mov dword [rsp + 0x24], edx
mov dword [rsp + 0x2c], r13d
mov edi, r8d
shr r8d, 0x18
movzx r8d, r8b
mov r8d, dword [r15 + r8*4]
xor r8d, dword [rax + r12*4 + 4]
mov ebx, dword [rsp + 0x18]
shr ebx, 8
mov edx, dword [rsp + 0x1c]
movzx r11d, dl
shr r13d, 0x10
movzx ebx, bl
movzx r13d, r13b
xor r8d, dword [rsi + r13*4]
xor r8d, dword [r9 + rbx*4]
xor r8d, dword [r10 + r11*4]
lea rbx, [r12 + 2]
nop dword [rax + rax]
cmp rcx, rbx
jbe 0x52ef6d
mov dword [rsp + 0x20], r8d
mov dword [rsp + 0x28], edi
shr edx, 0x18
movzx edx, dl
mov edx, dword [r15 + rdx*4]
xor edx, dword [rax + r12*4 + 8]
mov r11d, dword [rsp + 0x2c]
mov r13d, r11d
shr r11d, 8
mov r8d, dword [rsp + 0x18]
movzx ebx, r8b
shr edi, 0x10
movzx r11d, r11b
movzx edi, dil
xor edx, dword [rsi + rdi*4]
xor edx, dword [r9 + r11*4]
xor edx, dword [r10 + rbx*4]
lea rbx, [r12 + 3]
cmp rcx, rbx
ja 0x52ebe5
jmp 0x52ef65
mov dword [rsp + 0x10], r12d
mov edx, r12d
shr r12d, 8
movzx ebx, r12b
lea r8, [0x00814ea0]
movzx ebx, byte [rbx + r8]
shl ebx, 8
mov r9d, r13d
shr r13d, 0x10
movzx r10d, r13b
movzx r10d, byte [r10 + r8]
shl r10d, 0x10
mov r11d, r15d
shr r15d, 0x18
movzx r12d, byte [r8 + r15]
shl r12d, 0x18
or r12d, r10d
or r12d, ebx
mov ebx, dword [rsp + 0x14]
movzx r10d, bl
movzx r10d, byte [r10 + r8]
or r10d, r12d
mov r12d, r9d
shr r9d, 8
movzx r9d, r9b
movzx r9d, byte [r9 + r8]
shl r9d, 8
mov r13d, r11d
shr r11d, 0x10
movzx r11d, r11b
movzx r11d, byte [r11 + r8]
shl r11d, 0x10
mov r15d, ebx
shr ebx, 0x18
movzx ebx, byte [r8 + rbx]
shl ebx, 0x18
or ebx, r11d
or ebx, r9d
movzx r9d, dl
movzx r9d, byte [r9 + r8]
or r9d, ebx
mov ebx, r13d
shr r13d, 8
movzx r11d, r13b
movzx r11d, byte [r11 + r8]
shl r11d, 8
mov r13d, r15d
shr r15d, 0x10
movzx r15d, r15b
movzx r15d, byte [r15 + r8]
shl r15d, 0x10
shr edx, 0x18
movzx edx, byte [r8 + rdx]
shl edx, 0x18
or edx, r15d
or edx, r11d
movzx r11d, r12b
movzx r11d, byte [r11 + r8]
or r11d, edx
shr r13d, 8
movzx edx, r13b
movzx edx, byte [rdx + r8]
shl edx, 8
mov r13d, dword [rsp + 0x10]
shr r13d, 0x10
movzx r13d, r13b
movzx r13d, byte [r13 + r8]
shl r13d, 0x10
shr r12d, 0x18
movzx r12d, byte [r8 + r12]
shl r12d, 0x18
or r12d, r13d
or edx, r12d
movzx ebx, bl
movzx ebx, byte [rbx + r8]
or ebx, edx
mov rdx, qword [rsp + 0x40]
cmp rcx, rdx
jbe 0x52ef5d
xor r10d, dword [rax + rdx*4]
lea r8, [rdx + 1]
nop
cmp rcx, r8
jbe 0x52ef55
xor r9d, dword [rax + rdx*4 + 4]
lea r8, [rdx + 2]
cmp rcx, r8
jbe 0x52ef4d
xor r11d, dword [rax + rdx*4 + 8]
lea r8, [rdx + 3]
nop dword [rax]
cmp rcx, r8
jbe 0x52ef45
xor ebx, dword [rax + rdx*4 + 0xc]
cmp rsi, 0xf
jbe 0x52ef36
nop
bswap r10d
mov dword [rdi], r10d
nop
bswap r9d
mov dword [rdi + 4], r9d
nop
bswap r11d
mov dword [rdi + 8], r11d
nop
bswap ebx
mov dword [rdi + 0xc], ebx
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
mov eax, 0xf
mov rcx, rsi
nop
call fcn.00456360
mov rax, r8
call fcn.00456360
mov rax, r8
call fcn.00456360
mov rax, r8
call fcn.00456360
mov rax, rdx
call fcn.00456360
mov rax, rbx
call fcn.00456360
mov rax, rbx
call fcn.00456360
mov rax, rdi
call fcn.00456360
mov rax, r12
call fcn.00456360
mov eax, 3
mov rcx, rbx
call fcn.00456360
mov eax, 2
mov rcx, rbx
call fcn.00456360
mov eax, 1
mov rcx, rbx
call fcn.00456360
xor eax, eax
mov rcx, rbx
call fcn.00456360
mov eax, 0xf
mov rcx, r10
nop
call fcn.00456360
nop
int3