Function at 0x140054260
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, 0x40
mov r13, rdx
mov ebp, r8d
mov rdx, qword [rcx + 0x58]
mov rsi, rcx
mov rcx, qword [rcx + 0x50]
cmp rcx, 0x1238
je 0x1400542b0
test rdx, rdx
je 0x1400542a3
mov rdi, rdx
xor eax, eax
rep stosb byte [rdi], al
mov rcx, rdx
call qword [0x1400e88d8]
mov ecx, 0x1238
call fcn.140028540
mov rdx, rax
mov qword [rsi + 0x58], rdx
xor r15d, r15d
mov qword [rsi + 0x50], 0x1238
mov r14d, ebp
mov qword [rsi + 0x48], r15
shr r14d, 2
lea eax, [r14 + 6]
mov dword [rsi + 0x18], eax
lea r12d, [rax*4 + 4]
mov rcx, qword [rsi + 0x30]
mov rbx, qword [rsi + 0x38]
cmp rcx, r12
je 0x140054306
test rbx, rbx
je 0x1400542fb
xor eax, eax
mov rdi, rbx
rep stosd dword [rdi], eax
mov rcx, rbx
call qword [0x1400e88d0]
mov rdx, r12
call fcn.140033d10
mov rbx, rax
movabs rax, 0x3fffffffffffffff
mov qword [rsi + 0x38], rbx
mov qword [rsi + 0x28], rax
mov qword [rsi + 0x30], r12
movzx eax, byte [0x1401bb223]
test al, al
jne 0x140054333
call fcn.14002d2e0
movzx eax, byte [0x1401bb223]
cmp byte [0x1401bb224], r15b
je 0x1400543eb
test al, al
jne 0x140054349
call fcn.14002d2e0
cmp byte [0x1401bb225], r15b
je 0x1400543eb
mov rdx, rbp
mov r8, rbx
mov rcx, r13
call fcn.140055630
mov rax, qword [rsi + 8]
lea rcx, [rsi + 8]
call qword [rax + 0x40]
test al, al
jne 0x140054ce4
mov rdi, qword [rsi + 0x38]
mov r11d, 4
mov eax, dword [rsi + 0x18]
movdqu xmm1, xmmword [rdi]
lea ecx, [rax*4]
movdqu xmm0, xmmword [rdi + rcx*4]
lea edx, [rcx - 4]
movdqu xmmword [rdi], xmm0
movdqu xmmword [rdi + rcx*4], xmm1
cmp edx, r11d
jbe 0x1400543d8
nop word [rax + rax]
aesimc xmm0, xmmword [rdi + rdx*4]
mov eax, r11d
add r11d, 4
aesimc xmm1, xmmword [rdi + rax*4]
lea rcx, [rdi + rax*4]
movdqu xmmword [rcx], xmm0
movdqu xmmword [rdi + rdx*4], xmm1
add edx, 0xfffffffc
cmp r11d, edx
jb 0x1400543b0
mov eax, r11d
aesimc xmm0, xmmword [rdi + rax*4]
movdqu xmmword [rdi + rax*4], xmm0
jmp 0x140054ce4
mov rdi, rbp
mov qword [rsp + 0x20], rbp
shr rdi, 2
mov r9, r13
mov r8, rdi
mov rdx, rbx
call fcn.1400553d0
lea r9, [0x140000000]
lea eax, [r14 - 1]
lea r10, [rdi*4]
lea r11, [rax*4]
mov edx, dword [r11 + rbx]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx r8d, byte [rcx + r9 + 0x17d980]
movzx ecx, al
xor r8d, 1
shl r8d, 8
movzx eax, byte [rcx + r9 + 0x17d980]
xor r8d, eax
movzx eax, dl
shl r8d, 8
movzx eax, byte [rax + r9 + 0x17d980]
xor r8d, eax
mov eax, edx
shr rax, 0x18
shl r8d, 8
movzx eax, byte [rax + r9 + 0x17d980]
lea r9, [0x14017d954]
xor r8d, eax
lea eax, [r14 + 1]
xor r8d, dword [rbx]
mov dword [r10 + rbx], r8d
xor r8d, dword [rbx + 4]
lea r12, [rax*4]
mov dword [r12 + rbx], r8d
lea eax, [r14 + 2]
xor r8d, dword [rbx + 8]
lea r13, [rax*4]
mov dword [rbx + r13], r8d
lea eax, [r14 + 3]
xor r8d, dword [rbx + 0xc]
lea rax, [rax*4]
mov dword [rax + rbx], r8d
mov r14, qword [rsi + 0x38]
mov qword [rsp + 0x30], rax
mov rax, qword [rsi + 0x30]
lea rcx, [r14 + rax*4]
lea rax, [r10 + 0x10]
add rax, rbx
cmp rax, rcx
je 0x140054607
mov r8, qword [rsp + 0x30]
lea r15, [0x140000000]
cmp ebp, 0x18
jne 0x140054507
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 0x140054573
cmp ebp, 0x20
jne 0x140054573
mov edx, dword [rbx + 0x2c]
mov eax, edx
shr rax, 0x18
movzx edi, byte [rax + r15 + 0x17d980]
mov eax, edx
shl edi, 8
shr eax, 0x10
movzx ecx, al
movzx eax, byte [rcx + r15 + 0x17d980]
xor edi, eax
mov eax, edx
shl edi, 8
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r15 + 0x17d980]
xor edi, eax
movzx eax, dl
shl edi, 8
movzx eax, byte [rax + r15 + 0x17d980]
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, r10
mov edx, dword [r11 + rbx]
mov eax, edx
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx edi, byte [rcx + r15 + 0x17d980]
shl edi, 8
movzx ecx, al
movzx eax, byte [rcx + r15 + 0x17d980]
xor edi, eax
movzx eax, dl
shl edi, 8
movzx eax, byte [rax + r15 + 0x17d980]
xor edi, eax
mov eax, edx
shl edi, 8
shr rax, 0x18
movzx eax, byte [rax + r15 + 0x17d980]
xor edi, eax
xor edi, dword [r9]
add r9, 4
xor edi, dword [rbx]
mov dword [r10 + rbx], edi
xor edi, dword [rbx + 4]
mov dword [r12 + rbx], edi
xor edi, dword [rbx + 8]
mov dword [rbx + r13], edi
xor edi, dword [rbx + 0xc]
mov dword [r8 + rbx], edi
mov rax, qword [rsi + 0x30]
mov r14, qword [rsi + 0x38]
lea rcx, [r14 + rax*4]
lea rax, [r10 + 0x10]
add rax, rbx
cmp rax, rcx
jne 0x1400544f1
xor r15d, r15d
mov rax, qword [rsi + 8]
lea rcx, [rsi + 8]
call qword [rax + 0x40]
test al, al
je 0x1400546c2
movzx eax, byte [0x1401bb6b3]
test al, al
jne 0x140054694
lea r10, [0x140000000]
nop dword [rax]
movzx r8d, byte [r15 + r10 + 0x17d980]
mov edx, r8d
shr edx, 7
imul r9d, edx, 0x1b000000
lea edi, [r8 + r8]
imul ecx, edx, 0x11b
mov eax, edi
shl eax, 0x18
xor r9, rax
mov eax, r8d
shl eax, 8
or eax, r8d
shl eax, 8
or r9, rax
mov eax, edi
xor rcx, rax
xor rcx, r8
or rcx, r9
shl rcx, 0x20
or rcx, r9
mov qword [r10 + r15*8 + 0x1bb950], rcx
inc r15
cmp r15, 0x100
jl 0x140054630
mov byte [0x1401bb6b3], 1
mov r8d, 0x10
mov rdx, r14
mov rcx, r14
call fcn.14004b0e0
mov eax, dword [rsi + 0x18]
mov r8d, 0x10
shl eax, 2
lea rcx, [r14 + rax*4]
mov rdx, rcx
call fcn.14004b0e0
jmp 0x140054cb5
movzx eax, byte [0x1401bb6b2]
test al, al
jne 0x1400546d2
call fcn.140054040
mov eax, dword [rsi + 0x18]
lea r12, [0x140000000]
mov r11d, 4
lea ebx, [rax*4 - 4]
cmp ebx, r11d
jbe 0x140054a6d
lea ebp, [rbx + 2]
lea r15d, [r11 + 2]
nop dword [rax]
mov eax, r11d
lea r8, [r14 + rbx*4]
lea r10, [r14 + rax*4]
mov edi, dword [r10]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r12 + 0x17d980]
mov eax, edi
shr eax, 0x10
movzx ecx, al
mov r9d, dword [r12 + rdx*8 + 0x1bc154]
movzx eax, byte [rcx + r12 + 0x17d980]
xor r9d, dword [r12 + rax*8 + 0x1bc151]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x17d980]
xor r9d, dword [r12 + rax*8 + 0x1bc152]
movzx eax, dil
mov edi, dword [r8]
movzx ecx, byte [rax + r12 + 0x17d980]
mov eax, edi
shr rax, 0x18
xor r9d, dword [r12 + rcx*8 + 0x1bc153]
movzx edx, byte [rax + r12 + 0x17d980]
mov eax, edi
shr eax, 0x10
movzx ecx, al
mov edx, dword [r12 + rdx*8 + 0x1bc154]
movzx eax, byte [rcx + r12 + 0x17d980]
xor edx, dword [r12 + rax*8 + 0x1bc151]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x17d980]
xor edx, dword [r12 + rax*8 + 0x1bc152]
movzx eax, dil
movzx ecx, byte [rax + r12 + 0x17d980]
lea eax, [r15 - 1]
xor edx, dword [r12 + rcx*8 + 0x1bc153]
mov dword [r10], edx
lea r10, [r14 + rax*4]
mov dword [r8], r9d
mov edi, dword [r10]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r12 + 0x17d980]
mov eax, edi
shr eax, 0x10
movzx ecx, al
mov r9d, dword [r12 + rdx*8 + 0x1bc154]
movzx eax, byte [rcx + r12 + 0x17d980]
xor r9d, dword [r12 + rax*8 + 0x1bc151]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x17d980]
xor r9d, dword [r12 + rax*8 + 0x1bc152]
movzx eax, dil
movzx ecx, byte [rax + r12 + 0x17d980]
lea eax, [rbp - 1]
mov edi, dword [r14 + rax*4]
lea r8, [r14 + rax*4]
mov eax, edi
shr rax, 0x18
xor r9d, dword [r12 + rcx*8 + 0x1bc153]
movzx edx, byte [rax + r12 + 0x17d980]
mov eax, edi
shr eax, 0x10
movzx ecx, al
mov edx, dword [r12 + rdx*8 + 0x1bc154]
movzx eax, byte [rcx + r12 + 0x17d980]
xor edx, dword [r12 + rax*8 + 0x1bc151]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x17d980]
xor edx, dword [r12 + rax*8 + 0x1bc152]
movzx eax, dil
movzx ecx, byte [rax + r12 + 0x17d980]
xor edx, dword [r12 + rcx*8 + 0x1bc153]
mov dword [r10], edx
mov dword [r8], r9d
lea r8, [r14 + rbp*4]
mov eax, r15d
lea r10, [r14 + rax*4]
mov edi, dword [r10]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r12 + 0x17d980]
mov eax, edi
shr eax, 0x10
movzx ecx, al
mov r9d, dword [r12 + rdx*8 + 0x1bc154]
movzx eax, byte [rcx + r12 + 0x17d980]
xor r9d, dword [r12 + rax*8 + 0x1bc151]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x17d980]
xor r9d, dword [r12 + rax*8 + 0x1bc152]
movzx eax, dil
mov edi, dword [r8]
movzx ecx, byte [rax + r12 + 0x17d980]
mov eax, edi
shr rax, 0x18
xor r9d, dword [r12 + rcx*8 + 0x1bc153]
movzx edx, byte [rax + r12 + 0x17d980]
mov eax, edi
shr eax, 0x10
movzx ecx, al
mov edx, dword [r12 + rdx*8 + 0x1bc154]
movzx eax, byte [rcx + r12 + 0x17d980]
xor edx, dword [r12 + rax*8 + 0x1bc151]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x17d980]
xor edx, dword [r12 + rax*8 + 0x1bc152]
movzx eax, dil
movzx ecx, byte [rax + r12 + 0x17d980]
lea eax, [r15 + 1]
xor edx, dword [r12 + rcx*8 + 0x1bc153]
mov dword [r10], edx
lea r10, [r14 + rax*4]
mov dword [r8], r9d
mov edi, dword [r10]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r12 + 0x17d980]
mov eax, edi
shr eax, 0x10
movzx ecx, al
mov r9d, dword [r12 + rdx*8 + 0x1bc154]
movzx eax, byte [rcx + r12 + 0x17d980]
xor r9d, dword [r12 + rax*8 + 0x1bc151]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x17d980]
xor r9d, dword [r12 + rax*8 + 0x1bc152]
movzx eax, dil
movzx ecx, byte [rax + r12 + 0x17d980]
lea eax, [rbp + 1]
mov edi, dword [r14 + rax*4]
lea r8, [r14 + rax*4]
mov eax, edi
shr rax, 0x18
xor r9d, dword [r12 + rcx*8 + 0x1bc153]
movzx edx, byte [rax + r12 + 0x17d980]
mov eax, edi
shr eax, 0x10
movzx ecx, al
mov edx, dword [r12 + rdx*8 + 0x1bc154]
movzx eax, byte [rcx + r12 + 0x17d980]
xor edx, dword [r12 + rax*8 + 0x1bc151]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x17d980]
xor edx, dword [r12 + rax*8 + 0x1bc152]
movzx eax, dil
movzx ecx, byte [rax + r12 + 0x17d980]
lea ebp, [rbp - 4]
add r11d, 4
add r15d, 4
add ebx, 0xfffffffc
xor edx, dword [r12 + rcx*8 + 0x1bc153]
mov dword [r10], edx
mov dword [r8], r9d
cmp r11d, ebx
jb 0x140054700
mov eax, r11d
lea r8, [r14 + rax*4]
mov edi, dword [r8]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r12 + 0x17d980]
mov eax, edi
shr eax, 0x10
movzx ecx, al
mov edx, dword [r12 + rdx*8 + 0x1bc154]
movzx eax, byte [rcx + r12 + 0x17d980]
xor edx, dword [r12 + rax*8 + 0x1bc151]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x17d980]
xor edx, dword [r12 + rax*8 + 0x1bc152]
movzx eax, dil
movzx ecx, byte [rax + r12 + 0x17d980]
lea eax, [r11 + 1]
mov edi, dword [r14 + rax*4]
xor edx, dword [r12 + rcx*8 + 0x1bc153]
mov dword [r8], edx
lea r8, [r14 + rax*4]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r12 + 0x17d980]
mov eax, edi
shr eax, 0x10
movzx ecx, al
mov edx, dword [r12 + rdx*8 + 0x1bc154]
movzx eax, byte [rcx + r12 + 0x17d980]
xor edx, dword [r12 + rax*8 + 0x1bc151]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x17d980]
xor edx, dword [r12 + rax*8 + 0x1bc152]
movzx eax, dil
movzx ecx, byte [rax + r12 + 0x17d980]
lea eax, [r11 + 2]
mov edi, dword [r14 + rax*4]
xor edx, dword [r12 + rcx*8 + 0x1bc153]
mov dword [r8], edx
lea r8, [r14 + rax*4]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r12 + 0x17d980]
mov eax, edi
shr eax, 0x10
movzx ecx, al
mov edx, dword [r12 + rdx*8 + 0x1bc154]
movzx eax, byte [rcx + r12 + 0x17d980]
xor edx, dword [r12 + rax*8 + 0x1bc151]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x17d980]
xor edx, dword [r12 + rax*8 + 0x1bc152]
movzx eax, dil
movzx ecx, byte [rax + r12 + 0x17d980]
lea eax, [r11 + 3]
mov edi, dword [r14 + rax*4]
xor edx, dword [r12 + rcx*8 + 0x1bc153]
mov dword [r8], edx
lea r8, [r14 + rax*4]
mov eax, edi
shr rax, 0x18
movzx edx, byte [rax + r12 + 0x17d980]
mov eax, edi
shr eax, 0x10
movzx ecx, al
mov edx, dword [r12 + rdx*8 + 0x1bc154]
movzx eax, byte [rcx + r12 + 0x17d980]
xor edx, dword [r12 + rax*8 + 0x1bc151]
mov eax, edi
shr eax, 8
movzx ecx, al
movzx eax, byte [rcx + r12 + 0x17d980]
xor edx, dword [r12 + rax*8 + 0x1bc152]
movzx eax, dil
movzx ecx, byte [rax + r12 + 0x17d980]
xor edx, dword [r12 + rcx*8 + 0x1bc153]
mov dword [r8], edx
mov eax, dword [rsi + 0x18]
mov edx, dword [r14]
shl eax, 2
bswap edx
mov ecx, dword [r14 + rax*4]
bswap ecx
mov dword [r14], ecx
mov eax, dword [rsi + 0x18]
shl eax, 2
mov dword [r14 + rax*4], edx
mov eax, dword [rsi + 0x18]
mov edx, dword [r14 + 4]
bswap edx
lea eax, [rax*4 + 1]
mov eax, dword [r14 + rax*4]
bswap eax
mov dword [r14 + 4], eax
mov eax, dword [rsi + 0x18]
lea eax, [rax*4 + 1]
mov dword [r14 + rax*4], edx
mov eax, dword [rsi + 0x18]
mov edx, dword [r14 + 8]
bswap edx
lea eax, [rax*4 + 2]
mov eax, dword [r14 + rax*4]
bswap eax
mov dword [r14 + 8], eax
mov eax, dword [rsi + 0x18]
lea eax, [rax*4 + 2]
mov dword [r14 + rax*4], edx
mov eax, dword [rsi + 0x18]
mov edx, dword [r14 + 0xc]
bswap edx
lea eax, [rax*4 + 3]
mov eax, dword [r14 + rax*4]
bswap eax
mov dword [r14 + 0xc], eax
mov eax, dword [rsi + 0x18]
lea eax, [rax*4 + 3]
mov dword [r14 + rax*4], edx
cmp byte [0x1401bb223], 0
jne 0x140054cc3
call fcn.14002d2e0
cmp byte [0x1401bb224], 0
je 0x140054ce4
mov r8d, dword [rsi + 0x18]
lea rcx, [r14 + 0x10]
shl r8d, 4
mov rdx, rcx
sub r8d, 0x10
call fcn.14004b0e0
mov rbx, qword [rsp + 0x98]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret