Function at 0x1400543b0
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 0x140054400
test rdx, rdx
je 0x1400543f3
mov rdi, rdx
xor eax, eax
rep stosb byte [rdi], al
mov rcx, rdx
call qword [0x1400e98d8]
mov ecx, 0x1238
call fcn.140028390
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 0x140054455
test rbx, rbx
je 0x14005444a
mov rdi, rbx
xor eax, eax
rep stosd dword [rdi], eax
mov rcx, rbx
call qword [0x1400e98a8]
mov rdx, rbp
call fcn.140033db0
mov rbx, rax
mov qword [rsi + 0x38], rbx
mov qword [rsi + 0x30], rbp
movabs rax, 0x3fffffffffffffff
mov qword [rsi + 0x28], rax
movzx eax, byte [0x1401bc263]
test al, al
jne 0x140054482
call fcn.14002d3e0
movzx eax, byte [0x1401bc263]
cmp byte [0x1401bc264], r14b
je 0x14005452d
test al, al
jne 0x140054498
call fcn.14002d3e0
cmp byte [0x1401bc265], r14b
je 0x14005452d
mov rdx, r12
mov r8, rbx
mov rcx, r13
call fcn.140055700
lea rcx, [rsi + 8]
mov rax, qword [rcx]
call qword [rax + 0x40]
test al, al
jne 0x140054e7f
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 0x14005451a
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 0x1400544f3
mov eax, r11d
aesimc xmm0, xmmword [rdi + rax*4]
movdqu xmmword [rdi + rax*4], xmm0
jmp 0x140054e7f
mov rbp, r12
and rbp, 0xfffffffffffffffc
test r12d, r12d
je 0x14005459d
test rbx, rbx
jne 0x14005454c
call qword [0x1400e99e8]
mov dword [rax], 0x16
jmp 0x140054597
test r13, r13
je 0x140054566
cmp rbp, r12
jb 0x140054566
mov r8, r12
mov rdx, r13
mov rcx, rbx
call fcn.1400dfed3
jmp 0x14005459d
mov r8, rbp
xor edx, edx
mov rcx, rbx
call fcn.1400dfed9
test r13, r13
jne 0x140054586
call qword [0x1400e99e8]
mov dword [rax], 0x16
jmp 0x140054597
cmp rbp, r12
jae 0x14005459d
call qword [0x1400e99e8]
mov dword [rax], 0x22
call qword [0x1400e99f0]
mov r8, rbp
sub r8, r12
lea rcx, [r12 + rbx]
xor edx, edx
call fcn.1400dfed9
lea r8, [r12 + 3]
and r8, 0xfffffffffffffffc
mov rdx, rbx
mov rcx, rbx
call fcn.14004b4a0
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 + 0x17e9f0]
xor edi, 1
shl edi, 8
mov eax, edx
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r8 + 0x17e9f0]
xor edi, eax
shl edi, 8
movzx eax, dl
movzx eax, byte [rax + r8 + 0x17e9f0]
xor edi, eax
shl edi, 8
mov eax, edx
shr rax, 0x18
movzx eax, byte [rax + r8 + 0x17e9f0]
xor edi, eax
xor edi, dword [rbx]
lea r8, [0x14017e9c4]
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 0x1400547a7
lea r14, [0x140000000]
cmp r12d, 0x18
jne 0x1400546a7
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 0x140054714
cmp r12d, 0x20
jne 0x140054714
mov edx, dword [rbx + 0x2c]
mov eax, edx
shr rax, 0x18
movzx edi, byte [rax + r14 + 0x17e9f0]
shl edi, 8
mov eax, edx
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r14 + 0x17e9f0]
xor edi, eax
shl edi, 8
mov eax, edx
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r14 + 0x17e9f0]
xor edi, eax
shl edi, 8
movzx eax, dl
movzx eax, byte [rax + r14 + 0x17e9f0]
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 + 0x17e9f0]
shl edi, 8
mov eax, edx
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r14 + 0x17e9f0]
xor edi, eax
shl edi, 8
movzx eax, dl
movzx eax, byte [rax + r14 + 0x17e9f0]
xor edi, eax
shl edi, 8
mov eax, edx
shr rax, 0x18
movzx eax, byte [rax + r14 + 0x17e9f0]
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 0x140054690
xor r14d, r14d
lea rcx, [rsi + 8]
mov rax, qword [rcx]
call qword [rax + 0x40]
test al, al
je 0x140054864
movzx eax, byte [0x1401bc6f3]
test al, al
jne 0x140054836
lea r11, [0x140000000]
nop dword [rax + rax]
movzx r9d, byte [r14 + r11 + 0x17e9f0]
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 + 0x1bc990], rcx
inc r14
cmp r14, 0x100
jl 0x1400547d0
mov byte [0x1401bc6f3], 1
mov r8d, 0x10
mov rdx, r15
mov rcx, r15
call fcn.14004b4a0
mov eax, dword [rsi + 0x18]
shl eax, 2
lea rcx, [r15 + rax*4]
mov r8d, 0x10
mov rdx, rcx
call fcn.14004b4a0
jmp 0x140054e50
movzx eax, byte [0x1401bc6f2]
test al, al
jne 0x140054874
call fcn.140054190
mov r11d, 4
mov eax, dword [rsi + 0x18]
lea ebx, [rax*4 - 4]
lea r12, [0x140000000]
cmp ebx, r11d
jbe 0x140054c0b
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 + 0x17e9f0]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x17e9f0]
mov r9d, dword [r12 + rdx*8 + 0x1bd194]
xor r9d, dword [r12 + rax*8 + 0x1bd191]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x17e9f0]
xor r9d, dword [r12 + rax*8 + 0x1bd192]
movzx eax, dil
movzx ecx, byte [rax + r12 + 0x17e9f0]
xor r9d, dword [r12 + rcx*8 + 0x1bd193]
lea r8, [r15 + rbx*4]
mov edi, dword [r8]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r12 + 0x17e9f0]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x17e9f0]
mov edx, dword [r12 + rdx*8 + 0x1bd194]
xor edx, dword [r12 + rax*8 + 0x1bd191]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x17e9f0]
xor edx, dword [r12 + rax*8 + 0x1bd192]
movzx eax, dil
movzx ecx, byte [rax + r12 + 0x17e9f0]
xor edx, dword [r12 + rcx*8 + 0x1bd193]
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 + 0x17e9f0]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x17e9f0]
mov r9d, dword [r12 + rdx*8 + 0x1bd194]
xor r9d, dword [r12 + rax*8 + 0x1bd191]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x17e9f0]
xor r9d, dword [r12 + rax*8 + 0x1bd192]
movzx eax, dil
movzx ecx, byte [rax + r12 + 0x17e9f0]
xor r9d, dword [r12 + rcx*8 + 0x1bd193]
lea eax, [rbp - 1]
lea r8, [r15 + rax*4]
mov edi, dword [r8]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r12 + 0x17e9f0]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x17e9f0]
mov edx, dword [r12 + rdx*8 + 0x1bd194]
xor edx, dword [r12 + rax*8 + 0x1bd191]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x17e9f0]
xor edx, dword [r12 + rax*8 + 0x1bd192]
movzx eax, dil
movzx ecx, byte [rax + r12 + 0x17e9f0]
xor edx, dword [r12 + rcx*8 + 0x1bd193]
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 + 0x17e9f0]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x17e9f0]
mov r9d, dword [r12 + rdx*8 + 0x1bd194]
xor r9d, dword [r12 + rax*8 + 0x1bd191]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x17e9f0]
xor r9d, dword [r12 + rax*8 + 0x1bd192]
movzx eax, dil
movzx ecx, byte [rax + r12 + 0x17e9f0]
xor r9d, dword [r12 + rcx*8 + 0x1bd193]
lea r8, [r15 + rbp*4]
mov edi, dword [r8]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r12 + 0x17e9f0]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x17e9f0]
mov edx, dword [r12 + rdx*8 + 0x1bd194]
xor edx, dword [r12 + rax*8 + 0x1bd191]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x17e9f0]
xor edx, dword [r12 + rax*8 + 0x1bd192]
movzx eax, dil
movzx ecx, byte [rax + r12 + 0x17e9f0]
xor edx, dword [r12 + rcx*8 + 0x1bd193]
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 + 0x17e9f0]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x17e9f0]
mov r9d, dword [r12 + rdx*8 + 0x1bd194]
xor r9d, dword [r12 + rax*8 + 0x1bd191]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x17e9f0]
xor r9d, dword [r12 + rax*8 + 0x1bd192]
movzx eax, dil
movzx ecx, byte [rax + r12 + 0x17e9f0]
xor r9d, dword [r12 + rcx*8 + 0x1bd193]
lea eax, [rbp + 1]
lea r8, [r15 + rax*4]
mov edi, dword [r8]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r12 + 0x17e9f0]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x17e9f0]
mov edx, dword [r12 + rdx*8 + 0x1bd194]
xor edx, dword [r12 + rax*8 + 0x1bd191]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x17e9f0]
xor edx, dword [r12 + rax*8 + 0x1bd192]
movzx eax, dil
movzx ecx, byte [rax + r12 + 0x17e9f0]
xor edx, dword [r12 + rcx*8 + 0x1bd193]
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 0x1400548a0
mov eax, r11d
lea r8, [r15 + rax*4]
mov edi, dword [r8]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r12 + 0x17e9f0]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x17e9f0]
mov edx, dword [r12 + rdx*8 + 0x1bd194]
xor edx, dword [r12 + rax*8 + 0x1bd191]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x17e9f0]
xor edx, dword [r12 + rax*8 + 0x1bd192]
movzx eax, dil
movzx ecx, byte [rax + r12 + 0x17e9f0]
xor edx, dword [r12 + rcx*8 + 0x1bd193]
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 + 0x17e9f0]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x17e9f0]
mov edx, dword [r12 + rdx*8 + 0x1bd194]
xor edx, dword [r12 + rax*8 + 0x1bd191]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x17e9f0]
xor edx, dword [r12 + rax*8 + 0x1bd192]
movzx eax, dil
movzx ecx, byte [rax + r12 + 0x17e9f0]
xor edx, dword [r12 + rcx*8 + 0x1bd193]
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 + 0x17e9f0]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x17e9f0]
mov edx, dword [r12 + rdx*8 + 0x1bd194]
xor edx, dword [r12 + rax*8 + 0x1bd191]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x17e9f0]
xor edx, dword [r12 + rax*8 + 0x1bd192]
movzx eax, dil
movzx ecx, byte [rax + r12 + 0x17e9f0]
xor edx, dword [r12 + rcx*8 + 0x1bd193]
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 + 0x17e9f0]
mov eax, edi
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x17e9f0]
mov edx, dword [r12 + rdx*8 + 0x1bd194]
xor edx, dword [r12 + rax*8 + 0x1bd191]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x17e9f0]
xor edx, dword [r12 + rax*8 + 0x1bd192]
movzx eax, dil
movzx ecx, byte [rax + r12 + 0x17e9f0]
xor edx, dword [r12 + rcx*8 + 0x1bd193]
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 [0x1401bc263], 0
jne 0x140054e5e
call fcn.14002d3e0
cmp byte [0x1401bc264], 0
je 0x140054e7f
mov r8d, dword [rsi + 0x18]
shl r8d, 4
sub r8d, 0x10
lea rcx, [r15 + 0x10]
mov rdx, rcx
call fcn.14004b4a0
mov rbx, qword [rsp + 0x78]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret