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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov dword [rbp + 0x28], r9d
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov ecx, dword [rbp + 0x20]
mov rdx, qword [rbp + 0x18]
mov rax, qword [rbp - 8]
mov r8, rcx
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov ecx, dword [rbp + 0x20]
mov rdx, qword [rbp - 8]
mov rax, qword [rbp - 8]
mov r8d, ecx
mov rcx, rax
call fcn.14003feeb
cmp dword [rbp + 0x20], 0x20
je 0x140045070
cmp dword [rbp + 0x20], 0x20
ja 0x1400452db
cmp dword [rbp + 0x20], 0x10
je 0x140044d98
cmp dword [rbp + 0x20], 0x18
je 0x140044ee4
jmp 0x1400452db
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov dword [rbp - 0x14], eax
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov edx, dword [rbp - 0x14]
shr edx, 0x10
movzx edx, dl
mov edx, edx
add rdx, 0x200
lea rcx, [rdx*4]
lea rdx, [0x1400aae60]
mov edx, dword [rcx + rdx]
and edx, 0xff000000
xor eax, edx
mov ecx, eax
mov eax, dword [rbp - 0x14]
shr eax, 8
movzx eax, al
mov eax, eax
add rax, 0x300
lea rdx, [rax*4]
lea rax, [0x1400aae60]
mov eax, dword [rdx + rax]
and eax, 0xff0000
xor ecx, eax
mov eax, dword [rbp - 0x14]
movzx eax, al
mov eax, eax
lea rdx, [rax*4]
lea rax, [0x1400aae60]
mov eax, dword [rdx + rax]
and eax, 0xff00
xor ecx, eax
mov eax, dword [rbp - 0x14]
shr eax, 0x18
movzx eax, al
mov eax, eax
add rax, 0x100
lea rdx, [rax*4]
lea rax, [0x1400aae60]
mov eax, dword [rdx + rax]
movzx eax, al
xor ecx, eax
mov eax, dword [rbp - 0xc]
lea rdx, [rax*4]
lea rax, [0x1400aae20]
mov edx, dword [rdx + rax]
mov rax, qword [rbp - 8]
add rax, 0x10
xor edx, ecx
mov dword [rax], edx
mov rax, qword [rbp - 8]
add rax, 4
mov ecx, dword [rax]
mov rax, qword [rbp - 8]
add rax, 0x10
mov edx, dword [rax]
mov rax, qword [rbp - 8]
add rax, 0x14
xor edx, ecx
mov dword [rax], edx
mov rax, qword [rbp - 8]
add rax, 8
mov ecx, dword [rax]
mov rax, qword [rbp - 8]
add rax, 0x14
mov edx, dword [rax]
mov rax, qword [rbp - 8]
add rax, 0x18
xor edx, ecx
mov dword [rax], edx
mov rax, qword [rbp - 8]
add rax, 0xc
mov ecx, dword [rax]
mov rax, qword [rbp - 8]
add rax, 0x18
mov edx, dword [rax]
mov rax, qword [rbp - 8]
add rax, 0x1c
xor edx, ecx
mov dword [rax], edx
add dword [rbp - 0xc], 1
cmp dword [rbp - 0xc], 0xa
je 0x140044ede
add qword [rbp - 8], 0x10
jmp 0x140044d98
nop
jmp 0x1400452db
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x14]
mov dword [rbp - 0x14], eax
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov edx, dword [rbp - 0x14]
shr edx, 0x10
movzx edx, dl
mov edx, edx
add rdx, 0x200
lea rcx, [rdx*4]
lea rdx, [0x1400aae60]
mov edx, dword [rcx + rdx]
and edx, 0xff000000
xor eax, edx
mov ecx, eax
mov eax, dword [rbp - 0x14]
shr eax, 8
movzx eax, al
mov eax, eax
add rax, 0x300
lea rdx, [rax*4]
lea rax, [0x1400aae60]
mov eax, dword [rdx + rax]
and eax, 0xff0000
xor ecx, eax
mov eax, dword [rbp - 0x14]
movzx eax, al
mov eax, eax
lea rdx, [rax*4]
lea rax, [0x1400aae60]
mov eax, dword [rdx + rax]
and eax, 0xff00
xor ecx, eax
mov eax, dword [rbp - 0x14]
shr eax, 0x18
movzx eax, al
mov eax, eax
add rax, 0x100
lea rdx, [rax*4]
lea rax, [0x1400aae60]
mov eax, dword [rdx + rax]
movzx eax, al
xor ecx, eax
mov eax, dword [rbp - 0xc]
lea rdx, [rax*4]
lea rax, [0x1400aae20]
mov edx, dword [rdx + rax]
mov rax, qword [rbp - 8]
add rax, 0x18
xor edx, ecx
mov dword [rax], edx
mov rax, qword [rbp - 8]
add rax, 4
mov ecx, dword [rax]
mov rax, qword [rbp - 8]
add rax, 0x18
mov edx, dword [rax]
mov rax, qword [rbp - 8]
add rax, 0x1c
xor edx, ecx
mov dword [rax], edx
mov rax, qword [rbp - 8]
add rax, 8
mov ecx, dword [rax]
mov rax, qword [rbp - 8]
add rax, 0x1c
mov edx, dword [rax]
mov rax, qword [rbp - 8]
add rax, 0x20
xor edx, ecx
mov dword [rax], edx
mov rax, qword [rbp - 8]
add rax, 0xc
mov ecx, dword [rax]
mov rax, qword [rbp - 8]
add rax, 0x20
mov edx, dword [rax]
mov rax, qword [rbp - 8]
add rax, 0x24
xor edx, ecx
mov dword [rax], edx
add dword [rbp - 0xc], 1
cmp dword [rbp - 0xc], 8
je 0x14004506a
mov rax, qword [rbp - 8]
add rax, 0x10
mov ecx, dword [rax]
mov rax, qword [rbp - 8]
add rax, 0x24
mov edx, dword [rax]
mov rax, qword [rbp - 8]
add rax, 0x28
xor edx, ecx
mov dword [rax], edx
mov rax, qword [rbp - 8]
add rax, 0x14
mov ecx, dword [rax]
mov rax, qword [rbp - 8]
add rax, 0x28
mov edx, dword [rax]
mov rax, qword [rbp - 8]
add rax, 0x2c
xor edx, ecx
mov dword [rax], edx
add qword [rbp - 8], 0x18
jmp 0x140044ee4
nop
jmp 0x1400452db
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x1c]
mov dword [rbp - 0x14], eax
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov edx, dword [rbp - 0x14]
shr edx, 0x10
movzx edx, dl
mov edx, edx
add rdx, 0x200
lea rcx, [rdx*4]
lea rdx, [0x1400aae60]
mov edx, dword [rcx + rdx]
and edx, 0xff000000
xor eax, edx
mov ecx, eax
mov eax, dword [rbp - 0x14]
shr eax, 8
movzx eax, al
mov eax, eax
add rax, 0x300
lea rdx, [rax*4]
lea rax, [0x1400aae60]
mov eax, dword [rdx + rax]
and eax, 0xff0000
xor ecx, eax
mov eax, dword [rbp - 0x14]
movzx eax, al
mov eax, eax
lea rdx, [rax*4]
lea rax, [0x1400aae60]
mov eax, dword [rdx + rax]
and eax, 0xff00
xor ecx, eax
mov eax, dword [rbp - 0x14]
shr eax, 0x18
movzx eax, al
mov eax, eax
add rax, 0x100
lea rdx, [rax*4]
lea rax, [0x1400aae60]
mov eax, dword [rdx + rax]
movzx eax, al
xor ecx, eax
mov eax, dword [rbp - 0xc]
lea rdx, [rax*4]
lea rax, [0x1400aae20]
mov edx, dword [rdx + rax]
mov rax, qword [rbp - 8]
add rax, 0x20
xor edx, ecx
mov dword [rax], edx
mov rax, qword [rbp - 8]
add rax, 4
mov ecx, dword [rax]
mov rax, qword [rbp - 8]
add rax, 0x20
mov edx, dword [rax]
mov rax, qword [rbp - 8]
add rax, 0x24
xor edx, ecx
mov dword [rax], edx
mov rax, qword [rbp - 8]
add rax, 8
mov ecx, dword [rax]
mov rax, qword [rbp - 8]
add rax, 0x24
mov edx, dword [rax]
mov rax, qword [rbp - 8]
add rax, 0x28
xor edx, ecx
mov dword [rax], edx
mov rax, qword [rbp - 8]
add rax, 0xc
mov ecx, dword [rax]
mov rax, qword [rbp - 8]
add rax, 0x28
mov edx, dword [rax]
mov rax, qword [rbp - 8]
add rax, 0x2c
xor edx, ecx
mov dword [rax], edx
add dword [rbp - 0xc], 1
cmp dword [rbp - 0xc], 7
je 0x1400452d9
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x2c]
mov dword [rbp - 0x14], eax
mov rax, qword [rbp - 8]
add rax, 0x10
mov eax, dword [rax]
mov edx, dword [rbp - 0x14]
shr edx, 0x18
movzx edx, dl
mov edx, edx
add rdx, 0x200
lea rcx, [rdx*4]
lea rdx, [0x1400aae60]
mov edx, dword [rcx + rdx]
and edx, 0xff000000
xor eax, edx
mov ecx, eax
mov eax, dword [rbp - 0x14]
shr eax, 0x10
movzx eax, al
mov eax, eax
add rax, 0x300
lea rdx, [rax*4]
lea rax, [0x1400aae60]
mov eax, dword [rdx + rax]
and eax, 0xff0000
xor ecx, eax
mov eax, dword [rbp - 0x14]
shr eax, 8
movzx eax, al
mov eax, eax
lea rdx, [rax*4]
lea rax, [0x1400aae60]
mov eax, dword [rdx + rax]
and eax, 0xff00
xor ecx, eax
mov eax, dword [rbp - 0x14]
movzx eax, al
mov eax, eax
add rax, 0x100
lea rdx, [rax*4]
lea rax, [0x1400aae60]
mov eax, dword [rdx + rax]
movzx edx, al
mov rax, qword [rbp - 8]
add rax, 0x30
xor edx, ecx
mov dword [rax], edx
mov rax, qword [rbp - 8]
add rax, 0x14
mov ecx, dword [rax]
mov rax, qword [rbp - 8]
add rax, 0x30
mov edx, dword [rax]
mov rax, qword [rbp - 8]
add rax, 0x34
xor edx, ecx
mov dword [rax], edx
mov rax, qword [rbp - 8]
add rax, 0x18
mov ecx, dword [rax]
mov rax, qword [rbp - 8]
add rax, 0x34
mov edx, dword [rax]
mov rax, qword [rbp - 8]
add rax, 0x38
xor edx, ecx
mov dword [rax], edx
mov rax, qword [rbp - 8]
add rax, 0x1c
mov ecx, dword [rax]
mov rax, qword [rbp - 8]
add rax, 0x38
mov edx, dword [rax]
mov rax, qword [rbp - 8]
add rax, 0x3c
xor edx, ecx
mov dword [rax], edx
add qword [rbp - 8], 0x20
jmp 0x140045070
nop
nop
lea rax, [rbp - 0x14]
mov edx, 4
mov rcx, rax
call fcn.1400402e3
cmp dword [rbp + 0x28], 1
jne 0x14004597d
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0xf0]
shl eax, 2
mov dword [rbp - 0x10], eax
jmp 0x1400454b6
mov eax, dword [rbp - 0xc]
lea rdx, [rax*4]
mov rax, qword [rbp - 8]
add rax, rdx
mov eax, dword [rax]
mov dword [rbp - 0x14], eax
mov eax, dword [rbp - 0x10]
lea rdx, [rax*4]
mov rax, qword [rbp - 8]
add rax, rdx
mov edx, dword [rbp - 0xc]
lea rcx, [rdx*4]
mov rdx, qword [rbp - 8]
add rdx, rcx
mov eax, dword [rax]
mov dword [rdx], eax
mov eax, dword [rbp - 0x10]
lea rdx, [rax*4]
mov rax, qword [rbp - 8]
add rdx, rax
mov eax, dword [rbp - 0x14]
mov dword [rdx], eax
mov eax, dword [rbp - 0xc]
add eax, 1
mov eax, eax
lea rdx, [rax*4]
mov rax, qword [rbp - 8]
add rax, rdx
mov eax, dword [rax]
mov dword [rbp - 0x14], eax
mov eax, dword [rbp - 0x10]
add eax, 1
mov eax, eax
lea rdx, [rax*4]
mov rax, qword [rbp - 8]
add rax, rdx
mov edx, dword [rbp - 0xc]
add edx, 1
mov edx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp - 8]
add rdx, rcx
mov eax, dword [rax]
mov dword [rdx], eax
mov eax, dword [rbp - 0x10]
add eax, 1
mov eax, eax
lea rdx, [rax*4]
mov rax, qword [rbp - 8]
add rdx, rax
mov eax, dword [rbp - 0x14]
mov dword [rdx], eax
mov eax, dword [rbp - 0xc]
add eax, 2
mov eax, eax
lea rdx, [rax*4]
mov rax, qword [rbp - 8]
add rax, rdx
mov eax, dword [rax]
mov dword [rbp - 0x14], eax
mov eax, dword [rbp - 0x10]
add eax, 2
mov eax, eax
lea rdx, [rax*4]
mov rax, qword [rbp - 8]
add rax, rdx
mov edx, dword [rbp - 0xc]
add edx, 2
mov edx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp - 8]
add rdx, rcx
mov eax, dword [rax]
mov dword [rdx], eax
mov eax, dword [rbp - 0x10]
add eax, 2
mov eax, eax
lea rdx, [rax*4]
mov rax, qword [rbp - 8]
add rdx, rax
mov eax, dword [rbp - 0x14]
mov dword [rdx], eax
mov eax, dword [rbp - 0xc]
add eax, 3
mov eax, eax
lea rdx, [rax*4]
mov rax, qword [rbp - 8]
add rax, rdx
mov eax, dword [rax]
mov dword [rbp - 0x14], eax
mov eax, dword [rbp - 0x10]
add eax, 3
mov eax, eax
lea rdx, [rax*4]
mov rax, qword [rbp - 8]
add rax, rdx
mov edx, dword [rbp - 0xc]
add edx, 3
mov edx, edx
lea rcx, [rdx*4]
mov rdx, qword [rbp - 8]
add rdx, rcx
mov eax, dword [rax]
mov dword [rdx], eax
mov eax, dword [rbp - 0x10]
add eax, 3
mov eax, eax
lea rdx, [rax*4]
mov rax, qword [rbp - 8]
add rdx, rax
mov eax, dword [rbp - 0x14]
mov dword [rdx], eax
add dword [rbp - 0xc], 4
sub dword [rbp - 0x10], 4
mov eax, dword [rbp - 0xc]
cmp eax, dword [rbp - 0x10]
jb 0x14004531a
lea rax, [rbp - 0x14]
mov edx, 4
mov rcx, rax
call fcn.1400402e3
mov dword [rbp - 0xc], 1
jmp 0x14004596a
add qword [rbp - 8], 0x10
mov rax, qword [rbp - 8]
mov eax, dword [rax]
shr eax, 0x18
movzx eax, al
mov eax, eax
add rax, 0x100
lea rdx, [rax*4]
lea rax, [0x1400aae60]
mov eax, dword [rdx + rax]
movzx eax, al
mov eax, eax
lea rdx, [rax*4]
lea rax, [0x1400abe60]
mov edx, dword [rdx + rax]
mov rax, qword [rbp - 8]
mov eax, dword [rax]
shr eax, 0x10
movzx eax, al
mov eax, eax
add rax, 0x100
lea rcx, [rax*4]
lea rax, [0x1400aae60]
mov eax, dword [rcx + rax]
movzx eax, al
mov eax, eax
add rax, 0x100
lea rcx, [rax*4]
lea rax, [0x1400abe60]
mov eax, dword [rcx + rax]
mov ecx, edx
xor ecx, eax
mov rax, qword [rbp - 8]
mov eax, dword [rax]
shr eax, 8
movzx eax, al
mov eax, eax
add rax, 0x100
lea rdx, [rax*4]
lea rax, [0x1400aae60]
mov eax, dword [rdx + rax]
movzx eax, al
mov eax, eax
add rax, 0x200
lea rdx, [rax*4]
lea rax, [0x1400abe60]
mov eax, dword [rdx + rax]
xor ecx, eax
mov rax, qword [rbp - 8]
mov eax, dword [rax]
movzx eax, al
mov eax, eax
add rax, 0x100
lea rdx, [rax*4]
lea rax, [0x1400aae60]
mov eax, dword [rdx + rax]
movzx eax, al
mov eax, eax
add rax, 0x300
lea rdx, [rax*4]
lea rax, [0x1400abe60]
mov eax, dword [rdx + rax]
xor ecx, eax
mov edx, ecx
mov rax, qword [rbp - 8]
mov dword [rax], edx
mov rax, qword [rbp - 8]
add rax, 4
mov eax, dword [rax]
shr eax, 0x18
movzx eax, al
mov eax, eax
add rax, 0x100
lea rdx, [rax*4]
lea rax, [0x1400aae60]
mov eax, dword [rdx + rax]
movzx eax, al
mov eax, eax
lea rdx, [rax*4]
lea rax, [0x1400abe60]
mov edx, dword [rdx + rax]
mov rax, qword [rbp - 8]
add rax, 4
mov eax, dword [rax]
shr eax, 0x10
movzx eax, al
mov eax, eax
add rax, 0x100
lea rcx, [rax*4]
lea rax, [0x1400aae60]
mov eax, dword [rcx + rax]
movzx eax, al
mov eax, eax
add rax, 0x100
lea rcx, [rax*4]
lea rax, [0x1400abe60]
mov eax, dword [rcx + rax]
mov ecx, edx
xor ecx, eax
mov rax, qword [rbp - 8]
add rax, 4
mov eax, dword [rax]
shr eax, 8
movzx eax, al
mov eax, eax
add rax, 0x100
lea rdx, [rax*4]
lea rax, [0x1400aae60]
mov eax, dword [rdx + rax]
movzx eax, al
mov eax, eax
add rax, 0x200
lea rdx, [rax*4]
lea rax, [0x1400abe60]
mov eax, dword [rdx + rax]
xor ecx, eax
mov rax, qword [rbp - 8]
add rax, 4
mov eax, dword [rax]
movzx eax, al
mov eax, eax
add rax, 0x100
lea rdx, [rax*4]
lea rax, [0x1400aae60]
mov eax, dword [rdx + rax]
movzx eax, al
mov eax, eax
add rax, 0x300
lea rdx, [rax*4]
lea rax, [0x1400abe60]
mov edx, dword [rdx + rax]
mov rax, qword [rbp - 8]
add rax, 4
xor edx, ecx
mov dword [rax], edx
mov rax, qword [rbp - 8]
add rax, 8
mov eax, dword [rax]
shr eax, 0x18
movzx eax, al
mov eax, eax
add rax, 0x100
lea rdx, [rax*4]
lea rax, [0x1400aae60]
mov eax, dword [rdx + rax]
movzx eax, al
mov eax, eax
lea rdx, [rax*4]
lea rax, [0x1400abe60]
mov edx, dword [rdx + rax]
mov rax, qword [rbp - 8]
add rax, 8
mov eax, dword [rax]
shr eax, 0x10
movzx eax, al
mov eax, eax
add rax, 0x100
lea rcx, [rax*4]
lea rax, [0x1400aae60]
mov eax, dword [rcx + rax]
movzx eax, al
mov eax, eax
add rax, 0x100
lea rcx, [rax*4]
lea rax, [0x1400abe60]
mov eax, dword [rcx + rax]
mov ecx, edx
xor ecx, eax
mov rax, qword [rbp - 8]
add rax, 8
mov eax, dword [rax]
shr eax, 8
movzx eax, al
mov eax, eax
add rax, 0x100
lea rdx, [rax*4]
lea rax, [0x1400aae60]
mov eax, dword [rdx + rax]
movzx eax, al
mov eax, eax
add rax, 0x200
lea rdx, [rax*4]
lea rax, [0x1400abe60]
mov eax, dword [rdx + rax]
xor ecx, eax
mov rax, qword [rbp - 8]
add rax, 8
mov eax, dword [rax]
movzx eax, al
mov eax, eax
add rax, 0x100
lea rdx, [rax*4]
lea rax, [0x1400aae60]
mov eax, dword [rdx + rax]
movzx eax, al
mov eax, eax
add rax, 0x300
lea rdx, [rax*4]
lea rax, [0x1400abe60]
mov edx, dword [rdx + rax]
mov rax, qword [rbp - 8]
add rax, 8
xor edx, ecx
mov dword [rax], edx
mov rax, qword [rbp - 8]
add rax, 0xc
mov eax, dword [rax]
shr eax, 0x18
movzx eax, al
mov eax, eax
add rax, 0x100
lea rdx, [rax*4]
lea rax, [0x1400aae60]
mov eax, dword [rdx + rax]
movzx eax, al
mov eax, eax
lea rdx, [rax*4]
lea rax, [0x1400abe60]
mov edx, dword [rdx + rax]
mov rax, qword [rbp - 8]
add rax, 0xc
mov eax, dword [rax]
shr eax, 0x10
movzx eax, al
mov eax, eax
add rax, 0x100
lea rcx, [rax*4]
lea rax, [0x1400aae60]
mov eax, dword [rcx + rax]
movzx eax, al
mov eax, eax
add rax, 0x100
lea rcx, [rax*4]
lea rax, [0x1400abe60]
mov eax, dword [rcx + rax]
mov ecx, edx
xor ecx, eax
mov rax, qword [rbp - 8]
add rax, 0xc
mov eax, dword [rax]
shr eax, 8
movzx eax, al
mov eax, eax
add rax, 0x100
lea rdx, [rax*4]
lea rax, [0x1400aae60]
mov eax, dword [rdx + rax]
movzx eax, al
mov eax, eax
add rax, 0x200
lea rdx, [rax*4]
lea rax, [0x1400abe60]
mov eax, dword [rdx + rax]
xor ecx, eax
mov rax, qword [rbp - 8]
add rax, 0xc
mov eax, dword [rax]
movzx eax, al
mov eax, eax
add rax, 0x100
lea rdx, [rax*4]
lea rax, [0x1400aae60]
mov eax, dword [rdx + rax]
movzx eax, al
mov eax, eax
add rax, 0x300
lea rdx, [rax*4]
lea rax, [0x1400abe60]
mov edx, dword [rdx + rax]
mov rax, qword [rbp - 8]
add rax, 0xc
xor edx, ecx
mov dword [rax], edx
add dword [rbp - 0xc], 1
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0xf0]
cmp dword [rbp - 0xc], eax
jb 0x1400454df
nop
add rsp, 0x40
pop rbp
ret