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

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov r8, qword [rsp + 0x60]
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call fcn.1400295a0
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jge 0x140029c99
mov eax, dword [rsp + 0x28]
jmp 0x14002a146
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], 0
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0xf0]
shl eax, 2
mov dword [rsp + 0x38], eax
jmp 0x140029cd5
mov eax, dword [rsp + 0x20]
add eax, 4
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x38]
sub eax, 4
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0x38]
cmp dword [rsp + 0x20], eax
jge 0x140029e18
movsxd rcx, dword [rsp + 0x20]
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + rcx*4]
mov dword [rsp + 0x24], eax
movsxd r8, dword [rsp + 0x38]
movsxd rdx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + r8*4]
mov dword [rcx + rdx*4], eax
movsxd rdx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
mov eax, dword [rsp + 0x24]
mov dword [rcx + rdx*4], eax
mov eax, dword [rsp + 0x20]
add eax, 1
movsxd rcx, eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + rcx*4]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x38]
add eax, 1
movsxd r8, eax
mov eax, dword [rsp + 0x20]
add eax, 1
movsxd rdx, eax
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + r8*4]
mov dword [rcx + rdx*4], eax
mov eax, dword [rsp + 0x38]
add eax, 1
movsxd rdx, eax
mov rcx, qword [rsp + 0x30]
mov eax, dword [rsp + 0x24]
mov dword [rcx + rdx*4], eax
mov eax, dword [rsp + 0x20]
add eax, 2
movsxd rcx, eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + rcx*4]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x38]
add eax, 2
movsxd r8, eax
mov eax, dword [rsp + 0x20]
add eax, 2
movsxd rdx, eax
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + r8*4]
mov dword [rcx + rdx*4], eax
mov eax, dword [rsp + 0x38]
add eax, 2
movsxd rdx, eax
mov rcx, qword [rsp + 0x30]
mov eax, dword [rsp + 0x24]
mov dword [rcx + rdx*4], eax
mov eax, dword [rsp + 0x20]
add eax, 3
movsxd rcx, eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + rcx*4]
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x38]
add eax, 3
movsxd r8, eax
mov eax, dword [rsp + 0x20]
add eax, 3
movsxd rdx, eax
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + r8*4]
mov dword [rcx + rdx*4], eax
mov eax, dword [rsp + 0x38]
add eax, 3
movsxd rdx, eax
mov rcx, qword [rsp + 0x30]
mov eax, dword [rsp + 0x24]
mov dword [rcx + rdx*4], eax
jmp 0x140029cbf
mov dword [rsp + 0x20], 1
jmp 0x140029e2d
mov eax, dword [rsp + 0x20]
add eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x60]
mov eax, dword [rax + 0xf0]
cmp dword [rsp + 0x20], eax
jge 0x14002a144
mov rax, qword [rsp + 0x30]
add rax, 0x10
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
shr eax, 0x18
mov ecx, eax
lea rax, [0x14004ab40]
mov eax, dword [rax + rcx*4]
and eax, 0xff
mov r8d, eax
lea rdx, [0x14004b740]
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
shr eax, 0x10
and eax, 0xff
mov ecx, eax
lea rax, [0x14004ab40]
mov eax, dword [rax + rcx*4]
and eax, 0xff
mov ecx, eax
lea rax, [0x14004bb40]
mov eax, dword [rax + rcx*4]
mov r8d, dword [rdx + r8*4]
xor r8d, eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
shr eax, 8
and eax, 0xff
mov ecx, eax
lea rax, [0x14004ab40]
mov eax, dword [rax + rcx*4]
and eax, 0xff
mov ecx, eax
lea rax, [0x14004bf40]
xor r8d, dword [rax + rcx*4]
mov rax, qword [rsp + 0x30]
mov eax, dword [rax]
and eax, 0xff
mov ecx, eax
lea rax, [0x14004ab40]
mov eax, dword [rax + rcx*4]
and eax, 0xff
mov edx, eax
lea rax, [0x14004c340]
mov ecx, r8d
xor ecx, dword [rax + rdx*4]
mov rax, qword [rsp + 0x30]
mov dword [rax], ecx
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 4]
shr eax, 0x18
mov ecx, eax
lea rax, [0x14004ab40]
mov eax, dword [rax + rcx*4]
and eax, 0xff
mov r8d, eax
lea rdx, [0x14004b740]
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 4]
shr eax, 0x10
and eax, 0xff
mov ecx, eax
lea rax, [0x14004ab40]
mov eax, dword [rax + rcx*4]
and eax, 0xff
mov ecx, eax
lea rax, [0x14004bb40]
mov eax, dword [rax + rcx*4]
mov r8d, dword [rdx + r8*4]
xor r8d, eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 4]
shr eax, 8
and eax, 0xff
mov ecx, eax
lea rax, [0x14004ab40]
mov eax, dword [rax + rcx*4]
and eax, 0xff
mov ecx, eax
lea rax, [0x14004bf40]
xor r8d, dword [rax + rcx*4]
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 4]
and eax, 0xff
mov ecx, eax
lea rax, [0x14004ab40]
mov eax, dword [rax + rcx*4]
and eax, 0xff
mov edx, eax
lea rax, [0x14004c340]
mov ecx, r8d
xor ecx, dword [rax + rdx*4]
mov rax, qword [rsp + 0x30]
mov dword [rax + 4], ecx
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 8]
shr eax, 0x18
mov ecx, eax
lea rax, [0x14004ab40]
mov eax, dword [rax + rcx*4]
and eax, 0xff
mov r8d, eax
lea rdx, [0x14004b740]
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 8]
shr eax, 0x10
and eax, 0xff
mov ecx, eax
lea rax, [0x14004ab40]
mov eax, dword [rax + rcx*4]
and eax, 0xff
mov ecx, eax
lea rax, [0x14004bb40]
mov eax, dword [rax + rcx*4]
mov r8d, dword [rdx + r8*4]
xor r8d, eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 8]
shr eax, 8
and eax, 0xff
mov ecx, eax
lea rax, [0x14004ab40]
mov eax, dword [rax + rcx*4]
and eax, 0xff
mov ecx, eax
lea rax, [0x14004bf40]
xor r8d, dword [rax + rcx*4]
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 8]
and eax, 0xff
mov ecx, eax
lea rax, [0x14004ab40]
mov eax, dword [rax + rcx*4]
and eax, 0xff
mov edx, eax
lea rax, [0x14004c340]
mov ecx, r8d
xor ecx, dword [rax + rdx*4]
mov rax, qword [rsp + 0x30]
mov dword [rax + 8], ecx
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0xc]
shr eax, 0x18
mov ecx, eax
lea rax, [0x14004ab40]
mov eax, dword [rax + rcx*4]
and eax, 0xff
mov r8d, eax
lea rdx, [0x14004b740]
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0xc]
shr eax, 0x10
and eax, 0xff
mov ecx, eax
lea rax, [0x14004ab40]
mov eax, dword [rax + rcx*4]
and eax, 0xff
mov ecx, eax
lea rax, [0x14004bb40]
mov eax, dword [rax + rcx*4]
mov r8d, dword [rdx + r8*4]
xor r8d, eax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0xc]
shr eax, 8
and eax, 0xff
mov ecx, eax
lea rax, [0x14004ab40]
mov eax, dword [rax + rcx*4]
and eax, 0xff
mov ecx, eax
lea rax, [0x14004bf40]
xor r8d, dword [rax + rcx*4]
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0xc]
and eax, 0xff
mov ecx, eax
lea rax, [0x14004ab40]
mov eax, dword [rax + rcx*4]
and eax, 0xff
mov edx, eax
lea rax, [0x14004c340]
mov ecx, r8d
xor ecx, dword [rax + rdx*4]
mov rax, qword [rsp + 0x30]
mov dword [rax + 0xc], ecx
jmp 0x140029e22
xor eax, eax
add rsp, 0x48
ret