Function at 0x4790c0
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 0x479536
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 0x47952c
bswap edx
xor edx, dword [rax]
cmp rbx, 1
jbe 0x47951f
bswap r8d
xor r8d, dword [rax + 4]
nop
cmp rbx, 2
jbe 0x479512
bswap r10d
xor r10d, dword [rax + 8]
cmp rbx, 3
jbe 0x479505
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 0x479200
inc r11
mov edx, dword [rsp + 0x20]
shr edx, 0x18
movzx edx, dl
mov edx, dword [r15 + rdx*4]
xor edx, dword [rax + r12*4 + 0xc]
shr r8d, 0x10
movzx r8d, r8b
xor edx, dword [rdi + r8*4]
shr r13d, 8
movzx r8d, r13b
xor edx, dword [rsi + r8*4]
mov r8d, dword [rsp + 0x24]
movzx r8d, r8b
xor edx, dword [rbx + r8*4]
lea r8, [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, r10d
mov r15d, r9d
mov dword [rsp + 0x14], edx
mov qword [rsp + 0x30], r8
mov edx, r12d
mov r8d, r13d
mov r10d, r15d
mov r9d, dword [rsp + 0x14]
nop dword [rax]
cmp r11, rbx
jge 0x479325
mov r12, qword [rsp + 0x30]
cmp rcx, r12
jbe 0x4794fd
mov dword [rsp + 0x18], r8d
mov r13d, edx
shr edx, 0x18
movzx edx, dl
lea r15, [0x0055fd00]
mov edx, dword [r15 + rdx*4]
xor edx, dword [rax + r12*4]
shr r8d, 0x10
movzx r8d, r8b
lea rdi, [0x00560100]
xor edx, dword [rdi + r8*4]
mov r8d, r10d
shr r10d, 8
movzx r10d, r10b
lea rsi, [0x00560500]
xor edx, dword [rsi + r10*4]
movzx r10d, r9b
lea rbx, [0x00560900]
xor edx, dword [rbx + r10*4]
lea r10, [r12 + 1]
cmp rcx, r10
jbe 0x4794f5
mov dword [rsp + 0x24], r8d
mov r10d, dword [rsp + 0x18]
shr r10d, 0x18
movzx r10d, r10b
mov r10d, dword [r15 + r10*4]
xor r10d, dword [rax + r12*4 + 4]
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]
movzx r9d, r13b
xor r10d, dword [rbx + r9*4]
lea r9, [r12 + 2]
nop dword [rax]
cmp rcx, r9
jbe 0x4794ed
mov dword [rsp + 0x1c], edx
mov dword [rsp + 0x20], r8d
mov r9d, dword [rsp + 0x24]
shr r9d, 0x18
movzx r9d, r9b
mov r9d, dword [r15 + r9*4]
xor r9d, dword [rax + r12*4 + 8]
shr r8d, 0x10
movzx r8d, r8b
xor r9d, dword [rdi + r8*4]
mov r8d, r13d
shr r13d, 8
movzx r13d, r13b
xor r9d, dword [rsi + r13*4]
mov r13d, dword [rsp + 0x18]
movzx edx, r13b
xor r9d, dword [rbx + rdx*4]
lea rdx, [r12 + 3]
cmp rcx, rdx
ja 0x479182
nop
jmp 0x4794e5
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 + 0x14]
movzx r12d, r11b
movzx r12d, byte [r12 + rbx]
or r12d, r8d
mov r8d, r9d
shr r9d, 0x18
movzx r9d, byte [rbx + r9]
shl r9d, 0x18
mov r13d, 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]
or r11d, r9d
mov r9d, r13d
shr r13d, 0x18
movzx r13d, byte [rbx + r13]
shl r13d, 0x18
mov r15d, r10d
shr r10d, 0x10
movzx r10d, r10b
movzx r10d, byte [r10 + rbx]
shl r10d, 0x10
or r13d, r10d
mov r10d, edx
shr edx, 8
movzx edx, dl
movzx edx, byte [rdx + rbx]
shl edx, 8
or r13d, edx
movzx edx, r8b
movzx edx, byte [rdx + rbx]
or edx, r13d
shr r15d, 0x18
movzx r13d, byte [rbx + r15]
shl r13d, 0x18
shr r10d, 0x10
movzx r10d, r10b
movzx r10d, byte [r10 + rbx]
shl r10d, 0x10
or r13d, r10d
shr r8d, 8
movzx r8d, r8b
movzx r8d, byte [r8 + rbx]
shl r8d, 8
or r8d, r13d
movzx r9d, r9b
movzx ebx, byte [r9 + rbx]
or ebx, r8d
mov r8, qword [rsp + 0x30]
cmp rcx, r8
jbe 0x4794dd
xor r12d, dword [rax + r8*4]
lea r9, [r8 + 1]
cmp rcx, r9
jbe 0x4794d5
xor r11d, dword [rax + r8*4 + 4]
lea r9, [r8 + 2]
cmp rcx, r9
jbe 0x4794cd
xor edx, dword [rax + r8*4 + 8]
lea r9, [r8 + 3]
nop dword [rax]
cmp rcx, r9
jbe 0x4794c5
xor ebx, dword [rax + r8*4 + 0xc]
cmp rsi, 0xf
jbe 0x4794b5
nop
bswap r12d
mov dword [rdi], r12d
nop
bswap r11d
mov dword [rdi + 4], r11d
nop
bswap edx
mov dword [rdi + 8], edx
nop
bswap ebx
mov dword [rdi + 0xc], ebx
mov rbp, qword [rsp + 0x38]
add rsp, 0x40
ret
mov eax, 0xf
mov rcx, rsi
nop dword [rax]
call fcn.0045d6c0
mov rax, r9
call fcn.0045d6c0
mov rax, r9
call fcn.0045d6c0
mov rax, r9
call fcn.0045d6c0
mov rax, r8
call fcn.0045d6c0
mov rax, rdx
call fcn.0045d6c0
mov rax, r9
call fcn.0045d6c0
mov rax, r10
call fcn.0045d6c0
mov rax, r12
call fcn.0045d6c0
mov eax, 3
mov rcx, rbx
call fcn.0045d6c0
mov eax, 2
mov rcx, rbx
call fcn.0045d6c0
mov eax, 1
mov rcx, rbx
call fcn.0045d6c0
xor eax, eax
mov rcx, rbx
call fcn.0045d6c0
mov eax, 0xf
mov rcx, r10
nop
call fcn.0045d6c0
nop
int3