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

Disassembly:
sub rsp, 0x40
mov qword [rsp + 0x38], rbp
lea rbp, [rsp + 0x38]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x78], r9
nop dword [rax]
cmp r10, 0xf
jbe 0x4c30b6
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 0x4c30ac
bswap edx
xor edx, dword [rax]
cmp rbx, 1
jbe 0x4c309f
bswap r8d
xor r8d, dword [rax + 4]
nop
cmp rbx, 2
jbe 0x4c3092
bswap r10d
xor r10d, dword [rax + 8]
cmp rbx, 3
jbe 0x4c3085
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x60], rdi
bswap r9d
xor r9d, dword [rax + 0xc]
mov rcx, rbx
shr rbx, 2
add rbx, 0xfffffffffffffffe
mov qword [rsp + 0x28], 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 + 0x30], r12
xor r12d, r12d
nop
jmp 0x4c2d80
inc r11
shr r10d, 0x18
movzx edx, r10b
mov edx, dword [r15 + rdx*4]
xor edx, dword [rax + r12*4 + 0xc]
shr r13d, 0x10
movzx r10d, r13b
xor edx, dword [rdi + r10*4]
mov r10d, dword [rsp + 0x20]
shr r10d, 8
movzx r10d, r10b
xor edx, dword [rsi + r10*4]
mov r10d, dword [rsp + 0x24]
movzx r10d, r10b
xor edx, dword [rbx + r10*4]
lea r10, [r12 + 4]
mov r12, qword [rsp + 0x28]
mov r13d, dword [rsp + 0x1c]
mov rbx, r12
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x60]
mov r12d, r13d
mov r13d, edx
mov r15d, r9d
mov dword [rsp + 0x14], r8d
mov qword [rsp + 0x30], r10
mov edx, r12d
mov r9d, r13d
mov r10d, r15d
nop dword [rax + rax]
cmp r11, rbx
jge 0x4c2ea5
mov r12, qword [rsp + 0x30]
cmp rcx, r12
jbe 0x4c307d
mov dword [rsp + 0x18], r9d
mov r13d, edx
shr edx, 0x18
movzx edx, dl
lea r15, [0x007ff820]
mov edx, dword [r15 + rdx*4]
xor edx, dword [rax + r12*4]
shr r9d, 0x10
movzx r9d, r9b
lea rdi, [0x007ffc20]
xor edx, dword [rdi + r9*4]
mov r9d, r10d
shr r10d, 8
movzx r10d, r10b
lea rsi, [0x00800020]
xor edx, dword [rsi + r10*4]
movzx r10d, r8b
lea rbx, [0x00800420]
xor edx, dword [rbx + r10*4]
lea r10, [r12 + 1]
cmp rcx, r10
jbe 0x4c3075
mov dword [rsp + 0x24], r13d
mov r10d, r8d
shr r8d, 0x18
movzx r8d, r8b
mov r8d, dword [r15 + r8*4]
xor r8d, dword [rax + r12*4 + 4]
shr r13d, 0x10
movzx r13d, r13b
xor r8d, dword [rdi + r13*4]
mov r13d, dword [rsp + 0x18]
shr r13d, 8
movzx r13d, r13b
xor r8d, dword [rsi + r13*4]
movzx r13d, r9b
xor r8d, dword [rbx + r13*4]
lea r13, [r12 + 2]
nop dword [rax]
cmp rcx, r13
jbe 0x4c306d
mov dword [rsp + 0x1c], edx
mov dword [rsp + 0x20], r10d
mov r13d, r9d
shr r9d, 0x18
movzx r9d, r9b
mov r9d, dword [r15 + r9*4]
xor r9d, dword [rax + r12*4 + 8]
shr r10d, 0x10
movzx r10d, r10b
xor r9d, dword [rdi + r10*4]
mov r10d, dword [rsp + 0x24]
shr r10d, 8
movzx r10d, r10b
xor r9d, dword [rsi + r10*4]
mov r10d, dword [rsp + 0x18]
movzx edx, r10b
xor r9d, dword [rbx + rdx*4]
lea rdx, [r12 + 3]
cmp rcx, rdx
ja 0x4c2d02
nop
jmp 0x4c3065
mov edx, r12d
shr r12d, 0x18
lea rbx, [0x007f8e40]
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 + 0x14]
movzx r12d, r11b
movzx r12d, byte [r12 + rbx]
or r12d, r8d
mov r8d, r11d
shr r11d, 0x18
movzx r11d, byte [rbx + r11]
shl r11d, 0x18
mov r13d, 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]
or r9d, r11d
mov r11d, r10d
shr r10d, 0x18
movzx r10d, byte [rbx + r10]
shl r10d, 0x18
mov r15d, r8d
shr r8d, 0x10
movzx r8d, r8b
movzx r8d, byte [r8 + rbx]
shl r8d, 0x10
or r10d, r8d
mov r8d, r13d
shr r13d, 8
movzx r13d, r13b
movzx r13d, byte [r13 + rbx]
shl r13d, 8
or r10d, r13d
movzx r13d, dl
movzx r13d, byte [r13 + rbx]
or r13d, r10d
shr edx, 0x18
movzx edx, byte [rbx + rdx]
shl edx, 0x18
shr r11d, 0x10
movzx r10d, r11b
movzx r10d, byte [r10 + rbx]
shl r10d, 0x10
or edx, r10d
shr r15d, 8
movzx r10d, r15b
movzx r10d, byte [r10 + rbx]
shl r10d, 8
or r10d, edx
movzx edx, r8b
movzx edx, byte [rdx + rbx]
or edx, r10d
mov rbx, qword [rsp + 0x30]
cmp rcx, rbx
jbe 0x4c305d
xor r12d, dword [rax + rbx*4]
lea r8, [rbx + 1]
cmp rcx, r8
jbe 0x4c3055
xor r9d, dword [rax + rbx*4 + 4]
lea r8, [rbx + 2]
cmp rcx, r8
jbe 0x4c304d
xor r13d, dword [rax + rbx*4 + 8]
lea r8, [rbx + 3]
nop dword [rax]
cmp rcx, r8
jbe 0x4c3045
xor edx, dword [rax + rbx*4 + 0xc]
cmp rsi, 0xf
jbe 0x4c3036
nop
bswap r12d
mov dword [rdi], r12d
nop
bswap r9d
mov dword [rdi + 4], r9d
nop
bswap r13d
mov dword [rdi + 8], r13d
nop
bswap edx
mov dword [rdi + 0xc], edx
mov rbp, qword [rsp + 0x38]
add rsp, 0x40
ret
mov eax, 0xf
mov rcx, rsi
nop
call fcn.004632e0
mov rax, r8
call fcn.004632e0
mov rax, r8
call fcn.004632e0
mov rax, r8
call fcn.004632e0
mov rax, rbx
call fcn.004632e0
mov rax, rdx
call fcn.004632e0
mov rax, r13
call fcn.004632e0
mov rax, r10
call fcn.004632e0
mov rax, r12
call fcn.004632e0
mov eax, 3
mov rcx, rbx
call fcn.004632e0
mov eax, 2
mov rcx, rbx
call fcn.004632e0
mov eax, 1
mov rcx, rbx
call fcn.004632e0
xor eax, eax
mov rcx, rbx
call fcn.004632e0
mov eax, 0xf
mov rcx, r10
nop
call fcn.004632e0
nop
int3