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

Disassembly:
lea r12, [rsp - 0x10]
cmp r12, qword [r14 + 0x10]
jbe 0x1400cd796
push rbp
mov rbp, rsp
sub rsp, 0x88
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], rbx
mov qword [rsp + 0xa8], rcx
mov qword [rsp + 0xb0], rdi
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0xc0], r8
mov qword [rsp + 0xc8], r9
mov qword [rsp + 0xd0], r10
mov qword [rsp + 0xd8], r11
mov qword [rsp + 0x50], 0
mov rdx, qword [rsp + 0xa0]
mov qword [rsp + 0x68], rdx
shr rdx, 2
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x50], 0
jmp 0x1400cd40c
mov rdx, qword [rsp + 0x50]
cmp qword [rsp + 0x30], rdx
jg 0x1400cd41a
jmp 0x1400cd48a
mov rax, qword [rsp + 0x50]
shl rax, 2
mov qword [rsp + 0x68], rax
mov rbx, qword [rsp + 0xa0]
sub rbx, rax
mov rcx, qword [rsp + 0xa8]
sub rcx, rax
mov rdx, rcx
neg rdx
sar rdx, 0x3f
and rax, rdx
add rax, qword [rsp + 0x98]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], rbx
mov qword [rsp + 0x80], rcx
call fcn.1400cbec0
mov dword [rsp + 0x2c], eax
mov rdx, qword [rsp + 0x50]
shl rdx, 2
add rdx, qword [rsp + 0xb0]
mov dword [rdx], eax
jmp 0x1400cd483
inc qword [rsp + 0x50]
jmp 0x1400cd40c
jmp 0x1400cd48c
mov rcx, qword [rsp + 0xb8]
mov qword [rsp + 0x68], rcx
nop dword [rax]
cmp qword [rsp + 0x50], rcx
jl 0x1400cd4ac
jmp 0x1400cd5fd
mov rcx, qword [rsp + 0x50]
dec rcx
shl rcx, 2
add rcx, qword [rsp + 0xb0]
mov ecx, dword [rcx]
mov dword [rsp + 0x24], ecx
mov rdx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x50]
test rdx, rdx
jne 0x1400cd4da
jmp 0x1400cd790
mov rbx, rdx
nop dword [rax]
cmp rbx, 0xffffffffffffffff
jne 0x1400cd4ed
neg rax
xor edx, edx
jmp 0x1400cd4f2
cqo
idiv rbx
test rdx, rdx
je 0x1400cd4f9
jmp 0x1400cd55e
mov eax, ecx
nop dword [rax + rax]
call fcn.1400cd340
mov dword [rsp + 0x2c], eax
call fcn.1400cd2c0
mov dword [rsp + 0x28], eax
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x50]
nop dword [rax]
test rcx, rcx
jne 0x1400cd52a
jmp 0x1400cd78b
mov ebx, eax
mov rax, rdx
cmp rcx, 0xffffffffffffffff
jne 0x1400cd53c
neg rax
xor edx, edx
jmp 0x1400cd541
cqo
idiv rcx
lea rcx, [0x1400e4310]
lea rcx, [rax + rcx]
lea rcx, [rcx - 1]
movzx ecx, byte [rcx]
shl ecx, 0x18
xor ebx, ecx
mov dword [rsp + 0x24], ebx
jmp 0x1400cd5c2
cmp qword [rsp + 0x30], 6
setg byte [rsp + 0x1f]
jg 0x1400cd56d
jmp 0x1400cd5a2
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x50]
test rcx, rcx
jne 0x1400cd585
nop dword [rax]
jmp 0x1400cd786
cmp rcx, 0xffffffffffffffff
jne 0x1400cd592
neg rax
xor edx, edx
jmp 0x1400cd597
cqo
idiv rcx
cmp rdx, 4
sete byte [rsp + 0x1f]
jmp 0x1400cd5a4
jmp 0x1400cd5a4
cmp byte [rsp + 0x1f], 0
jne 0x1400cd5ad
jmp 0x1400cd5bc
mov eax, dword [rsp + 0x24]
call fcn.1400cd2c0
mov dword [rsp + 0x24], eax
jmp 0x1400cd5c0
jmp 0x1400cd5c0
jmp 0x1400cd5c2
mov rcx, qword [rsp + 0x50]
shl rcx, 2
add rcx, qword [rsp + 0xb0]
mov rdx, qword [rsp + 0x50]
sub rdx, qword [rsp + 0x30]
shl rdx, 2
add rdx, qword [rsp + 0xb0]
mov edx, dword [rdx]
xor edx, dword [rsp + 0x24]
mov dword [rcx], edx
jmp 0x1400cd5f3
inc qword [rsp + 0x50]
jmp 0x1400cd48c
cmp qword [rsp + 0xc8], 0
jne 0x1400cd60a
jmp 0x1400cd622
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], 0
jmp 0x1400cd62b
add rsp, 0x88
pop rbp
ret
mov rax, qword [rsp + 0x48]
cmp qword [rsp + 0x38], rax
jg 0x1400cd639
jmp 0x1400cd657
mov rax, qword [rsp + 0x38]
sub rax, qword [rsp + 0x48]
add rax, 0xfffffffffffffffc
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x40], 0
jmp 0x1400cd661
add rsp, 0x88
pop rbp
nop
ret
cmp qword [rsp + 0x40], 4
jl 0x1400cd66e
jmp 0x1400cd779
mov rax, qword [rsp + 0x58]
add rax, qword [rsp + 0x40]
shl rax, 2
add rax, qword [rsp + 0xb0]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
cmp qword [rsp + 0x48], 0
setg byte [rsp + 0x1f]
jg 0x1400cd699
jmp 0x1400cd6ae
mov rax, qword [rsp + 0x48]
add rax, 4
cmp qword [rsp + 0x38], rax
setg byte [rsp + 0x1f]
jmp 0x1400cd6b0
jmp 0x1400cd6b0
cmp byte [rsp + 0x1f], 0
jne 0x1400cd6bc
jmp 0x1400cd74a
mov eax, dword [rsp + 0x20]
shr eax, 0x18
lea rcx, str.cw
add rax, rcx
movzx eax, byte [rax]
lea rcx, [0x1400e6e80]
lea rax, [rcx + rax*4]
mov eax, dword [rax]
mov ecx, dword [rsp + 0x20]
shr ecx, 0x10
movzx ecx, cl
lea rdx, str.cw
add rcx, rdx
movzx ecx, byte [rcx]
lea rdx, [0x1400e7280]
lea rcx, [rdx + rcx*4]
xor eax, dword [rcx]
mov ecx, dword [rsp + 0x20]
shr ecx, 8
movzx ecx, cl
lea rdx, str.cw
add rcx, rdx
movzx ecx, byte [rcx]
lea rdx, [0x1400e7680]
lea rcx, [rdx + rcx*4]
xor eax, dword [rcx]
movzx ecx, byte [rsp + 0x20]
lea rdx, str.cw
add rcx, rdx
movzx ecx, byte [rcx]
lea rdx, [0x1400e7a80]
lea rcx, [rdx + rcx*4]
xor eax, dword [rcx]
mov dword [rsp + 0x20], eax
jmp 0x1400cd74c
jmp 0x1400cd74c
mov rax, qword [rsp + 0x48]
add rax, qword [rsp + 0x40]
mov qword [rsp + 0x60], rax
shl rax, 2
add rax, qword [rsp + 0xc8]
mov ecx, dword [rsp + 0x20]
mov dword [rax], ecx
jmp 0x1400cd76f
inc qword [rsp + 0x40]
jmp 0x1400cd661
jmp 0x1400cd77b
add qword [rsp + 0x48], 4
jmp 0x1400cd62b
call fcn.14003b420
call fcn.14003b420
call fcn.14003b420
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x40], r10
mov qword [rsp + 0x48], r11
call fcn.140069680
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov r8, qword [rsp + 0x30]
mov r9, qword [rsp + 0x38]
mov r10, qword [rsp + 0x40]
mov r11, qword [rsp + 0x48]
jmp fcn.1400cd380