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

Disassembly:
jmp 0x140016460
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x258
lea rbp, [rsp + 0x20]
lea rcx, [0x140037068]
call fcn.14001169a
cmp qword [rbp + 0x258], 0
jne 0x14001649d
jmp 0x140016f10
cmp dword [rbp + 0x268], 0x10
je 0x1400164bd
cmp dword [rbp + 0x268], 0x18
je 0x1400164bd
cmp dword [rbp + 0x268], 0x20
je 0x1400164bd
jmp 0x140016f10
cmp dword [rbp + 0x270], 0x10
je 0x1400164dd
cmp dword [rbp + 0x270], 0x18
je 0x1400164dd
cmp dword [rbp + 0x270], 0x20
je 0x1400164dd
jmp 0x140016f10
mov rax, qword [rbp + 0x250]
mov ecx, dword [rbp + 0x268]
mov dword [rax + 0x3cc], ecx
mov rax, qword [rbp + 0x250]
mov ecx, dword [rbp + 0x270]
mov dword [rax + 0x3d0], ecx
mov rax, qword [rbp + 0x250]
movsxd rax, dword [rax + 0x3d0]
mov rcx, qword [rbp + 0x250]
add rcx, 0x3d8
mov r8, rax
mov rdx, qword [rbp + 0x260]
call fcn.140011343
mov rax, qword [rbp + 0x250]
movsxd rax, dword [rax + 0x3d0]
mov rcx, qword [rbp + 0x250]
add rcx, 0x3f8
mov r8, rax
mov rdx, qword [rbp + 0x260]
call fcn.140011343
mov rax, qword [rbp + 0x250]
mov eax, dword [rax + 0x3cc]
mov dword [rbp + 0x214], eax
cmp dword [rbp + 0x214], 0x10
je 0x140016583
cmp dword [rbp + 0x214], 0x18
je 0x1400165e6
jmp 0x140016621
mov rax, qword [rbp + 0x250]
cmp dword [rax + 0x3d0], 0x10
jne 0x14001659f
mov dword [rbp + 0x214], 0xa
jmp 0x1400165d1
mov rax, qword [rbp + 0x250]
cmp dword [rax + 0x3d0], 0x18
jne 0x1400165bb
mov dword [rbp + 0x218], 0xc
jmp 0x1400165c5
mov dword [rbp + 0x218], 0xe
mov eax, dword [rbp + 0x218]
mov dword [rbp + 0x214], eax
mov rax, qword [rbp + 0x250]
mov ecx, dword [rbp + 0x214]
mov dword [rax + 0x3d4], ecx
jmp 0x140016632
mov rax, qword [rbp + 0x250]
cmp dword [rax + 0x3d0], 0x20
je 0x140016602
mov dword [rbp + 0x214], 0xc
jmp 0x14001660c
mov dword [rbp + 0x214], 0xe
mov rax, qword [rbp + 0x250]
mov ecx, dword [rbp + 0x214]
mov dword [rax + 0x3d4], ecx
jmp 0x140016632
mov rax, qword [rbp + 0x250]
mov dword [rax + 0x3d4], 0xe
mov rax, qword [rbp + 0x250]
mov eax, dword [rax + 0x3d0]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [rbp + 4], eax
mov dword [rbp + 0x24], 0
jmp 0x14001665c
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
mov rax, qword [rbp + 0x250]
mov eax, dword [rax + 0x3d4]
cmp dword [rbp + 0x24], eax
jg 0x1400166aa
mov dword [rbp + 0x44], 0
jmp 0x14001667f
mov eax, dword [rbp + 0x44]
inc eax
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 4]
cmp dword [rbp + 0x44], eax
jge 0x1400166a8
movsxd rax, dword [rbp + 0x24]
imul rax, rax, 0x20
mov rcx, qword [rbp + 0x250]
lea rax, [rcx + rax + 0xc]
movsxd rcx, dword [rbp + 0x44]
mov dword [rax + rcx*4], 0
jmp 0x140016677
jmp 0x140016654
mov dword [rbp + 0x24], 0
jmp 0x1400166bb
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
mov rax, qword [rbp + 0x250]
mov eax, dword [rax + 0x3d4]
cmp dword [rbp + 0x24], eax
jg 0x14001670c
mov dword [rbp + 0x44], 0
jmp 0x1400166de
mov eax, dword [rbp + 0x44]
inc eax
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 4]
cmp dword [rbp + 0x44], eax
jge 0x14001670a
movsxd rax, dword [rbp + 0x24]
imul rax, rax, 0x20
mov rcx, qword [rbp + 0x250]
lea rax, [rcx + rax + 0x1ec]
movsxd rcx, dword [rbp + 0x44]
mov dword [rax + rcx*4], 0
jmp 0x1400166d6
jmp 0x1400166b3
mov rax, qword [rbp + 0x250]
mov eax, dword [rax + 0x3d4]
inc eax
imul eax, dword [rbp + 4]
mov dword [rbp + 0x64], eax
mov rax, qword [rbp + 0x250]
mov eax, dword [rax + 0x3cc]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [rbp + 0x84], eax
mov rax, qword [rbp + 0x250]
add rax, 0x418
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x258]
mov qword [rbp + 0xc8], rax
mov dword [rbp + 0x24], 0
jmp 0x140016771
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x84]
cmp dword [rbp + 0x24], eax
jge 0x140016857
mov rax, qword [rbp + 0xc8]
movzx eax, byte [rax]
shl eax, 0x18
mov rcx, qword [rbp + 0xa8]
mov dword [rcx], eax
mov rax, qword [rbp + 0xc8]
inc rax
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0xc8]
movzx eax, byte [rax]
shl eax, 0x10
mov rcx, qword [rbp + 0xa8]
mov ecx, dword [rcx]
or ecx, eax
mov eax, ecx
mov rcx, qword [rbp + 0xa8]
mov dword [rcx], eax
mov rax, qword [rbp + 0xc8]
inc rax
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0xc8]
movzx eax, byte [rax]
shl eax, 8
mov rcx, qword [rbp + 0xa8]
mov ecx, dword [rcx]
or ecx, eax
mov eax, ecx
mov rcx, qword [rbp + 0xa8]
mov dword [rcx], eax
mov rax, qword [rbp + 0xc8]
inc rax
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0xc8]
movzx eax, byte [rax]
mov rcx, qword [rbp + 0xa8]
mov ecx, dword [rcx]
or ecx, eax
mov eax, ecx
mov rcx, qword [rbp + 0xa8]
mov dword [rcx], eax
mov rax, qword [rbp + 0xc8]
inc rax
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0xa8]
add rax, 4
mov qword [rbp + 0xa8], rax
jmp 0x140016769
mov dword [rbp + 0xe4], 0
mov dword [rbp + 0x44], 0
jmp 0x140016880
mov eax, dword [rbp + 0x44]
inc eax
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 0xe4]
inc eax
mov dword [rbp + 0xe4], eax
mov eax, dword [rbp + 0x84]
cmp dword [rbp + 0x44], eax
jge 0x14001696d
mov eax, dword [rbp + 0x64]
cmp dword [rbp + 0xe4], eax
jge 0x14001696d
movsxd rax, dword [rbp + 0x44]
mov qword [rbp + 0x218], rax
mov eax, dword [rbp + 0xe4]
cdq
idiv dword [rbp + 4]
cdqe
imul rax, rax, 0x20
mov rcx, qword [rbp + 0x250]
lea rax, [rcx + rax + 0xc]
mov qword [rbp + 0x220], rax
mov eax, dword [rbp + 0xe4]
cdq
idiv dword [rbp + 4]
mov eax, edx
cdqe
mov rcx, qword [rbp + 0x250]
mov rdx, qword [rbp + 0x218]
mov ecx, dword [rcx + rdx*4 + 0x418]
mov rdx, qword [rbp + 0x220]
mov dword [rdx + rax*4], ecx
movsxd rax, dword [rbp + 0x44]
mov qword [rbp + 0x218], rax
mov eax, dword [rbp + 0xe4]
cdq
idiv dword [rbp + 4]
mov rcx, qword [rbp + 0x250]
mov ecx, dword [rcx + 0x3d4]
sub ecx, eax
mov eax, ecx
cdqe
imul rax, rax, 0x20
mov rcx, qword [rbp + 0x250]
lea rax, [rcx + rax + 0x1ec]
mov qword [rbp + 0x220], rax
mov eax, dword [rbp + 0xe4]
cdq
idiv dword [rbp + 4]
mov eax, edx
cdqe
mov rcx, qword [rbp + 0x250]
mov rdx, qword [rbp + 0x218]
mov ecx, dword [rcx + rdx*4 + 0x418]
mov rdx, qword [rbp + 0x220]
mov dword [rdx + rax*4], ecx
jmp 0x14001686a
mov dword [rbp + 0x124], 0
mov eax, dword [rbp + 0x64]
cmp dword [rbp + 0xe4], eax
jge 0x140016df5
mov eax, dword [rbp + 0x84]
dec eax
cdqe
mov rcx, qword [rbp + 0x250]
mov eax, dword [rcx + rax*4 + 0x418]
mov dword [rbp + 0x104], eax
mov eax, 4
imul rax, rax, 0
mov ecx, dword [rbp + 0x104]
sar ecx, 0x10
and ecx, 0xff
movsxd rcx, ecx
lea rdx, str.cw
movsx ecx, byte [rdx + rcx]
and ecx, 0xff
shl ecx, 0x18
mov edx, dword [rbp + 0x104]
sar edx, 8
and edx, 0xff
movsxd rdx, edx
lea r8, str.cw
movsx edx, byte [r8 + rdx]
and edx, 0xff
shl edx, 0x10
xor ecx, edx
mov edx, dword [rbp + 0x104]
and edx, 0xff
movsxd rdx, edx
lea r8, str.cw
movsx edx, byte [r8 + rdx]
and edx, 0xff
shl edx, 8
xor ecx, edx
mov edx, dword [rbp + 0x104]
sar edx, 0x18
and edx, 0xff
movsxd rdx, edx
lea r8, str.cw
movsx edx, byte [r8 + rdx]
and edx, 0xff
xor ecx, edx
movsxd rdx, dword [rbp + 0x124]
lea r8, [0x14002a6c0]
movsx edx, byte [r8 + rdx]
and edx, 0xff
shl edx, 0x18
xor ecx, edx
mov rdx, qword [rbp + 0x250]
mov eax, dword [rdx + rax + 0x418]
xor eax, ecx
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rbp + 0x250]
mov dword [rdx + rcx + 0x418], eax
mov eax, dword [rbp + 0x124]
inc eax
mov dword [rbp + 0x124], eax
cmp dword [rbp + 0x84], 8
je 0x140016b0d
mov dword [rbp + 0x24], 1
mov dword [rbp + 0x44], 0
mov eax, dword [rbp + 0x84]
cmp dword [rbp + 0x24], eax
jge 0x140016b08
movsxd rax, dword [rbp + 0x24]
movsxd rcx, dword [rbp + 0x44]
mov rdx, qword [rbp + 0x250]
mov r8, qword [rbp + 0x250]
mov ecx, dword [r8 + rcx*4 + 0x418]
mov eax, dword [rdx + rax*4 + 0x418]
xor eax, ecx
movsxd rcx, dword [rbp + 0x24]
mov rdx, qword [rbp + 0x250]
mov dword [rdx + rcx*4 + 0x418], eax
mov eax, dword [rbp + 0x44]
inc eax
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
jmp 0x140016ab2
jmp 0x140016ce4
mov dword [rbp + 0x24], 1
mov dword [rbp + 0x44], 0
mov eax, dword [rbp + 0x84]
cdq
sub eax, edx
sar eax, 1
cmp dword [rbp + 0x24], eax
jge 0x140016b76
movsxd rax, dword [rbp + 0x24]
movsxd rcx, dword [rbp + 0x44]
mov rdx, qword [rbp + 0x250]
mov r8, qword [rbp + 0x250]
mov ecx, dword [r8 + rcx*4 + 0x418]
mov eax, dword [rdx + rax*4 + 0x418]
xor eax, ecx
movsxd rcx, dword [rbp + 0x24]
mov rdx, qword [rbp + 0x250]
mov dword [rdx + rcx*4 + 0x418], eax
mov eax, dword [rbp + 0x44]
inc eax
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
jmp 0x140016b1b
mov eax, dword [rbp + 0x84]
cdq
sub eax, edx
sar eax, 1
dec eax
cdqe
mov rcx, qword [rbp + 0x250]
mov eax, dword [rcx + rax*4 + 0x418]
mov dword [rbp + 0x104], eax
mov eax, dword [rbp + 0x84]
cdq
sub eax, edx
sar eax, 1
cdqe
mov ecx, dword [rbp + 0x104]
and ecx, 0xff
movsxd rcx, ecx
lea rdx, str.cw
movsx ecx, byte [rdx + rcx]
and ecx, 0xff
mov edx, dword [rbp + 0x104]
sar edx, 8
and edx, 0xff
movsxd rdx, edx
lea r8, str.cw
movsx edx, byte [r8 + rdx]
and edx, 0xff
shl edx, 8
xor ecx, edx
mov edx, dword [rbp + 0x104]
sar edx, 0x10
and edx, 0xff
movsxd rdx, edx
lea r8, str.cw
movsx edx, byte [r8 + rdx]
and edx, 0xff
shl edx, 0x10
xor ecx, edx
mov edx, dword [rbp + 0x104]
sar edx, 0x18
and edx, 0xff
movsxd rdx, edx
lea r8, str.cw
movsx edx, byte [r8 + rdx]
and edx, 0xff
shl edx, 0x18
xor ecx, edx
mov rdx, qword [rbp + 0x250]
mov eax, dword [rdx + rax*4 + 0x418]
xor eax, ecx
mov dword [rbp + 0x214], eax
mov eax, dword [rbp + 0x84]
cdq
sub eax, edx
sar eax, 1
cdqe
mov rcx, qword [rbp + 0x250]
mov edx, dword [rbp + 0x214]
mov dword [rcx + rax*4 + 0x418], edx
mov eax, dword [rbp + 0x84]
cdq
sub eax, edx
sar eax, 1
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 0x44]
inc eax
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x84]
cmp dword [rbp + 0x24], eax
jge 0x140016ce4
movsxd rax, dword [rbp + 0x24]
movsxd rcx, dword [rbp + 0x44]
mov rdx, qword [rbp + 0x250]
mov r8, qword [rbp + 0x250]
mov ecx, dword [r8 + rcx*4 + 0x418]
mov eax, dword [rdx + rax*4 + 0x418]
xor eax, ecx
movsxd rcx, dword [rbp + 0x24]
mov rdx, qword [rbp + 0x250]
mov dword [rdx + rcx*4 + 0x418], eax
mov eax, dword [rbp + 0x44]
inc eax
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
jmp 0x140016c8e
mov dword [rbp + 0x44], 0
jmp 0x140016d03
mov eax, dword [rbp + 0x44]
inc eax
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 0xe4]
inc eax
mov dword [rbp + 0xe4], eax
mov eax, dword [rbp + 0x84]
cmp dword [rbp + 0x44], eax
jge 0x140016df0
mov eax, dword [rbp + 0x64]
cmp dword [rbp + 0xe4], eax
jge 0x140016df0
movsxd rax, dword [rbp + 0x44]
mov qword [rbp + 0x218], rax
mov eax, dword [rbp + 0xe4]
cdq
idiv dword [rbp + 4]
cdqe
imul rax, rax, 0x20
mov rcx, qword [rbp + 0x250]
lea rax, [rcx + rax + 0xc]
mov qword [rbp + 0x220], rax
mov eax, dword [rbp + 0xe4]
cdq
idiv dword [rbp + 4]
mov eax, edx
cdqe
mov rcx, qword [rbp + 0x250]
mov rdx, qword [rbp + 0x218]
mov ecx, dword [rcx + rdx*4 + 0x418]
mov rdx, qword [rbp + 0x220]
mov dword [rdx + rax*4], ecx
movsxd rax, dword [rbp + 0x44]
mov qword [rbp + 0x218], rax
mov eax, dword [rbp + 0xe4]
cdq
idiv dword [rbp + 4]
mov rcx, qword [rbp + 0x250]
mov ecx, dword [rcx + 0x3d4]
sub ecx, eax
mov eax, ecx
cdqe
imul rax, rax, 0x20
mov rcx, qword [rbp + 0x250]
lea rax, [rcx + rax + 0x1ec]
mov qword [rbp + 0x220], rax
mov eax, dword [rbp + 0xe4]
cdq
idiv dword [rbp + 4]
mov eax, edx
cdqe
mov rcx, qword [rbp + 0x250]
mov rdx, qword [rbp + 0x218]
mov ecx, dword [rcx + rdx*4 + 0x418]
mov rdx, qword [rbp + 0x220]
mov dword [rdx + rax*4], ecx
jmp 0x140016ced
jmp 0x140016977
mov dword [rbp + 0x144], 1
jmp 0x140016e0f
mov eax, dword [rbp + 0x144]
inc eax
mov dword [rbp + 0x144], eax
mov rax, qword [rbp + 0x250]
mov eax, dword [rax + 0x3d4]
cmp dword [rbp + 0x144], eax
jge 0x140016f05
mov dword [rbp + 0x44], 0
jmp 0x140016e39
mov eax, dword [rbp + 0x44]
inc eax
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 4]
cmp dword [rbp + 0x44], eax
jge 0x140016f00
movsxd rax, dword [rbp + 0x144]
imul rax, rax, 0x20
mov rcx, qword [rbp + 0x250]
lea rax, [rcx + rax + 0x1ec]
movsxd rcx, dword [rbp + 0x44]
mov eax, dword [rax + rcx*4]
mov dword [rbp + 0x104], eax
mov eax, dword [rbp + 0x104]
sar eax, 0x18
and eax, 0xff
cdqe
lea rcx, [0x1400296c0]
mov edx, dword [rbp + 0x104]
sar edx, 0x10
and edx, 0xff
movsxd rdx, edx
lea r8, [0x140029ac0]
mov edx, dword [r8 + rdx*4]
mov eax, dword [rcx + rax*4]
xor eax, edx
mov ecx, dword [rbp + 0x104]
sar ecx, 8
and ecx, 0xff
movsxd rcx, ecx
lea rdx, [0x140029ec0]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rbp + 0x104]
and ecx, 0xff
movsxd rcx, ecx
lea rdx, [0x14002a2c0]
xor eax, dword [rdx + rcx*4]
movsxd rcx, dword [rbp + 0x144]
imul rcx, rcx, 0x20
mov rdx, qword [rbp + 0x250]
lea rcx, [rdx + rcx + 0x1ec]
movsxd rdx, dword [rbp + 0x44]
mov dword [rcx + rdx*4], eax
jmp 0x140016e31
jmp 0x140016e01
mov rax, qword [rbp + 0x250]
mov byte [rax + 8], 1
lea rsp, [rbp + 0x238]
pop rdi
pop rbp
ret