Function at 0x14000c540
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov qword [rbp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x188], rbx
mov r12, r8
mov r15, rdx
mov rsi, rcx
mov r9d, dword [0x1401a9d80]
imul r9d, r9d
mov eax, 0x4ec4ec4f
imul r9d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0xd
sub r9d, edx
cmp r9d, 2
jne 0x14000c5b3
mov edx, 0xde
lea r8d, [rdx + 1]
lea rcx, str._d__d_n
call fcn.1400c4884
xor r13b, r13b
xor edi, edi
mov qword [rsp + 0x50], rdi
mov ecx, dword [0x1401a9d80]
imul ecx, ecx
mov eax, 0x38e38e39
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*8]
add eax, eax
sub ecx, eax
cmp ecx, 0xe
jne 0x14000c60a
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
mov qword [rsp + 0x58], rdi
mov rcx, qword [rsi + 0xa0]
or rbx, 0xffffffffffffffff
test rcx, rcx
jne 0x14000c635
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14000c630
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
jmp 0x14000cc76
mov rax, qword [rcx]
lea rdx, [rsp + 0x58]
call qword [rax + VariantChangeTypeEx]
mov r14d, eax
mov rcx, qword [rsp + 0x58]
test rcx, rcx
jne 0x14000c6bc
lea rcx, [0x1401a19a8]
mov rax, qword [0x1401a19a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x60], rax
mov r8d, r14d
lea rdx, str.runJSFunction_get_Document__d
lea rcx, [rbp - 0x60]
call fcn.1400111b0
mov rax, qword [rsi]
lea rdx, [rbp - 0x60]
mov rcx, rsi
call qword [rax + 0xb0]
nop
mov rdx, qword [rbp - 0x60]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000c6a6
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14000c6b7
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
jmp 0x14000cc76
mov rax, qword [rcx]
lea r8, [rsp + 0x50]
lea rdx, [0x140129ed8]
call qword [rax]
mov r14d, eax
cmp qword [rsp + 0x50], 0
jne 0x14000c744
lea rcx, [0x1401a19a8]
mov rax, qword [0x1401a19a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x80], rax
mov r8d, r14d
lea rdx, str.runJSFunction_QueryInterface__d
lea rcx, [rbp - 0x80]
call fcn.1400111b0
mov rax, qword [rsi]
lea rdx, [rbp - 0x80]
mov rcx, rsi
call qword [rax + 0xb0]
nop
mov rdx, qword [rbp - 0x80]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000c72e
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14000c73f
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
jmp 0x14000cc76
mov qword [rsp + 0x60], rdi
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
call qword [rax + 0x38]
mov r14d, eax
cmp qword [rsp + 0x60], 0
jne 0x14000c7e1
lea rcx, [0x1401a19a8]
mov rax, qword [0x1401a19a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x78], rax
mov r8d, r14d
lea rdx, str.runJSFunction_get_Script__d
lea rcx, [rbp - 0x78]
call fcn.1400111b0
mov rax, qword [rsi]
lea rdx, [rbp - 0x78]
mov rcx, rsi
call qword [rax + 0xb0]
nop
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000c7ba
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000c7cb
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14000c7dc
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
jmp 0x14000cc76
mov rcx, qword [r15]
test rcx, rcx
jne 0x14000c7f0
mov qword [rsp + 0x68], rdi
jmp 0x14000c80b
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rsp + 0x68], rax
test rax, rax
jne 0x14000c80b
mov ecx, 0x8007000e
call fcn.140001930
nop
mov dword [rbp + 0x80], edi
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
lea rdx, [rbp + 0x80]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 0x800
mov r15d, 1
mov r9d, r15d
lea r8, [rsp + 0x68]
lea rdx, [0x140129eb8]
call qword [rax + 0x28]
mov r14d, eax
mov eax, dword [0x1401a9d80]
mov ecx, eax
imul ecx, eax
imul ecx, eax
mov eax, 0x30c30c31
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
imul edx, edx, 0x15
sub ecx, edx
cmp ecx, 5
jne 0x14000c877
dec dword [0x1401a9f00]
test r14d, r14d
jns 0x14000cac3
lea rcx, [0x1401a19a8]
mov rax, qword [0x1401a19a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x70], rax
mov r8d, dword [0x1401a9d80]
mov ecx, r8d
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, 6
jne 0x14000c96a
nop word [rax + rax]
mov ecx, edi
and ecx, 1
dec ecx
not ecx
and ecx, r8d
mov eax, edi
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 edi
cmp edi, 0x100
jl 0x14000c8d0
mov dword [0x1401a9d80], r8d
mov r8d, r14d
lea rdx, str.runJSFunction_GetIDsOfNames__d
lea rcx, [rsp + 0x70]
call fcn.1400111b0
cmp r14d, 0x80020006
jne 0x14000ca64
mov rdx, qword [rsp + 0x68]
lea rcx, [rbp - 0x20]
call fcn.140002090
mov r14, rax
lea rcx, [0x1401a19a8]
mov rax, qword [0x1401a19a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x78], rax
lea rdx, [0x140133894]
test rdx, 0xffffffffffff0000
jne 0x14000c9e7
movzx edi, dx
mov ecx, edi
call fcn.1400019f0
test rax, rax
je 0x14000c9f5
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140002530
jmp 0x14000c9f5
mov r8d, r15d
lea rcx, [rsp + 0x78]
call fcn.140002240
nop
mov r8, r14
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x28]
call fcn.14000ee60
nop
mov rdx, qword [rax]
mov r8d, dword [rdx - 0x10]
lea rcx, [rsp + 0x70]
call fcn.14000f920
nop
mov rdx, qword [rbp - 0x28]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000ca32
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000ca4c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rdx, qword [rbp - 0x20]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000ca64
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rax, qword [rsi]
lea rdx, [rsp + 0x70]
mov rcx, rsi
call qword [rax + 0xb0]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000ca90
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000caad
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14000cabe
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
jmp 0x14000cc76
xor eax, eax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
mov dword [rbp - 0x48], r15d
mov eax, 0x18
mul r15
cmovo rax, rbx
mov rcx, rax
call fcn.1400c2fb8
mov qword [rbp - 0x58], rax
mov dword [rbp - 0x44], edi
mov rcx, qword [r12]
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rcx, rax
mov rax, qword [rbp - 0x58]
mov qword [rax + 8], rcx
mov ecx, 8
mov rax, qword [rbp - 0x58]
mov word [rax], cx
xor eax, eax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
mov qword [rbp], rax
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], rax
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
lea rcx, [rbp - 0x40]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
nop
mov dword [rbp - 0x68], 0xffffffff
mov rcx, qword [rsp + 0x60]
mov rax, qword [rcx]
lea rdx, [rbp - 0x68]
mov qword [rsp + 0x40], rdx
lea rdx, [rbp - 0x10]
mov qword [rsp + 0x38], rdx
lea rdx, [rbp - 0x40]
mov qword [rsp + 0x30], rdx
lea rdx, [rbp - 0x58]
mov qword [rsp + 0x28], rdx
mov word [rsp + 0x20], r15w
xor r9d, r9d
lea r8, [0x140129eb8]
mov edx, dword [rbp + 0x80]
call qword [rax + 0x30]
mov edi, eax
mov rcx, qword [rbp - 0x58]
call fcn.1400c4098
test edi, edi
jns 0x14000cc3a
lea rcx, [0x1401a19a8]
mov rax, qword [0x1401a19a8]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x70], rax
mov r8d, edi
lea rdx, str.runJSFunction_Invoke__d
lea rcx, [rbp - 0x70]
call fcn.1400111b0
mov rax, qword [rsi]
lea rdx, [rbp - 0x70]
mov rcx, rsi
call qword [rax + 0xb0]
nop
mov rdx, qword [rbp - 0x70]
add rdx, 0xffffffffffffffe8
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000cbff
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
lea rcx, [rbp - 0x40]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000cc27
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14000cc38
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
jmp 0x14000cc76
mov r13b, 1
lea rcx, [rbp - 0x40]
call qword [sym.imp.OLEAUT32.dll_VariantCopy]
nop
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14000cc65
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14000cc76
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000cc87
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov rdx, qword [r12]
sub rdx, 0x18
lock add dword [rdx + 0x10], 0xffffffff
jg 0x14000cca0
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
movzx eax, r13b
mov rbx, qword [rsp + 0x188]
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret