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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xd8
cmp qword [rsp + 0xe8], 0
jne 0x14000a5df
jmp 0x14000b0ae
cmp dword [rsp + 0xf8], 0x10
je 0x14000a602
cmp dword [rsp + 0xf8], 0x18
je 0x14000a602
cmp dword [rsp + 0xf8], 0x20
je 0x14000a602
jmp 0x14000b0ae
cmp dword [rsp + 0x100], 0x10
je 0x14000a625
cmp dword [rsp + 0x100], 0x18
je 0x14000a625
cmp dword [rsp + 0x100], 0x20
je 0x14000a625
jmp 0x14000b0ae
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rsp + 0xf8]
mov dword [rax + 0x3cc], ecx
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rsp + 0x100]
mov dword [rax + 0x3d0], ecx
mov rax, qword [rsp + 0xe0]
movsxd rax, dword [rax + 0x3d0]
mov rcx, qword [rsp + 0xe0]
add rcx, 0x3d8
mov r8, rax
mov rdx, qword [rsp + 0xf0]
call fcn.140011d50
mov rax, qword [rsp + 0xe0]
movsxd rax, dword [rax + 0x3d0]
mov rcx, qword [rsp + 0xe0]
add rcx, 0x3f8
mov r8, rax
mov rdx, qword [rsp + 0xf0]
call fcn.140011d50
mov rax, qword [rsp + 0xe0]
mov eax, dword [rax + 0x3cc]
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0x10
je 0x14000a6d0
cmp dword [rsp + 0x58], 0x18
je 0x14000a72a
jmp 0x14000a761
mov rax, qword [rsp + 0xe0]
cmp dword [rax + 0x3d0], 0x10
jne 0x14000a6eb
mov dword [rsp + 0x60], 0xa
jmp 0x14000a716
mov rax, qword [rsp + 0xe0]
cmp dword [rax + 0x3d0], 0x18
jne 0x14000a706
mov dword [rsp + 0x5c], 0xc
jmp 0x14000a70e
mov dword [rsp + 0x5c], 0xe
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rsp + 0x60]
mov dword [rax + 0x3d4], ecx
jmp 0x14000a773
mov rax, qword [rsp + 0xe0]
cmp dword [rax + 0x3d0], 0x20
je 0x14000a745
mov dword [rsp + 0x64], 0xc
jmp 0x14000a74d
mov dword [rsp + 0x64], 0xe
mov rax, qword [rsp + 0xe0]
mov ecx, dword [rsp + 0x64]
mov dword [rax + 0x3d4], ecx
jmp 0x14000a773
mov rax, qword [rsp + 0xe0]
mov dword [rax + 0x3d4], 0xe
mov rax, qword [rsp + 0xe0]
mov eax, dword [rax + 0x3d0]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x24], 0
jmp 0x14000a7a2
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0xe0]
mov eax, dword [rax + 0x3d4]
cmp dword [rsp + 0x24], eax
jg 0x14000a7fa
mov dword [rsp + 0x20], 0
jmp 0x14000a7ca
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x20], eax
jge 0x14000a7f8
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0xe0]
lea rax, [rcx + rax + 0xc]
movsxd rcx, dword [rsp + 0x20]
mov dword [rax + rcx*4], 0
jmp 0x14000a7c0
jmp 0x14000a798
mov dword [rsp + 0x24], 0
jmp 0x14000a80e
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0xe0]
mov eax, dword [rax + 0x3d4]
cmp dword [rsp + 0x24], eax
jg 0x14000a869
mov dword [rsp + 0x20], 0
jmp 0x14000a836
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x20], eax
jge 0x14000a867
movsxd rax, dword [rsp + 0x24]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0xe0]
lea rax, [rcx + rax + 0x1ec]
movsxd rcx, dword [rsp + 0x20]
mov dword [rax + rcx*4], 0
jmp 0x14000a82c
jmp 0x14000a804
mov rax, qword [rsp + 0xe0]
mov eax, dword [rax + 0x3d4]
inc eax
imul eax, dword [rsp + 0x34]
mov dword [rsp + 0x54], eax
mov rax, qword [rsp + 0xe0]
mov eax, dword [rax + 0x3cc]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0xe0]
add rax, 0x418
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x24], 0
jmp 0x14000a8d1
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x24], eax
jge 0x14000a9b6
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax]
mov dword [rsp + 0x88], eax
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x88]
shl eax, 0x18
mov rcx, qword [rsp + 0x48]
mov dword [rcx], eax
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax]
mov dword [rsp + 0x8c], eax
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x8c]
shl eax, 0x10
mov rcx, qword [rsp + 0x48]
mov ecx, dword [rcx]
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x48]
mov dword [rcx], eax
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax]
mov dword [rsp + 0x68], eax
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x68]
shl eax, 8
mov rcx, qword [rsp + 0x48]
mov ecx, dword [rcx]
or ecx, eax
mov eax, ecx
mov rcx, qword [rsp + 0x48]
mov dword [rcx], eax
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax]
mov dword [rsp + 0x6c], eax
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x6c]
mov eax, dword [rax]
or eax, ecx
mov rcx, qword [rsp + 0x48]
mov dword [rcx], eax
mov rax, qword [rsp + 0x48]
add rax, 4
mov qword [rsp + 0x48], rax
jmp 0x14000a8c7
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
jmp 0x14000a9dc
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x20], eax
jge 0x14000aad2
mov eax, dword [rsp + 0x54]
cmp dword [rsp + 0x28], eax
jge 0x14000aad2
movsxd rax, dword [rsp + 0x20]
mov qword [rsp + 0x90], rax
mov eax, dword [rsp + 0x28]
cdq
idiv dword [rsp + 0x34]
cdqe
imul rax, rax, 0x20
mov rcx, qword [rsp + 0xe0]
lea rax, [rcx + rax + 0xc]
mov qword [rsp + 0x98], rax
mov eax, dword [rsp + 0x28]
cdq
idiv dword [rsp + 0x34]
mov eax, edx
cdqe
mov rcx, qword [rsp + 0xe0]
mov rdx, qword [rsp + 0x90]
mov ecx, dword [rcx + rdx*4 + 0x418]
mov rdx, qword [rsp + 0x98]
mov dword [rdx + rax*4], ecx
movsxd rax, dword [rsp + 0x20]
mov qword [rsp + 0xa0], rax
mov eax, dword [rsp + 0x28]
cdq
idiv dword [rsp + 0x34]
mov rcx, qword [rsp + 0xe0]
mov ecx, dword [rcx + 0x3d4]
sub ecx, eax
mov eax, ecx
cdqe
imul rax, rax, 0x20
mov rcx, qword [rsp + 0xe0]
lea rax, [rcx + rax + 0x1ec]
mov qword [rsp + 0xa8], rax
mov eax, dword [rsp + 0x28]
cdq
idiv dword [rsp + 0x34]
mov eax, edx
cdqe
mov rcx, qword [rsp + 0xe0]
mov rdx, qword [rsp + 0xa0]
mov ecx, dword [rcx + rdx*4 + 0x418]
mov rdx, qword [rsp + 0xa8]
mov dword [rdx + rax*4], ecx
jmp 0x14000a9c8
mov dword [rsp + 0x50], 0
mov eax, dword [rsp + 0x54]
cmp dword [rsp + 0x28], eax
jge 0x14000af9e
mov eax, dword [rsp + 0x30]
dec eax
cdqe
mov rcx, qword [rsp + 0xe0]
mov eax, dword [rcx + rax*4 + 0x418]
mov dword [rsp + 0x2c], eax
movsxd rax, dword [rsp + 0x50]
lea rcx, [0x140024de0]
movsx eax, byte [rcx + rax]
and eax, 0xff
mov dword [rsp + 0x70], eax
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0x70]
shl eax, 0x18
mov ecx, dword [rsp + 0x2c]
sar ecx, 0x18
and ecx, 0xff
movsxd rcx, ecx
lea rdx, str.cw
movsx ecx, byte [rdx + rcx]
and ecx, 0xff
mov edx, dword [rsp + 0x2c]
and edx, 0xff
movsxd rdx, edx
lea r8, str.cw
movsx edx, byte [r8 + rdx]
and edx, 0xff
shl edx, 8
mov r8d, dword [rsp + 0x2c]
sar r8d, 8
and r8d, 0xff
movsxd r8, r8d
lea r9, str.cw
movsx r8d, byte [r9 + r8]
and r8d, 0xff
shl r8d, 0x10
mov r9d, dword [rsp + 0x2c]
sar r9d, 0x10
and r9d, 0xff
movsxd r9, r9d
lea r10, str.cw
movsx r9d, byte [r10 + r9]
and r9d, 0xff
shl r9d, 0x18
xor r9d, r8d
mov r8d, r9d
xor r8d, edx
mov edx, r8d
xor edx, ecx
mov ecx, edx
xor ecx, eax
mov eax, ecx
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0xe0]
mov ecx, dword [rdx + rcx + 0x418]
xor ecx, eax
mov eax, ecx
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0xe0]
mov dword [rdx + rcx + 0x418], eax
cmp dword [rsp + 0x30], 8
je 0x14000ac8e
mov dword [rsp + 0x24], 1
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x24], eax
jge 0x14000ac89
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0xe0]
mov eax, dword [rcx + rax*4 + 0x418]
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0xe0]
mov edx, dword [rsp + 0x74]
mov eax, dword [rcx + rax*4 + 0x418]
xor eax, edx
movsxd rcx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0xe0]
mov dword [rdx + rcx*4 + 0x418], eax
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
jmp 0x14000ac23
jmp 0x14000ae85
mov dword [rsp + 0x24], 1
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x30]
cdq
sub eax, edx
sar eax, 1
cmp dword [rsp + 0x24], eax
jge 0x14000ad09
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0xe0]
mov eax, dword [rcx + rax*4 + 0x418]
mov dword [rsp + 0x78], eax
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0xe0]
mov edx, dword [rsp + 0x78]
mov eax, dword [rcx + rax*4 + 0x418]
xor eax, edx
movsxd rcx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0xe0]
mov dword [rdx + rcx*4 + 0x418], eax
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
jmp 0x14000ac9e
mov eax, dword [rsp + 0x30]
cdq
sub eax, edx
sar eax, 1
dec eax
cdqe
mov rcx, qword [rsp + 0xe0]
mov eax, dword [rcx + rax*4 + 0x418]
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x2c]
and eax, 0xff
cdqe
lea rcx, str.cw
movsx eax, byte [rcx + rax]
and eax, 0xff
mov ecx, dword [rsp + 0x2c]
sar ecx, 8
and ecx, 0xff
movsxd rcx, ecx
lea rdx, str.cw
movsx ecx, byte [rdx + rcx]
and ecx, 0xff
shl ecx, 8
xor eax, ecx
mov ecx, dword [rsp + 0x2c]
sar ecx, 0x10
and ecx, 0xff
movsxd rcx, ecx
lea rdx, str.cw
movsx ecx, byte [rdx + rcx]
and ecx, 0xff
shl ecx, 0x10
xor eax, ecx
mov ecx, dword [rsp + 0x2c]
sar ecx, 0x18
and ecx, 0xff
movsxd rcx, ecx
lea rdx, str.cw
movsx ecx, byte [rdx + rcx]
and ecx, 0xff
shl ecx, 0x18
xor eax, ecx
mov dword [rsp + 0x7c], eax
mov eax, dword [rsp + 0x30]
cdq
sub eax, edx
sar eax, 1
cdqe
mov rcx, qword [rsp + 0xe0]
mov eax, dword [rcx + rax*4 + 0x418]
mov ecx, dword [rsp + 0x7c]
xor eax, ecx
mov dword [rsp + 0x80], eax
mov eax, dword [rsp + 0x30]
cdq
sub eax, edx
sar eax, 1
cdqe
mov rcx, qword [rsp + 0xe0]
mov edx, dword [rsp + 0x80]
mov dword [rcx + rax*4 + 0x418], edx
mov eax, dword [rsp + 0x30]
cdq
sub eax, edx
sar eax, 1
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x24], eax
jge 0x14000ae85
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0xe0]
mov eax, dword [rcx + rax*4 + 0x418]
mov dword [rsp + 0x84], eax
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0xe0]
mov edx, dword [rsp + 0x84]
mov eax, dword [rcx + rax*4 + 0x418]
xor eax, edx
movsxd rcx, dword [rsp + 0x24]
mov rdx, qword [rsp + 0xe0]
mov dword [rdx + rcx*4 + 0x418], eax
mov eax, dword [rsp + 0x24]
inc eax
mov dword [rsp + 0x24], eax
jmp 0x14000ae19
mov dword [rsp + 0x20], 0
jmp 0x14000aea3
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x30]
cmp dword [rsp + 0x20], eax
jge 0x14000af99
mov eax, dword [rsp + 0x54]
cmp dword [rsp + 0x28], eax
jge 0x14000af99
movsxd rax, dword [rsp + 0x20]
mov qword [rsp + 0xb0], rax
mov eax, dword [rsp + 0x28]
cdq
idiv dword [rsp + 0x34]
cdqe
imul rax, rax, 0x20
mov rcx, qword [rsp + 0xe0]
lea rax, [rcx + rax + 0xc]
mov qword [rsp + 0xb8], rax
mov eax, dword [rsp + 0x28]
cdq
idiv dword [rsp + 0x34]
mov eax, edx
cdqe
mov rcx, qword [rsp + 0xe0]
mov rdx, qword [rsp + 0xb0]
mov ecx, dword [rcx + rdx*4 + 0x418]
mov rdx, qword [rsp + 0xb8]
mov dword [rdx + rax*4], ecx
movsxd rax, dword [rsp + 0x20]
mov qword [rsp + 0xc0], rax
mov eax, dword [rsp + 0x28]
cdq
idiv dword [rsp + 0x34]
mov rcx, qword [rsp + 0xe0]
mov ecx, dword [rcx + 0x3d4]
sub ecx, eax
mov eax, ecx
cdqe
imul rax, rax, 0x20
mov rcx, qword [rsp + 0xe0]
lea rax, [rcx + rax + 0x1ec]
mov qword [rsp + 0xc8], rax
mov eax, dword [rsp + 0x28]
cdq
idiv dword [rsp + 0x34]
mov eax, edx
cdqe
mov rcx, qword [rsp + 0xe0]
mov rdx, qword [rsp + 0xc0]
mov ecx, dword [rcx + rdx*4 + 0x418]
mov rdx, qword [rsp + 0xc8]
mov dword [rdx + rax*4], ecx
jmp 0x14000ae8f
jmp 0x14000aada
mov dword [rsp + 0x40], 1
jmp 0x14000afb2
mov eax, dword [rsp + 0x40]
inc eax
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0xe0]
mov eax, dword [rax + 0x3d4]
cmp dword [rsp + 0x40], eax
jge 0x14000b0a2
mov dword [rsp + 0x20], 0
jmp 0x14000afde
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x20], eax
jge 0x14000b09d
movsxd rax, dword [rsp + 0x40]
imul rax, rax, 0x20
mov rcx, qword [rsp + 0xe0]
lea rax, [rcx + rax + 0x1ec]
movsxd rcx, dword [rsp + 0x20]
mov eax, dword [rax + rcx*4]
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x2c]
sar eax, 0x18
and eax, 0xff
cdqe
lea rcx, [0x140023de0]
mov edx, dword [rsp + 0x2c]
sar edx, 0x10
and edx, 0xff
movsxd rdx, edx
lea r8, [0x1400241e0]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rsp + 0x2c]
sar ecx, 8
and ecx, 0xff
movsxd rcx, ecx
lea rdx, [0x1400245e0]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rsp + 0x2c]
and ecx, 0xff
movsxd rcx, ecx
lea rdx, [0x1400249e0]
xor eax, dword [rdx + rcx*4]
movsxd rcx, dword [rsp + 0x40]
imul rcx, rcx, 0x20
mov rdx, qword [rsp + 0xe0]
lea rcx, [rdx + rcx + 0x1ec]
movsxd rdx, dword [rsp + 0x20]
mov dword [rcx + rdx*4], eax
jmp 0x14000afd4
jmp 0x14000afa8
mov rax, qword [rsp + 0xe0]
mov byte [rax + 8], 1
add rsp, 0xd8
ret