Function at 0x1400545b0
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r12d, r8d
mov r13, rdx
mov rsi, rcx
mov rcx, qword [rcx + 0x50]
mov rdx, qword [rsi + 0x58]
cmp rcx, 0x1238
je 0x140054600
test rdx, rdx
je 0x1400545f3
mov rdi, rdx
xor eax, eax
rep stosb byte [rdi], al
mov rcx, rdx
call qword [0x1400ea908]
mov ecx, 0x1238
call fcn.140028540
mov rdx, rax
mov qword [rsi + 0x58], rdx
mov qword [rsi + 0x50], 0x1238
xor r14d, r14d
mov qword [rsi + 0x48], r14
mov r15d, r12d
shr r15d, 2
lea eax, [r15 + 6]
mov dword [rsi + 0x18], eax
lea ebp, [rax*4 + 4]
mov rcx, qword [rsi + 0x30]
mov rbx, qword [rsi + 0x38]
cmp rcx, rbp
je 0x140054655
test rbx, rbx
je 0x14005464a
mov rdi, rbx
xor eax, eax
rep stosd dword [rdi], eax
mov rcx, rbx
call qword [0x1400ea8d8]
mov rdx, rbp
call fcn.140033f60
mov rbx, rax
mov qword [rsi + 0x38], rbx
mov qword [rsi + 0x30], rbp
movabs rax, 0x3fffffffffffffff
mov qword [rsi + 0x28], rax
movzx eax, byte [0x1401be423]
test al, al
jne 0x140054682
call fcn.14002d590
movzx eax, byte [0x1401be423]
cmp byte [0x1401be424], r14b
je 0x14005472d
test al, al
jne 0x140054698
call fcn.14002d590
cmp byte [0x1401be425], r14b
je 0x14005472d
mov rdx, r12
mov r8, rbx
mov rcx, r13
call fcn.140055900
lea rcx, [rsi + 8]
mov rax, qword [rcx]
call qword [rax + 0x40]
test al, al
jne 0x14005507f
mov rdi, qword [rsi + 0x38]
mov eax, dword [rsi + 0x18]
lea ecx, [rax*4]
movdqu xmm1, xmmword [rdi]
movdqu xmm0, xmmword [rdi + rcx*4]
movdqu xmmword [rdi], xmm0
movdqu xmmword [rdi + rcx*4], xmm1
mov r11d, 4
lea edx, [rcx - 4]
cmp edx, r11d
jbe 0x14005471a
mov eax, r11d
lea rcx, [rdi + rax*4]
aesimc xmm1, xmmword [rcx]
aesimc xmm0, xmmword [rdi + rdx*4]
movdqu xmmword [rcx], xmm0
movdqu xmmword [rdi + rdx*4], xmm1
add r11d, 4
add edx, 0xfffffffc
cmp r11d, edx
jb 0x1400546f3
mov eax, r11d
aesimc xmm0, xmmword [rdi + rax*4]
movdqu xmmword [rdi + rax*4], xmm0
jmp 0x14005507f
mov rbp, r12
and rbp, 0xfffffffffffffffc
test r12d, r12d
je 0x14005479d
test rbx, rbx
jne 0x14005474c
call qword [0x1400eaa18]
mov dword [rax], 0x16
jmp 0x140054797
test r13, r13
je 0x140054766
cmp rbp, r12
jb 0x140054766
mov r8, r12
mov rdx, r13
mov rcx, rbx
call fcn.1400e09b3
jmp 0x14005479d
mov r8, rbp
xor edx, edx
mov rcx, rbx
call fcn.1400e09b9
test r13, r13
jne 0x140054786
call qword [0x1400eaa18]
mov dword [rax], 0x16
jmp 0x140054797
cmp rbp, r12
jae 0x14005479d
call qword [0x1400eaa18]
mov dword [rax], 0x22
call qword [0x1400eaa20]
mov r8, rbp
sub r8, r12
lea rcx, [r12 + rbx]
xor edx, edx
call fcn.1400e09b9
lea r8, [r12 + 3]
and r8, 0xfffffffffffffffc
mov rdx, rbx
mov rcx, rbx
call fcn.14004b6a0
lea eax, [r15 - 1]
lea r9, [rax*4]
mov edx, dword [r9 + rbx]
mov eax, edx
shr eax, 0x10
movzx ecx, al
lea r8, [0x140000000]
movzx edi, byte [rcx + r8 + 0x180830]
xor edi, 1
shl edi, 8
mov eax, edx
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r8 + 0x180830]
xor edi, eax
shl edi, 8
movzx eax, dl
movzx eax, byte [rax + r8 + 0x180830]
xor edi, eax
shl edi, 8
mov eax, edx
shr rax, 0x18
movzx eax, byte [rax + r8 + 0x180830]
xor edi, eax
xor edi, dword [rbx]
lea r8, [0x140180804]
mov dword [rbx + rbp], edi
xor edi, dword [rbx + 4]
lea eax, [r15 + 1]
lea r10, [rax*4]
mov dword [r10 + rbx], edi
xor edi, dword [rbx + 8]
lea eax, [r15 + 2]
lea r11, [rax*4]
mov dword [r11 + rbx], edi
lea eax, [r15 + 3]
lea r13, [rax*4]
xor edi, dword [rbx + 0xc]
mov dword [rbx + r13], edi
mov r15, qword [rsi + 0x38]
mov rax, qword [rsi + 0x30]
lea rcx, [r15 + rax*4]
lea rax, [rbp + 0x10]
add rax, rbx
cmp rax, rcx
je 0x1400549a7
lea r14, [0x140000000]
cmp r12d, 0x18
jne 0x1400548a7
mov eax, dword [rbx + 0x24]
xor eax, dword [rbx + 0x10]
mov dword [rbx + 0x28], eax
xor eax, dword [rbx + 0x14]
mov dword [rbx + 0x2c], eax
jmp 0x140054914
cmp r12d, 0x20
jne 0x140054914
mov edx, dword [rbx + 0x2c]
mov eax, edx
shr rax, 0x18
movzx edi, byte [rax + r14 + 0x180830]
shl edi, 8
mov eax, edx
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r14 + 0x180830]
xor edi, eax
shl edi, 8
mov eax, edx
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r14 + 0x180830]
xor edi, eax
shl edi, 8
movzx eax, dl
movzx eax, byte [rax + r14 + 0x180830]
xor edi, eax
xor edi, dword [rbx + 0x10]
mov dword [rbx + 0x30], edi
xor edi, dword [rbx + 0x14]
mov dword [rbx + 0x34], edi
xor edi, dword [rbx + 0x18]
mov dword [rbx + 0x38], edi
xor edi, dword [rbx + 0x1c]
mov dword [rbx + 0x3c], edi
add rbx, rbp
mov edx, dword [r9 + rbx]
mov eax, edx
shr eax, 0x10
movzx ecx, al
movzx edi, byte [rcx + r14 + 0x180830]
shl edi, 8
mov eax, edx
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r14 + 0x180830]
xor edi, eax
shl edi, 8
movzx eax, dl
movzx eax, byte [rax + r14 + 0x180830]
xor edi, eax
shl edi, 8
mov eax, edx
shr rax, 0x18
movzx eax, byte [rax + r14 + 0x180830]
xor edi, eax
xor edi, dword [r8]
xor edi, dword [rbx]
add r8, 4
mov dword [rbx + rbp], edi
xor edi, dword [rbx + 4]
mov dword [r10 + rbx], edi
xor edi, dword [rbx + 8]
mov dword [r11 + rbx], edi
xor edi, dword [rbx + 0xc]
mov dword [rbx + r13], edi
mov r15, qword [rsi + 0x38]
mov rax, qword [rsi + 0x30]
lea rcx, [r15 + rax*4]
lea rax, [rbp + 0x10]
add rax, rbx
cmp rax, rcx
jne 0x140054890
xor r14d, r14d
lea rcx, [rsi + 8]
mov rax, qword [rcx]
call qword [rax + 0x40]
test al, al
je 0x140054a64
movzx eax, byte [0x1401be8ab]
test al, al
jne 0x140054a36
lea r11, [0x140000000]
nop dword [rax + rax]
movzx r9d, byte [r14 + r11 + 0x180830]
lea r8d, [r9 + r9]
mov edi, r9d
shr edi, 7
mov r10d, r8d
shl r10d, 0x18
imul ecx, edi, 0x1b000000
xor r10, rcx
mov eax, r9d
shl eax, 8
or eax, r9d
shl eax, 8
or r10, rax
imul ecx, edi, 0x11b
mov eax, r8d
xor rcx, rax
xor rcx, r9
or rcx, r10
shl rcx, 0x20
or rcx, r10
mov qword [r11 + r14*8 + 0x1beb80], rcx
inc r14
cmp r14, 0x100
jl 0x1400549d0
mov byte [0x1401be8ab], 1
mov r8d, 0x10
mov rdx, r15
mov rcx, r15
call fcn.14004b6a0
mov eax, dword [rsi + 0x18]
shl eax, 2
lea rcx, [r15 + rax*4]
mov r8d, 0x10
mov rdx, rcx
call fcn.14004b6a0
jmp 0x140055050
movzx eax, byte [0x1401be8aa]
test al, al
jne 0x140054a74
call fcn.140054390
mov r11d, 4
mov eax, dword [rsi + 0x18]
lea ebx, [rax*4 - 4]
lea r12, [0x140000000]
cmp ebx, r11d
jbe 0x140054e0b
lea ebp, [rbx + 2]
mov r14d, 6
nop dword [rax]
mov eax, r11d
lea r10, [r15 + rax*4]
mov edi, dword [r10]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r12 + 0x180830]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x180830]
mov r9d, dword [r12 + rdx*8 + 0x1bf384]
xor r9d, dword [r12 + rax*8 + 0x1bf381]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x180830]
xor r9d, dword [r12 + rax*8 + 0x1bf382]
movzx eax, dil
movzx ecx, byte [rax + r12 + 0x180830]
xor r9d, dword [r12 + rcx*8 + 0x1bf383]
lea r8, [r15 + rbx*4]
mov edi, dword [r8]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r12 + 0x180830]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x180830]
mov edx, dword [r12 + rdx*8 + 0x1bf384]
xor edx, dword [r12 + rax*8 + 0x1bf381]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x180830]
xor edx, dword [r12 + rax*8 + 0x1bf382]
movzx eax, dil
movzx ecx, byte [rax + r12 + 0x180830]
xor edx, dword [r12 + rcx*8 + 0x1bf383]
mov dword [r10], edx
mov dword [r8], r9d
lea eax, [r14 - 1]
lea r10, [r15 + rax*4]
mov edi, dword [r10]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r12 + 0x180830]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x180830]
mov r9d, dword [r12 + rdx*8 + 0x1bf384]
xor r9d, dword [r12 + rax*8 + 0x1bf381]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x180830]
xor r9d, dword [r12 + rax*8 + 0x1bf382]
movzx eax, dil
movzx ecx, byte [rax + r12 + 0x180830]
xor r9d, dword [r12 + rcx*8 + 0x1bf383]
lea eax, [rbp - 1]
lea r8, [r15 + rax*4]
mov edi, dword [r8]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r12 + 0x180830]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x180830]
mov edx, dword [r12 + rdx*8 + 0x1bf384]
xor edx, dword [r12 + rax*8 + 0x1bf381]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x180830]
xor edx, dword [r12 + rax*8 + 0x1bf382]
movzx eax, dil
movzx ecx, byte [rax + r12 + 0x180830]
xor edx, dword [r12 + rcx*8 + 0x1bf383]
mov dword [r10], edx
mov dword [r8], r9d
mov eax, r14d
lea r10, [r15 + rax*4]
mov edi, dword [r10]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r12 + 0x180830]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x180830]
mov r9d, dword [r12 + rdx*8 + 0x1bf384]
xor r9d, dword [r12 + rax*8 + 0x1bf381]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x180830]
xor r9d, dword [r12 + rax*8 + 0x1bf382]
movzx eax, dil
movzx ecx, byte [rax + r12 + 0x180830]
xor r9d, dword [r12 + rcx*8 + 0x1bf383]
lea r8, [r15 + rbp*4]
mov edi, dword [r8]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r12 + 0x180830]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x180830]
mov edx, dword [r12 + rdx*8 + 0x1bf384]
xor edx, dword [r12 + rax*8 + 0x1bf381]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x180830]
xor edx, dword [r12 + rax*8 + 0x1bf382]
movzx eax, dil
movzx ecx, byte [rax + r12 + 0x180830]
xor edx, dword [r12 + rcx*8 + 0x1bf383]
mov dword [r10], edx
mov dword [r8], r9d
lea eax, [r14 + 1]
lea r10, [r15 + rax*4]
mov edi, dword [r10]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r12 + 0x180830]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x180830]
mov r9d, dword [r12 + rdx*8 + 0x1bf384]
xor r9d, dword [r12 + rax*8 + 0x1bf381]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x180830]
xor r9d, dword [r12 + rax*8 + 0x1bf382]
movzx eax, dil
movzx ecx, byte [rax + r12 + 0x180830]
xor r9d, dword [r12 + rcx*8 + 0x1bf383]
lea eax, [rbp + 1]
lea r8, [r15 + rax*4]
mov edi, dword [r8]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r12 + 0x180830]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x180830]
mov edx, dword [r12 + rdx*8 + 0x1bf384]
xor edx, dword [r12 + rax*8 + 0x1bf381]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x180830]
xor edx, dword [r12 + rax*8 + 0x1bf382]
movzx eax, dil
movzx ecx, byte [rax + r12 + 0x180830]
xor edx, dword [r12 + rcx*8 + 0x1bf383]
mov dword [r10], edx
mov dword [r8], r9d
add r11d, 4
add r14d, 4
add ebx, 0xfffffffc
lea ebp, [rbp - 4]
cmp r11d, ebx
jb 0x140054aa0
mov eax, r11d
lea r8, [r15 + rax*4]
mov edi, dword [r8]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r12 + 0x180830]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x180830]
mov edx, dword [r12 + rdx*8 + 0x1bf384]
xor edx, dword [r12 + rax*8 + 0x1bf381]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x180830]
xor edx, dword [r12 + rax*8 + 0x1bf382]
movzx eax, dil
movzx ecx, byte [rax + r12 + 0x180830]
xor edx, dword [r12 + rcx*8 + 0x1bf383]
mov dword [r8], edx
lea eax, [r11 + 1]
lea r8, [r15 + rax*4]
mov edi, dword [r8]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r12 + 0x180830]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x180830]
mov edx, dword [r12 + rdx*8 + 0x1bf384]
xor edx, dword [r12 + rax*8 + 0x1bf381]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x180830]
xor edx, dword [r12 + rax*8 + 0x1bf382]
movzx eax, dil
movzx ecx, byte [rax + r12 + 0x180830]
xor edx, dword [r12 + rcx*8 + 0x1bf383]
mov dword [r8], edx
lea eax, [r11 + 2]
lea r8, [r15 + rax*4]
mov edi, dword [r8]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r12 + 0x180830]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x180830]
mov edx, dword [r12 + rdx*8 + 0x1bf384]
xor edx, dword [r12 + rax*8 + 0x1bf381]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x180830]
xor edx, dword [r12 + rax*8 + 0x1bf382]
movzx eax, dil
movzx ecx, byte [rax + r12 + 0x180830]
xor edx, dword [r12 + rcx*8 + 0x1bf383]
mov dword [r8], edx
lea eax, [r11 + 3]
lea r8, [r15 + rax*4]
mov edi, dword [r8]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r12 + 0x180830]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x180830]
mov edx, dword [r12 + rdx*8 + 0x1bf384]
xor edx, dword [r12 + rax*8 + 0x1bf381]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x180830]
xor edx, dword [r12 + rax*8 + 0x1bf382]
movzx eax, dil
movzx ecx, byte [rax + r12 + 0x180830]
xor edx, dword [r12 + rcx*8 + 0x1bf383]
mov dword [r8], edx
mov edx, dword [r15]
bswap edx
mov eax, dword [rsi + 0x18]
shl eax, 2
mov ecx, dword [r15 + rax*4]
bswap ecx
mov dword [r15], ecx
mov eax, dword [rsi + 0x18]
shl eax, 2
mov dword [r15 + rax*4], edx
mov edx, dword [r15 + 4]
bswap edx
mov eax, dword [rsi + 0x18]
lea eax, [rax*4 + 1]
mov eax, dword [r15 + rax*4]
bswap eax
mov dword [r15 + 4], eax
mov eax, dword [rsi + 0x18]
lea eax, [rax*4 + 1]
mov dword [r15 + rax*4], edx
mov edx, dword [r15 + 8]
bswap edx
mov eax, dword [rsi + 0x18]
lea eax, [rax*4 + 2]
mov eax, dword [r15 + rax*4]
bswap eax
mov dword [r15 + 8], eax
mov eax, dword [rsi + 0x18]
lea eax, [rax*4 + 2]
mov dword [r15 + rax*4], edx
mov edx, dword [r15 + 0xc]
bswap edx
mov eax, dword [rsi + 0x18]
lea eax, [rax*4 + 3]
mov eax, dword [r15 + rax*4]
bswap eax
mov dword [r15 + 0xc], eax
mov eax, dword [rsi + 0x18]
lea eax, [rax*4 + 3]
mov dword [r15 + rax*4], edx
cmp byte [0x1401be423], 0
jne 0x14005505e
call fcn.14002d590
cmp byte [0x1401be424], 0
je 0x14005507f
mov r8d, dword [rsi + 0x18]
shl r8d, 4
sub r8d, 0x10
lea rcx, [r15 + 0x10]
mov rdx, rcx
call fcn.14004b6a0
mov rbx, qword [rsp + 0x78]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret