Function at 0x140003970
Capabilities:
Encode data using xor

Disassembly:
test rcx, rcx
je 0x140003c28
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x140019010]
xor rax, rsp
mov qword [rbp - 0x28], rax
mov rbx, rcx
mov qword [rsp + 0xb0], rsi
mov rcx, qword [0x14001a328]
xor esi, esi
mov qword [rbp - 0x50], rsi
mov rdi, rdx
mov qword [rbp - 0x58], rsi
lea rdx, [rbp - 0x50]
mov rax, qword [rcx]
call qword [rax + 0xa8]
mov rax, qword [rbx]
lea r9, [rbp - 0x58]
mov r8, qword [rbp - 0x50]
lea edx, [rsi + 2]
mov rcx, rbx
call qword [rax + 0x30]
mov rcx, qword [rbp - 0x58]
test rcx, rcx
jne 0x1400039ef
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x140003c0a
jmp 0x140003c04
mov dword [rbp - 0x30], esi
lea rdx, [rbp - 0x30]
mov rax, qword [rcx]
call qword [rax + 0x18]
mov ebx, esi
cmp dword [rbp - 0x30], ebx
jle 0x140003bf6
mov qword [rsp + 0x78], r12
lea r12, str.___8_rgg___f____f_g__w
mov qword [rsp + 0x70], r13
lea r13, str.___8_rgg___f________:____f_g8_____g__w
mov qword [rsp + 0x68], r14
lea r14, [0x14001a3a0]
mov qword [rsp + 0x60], r15
lea r15, str.___8_rgg___f__f_g__w
nop word [rax + rax]
mov rcx, qword [rbp - 0x58]
lea r8, [rbp - 0x60]
mov qword [rbp - 0x60], rsi
mov edx, ebx
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x140003bd7
mov rax, qword [rcx]
lea r8, [rbp - 0x48]
mov edx, 0x755d
call qword [rax + 0x50]
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
je 0x140003bcb
movsxd r10, dword [0x14001a390]
mov rcx, r15
mov r9d, 0x1a
mov rdx, qword [r14 + r10*8]
inc r10d
mov r8, rdx
nop dword [rax]
movzx eax, byte [rcx]
lea r8, [r8 + 2]
xor al, 0x48
lea rcx, [rcx + 1]
movzx eax, al
mov word [r8 - 2], ax
sub r9, 1
jne 0x140003aa0
cmp r10d, 0xf
mov word [rdx + 0x34], si
mov rcx, qword [rbp - 0x40]
cmovge r10d, esi
mov dword [0x14001a390], r10d
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
jne 0x140003b9d
movsxd r10, dword [0x14001a390]
lea r9d, [rax + 0x1c]
mov rcx, r12
mov rdx, qword [r14 + r10*8]
inc r10d
mov r8, rdx
nop dword [rax]
movzx eax, byte [rcx]
lea r8, [r8 + 2]
xor al, 0x48
lea rcx, [rcx + 1]
movzx eax, al
mov word [r8 - 2], ax
sub r9, 1
jne 0x140003b00
cmp r10d, 0xf
mov word [rdx + 0x38], si
mov rcx, qword [rbp - 0x40]
cmovge r10d, esi
mov dword [0x14001a390], r10d
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
jne 0x140003b9d
movsxd r10, dword [0x14001a390]
lea r9d, [rax + 0x2d]
mov rcx, r13
mov rdx, qword [r14 + r10*8]
inc r10d
mov r8, rdx
nop word [rax + rax]
movzx eax, byte [rcx]
lea r8, [r8 + 2]
xor al, 0x48
lea rcx, [rcx + 1]
movzx eax, al
mov word [r8 - 2], ax
sub r9, 1
jne 0x140003b60
cmp r10d, 0xf
mov word [rdx + 0x5a], si
mov rcx, qword [rbp - 0x40]
cmovge r10d, esi
mov dword [0x14001a390], r10d
call qword [sym.imp.VCRUNTIME140.dll_wcsstr]
test rax, rax
je 0x140003bc1
mov rdx, qword [rdi + 8]
cmp rdx, qword [rdi + 0x10]
je 0x140003bb5
mov rax, qword [rbp - 0x60]
mov qword [rdx], rax
add qword [rdi + 8], 8
jmp 0x140003bc1
lea r8, [rbp - 0x60]
mov rcx, rdi
call fcn.140007090
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rbp - 0x60]
mov rdx, rdi
call fcn.140003970
inc ebx
cmp ebx, dword [rbp - 0x30]
jl 0x140003a40
mov r15, qword [rsp + 0x60]
mov r14, qword [rsp + 0x68]
mov r13, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
mov rcx, qword [rbp - 0x58]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp - 0x50]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rsi, qword [rsp + 0xb0]
mov rcx, qword [rbp - 0x28]
xor rcx, rsp
call fcn.1400101d0
add rsp, 0x80
pop rdi
pop rbx
pop rbp
ret