Function at 0x14009d1d0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x130]
sub rsp, 0x230
mov qword [rsp + 0x70], 0xfffffffffffffffe
mov qword [rsp + 0x280], rbx
mov rax, qword [0x14044f8c0]
xor rax, rsp
mov qword [rbp + 0x120], rax
mov r13d, r8d
mov rbx, rdx
mov r14, rcx
cmp qword [rcx + 0x1540], 0
je 0x14009d2fa
xor edi, edi
mov dword [rsp + 0x40], edi
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x20]
call fcn.1402ef020
mov dword [rsp + 0x64], edi
movups xmm0, xmmword [str._alsC]
movaps xmmword [rbp - 0x80], xmm0
lea rax, [rsp + 0x64]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x80]
mov rcx, rbx
call fcn.14003b1f0
test eax, eax
je 0x14009d2fa
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x14009d59a
lea rdx, [rax + rax*2]
mov eax, 4
mul rdx
mov r15, 0xffffffffffffffff
cmovo rax, r15
mov rcx, rax
call fcn.140153a84
mov r12, rax
test rax, rax
je 0x14009d2fa
mov eax, dword [rsp + 0x40]
lea edx, [rax + rax*2]
shl edx, 2
mov dword [rsp + 0x68], edi
movups xmm0, xmmword [str._alsC]
movaps xmmword [rbp - 0x70], xmm0
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], r12
xor r9d, r9d
lea r8d, [rdi + 1]
lea rdx, [rbp - 0x70]
mov rcx, rbx
call fcn.14003b1f0
test eax, eax
jne 0x14009d301
mov rcx, r12
call fcn.140153a7c
xor eax, eax
jmp 0x14009d59f
mov esi, dword [rsp + 0x40]
lea rdi, [rsi*8]
mov r8, rdi
mov rdx, r12
lea rcx, [rbp + 0x20]
call fcn.1402eebc0
lea r8, [rsi*4]
shr rdi, 2
lea rdx, [r12 + rdi*4]
lea rcx, [rbp - 0x60]
call fcn.1402eebc0
xor r8d, r8d
test esi, esi
je 0x14009d44f
mov r9d, dword [rsp + 0x58]
mov r10d, dword [rsp + 0x54]
mov r11d, dword [rsp + 0x50]
mov ebx, dword [rsp + 0x4c]
mov edi, dword [rsp + 0x48]
nop word [rax + rax]
mov ecx, dword [rbp + r8*8 + 0x20]
mov eax, r11d
xor eax, ecx
movzx eax, al
xor r11d, eax
mov dword [rsp + 0x50], r11d
mov eax, ecx
shr eax, 8
xor eax, r10d
and eax, 0xf
xor r10d, eax
mov dword [rsp + 0x54], r10d
and r9d, 0xfff00000
shr ecx, 0xc
or r9d, ecx
mov eax, dword [r14 + 0xc]
add eax, r8d
imul rcx, rax, 0xa8
movsd xmm0, qword [rsp + 0x50]
movsd qword [rcx + r14 + 0x38], xmm0
mov dword [rcx + r14 + 0x40], r9d
mov ecx, dword [rbp + r8*8 + 0x24]
mov eax, edi
xor eax, ecx
movzx eax, al
xor edi, eax
mov dword [rsp + 0x48], edi
shr ecx, 8
xor ecx, ebx
movzx eax, cx
xor ebx, eax
mov dword [rsp + 0x4c], ebx
mov eax, dword [r14 + 0xc]
add eax, r8d
imul rcx, rax, 0xa8
mov rax, qword [rsp + 0x48]
mov qword [rcx + r14 + 0xb8], rax
mov eax, dword [r14 + 0xc]
add eax, r8d
imul rcx, rax, 0xa8
mov eax, dword [rbp + r8*4 - 0x60]
mov dword [rcx + r14 + 0xc0], eax
mov eax, dword [r14 + 0xc]
add eax, r8d
imul rcx, rax, 0xa8
xor eax, eax
mov qword [rcx + r14 + 0xc4], rax
mov dword [rcx + r14 + 0xcc], eax
mov eax, dword [r14 + 0xc]
add eax, r8d
imul rcx, rax, 0xa8
mov dword [rcx + r14 + 0xd0], r13d
inc r8d
cmp r8d, dword [rsp + 0x40]
jb 0x14009d360
mov rax, qword [r14 + 0x1540]
test dword [rax + 8], 0x200000
je 0x14009d58a
call fcn.140162c14
mov rcx, rax
test rax, rax
je 0x14009d5c9
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x48], rax
lea rbx, [0x140393240]
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.1400168b0
test al, al
jne 0x14009d4bb
mov rax, r15
nop
inc rax
cmp word [rbx + rax*2], 0
jne 0x14009d4a0
mov r8d, eax
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140016ad0
nop
xor esi, esi
mov qword [rsp + 0x50], rsi
mov dword [rsp + 0x60], esi
mov edi, esi
cmp dword [rsp + 0x40], esi
jbe 0x14009d56c
mov r8d, dword [r14 + 0xc]
add r8d, edi
lea rdx, str.Pin__d
lea rcx, [rsp + 0x48]
call fcn.140012720
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
mov r8, rbx
lea rdx, str.Retasking
lea rcx, [0x14046a640]
call fcn.140169b78
test eax, eax
je 0x14009d55e
cmp dword [rsp + 0x60], 0xc
jne 0x14009d54a
mov eax, dword [r14 + 0xc]
add eax, edi
imul rcx, rax, 0xa8
mov rax, qword [rsp + 0x50]
movsd xmm0, qword [rax]
movsd qword [rcx + r14 + 0xc4], xmm0
mov eax, dword [rax + 8]
mov dword [rcx + r14 + 0xcc], eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14009d55e
call fcn.140153a7c
mov qword [rsp + 0x50], rsi
inc edi
cmp edi, dword [rsp + 0x40]
jb 0x14009d4d2
jmp 0x14009d571
mov rbx, qword [rsp + 0x48]
lea rdx, [rbx - 0x18]
lock xadd dword [rdx + 0x10], r15d
sub r15d, 1
jg 0x14009d58a
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, r12
call fcn.140153a7c
mov eax, dword [rsp + 0x40]
add dword [r14 + 0xc], eax
mov eax, 1
mov rcx, qword [rbp + 0x120]
xor rcx, rsp
call fcn.1402ecc20
mov rbx, qword [rsp + 0x280]
add rsp, 0x230
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140012800
int3