Function at 0x140272020
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push r14
push r15
sub rsp, 0x48
mov rax, qword [rcx]
mov rsi, r9
mov rbx, r8
mov r15, rdx
mov r14, rcx
call qword [rax + 0x20]
test al, al
jne 0x140272049
mov rcx, r14
call fcn.140251df0
cmp rsi, 2
jb 0x140272364
mov qword [rsp + 0x78], rbp
mov rbp, rsi
shr rbp, 1
imul rax, rbp, 0xfffffffffffffffe
mov qword [rsp + 0x40], rdi
add rsi, rax
nop word [rax + rax]
mov eax, dword [r15 + 4]
mov r8d, dword [r15]
mov r11d, dword [r15 + 0xc]
mov edi, dword [r15 + 8]
bswap eax
mov edx, eax
shl eax, 4
bswap r8d
shr edx, 0x1c
or edx, eax
mov eax, edx
xor eax, r8d
and eax, 0xf0f0f0f0
xor edx, eax
mov ecx, eax
xor ecx, r8d
mov r8d, edx
shr r8d, 0x14
shl edx, 0xc
or r8d, edx
mov eax, r8d
xor eax, ecx
and eax, 0xffff0000
xor r8d, eax
mov edx, eax
xor edx, ecx
mov r9d, r8d
shl r8d, 0xe
shr r9d, 0x12
or r9d, r8d
mov eax, r9d
xor eax, edx
and eax, 0x33333333
xor r9d, eax
mov ecx, eax
xor ecx, edx
mov r10d, r9d
shl r10d, 0x1a
shr r9d, 6
or r10d, r9d
mov eax, r10d
xor eax, ecx
and eax, 0xff00ff
xor r10d, eax
mov edx, eax
xor edx, ecx
mov r8d, r10d
shr r8d, 0x17
shl r10d, 9
or r8d, r10d
mov ecx, r8d
xor ecx, edx
and ecx, 0xaaaaaaaa
xor r8d, ecx
mov eax, ecx
xor eax, edx
mov dword [rsp + 0x70], r8d
ror eax, 0x1f
mov dword [rsp + 0x88], eax
bswap r11d
mov eax, r11d
shl r11d, 4
shr eax, 0x1c
or eax, r11d
mov ecx, eax
bswap edi
xor ecx, edi
and ecx, 0xf0f0f0f0
mov edx, ecx
xor ecx, eax
mov r8d, ecx
xor edx, edi
shl ecx, 0xc
shr r8d, 0x14
or r8d, ecx
mov eax, r8d
xor eax, edx
and eax, 0xffff0000
mov ecx, eax
xor ecx, edx
xor r8d, eax
mov r9d, r8d
shl r8d, 0xe
shr r9d, 0x12
or r9d, r8d
mov eax, r9d
xor eax, ecx
and eax, 0x33333333
xor r9d, eax
mov edx, eax
xor edx, ecx
mov eax, r9d
shl eax, 0x1a
shr r9d, 6
or eax, r9d
lea r9, [rsp + 0x30]
mov ecx, eax
xor ecx, edx
and ecx, 0xff00ff
mov r8d, ecx
xor ecx, eax
xor r8d, edx
mov edx, ecx
shl ecx, 9
shr edx, 0x17
or edx, ecx
mov ecx, edx
xor ecx, r8d
and ecx, 0xaaaaaaaa
mov eax, ecx
xor ecx, edx
xor eax, r8d
mov dword [rsp + 0x30], ecx
ror eax, 0x1f
lea r8, [rsp + 0x34]
mov dword [rsp + 0x34], eax
lea rdx, [rsp + 0x70]
mov rax, qword [r14 + 8]
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x20], rax
call fcn.140272ca0
mov r10d, dword [rsp + 0x70]
mov r8d, r10d
shl r8d, 0x1f
shr r10d, 1
or r8d, r10d
mov ecx, r8d
xor ecx, dword [rsp + 0x88]
and ecx, 0xaaaaaaaa
xor r8d, ecx
xor ecx, dword [rsp + 0x88]
mov eax, ecx
shr ecx, 9
shl eax, 0x17
or eax, ecx
mov ecx, r8d
xor ecx, eax
and ecx, 0xff00ff
mov edx, ecx
xor ecx, eax
mov eax, ecx
xor edx, r8d
shl ecx, 6
shr eax, 0x1a
or eax, ecx
mov ecx, edx
xor ecx, eax
and ecx, 0x33333333
mov r11d, ecx
xor ecx, eax
xor r11d, edx
mov edx, ecx
shl edx, 0x12
mov eax, r11d
shr ecx, 0xe
or edx, ecx
xor eax, edx
and eax, 0xffff0000
xor edx, eax
xor r11d, eax
mov r10d, edx
shl r10d, 0x14
mov eax, dword [rsp + 0x30]
add r15, 0x10
mov r8d, eax
shr edx, 0xc
shr eax, 1
or r10d, edx
shl r8d, 0x1f
mov r9d, r10d
or r8d, eax
xor r9d, r11d
mov ecx, r8d
and r9d, 0xf0f0f0f0
xor ecx, dword [rsp + 0x34]
xor r10d, r9d
and ecx, 0xaaaaaaaa
ror r10d, 4
xor r8d, ecx
xor r9d, r11d
xor ecx, dword [rsp + 0x34]
mov eax, ecx
shr ecx, 9
shl eax, 0x17
or eax, ecx
mov ecx, r8d
xor ecx, eax
and ecx, 0xff00ff
mov edx, ecx
xor ecx, eax
mov eax, ecx
xor edx, r8d
shl ecx, 6
shr eax, 0x1a
or eax, ecx
mov ecx, edx
xor ecx, eax
and ecx, 0x33333333
mov r8d, ecx
xor ecx, eax
mov eax, ecx
xor r8d, edx
shr ecx, 0xe
shl eax, 0x12
or eax, ecx
mov ecx, r8d
xor ecx, eax
and ecx, 0xffff0000
mov edx, ecx
xor ecx, eax
mov eax, ecx
xor edx, r8d
shr ecx, 0xc
mov r8d, edx
shl eax, 0x14
or eax, ecx
xor r8d, eax
and r8d, 0xf0f0f0f0
mov ecx, r8d
xor r8d, edx
xor ecx, eax
ror ecx, 4
bswap r9d
mov dword [rbx], r9d
bswap r10d
mov dword [rbx + 4], r10d
bswap r8d
mov dword [rbx + 8], r8d
bswap ecx
mov dword [rbx + 0xc], ecx
add rbx, 0x10
sub rbp, 1
jne 0x140272070
mov rdi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x78]
test rsi, rsi
je 0x1402724e4
sub r15, rbx
mov eax, dword [r15 + rbx + 4]
mov r8d, dword [r15 + rbx]
bswap eax
mov ecx, eax
shl eax, 4
shr ecx, 0x1c
or ecx, eax
bswap r8d
mov eax, r8d
xor eax, ecx
and eax, 0xf0f0f0f0
xor r8d, eax
xor eax, ecx
mov edx, eax
shl eax, 0xc
shr edx, 0x14
or edx, eax
mov eax, edx
xor eax, r8d
and eax, 0xffff0000
xor edx, eax
mov ecx, eax
xor ecx, r8d
mov r8d, edx
shl edx, 0xe
shr r8d, 0x12
or r8d, edx
mov eax, r8d
xor eax, ecx
and eax, 0x33333333
xor r8d, eax
mov edx, eax
xor edx, ecx
mov ecx, r8d
shl ecx, 0x1a
shr r8d, 6
or ecx, r8d
mov eax, ecx
xor eax, edx
and eax, 0xff00ff
xor ecx, eax
mov r8d, eax
xor r8d, edx
mov edx, ecx
shl ecx, 9
shr edx, 0x17
or edx, ecx
mov ecx, edx
xor ecx, r8d
and ecx, 0xaaaaaaaa
mov eax, ecx
xor ecx, edx
xor eax, r8d
mov dword [rsp + 0x70], ecx
mov r8, qword [r14 + 8]
lea rdx, [rsp + 0x70]
ror eax, 0x1f
lea rcx, [rsp + 0x88]
mov dword [rsp + 0x88], eax
call fcn.140272a10
mov eax, dword [rsp + 0x70]
mov r8d, eax
shr eax, 1
shl r8d, 0x1f
or r8d, eax
mov ecx, r8d
xor ecx, dword [rsp + 0x88]
and ecx, 0xaaaaaaaa
xor r8d, ecx
xor ecx, dword [rsp + 0x88]
mov eax, ecx
shr ecx, 9
shl eax, 0x17
or eax, ecx
mov ecx, r8d
xor ecx, eax
and ecx, 0xff00ff
mov edx, ecx
xor edx, r8d
xor ecx, eax
mov eax, ecx
shl ecx, 6
lea rbx, [rbx + 8]
shr eax, 0x1a
or eax, ecx
mov ecx, edx
xor ecx, eax
and ecx, 0x33333333
mov r8d, ecx
xor ecx, eax
mov eax, ecx
xor r8d, edx
shr ecx, 0xe
shl eax, 0x12
or eax, ecx
mov ecx, r8d
xor ecx, eax
and ecx, 0xffff0000
mov r9d, ecx
xor ecx, eax
mov eax, ecx
xor r9d, r8d
shr ecx, 0xc
mov edx, r9d
shl eax, 0x14
or eax, ecx
xor edx, eax
and edx, 0xf0f0f0f0
mov ecx, edx
xor edx, r9d
xor ecx, eax
ror ecx, 4
bswap edx
mov dword [rbx - 8], edx
bswap ecx
mov dword [rbx - 4], ecx
sub rsi, 1
jne 0x140272370
add rsp, 0x48
pop r15
pop r14
pop rsi
pop rbx
ret