Function at 0x14006e850
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbp
mov r15, rcx
call fcn.14000b860
mov r12d, eax
mov r9d, dword [0x1401cbd80]
lea r8d, [r9 + 1]
imul r8d, r9d
mov eax, 0xb21642c9
imul r8d
add edx, r8d
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul edx, edx, 0x17
sub r8d, edx
xor ebx, ebx
cmp r8d, 4
jne 0x14006e94d
mov edx, ebx
mov ecx, edx
and ecx, 1
dec ecx
not ecx
and ecx, r9d
mov eax, edx
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r9d
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, r9d
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r9d
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, r9d
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r9d
sar ecx, 1
xor eax, ecx
mov ecx, eax
and ecx, 1
dec ecx
not ecx
and ecx, r9d
sar eax, 1
xor ecx, eax
mov eax, ecx
and eax, 1
dec eax
not eax
and eax, r9d
sar ecx, 1
xor eax, ecx
add r9d, eax
inc edx
cmp edx, 0x100
jl 0x14006e8b3
mov dword [0x1401cbd80], r9d
mov ecx, 0x30
call fcn.1400d1e38
mov rsi, rax
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14006e984
mov rdi, qword [r15 + 0xb8]
mov rcx, rax
call fcn.140001cb0
nop
lea rax, vtable.CNovaJsErrorHandler.0
mov qword [rsi], rax
mov qword [rsi + 0x28], rdi
jmp 0x14006e987
mov rsi, rbx
mov qword [r15 + 0xb0], rsi
lea rdi, [r15 + 0xc8]
mov rax, qword [rdi]
mov ecx, 1
sub ecx, dword [rax - 8]
mov eax, dword [rax - 0xc]
sub eax, 0x104
or eax, ecx
jge 0x14006e9b9
mov edx, 0x104
mov rcx, rdi
call fcn.1400023b0
mov rdx, qword [rdi]
cmp dword [rdx - 0xc], 0x104
jge 0x14006e9d0
mov ecx, 0x80070057
call fcn.140001920
int3
mov dword [rdx - 0x10], 0x104
mov rax, qword [rdi]
mov word [rax + 0x208], bx
xor ecx, ecx
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov rcx, qword [rdi]
test rcx, rcx
jne 0x14006e9fb
mov eax, ebx
jmp 0x14006ea0c
movsxd rdx, dword [rcx - 0xc]
call fcn.1400d226c
test eax, eax
js 0x14006ebe9
mov rcx, qword [rdi]
cmp eax, dword [rcx - 0xc]
jg 0x14006ebe9
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rdi]
mov word [rax + rcx*2], bx
mov edx, 0x5c
mov rcx, qword [rdi]
call fcn.1400d3ff4
or esi, 0xffffffff
test rax, rax
jne 0x14006ea3e
mov eax, esi
jmp 0x14006ea44
sub rax, qword [rdi]
sar rax, 1
mov r8d, eax
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.14001c890
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov r14, qword [rdi]
sub r14, 0x18
cmp rcx, r14
je 0x14006eaaa
cmp dword [r14 + 0x10], 0
jl 0x14006ea9d
mov rax, qword [r14]
cmp qword [rcx], rax
jne 0x14006ea9d
call fcn.140002410
mov rbp, rax
lock add dword [r14 + 0x10], 0xffffffff
jg 0x14006ea94
mov rcx, qword [r14]
mov r8, qword [rcx]
mov rdx, r14
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rbp + 0x18]
mov qword [rdi], rax
jmp 0x14006eaaa
mov r8d, dword [rdx - 0x10]
mov rcx, rdi
call fcn.1400022c0
nop
mov rdx, qword [rsp + 0x60]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14006eac3
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r8, rdi
lea rdx, str.file:__
lea rcx, [rsp + 0x20]
call fcn.14001ca10
nop
lea r8, str._bgnova.html
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.14001c930
nop
mov rdx, qword [rax]
lea rcx, [rdx - 0x18]
mov r14, qword [rdi]
sub r14, 0x18
cmp rcx, r14
je 0x14006eb42
cmp dword [r14 + 0x10], 0
jl 0x14006eb35
mov rax, qword [r14]
cmp qword [rcx], rax
jne 0x14006eb35
call fcn.140002410
mov rbp, rax
lock add dword [r14 + 0x10], 0xffffffff
jg 0x14006eb2c
mov rcx, qword [r14]
mov r8, qword [rcx]
mov rdx, r14
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rax, [rbp + 0x18]
mov qword [rdi], rax
jmp 0x14006eb42
mov r8d, dword [rdx - 0x10]
mov rcx, rdi
call fcn.1400022c0
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14006eb5c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x20]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14006eb75
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, dword [0x1401cbd80]
mov ecx, eax
imul ecx, eax
imul ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xe
sub ecx, edx
cmp ecx, 0xc
jne 0x14006ebd8
mov ecx, 0x28
call fcn.1400d0cc8
mov rsi, rax
nop dword [rax]
call fcn.1400d2038
add eax, dword [0x1401cbd80]
mov dword [rsi + rbx*4], eax
inc rbx
cmp rbx, 0xa
jl 0x14006ebb0
mov ecx, dword [rsi + 0x24]
mov dword [0x1401cbd80], ecx
mov rcx, rsi
call fcn.1400d272c
mov rax, qword [r15]
mov rdx, rdi
mov rcx, r15
call qword [rax + 0x48]
mov eax, r12d
jmp 0x14006ebf4
mov ecx, 0x80070057
call fcn.140001920
int3
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret