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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x210
mov rdi, rdx
mov rsi, rcx
lea rbx, [rsp + 0x28]
mov r8d, 0xf0
mov rcx, rbx
xor edx, edx
call sub.msvcrt.dll_memset
lea r14, [rsp + 0x11c]
mov r8d, 0xf1
mov rcx, r14
xor edx, edx
call sub.msvcrt.dll_memset
mov rcx, rdi
mov rdx, r14
call fcn.00410c56
mov byte [rbx + 0xf0], 0
mov rcx, rdi
mov rdx, rbx
call fcn.00410c56
movzx ecx, byte [rbx + 0xf0]
test rcx, rcx
je 0x411074
shl ecx, 2
xor edx, edx
cmp rcx, 0x3b
ja 0x4110ba
mov eax, dword [rsp + rdx*4 + 0x28]
mov r8d, dword [rsp + rcx*4 + 0x28]
mov dword [rsp + rdx*4 + 0x28], r8d
mov dword [rsp + rcx*4 + 0x28], eax
lea rax, [rcx + 1]
cmp rax, 0x3c
jae 0x4110c3
mov eax, dword [rsp + rdx*4 + 0x2c]
mov r8d, dword [rsp + rcx*4 + 0x2c]
mov dword [rsp + rdx*4 + 0x2c], r8d
mov dword [rsp + rcx*4 + 0x2c], eax
lea rax, [rcx + 2]
cmp rax, 0x3c
jae 0x4110d9
mov eax, dword [rsp + rdx*4 + 0x30]
mov r8d, dword [rsp + rcx*4 + 0x30]
mov dword [rsp + rdx*4 + 0x30], r8d
mov dword [rsp + rcx*4 + 0x30], eax
lea rax, [rcx + 3]
cmp rax, 0x3c
jae 0x4110e2
mov eax, dword [rsp + rdx*4 + 0x34]
mov r8d, dword [rsp + rcx*4 + 0x34]
mov dword [rsp + rdx*4 + 0x34], r8d
mov dword [rsp + rcx*4 + 0x34], eax
add rdx, 4
add rcx, 0xfffffffffffffffc
cmp rdx, rcx
jb 0x410e60
mov al, byte [rsp + 0x118]
cmp al, 2
jb 0x411074
dec al
mov ecx, 7
lea rdx, [0x0044fc20]
lea r8, [0x00450048]
mov r9d, 0x3fc
lea r10, [0x00450460]
mov r11d, 0xff
lea rdi, [0x00450860]
lea rbx, [0x00450c60]
cmp rcx, 0x3f
je 0x4110f6
mov r15d, dword [rsp + rcx*4 + 0x1c]
mov r14d, r15d
shr r14d, 0x18
movzx r14d, byte [rdx + r14*4]
mov r12d, r15d
shr r12d, 0xe
and r12d, r9d
movzx r12d, byte [r12 + rdx]
mov ebp, dword [r10 + r12*4]
xor ebp, dword [r8 + r14*4]
mov r14d, dword [rsp + rcx*4 + 0x20]
mov r12d, r15d
shr r12d, 8
and r12d, r11d
movzx r12d, byte [rdx + r12*4]
xor ebp, dword [rdi + r12*4]
and r15d, r11d
movzx r15d, byte [rdx + r15*4]
xor ebp, dword [rbx + r15*4]
mov dword [rsp + rcx*4 + 0x1c], ebp
mov r15d, r14d
shr r15d, 0x18
movzx r15d, byte [rdx + r15*4]
mov r12d, r14d
shr r12d, 0xe
and r12d, r9d
movzx r12d, byte [r12 + rdx]
mov ebp, dword [r10 + r12*4]
xor ebp, dword [r8 + r15*4]
mov r15d, r14d
shr r15d, 8
and r15d, r11d
movzx r15d, byte [rdx + r15*4]
xor ebp, dword [rdi + r15*4]
and r14d, r11d
movzx r14d, byte [rdx + r14*4]
xor ebp, dword [rbx + r14*4]
mov dword [rsp + rcx*4 + 0x20], ebp
mov r14d, dword [rsp + rcx*4 + 0x24]
mov r15d, r14d
shr r15d, 0x18
movzx r15d, byte [rdx + r15*4]
mov r12d, r14d
shr r12d, 0xe
and r12d, r9d
movzx r12d, byte [r12 + rdx]
mov ebp, dword [r10 + r12*4]
xor ebp, dword [r8 + r15*4]
mov r15d, r14d
shr r15d, 8
and r15d, r11d
movzx r15d, byte [rdx + r15*4]
xor ebp, dword [rdi + r15*4]
and r14d, r11d
movzx r14d, byte [rdx + r14*4]
xor ebp, dword [rbx + r14*4]
mov dword [rsp + rcx*4 + 0x24], ebp
mov r14d, dword [rsp + rcx*4 + 0x28]
mov r15d, r14d
shr r15d, 0x18
movzx r15d, byte [rdx + r15*4]
mov r12d, r14d
shr r12d, 0xe
and r12d, r9d
movzx r12d, byte [r12 + rdx]
mov ebp, dword [r10 + r12*4]
xor ebp, dword [r8 + r15*4]
mov r15d, r14d
shr r15d, 8
and r15d, r11d
movzx r15d, byte [rdx + r15*4]
xor ebp, dword [rdi + r15*4]
and r14d, r11d
movzx r14d, byte [rdx + r14*4]
xor ebp, dword [rbx + r14*4]
mov dword [rsp + rcx*4 + 0x28], ebp
add rcx, 4
dec al
jne 0x410f32
lea rdx, [rsp + 0x11c]
mov r8d, 0xf4
mov rcx, rsi
call sub.msvcrt.dll_memcpy
lea rcx, [rsi + 0xf4]
lea rdx, [rsp + 0x28]
mov r8d, 0xf4
call sub.msvcrt.dll_memcpy
mov byte [rsi + 0x1e8], 1
add rsp, 0x210
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str._home_user0_.cargo_registry_src_index.crates.io_6f17d22bba15001f_libaes_0.7.0_src_lib.rs
jmp 0x4110cf
lea r8, str._home_user0_.cargo_registry_src_index.crates.io_6f17d22bba15001f_libaes_0.7.0_src_lib.rs
mov ecx, 0x3c
mov edx, 0x3c
call fcn.00409b50
lea r8, str._home_user0_.cargo_registry_src_index.crates.io_6f17d22bba15001f_libaes_0.7.0_src_lib.rs
jmp 0x4110e9
lea r8, str._home_user0_.cargo_registry_src_index.crates.io_6f17d22bba15001f_libaes_0.7.0_src_lib.rs
mov edx, 0x3c
mov rcx, rax
call fcn.00409b50
lea r8, str._home_user0_.cargo_registry_src_index.crates.io_6f17d22bba15001f_libaes_0.7.0_src_lib.rs
xor ecx, ecx
xor edx, edx
call fcn.00409b50
int3