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

Disassembly:
jmp 0x14001ff00
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, [0x140040315]
call fcn.140011933
nop
cmp qword [rbp + 0x258], 0
jne 0x14001ff3e
jmp 0x1400209b3
cmp dword [rbp + 0x268], 0x10
je 0x14001ff5e
cmp dword [rbp + 0x268], 0x18
je 0x14001ff5e
cmp dword [rbp + 0x268], 0x20
je 0x14001ff5e
jmp 0x1400209b3
cmp dword [rbp + 0x270], 0x10
je 0x14001ff7e
cmp dword [rbp + 0x270], 0x18
je 0x14001ff7e
cmp dword [rbp + 0x270], 0x20
je 0x14001ff7e
jmp 0x1400209b3
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.14001146a
nop
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.14001146a
nop
mov rax, qword [rbp + 0x250]
mov eax, dword [rax + 0x3cc]
mov dword [rbp + 0x214], eax
cmp dword [rbp + 0x214], 0x10
je 0x140020026
cmp dword [rbp + 0x214], 0x18
je 0x140020089
jmp 0x1400200c4
mov rax, qword [rbp + 0x250]
cmp dword [rax + 0x3d0], 0x10
jne 0x140020042
mov dword [rbp + 0x214], 0xa
jmp 0x140020074
mov rax, qword [rbp + 0x250]
cmp dword [rax + 0x3d0], 0x18
jne 0x14002005e
mov dword [rbp + 0x218], 0xc
jmp 0x140020068
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 0x1400200d5
mov rax, qword [rbp + 0x250]
cmp dword [rax + 0x3d0], 0x20
je 0x1400200a5
mov dword [rbp + 0x214], 0xc
jmp 0x1400200af
mov dword [rbp + 0x214], 0xe
mov rax, qword [rbp + 0x250]
mov ecx, dword [rbp + 0x214]
mov dword [rax + 0x3d4], ecx
jmp 0x1400200d5
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 0x1400200ff
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 0x14002014d
mov dword [rbp + 0x44], 0
jmp 0x140020122
mov eax, dword [rbp + 0x44]
inc eax
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 4]
cmp dword [rbp + 0x44], eax
jge 0x14002014b
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 0x14002011a
jmp 0x1400200f7
mov dword [rbp + 0x24], 0
jmp 0x14002015e
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 0x1400201af
mov dword [rbp + 0x44], 0
jmp 0x140020181
mov eax, dword [rbp + 0x44]
inc eax
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 4]
cmp dword [rbp + 0x44], eax
jge 0x1400201ad
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 0x140020179
jmp 0x140020156
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 0x140020214
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
mov eax, dword [rbp + 0x84]
cmp dword [rbp + 0x24], eax
jge 0x1400202fa
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 0x14002020c
mov dword [rbp + 0xe4], 0
mov dword [rbp + 0x44], 0
jmp 0x140020323
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 0x140020410
mov eax, dword [rbp + 0x64]
cmp dword [rbp + 0xe4], eax
jge 0x140020410
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 0x14002030d
mov dword [rbp + 0x124], 0
mov eax, dword [rbp + 0x64]
cmp dword [rbp + 0xe4], eax
jge 0x140020898
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, [0x1400331a0]
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 0x1400205b0
mov dword [rbp + 0x24], 1
mov dword [rbp + 0x44], 0
mov eax, dword [rbp + 0x84]
cmp dword [rbp + 0x24], eax
jge 0x1400205ab
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 0x140020555
jmp 0x140020787
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 0x140020619
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 0x1400205be
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 0x140020787
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 0x140020731
mov dword [rbp + 0x44], 0
jmp 0x1400207a6
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 0x140020893
mov eax, dword [rbp + 0x64]
cmp dword [rbp + 0xe4], eax
jge 0x140020893
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 0x140020790
jmp 0x14002041a
mov dword [rbp + 0x144], 1
jmp 0x1400208b2
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 0x1400209a8
mov dword [rbp + 0x44], 0
jmp 0x1400208dc
mov eax, dword [rbp + 0x44]
inc eax
mov dword [rbp + 0x44], eax
mov eax, dword [rbp + 4]
cmp dword [rbp + 0x44], eax
jge 0x1400209a3
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, [0x1400321a0]
mov edx, dword [rbp + 0x104]
sar edx, 0x10
and edx, 0xff
movsxd rdx, edx
lea r8, [0x1400325a0]
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, [0x1400329a0]
xor eax, dword [rdx + rcx*4]
mov ecx, dword [rbp + 0x104]
and ecx, 0xff
movsxd rcx, ecx
lea rdx, [0x140032da0]
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 0x1400208d4
jmp 0x1400208a4
mov rax, qword [rbp + 0x250]
mov byte [rax + 8], 1
lea rsp, [rbp + 0x238]
pop rdi
pop rbp
ret