Function at 0x140007fe0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rsp + 0xd0], rbx
mov rax, qword [0x140068cf8]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbp, rdx
mov qword [rsp + 0x30], rdx
mov rdi, rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdx
xor r14d, r14d
mov dword [rsp + 0x24], r14d
call fcn.140009b20
mov rcx, rax
mov eax, r14d
test rcx, rcx
setne al
test eax, eax
jne 0x140008055
mov ecx, 0x80004005
call fcn.140002150
int3
mov rax, qword [rcx]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rdi], rax
mov dword [rsp + 0x24], 1
mov rax, qword [rbp]
mov eax, dword [rax - 0x10]
cdq
sub eax, edx
sar eax, 1
movsxd rbx, eax
lea eax, [rbx + 2]
movsxd rcx, eax
call fcn.140009b10
mov r9, rax
mov qword [rsp + 0x28], rax
xor eax, eax
mov qword [r9], rax
mov rsi, r14
mov r15, rbx
or r13d, 0xffffffff
test ebx, ebx
jle 0x1400081cc
mov r12d, r14d
nop word [rax + rax]
mov r9d, 2
mov r8d, r12d
lea rdx, [rsp + 0x40]
mov rcx, rbp
call fcn.140005170
nop
mov rdi, qword [rsp + 0x40]
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, rax
cmp dword [rdi - 8], 0
jl 0x1400080f0
cmp rax, qword [rdi - 0x18]
jne 0x1400080f0
lea rbx, [rdi - 0x18]
lock add dword [rdi - 8], 1
jmp 0x14000812b
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rbx, rax
test rax, rax
je 0x1400081c6
mov eax, dword [rdi - 0x10]
mov dword [rbx + 8], eax
mov eax, dword [rdi - 0x10]
inc eax
movsxd rdx, eax
lea r9, [rdx + rdx]
mov r8, rdi
add rdx, rdx
lea rcx, [rbx + 0x18]
call fcn.140031970
add rbx, 0x18
mov qword [rsp + 0x58], rbx
lea r8, [rsp + 0x20]
lea rdx, [0x140058b38]
mov rcx, rbx
call fcn.14003339c
cmp eax, 0xffffffff
jne 0x140008161
lea r8, [rsp + 0x20]
lea rdx, [0x140058b40]
mov rcx, rbx
call fcn.14003339c
mov ebp, dword [rsp + 0x20]
lea rdx, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140008180
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r9, qword [rsp + 0x28]
mov byte [rsi + r9], bpl
mov eax, r13d
lock xadd dword [rdi - 8], eax
dec eax
test eax, eax
jg 0x1400081aa
mov rcx, qword [rdi - 0x18]
mov rax, qword [rcx]
lea rdx, [rdi - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov r9, qword [rsp + 0x28]
add r12d, 2
inc rsi
cmp rsi, r15
mov rbp, qword [rsp + 0x30]
jl 0x1400080b0
mov rdi, qword [rsp + 0x38]
jmp 0x1400081cc
call fcn.140006e30
nop
lea rcx, [rsp + 0x68]
mov rax, qword [str.SeikoEpson]
mov qword [rcx], rax
movzx eax, word [0x140058b50]
mov word [rcx + 8], ax
movzx eax, byte [0x140058b52]
mov byte [rcx + 0xa], al
mov r8, r14
test r15, r15
jle 0x140008232
nop dword [rax + rax]
mov eax, 0x66666667
imul r14d
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [rdx + rdx*4]
add ecx, ecx
mov eax, r14d
sub eax, ecx
cdqe
movzx ecx, byte [rsp + rax + 0x68]
xor byte [r8 + r9], cl
inc r14d
inc r8
cmp r8, r15
jl 0x140008200
mov byte [r15 + r9], 0
mov byte [r15 + r9 + 1], 0
mov r8, r9
lea rdx, [0x140057f18]
mov rcx, rdi
call fcn.1400053c0
nop
mov rdx, qword [rbp]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], r13d
dec r13d
test r13d, r13d
jg 0x140008270
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov rax, rdi
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140031950
mov rbx, qword [rsp + 0xd0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret