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

Disassembly:
sub rsp, 0x18
mov qword [rsp + 0x10], rbp
lea rbp, [rsp + 0x10]
mov rcx, qword [rsp + 0x28]
mov rdx, rcx
shr rcx, 2
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x20]
mov r8, qword [rsp + 0x30]
xor eax, eax
jmp 0x4f1760
bswap edx
mov dword [rbx + r9*4], edx
lea rax, [r9 + 1]
mov rdx, r10
nop
cmp rax, rcx
jge 0x4f17af
mov r9, rax
shl rax, 2
cmp rax, rdx
ja 0x4f1a9d
mov r10, rdx
sub rdx, rax
mov r11, rax
sub rax, r8
sar rax, 0x3f
and r11, rax
cmp rdx, 3
jbe 0x4f1a90
mov edx, dword [rdi + r11]
cmp r9, rsi
jb 0x4f1752
nop dword [rax + rax]
jmp 0x4f1a85
mov dword [rbx + rdi*4], r8d
lea rax, [rdi + 1]
cmp rax, rsi
jge 0x4f1917
lea rdx, [rax - 1]
nop dword [rax]
cmp rdx, rsi
jae 0x4f1a77
mov edx, dword [rbx + rax*4 - 4]
test rcx, rcx
je 0x4f1a72
mov rdi, rax
mov r8d, edx
nop dword [rax]
cmp rcx, 0xffffffffffffffff
je 0x4f17ed
cqo
idiv rcx
jmp 0x4f17f2
neg rax
xor edx, edx
test rdx, rdx
jne 0x4f18a0
lea rdx, [rax - 1]
rol r8d, 8
mov r9d, r8d
shr r8d, 0x18
lea r10, str.cw
movzx r8d, byte [r8 + r10]
shl r8d, 0x18
mov r11d, r9d
shr r9d, 0x10
movzx r9d, r9b
movzx r9d, byte [r9 + r10]
shl r9d, 0x10
or r8d, r9d
mov r9d, r11d
shr r11d, 8
movzx r11d, r11b
movzx r11d, byte [r11 + r10]
shl r11d, 8
or r8d, r11d
movzx r9d, r9b
movzx r9d, byte [r9 + r10]
or r9d, r8d
cmp rdx, 0x10
jae 0x4f1a65
lea rdx, [0x006266b0]
movzx r8d, byte [rax + rdx - 1]
shl r8d, 0x18
xor r8d, r9d
mov rax, rdi
sub rax, rcx
nop dword [rax + rax]
cmp rax, rsi
jae 0x4f1a5c
xor r8d, dword [rbx + rax*4]
cmp rdi, rsi
jb 0x4f17a7
jmp 0x4f1a51
cmp rcx, 6
jle 0x4f190e
cmp rdx, 4
jne 0x4f190e
nop
mov edx, r8d
shr r8d, 0x18
lea r9, str.cw
movzx r8d, byte [r8 + r9]
shl r8d, 0x18
mov r10d, edx
shr edx, 0x10
movzx edx, dl
movzx edx, byte [rdx + r9]
shl edx, 0x10
or edx, r8d
mov r8d, r10d
shr r10d, 8
movzx r10d, r10b
movzx r10d, byte [r10 + r9]
shl r10d, 8
or edx, r10d
movzx r8d, r8b
movzx r8d, byte [r8 + r9]
or r8d, edx
lea rdx, [0x006266b0]
lea r10, str.cw
jmp 0x4f1872
lea r9, str.cw
jmp 0x4f18fb
mov rdx, qword [rsp + 0x50]
nop dword [rax]
test rdx, rdx
je 0x4f1a34
mov rdi, qword [rsp + 0x58]
xor eax, eax
jmp 0x4f1a17
mov dword [rdx + r10*4], r9d
inc r8
nop dword [rax]
cmp r8, 4
jge 0x4f1a10
lea r9, [r8 + rsi]
lea r9, [r9 - 4]
cmp r9, rcx
jae 0x4f1a49
mov r9d, dword [rbx + r9*4]
nop
test rax, rax
jle 0x4f19eb
lea r10, [rax + 4]
cmp r10, rcx
jge 0x4f19eb
mov r10d, r9d
shr r9d, 0x18
lea r11, str.cw
movzx r9d, byte [r11 + r9]
lea r12, [0x006313a0]
mov r9d, dword [r12 + r9*4]
mov r13d, r10d
shr r10d, 0x10
movzx r10d, r10b
movzx r10d, byte [r11 + r10]
lea r14, [0x006317a0]
xor r9d, dword [r14 + r10*4]
mov r10d, r13d
shr r13d, 8
movzx r13d, r13b
movzx r13d, byte [r11 + r13]
lea r15, [0x00631ba0]
xor r9d, dword [r15 + r13*4]
movzx r10d, r10b
movzx r10d, byte [r10 + r11]
lea r13, [0x00631fa0]
xor r9d, dword [r13 + r10*4]
lea r10, [r8 + rax]
nop
cmp r10, rdi
jb 0x4f1935
jmp 0x4f1a3e
lea r11, str.cw
lea r12, [0x006313a0]
lea r13, [0x00631fa0]
lea r14, [0x006317a0]
lea r15, [0x00631ba0]
jmp 0x4f19db
add rax, 4
mov rsi, rcx
cmp rax, rsi
jge 0x4f1a2a
mov rcx, rsi
sub rsi, rax
xor r8d, r8d
jmp 0x4f1940
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rbp, qword [rsp + 0x10]
add rsp, 0x18
ret
mov rax, r10
mov rcx, rdi
call fcn.00467e80
mov rax, r9
call fcn.00467e80
mov rax, rdi
mov rcx, rsi
call fcn.00467e80
mov rcx, rsi
nop
call fcn.00467e80
mov rax, rdx
mov ecx, 0x10
call fcn.00467e80
call fcn.004350e0
mov rax, rdx
mov rcx, rsi
nop dword [rax]
call fcn.00467e80
mov rax, r9
mov rcx, rsi
call fcn.00467e80
mov eax, 3
mov rcx, rdx
call fcn.00467e80
mov rcx, rdx
call fcn.00467f40
nop
int3