Function at 0x140028700
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp + 0x27], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x2f], rcx
mov qword [rbp + 0x37], rdx
mov dword [rbp - 0x39], 0
lea rcx, [rbp - 0x29]
call fcn.140028490
nop
mov r8d, dword [0x1401bdd80]
lea ecx, [r8 + 1]
imul ecx, r8d
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
shl eax, 3
sub ecx, eax
cmp ecx, 3
jne 0x14002880e
xor edx, edx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, r8d
mov eax, edx
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r8d
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, r8d
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r8d
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, r8d
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r8d
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, r8d
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r8d
sar ecx, 1
xor eax, ecx
add r8d, eax
inc edx
cmp edx, 0x100
jl 0x140028774
mov dword [0x1401bdd80], r8d
lea rcx, [0x1401b59a8]
mov rax, qword [0x1401b59a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x49], rax
lea rdx, [0x140146fd8]
test rdx, 0xffffffffffff0000
jne 0x140028857
movzx ebx, dx
mov ecx, ebx
call fcn.1400019e0
test rax, rax
je 0x140028864
mov r8d, ebx
mov rdx, rax
lea rcx, [rbp - 0x49]
call fcn.140002690
jmp 0x140028864
xor r8d, r8d
lea rcx, [rbp - 0x49]
call fcn.1400023a0
nop
lea rax, [rbp - 0x31]
mov qword [rbp - 0x41], rax
mov rbx, qword [r14]
mov rcx, qword [rbx - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rbx - 8], 0
jl 0x140028892
cmp rax, qword [rbx - 0x18]
jne 0x140028892
lea rdi, [rbx - 0x18]
lock inc dword [rbx - 8]
jmp 0x1400288cf
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rbx - 0x10]
call qword [rax]
mov rdi, rax
test rax, rax
jne 0x1400288ae
call fcn.140002580
int3
mov eax, dword [rbx - 0x10]
mov dword [rdi + 8], eax
mov eax, dword [rbx - 0x10]
inc eax
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rbx
add rdx, rdx
lea rcx, [rdi + 0x18]
call fcn.1400cc4cc
lea rax, [rdi + 0x18]
mov qword [rbp - 0x31], rax
lea rax, [rbp - 0x49]
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x31]
mov rdx, rsi
call fcn.140028f70
mov dword [rbp - 0x39], 1
mov rdx, qword [rbp - 0x49]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14002890c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rax, [rbp + 0x17]
mov qword [rbp - 0x41], rax
mov rdx, qword [rbp + 0x17]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14002892d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rax, [rbp - 9]
mov qword [rbp - 0x41], rax
mov rdx, qword [rbp - 9]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14002894e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rax, [rbp - 0x21]
mov qword [rbp - 0x41], rax
mov rdi, qword [rbp - 0x11]
test rdi, rdi
je 0x140028977
mov rcx, rdi
call fcn.140020e40
mov rcx, rdi
call fcn.1400cbac0
mov qword [rbp - 0x11], 0
lea rax, [rbp - 0x19]
mov qword [rbp - 0x41], rax
mov rdx, qword [rbp - 0x19]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x140028998
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [r14]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x1400289b0
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov rax, rsi
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret