Function at 0x14009d1f0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xfa0]
mov eax, 0x10a0
call fcn.1401c27d0
sub rsp, rax
mov rax, qword [0x1402bcf00]
xor rax, rsp
mov qword [rbp + 0xf90], rax
mov r13d, r9d
mov dword [rsp + 0x68], r9d
mov qword [rsp + 0x70], r8
mov r12d, edx
mov dword [rsp + 0x64], edx
mov rsi, rcx
call fcn.14008f940
test eax, eax
jne 0x14009d24c
mov eax, 0xfffffffc
jmp 0x14009d4d3
mov rcx, qword [rsi + 0xe0]
mov ebx, 0xfffffffc
mov r15d, 0x80
call fcn.140093264
xor r8d, r8d
mov r14d, r8d
test r13d, r13d
jne 0x14009d27d
or edx, 0xffffffff
lea ecx, [r12 - 9]
cmp ecx, 1
cmovbe r14d, edx
cmp qword [rsi + 0xe8], r8
je 0x14009d4d1
test rax, rax
je 0x14009d4d1
mov rcx, rax
call fcn.14009d154
xor r8d, r8d
mov qword [rsp + 0x78], rax
mov rdx, rax
cmp dword [rsi + 0x70], r8d
jne 0x14009d2c0
mov rcx, qword [rsi + 0xe8]
cmp qword [rcx + 0x2a8], r8
je 0x14009d2c0
movzx r15d, r8w
mov rcx, qword [rsi + 0xe8]
mov r9d, 1
jmp 0x14009d2d1
pause
xor eax, eax
lock cmpxchg dword [rcx + 0x288], r9d
je 0x14009d2cf
cmp r14d, r13d
jge 0x14009d4c3
mov ecx, 0x8000
mov r10d, 0x1000
test r14d, r14d
mov eax, r8d
mov ebx, r13d
cmovns eax, r14d
sub ebx, eax
movsxd r12, eax
add r12, qword [rsp + 0x70]
cmp ebx, r10d
cmovg ebx, r10d
lea r14d, [rbx + rax]
cmp r14d, r13d
jl 0x14009d33e
mov r9d, ebx
cmp dword [rdx + 4], r8d
jne 0x14009d331
movzx r8d, word [rsp + 0x64]
movzx edx, r15w
or dx, cx
jmp 0x14009d361
mov dword [rdx + 4], r8d
movzx edx, r15w
or dx, cx
jmp 0x14009d35e
cmp dword [rdx + 4], r8d
jne 0x14009d357
movzx r8d, word [rsp + 0x64]
mov dword [rdx + 4], r9d
mov r9d, ebx
movzx edx, r15w
jmp 0x14009d361
mov r9d, ebx
movzx edx, r15w
xor r8d, r8d
lea rcx, [rbp - 0x80]
call fcn.1400aa17c
mov r13d, eax
test r15w, r15w
je 0x14009d45f
mov edx, 4
lea rcx, [rsp + 0x60]
call fcn.1400ce3e0
xor eax, eax
test ebx, ebx
jle 0x14009d408
movsxd r8, ebx
lea r11d, [rax + 1]
sar r8, 2
mov edx, eax
mov r9d, eax
test r8, r8
jle 0x14009d3c7
lea rax, [rbp - 0x70]
mov r10, r12
sub r10, rax
mov edx, r8d
lea rax, [r10 + r9*4]
mov ecx, dword [rbp + rax - 0x70]
xor ecx, dword [rsp + 0x60]
mov dword [rbp + r9*4 - 0x70], ecx
add r9, r11
cmp r9, r8
jl 0x14009d3ae
shl edx, 2
cmp edx, ebx
jge 0x14009d408
movsxd rax, edx
lea r8, [rbp - 0x70]
add r8, rax
lea rax, [rbp - 0x70]
sub r12, rax
mov eax, edx
and eax, 0x80000003
jge 0x14009d3f1
sub eax, r11d
or eax, 0xfffffffc
add eax, r11d
cdqe
add edx, r11d
mov cl, byte [rsp + rax + 0x60]
xor cl, byte [r8 + r12]
mov byte [r8], cl
add r8, r11
cmp edx, ebx
jl 0x14009d3df
mov edx, 2
movsxd rax, ebx
mov dword [rsp + 0x58], edx
lea r9, [rbp - 0x80]
mov qword [rsp + 0x50], rax
mov r8d, 0x40000003
lea rax, [rbp - 0x70]
movsxd rcx, r13d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x60]
mov dword [rsp + 0x40], edx
mov qword [rsp + 0x38], 4
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edx
xor edx, edx
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsi + 0xe8]
call fcn.14008ac9c
jmp 0x14009d499
mov edx, 2
movsxd rax, ebx
mov dword [rsp + 0x40], edx
lea r9, [rbp - 0x80]
mov qword [rsp + 0x38], rax
mov r8d, 0x40000002
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], edx
xor edx, edx
movsxd rcx, r13d
mov qword [rsp + 0x20], rcx
mov rcx, qword [rsi + 0xe8]
call fcn.14008ac9c
mov r13d, dword [rsp + 0x68]
mov r8d, 0
mov rdx, qword [rsp + 0x78]
mov ebx, eax
mov ecx, 0x8000
mov r10d, 0x1000
lea r9d, [r8 + 1]
cmp r14d, r13d
jl 0x14009d2f2
mov rax, qword [rsi + 0xe8]
mov dword [rax + 0x288], r8d
mov eax, ebx
mov rcx, qword [rbp + 0xf90]
xor rcx, rsp
call fcn.1401c2260
add rsp, 0x10a0
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret