Function at 0x140007d90
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.140009770
mov rcx, rax
mov eax, r14d
test rcx, rcx
setne al
test eax, eax
jne 0x140007e05
mov ecx, 0x80004005
call fcn.140002160
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.140009760
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 0x140007f7c
mov r12d, r14d
nop word [rax + rax]
mov r9d, 2
mov r8d, r12d
lea rdx, [rsp + 0x40]
mov rcx, rbp
call fcn.140005150
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 0x140007ea0
cmp rax, qword [rdi - 0x18]
jne 0x140007ea0
lea rbx, [rdi - 0x18]
lock add dword [rdi - 8], 1
jmp 0x140007edb
mov rax, qword [rax]
mov r8d, 2
mov edx, dword [rdi - 0x10]
call qword [rax]
mov rbx, rax
test rax, rax
je 0x140007f76
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.1400315c0
add rbx, 0x18
mov qword [rsp + 0x58], rbx
lea r8, [rsp + 0x20]
lea rdx, [0x140058b18]
mov rcx, rbx
call fcn.140032fec
cmp eax, 0xffffffff
jne 0x140007f11
lea r8, [rsp + 0x20]
lea rdx, [0x140058b20]
mov rcx, rbx
call fcn.140032fec
mov ebp, dword [rsp + 0x20]
lea rdx, [rbx - 0x18]
mov eax, r13d
lock xadd dword [rdx + 0x10], eax
dec eax
test eax, eax
jg 0x140007f30
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 0x140007f5a
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 0x140007e60
mov rdi, qword [rsp + 0x38]
jmp 0x140007f7c
call fcn.140001ea0
nop
lea rcx, [rsp + 0x68]
mov rax, qword [str.SeikoEpson]
mov qword [rcx], rax
movzx eax, word [0x140058b30]
mov word [rcx + 8], ax
movzx eax, byte [0x140058b32]
mov byte [rcx + 0xa], al
mov r8, r14
test r15, r15
jle 0x140007fe2
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 0x140007fb0
mov byte [r15 + r9], 0
mov byte [r15 + r9 + 1], 0
mov r8, r9
lea rdx, [0x140057ef8]
mov rcx, rdi
call fcn.1400053a0
nop
mov rdx, qword [rbp]
sub rdx, 0x18
lock xadd dword [rdx + 0x10], r13d
dec r13d
test r13d, r13d
jg 0x140008020
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.1400315a0
mov rbx, qword [rsp + 0xd0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret