Function at 0x4787c0
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 0x478c36
nop
nop
nop
nop
test rbx, rbx
jbe 0x478c2c
mov edx, dword [r9]
bswap edx
xor edx, dword [rax]
nop
cmp rbx, 1
jbe 0x478c1f
mov r8d, dword [r9 + 4]
bswap r8d
xor r8d, dword [rax + 4]
cmp rbx, 2
jbe 0x478c12
mov r10d, dword [r9 + 8]
bswap r10d
xor r10d, dword [rax + 8]
cmp rbx, 3
jbe 0x478c05
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 + 0x10], r12d
mov r12d, 4
mov qword [rsp + 0x38], r12
xor r12d, r12d
nop dword [rax + rax]
jmp 0x478900
mov ebx, dword [rsp + 0x20]
shr ebx, 0x18
movzx ebx, bl
mov ebx, dword [r15 + rbx*4]
xor ebx, dword [rax + r12*4 + 0xc]
shr r8d, 0x10
movzx r8d, r8b
xor ebx, dword [rdi + r8*4]
shr r10d, 8
movzx r8d, r10b
xor ebx, dword [rsi + r8*4]
movzx r8d, r9b
mov r9, qword [rsp + 0x28]
inc r9
xor ebx, dword [r11 + r8*4]
lea r8, [r12 + 4]
mov r10, qword [rsp + 0x30]
mov r13d, dword [rsp + 0x18]
mov r12d, dword [rsp + 0x1c]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x68]
mov r11, r9
mov r10d, edx
mov r9d, ebx
mov r15d, r10d
mov dword [rsp + 0x10], r9d
mov qword [rsp + 0x38], r8
mov rbx, qword [rsp + 0x30]
mov edx, r12d
mov r8d, r13d
nop
cmp r11, rbx
jge 0x478a25
mov r12, qword [rsp + 0x38]
cmp rcx, r12
jbe 0x478bfd
mov qword [rsp + 0x28], r11
mov dword [rsp + 0x18], r8d
mov r13d, edx
shr edx, 0x18
movzx edx, dl
lea r15, [0x00572080]
mov edx, dword [r15 + rdx*4]
xor edx, dword [rax + r12*4]
shr r8d, 0x10
movzx r8d, r8b
lea rdi, [0x00572480]
xor edx, dword [rdi + r8*4]
mov r8d, r10d
shr r10d, 8
movzx r10d, r10b
lea rsi, [0x00572880]
xor edx, dword [rsi + r10*4]
movzx r10d, r9b
lea rbx, [r12 + 1]
lea r11, [0x00572c80]
xor edx, dword [r11 + r10*4]
cmp rcx, rbx
jbe 0x478bf5
mov dword [rsp + 0x1c], edx
mov dword [rsp + 0x24], r8d
mov ebx, dword [rsp + 0x18]
mov r10d, ebx
shr ebx, 0x18
movzx ebx, bl
mov ebx, dword [r15 + rbx*4]
xor ebx, dword [rax + r12*4 + 4]
shr r8d, 0x10
movzx r8d, r8b
xor ebx, dword [rdi + r8*4]
mov r8d, r9d
shr r9d, 8
movzx r9d, r9b
xor ebx, dword [rsi + r9*4]
movzx r9d, r13b
lea rdx, [r12 + 2]
xor ebx, dword [r11 + r9*4]
cmp rcx, rdx
jbe 0x478bed
mov dword [rsp + 0x18], ebx
mov dword [rsp + 0x20], r8d
mov edx, dword [rsp + 0x24]
mov r9d, edx
shr edx, 0x18
movzx edx, dl
mov edx, dword [r15 + rdx*4]
xor edx, dword [rax + r12*4 + 8]
shr r8d, 0x10
movzx r8d, r8b
xor edx, dword [rdi + r8*4]
mov r8d, r13d
shr r13d, 8
movzx r13d, r13b
xor edx, dword [rsi + r13*4]
movzx r13d, r10b
lea rbx, [r12 + 3]
xor edx, dword [r11 + r13*4]
cmp rcx, rbx
ja 0x478885
nop
jmp 0x478be5
mov dword [rsp + 0x14], r15d
mov edx, r12d
shr r12d, 0x18
lea rbx, str.cw
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 + 0x10]
movzx r12d, r11b
movzx r12d, byte [r12 + rbx]
mov r13d, r9d
shr r9d, 0x18
movzx r9d, byte [rbx + r9]
shl r9d, 0x18
mov r15d, r10d
shr r10d, 0x10
movzx r10d, r10b
movzx r10d, byte [r10 + rbx]
shl r10d, 0x10
or r9d, r10d
mov r10d, r11d
shr r11d, 8
movzx r11d, r11b
movzx r11d, byte [r11 + rbx]
shl r11d, 8
or r9d, r11d
movzx r11d, dl
movzx r11d, byte [r11 + rbx]
shr r15d, 0x18
movzx r15d, byte [rbx + r15]
shl r15d, 0x18
shr r10d, 0x10
movzx r10d, r10b
movzx r10d, byte [r10 + rbx]
shl r10d, 0x10
or r15d, r10d
mov r10d, edx
shr edx, 8
movzx edx, dl
movzx edx, byte [rdx + rbx]
shl edx, 8
or r15d, edx
movzx edx, r13b
movzx edx, byte [rdx + rbx]
mov edi, dword [rsp + 0x10]
shr edi, 0x18
movzx edi, byte [rbx + rdi]
shl edi, 0x18
shr r10d, 0x10
movzx r10d, r10b
movzx r10d, byte [r10 + rbx]
shl r10d, 0x10
or edi, r10d
shr r13d, 8
movzx r10d, r13b
movzx r10d, byte [r10 + rbx]
shl r10d, 8
or r10d, edi
mov edi, dword [rsp + 0x14]
movzx edi, dil
movzx ebx, byte [rdi + rbx]
or r12d, r8d
or r11d, r9d
or edx, r15d
or ebx, r10d
mov rdi, qword [rsp + 0x38]
cmp rcx, rdi
jbe 0x478bdd
lea r8, [rdi + 1]
xor r12d, dword [rax + rdi*4]
cmp rcx, r8
jbe 0x478bd5
lea r8, [rdi + 2]
xor r11d, dword [rax + rdi*4 + 4]
cmp rcx, r8
jbe 0x478bcd
lea r8, [rdi + 3]
xor edx, dword [rax + rdi*4 + 8]
nop
cmp rcx, r8
jbe 0x478bc5
xor ebx, dword [rax + rdi*4 + 0xc]
cmp rsi, 0xf
jbe 0x478bb5
bswap r12d
bswap r11d
bswap edx
bswap ebx
nop
mov rax, qword [rsp + 0x68]
mov dword [rax], r12d
nop
mov dword [rax + 4], r11d
nop
mov dword [rax + 8], edx
nop
mov dword [rax + 0xc], ebx
add rsp, 0x40
pop rbp
ret
mov eax, 0xf
mov rcx, rsi
nop dword [rax]
call fcn.00461620
mov rax, r8
call fcn.00461620
mov rax, r8
call fcn.00461620
mov rax, r8
call fcn.00461620
mov rax, rdi
call fcn.00461620
mov rax, rbx
call fcn.00461620
mov rax, rdx
call fcn.00461620
mov rax, rbx
call fcn.00461620
mov rax, r12
call fcn.00461620
mov eax, 3
mov rcx, rax
call fcn.00461620
mov eax, 2
mov rcx, rax
call fcn.00461620
mov eax, 1
mov rcx, rax
call fcn.00461620
xor eax, eax
mov rcx, rax
call fcn.00461620
mov eax, 0xf
mov rcx, r10
nop
call fcn.00461620
nop
int3