Function at 0x49e900
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 0x49ed69
nop
nop
nop
nop
test rbx, rbx
jbe 0x49ed5f
mov edx, dword [r9]
bswap edx
xor edx, dword [rax]
nop
cmp rbx, 1
jbe 0x49ed52
mov r8d, dword [r9 + 4]
bswap r8d
xor r8d, dword [rax + 4]
cmp rbx, 2
jbe 0x49ed45
mov r10d, dword [r9 + 8]
bswap r10d
xor r10d, dword [rax + 8]
cmp rbx, 3
jbe 0x49ed35
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
xor r11d, r11d
xor r12d, r12d
xor r13d, r13d
xor r15d, r15d
mov r11d, 4
mov qword [rsp + 0x38], r11
xor r11d, r11d
jmp 0x49ea21
shr r15d, 0x18
movzx edx, r15b
mov r15d, dword [r13 + rdx*4]
xor r15d, dword [rax + r11*4 + 0xc]
shr r8d, 0x10
movzx edx, r8b
xor r15d, dword [rdi + rdx*4]
shr r9d, 8
movzx edx, r9b
xor r15d, dword [rsi + rdx*4]
mov edx, dword [rsp + 0x24]
movzx edx, dl
mov r8, qword [rsp + 0x30]
dec r8
xor r15d, dword [r12 + rdx*4]
lea rdx, [r11 + 4]
mov r9d, dword [rsp + 0x1c]
mov r11d, dword [rsp + 0x2c]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x68]
mov r10d, ebx
mov r9d, r15d
mov r12d, dword [rsp + 0x1c]
mov r13d, r10d
mov qword [rsp + 0x38], rdx
mov rbx, r8
mov edx, r11d
mov r8d, r12d
test rbx, rbx
jle 0x49eb4e
mov r11, qword [rsp + 0x38]
cmp rcx, r11
jbe 0x49ed2d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x20], edx
shr edx, 0x18
movzx edx, dl
lea r13, [0x007752a0]
mov edx, dword [r13 + rdx*4]
xor edx, dword [rax + r11*4]
mov r15d, r8d
shr r8d, 0x10
movzx r8d, r8b
lea rdi, [0x007756a0]
xor edx, dword [rdi + r8*4]
mov r8d, r10d
shr r10d, 8
movzx r10d, r10b
lea rsi, [0x00775aa0]
xor edx, dword [rsi + r10*4]
movzx r10d, r9b
lea rbx, [r11 + 1]
lea r12, [0x00775ea0]
xor edx, dword [r12 + r10*4]
cmp rcx, rbx
jbe 0x49ed25
mov dword [rsp + 0x2c], edx
mov dword [rsp + 0x28], r15d
shr r15d, 0x18
movzx r10d, r15b
mov r10d, dword [r13 + r10*4]
xor r10d, dword [rax + r11*4 + 4]
mov r15d, r8d
shr r8d, 0x10
movzx r8d, r8b
xor r10d, dword [rdi + r8*4]
mov r8d, r9d
shr r9d, 8
movzx r9d, r9b
xor r10d, dword [rsi + r9*4]
mov r9d, dword [rsp + 0x20]
movzx edx, r9b
lea rbx, [r11 + 2]
xor r10d, dword [r12 + rdx*4]
cmp rcx, rbx
jbe 0x49ed1d
mov dword [rsp + 0x1c], r10d
mov dword [rsp + 0x24], r15d
shr r15d, 0x18
movzx ebx, r15b
mov ebx, dword [r13 + rbx*4]
xor ebx, dword [rax + r11*4 + 8]
mov r15d, r8d
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]
mov r9d, dword [rsp + 0x28]
movzx r10d, r9b
lea rdx, [r11 + 3]
xor ebx, dword [r12 + r10*4]
nop dword [rax]
cmp rcx, rdx
ja 0x49e9b0
jmp 0x49ed15
mov dword [rsp + 0x14], r15d
mov dword [rsp + 0x18], r13d
mov edx, r11d
shr r11d, 0x18
lea rbx, str.cw
movzx r8d, byte [rbx + r11]
shl r8d, 0x18
mov r9d, r12d
shr r12d, 0x10
movzx r10d, r12b
movzx r10d, byte [r10 + rbx]
shl r10d, 0x10
or r10d, r8d
mov r8d, r13d
shr r13d, 8
movzx r11d, r13b
movzx r11d, byte [r11 + rbx]
shl r11d, 8
or r11d, r10d
movzx r10d, r15b
movzx r10d, byte [r10 + rbx]
mov r12d, r9d
shr r9d, 0x18
movzx r9d, byte [rbx + r9]
shl r9d, 0x18
mov r13d, r8d
shr r8d, 0x10
movzx r8d, r8b
movzx r8d, byte [r8 + rbx]
shl r8d, 0x10
or r9d, r8d
mov r8d, r15d
shr r15d, 8
movzx r15d, r15b
movzx r15d, byte [r15 + rbx]
shl r15d, 8
or r15d, r9d
movzx r9d, dl
movzx r9d, byte [r9 + rbx]
shr r13d, 0x18
movzx r13d, byte [r13 + rbx]
shl r13d, 0x18
shr r8d, 0x10
movzx r8d, r8b
movzx r8d, byte [r8 + rbx]
shl r8d, 0x10
or r13d, r8d
mov r8d, edx
shr edx, 8
movzx edx, dl
movzx edx, byte [rdx + rbx]
shl edx, 8
or edx, r13d
movzx r13d, r12b
movzx r13d, byte [r13 + rbx]
mov edi, dword [rsp + 0x14]
shr edi, 0x18
movzx edi, byte [rbx + rdi]
shl edi, 0x18
shr r8d, 0x10
movzx r8d, r8b
movzx r8d, byte [r8 + rbx]
shl r8d, 0x10
or r8d, edi
shr r12d, 8
movzx edi, r12b
movzx edi, byte [rdi + rbx]
shl edi, 8
or edi, r8d
mov r8d, dword [rsp + 0x18]
movzx r8d, r8b
movzx ebx, byte [r8 + rbx]
or r10d, r11d
or r9d, r15d
or r13d, edx
or ebx, edi
mov rdx, qword [rsp + 0x38]
nop
cmp rcx, rdx
jbe 0x49ed0d
lea rdi, [rdx + 1]
xor r10d, dword [rax + rdx*4]
cmp rcx, rdi
jbe 0x49ed05
lea rdi, [rdx + 2]
xor r9d, dword [rax + rdx*4 + 4]
nop
cmp rcx, rdi
jbe 0x49ecfa
lea rdi, [rdx + 3]
xor r13d, dword [rax + rdx*4 + 8]
cmp rcx, rdi
jbe 0x49ecf2
xor ebx, dword [rax + rdx*4 + 0xc]
cmp rsi, 0xf
jbe 0x49ece5
bswap r10d
bswap r9d
bswap r13d
bswap ebx
nop
mov rax, qword [rsp + 0x68]
mov dword [rax], r10d
nop
mov dword [rax + 4], r9d
nop
mov dword [rax + 8], r13d
nop
mov dword [rax + 0xc], ebx
add rsp, 0x40
pop rbp
ret
mov eax, 0xf
mov rcx, rsi
call fcn.00467fc0
mov rax, rdi
call fcn.00467fc0
mov rax, rdi
nop dword [rax]
call fcn.00467fc0
mov rax, rdi
call fcn.00467fc0
mov rax, rdx
call fcn.00467fc0
mov rax, rdx
call fcn.00467fc0
mov rax, rbx
call fcn.00467fc0
mov rax, rbx
call fcn.00467fc0
mov rax, r11
call fcn.00467fc0
mov eax, 3
mov rcx, rax
nop dword [rax]
call fcn.00467fc0
mov eax, 2
mov rcx, rax
call fcn.00467fc0
mov eax, 1
mov rcx, rax
call fcn.00467fc0
xor eax, eax
mov rcx, rax
call fcn.00467fc0
mov eax, 0xf
mov rcx, r10
call fcn.00467fc0
nop
int3