Function at 0x14009c630
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.1401c1690
sub rsp, rax
mov rax, qword [0x1402b9f00]
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.14008edd4
test eax, eax
jne 0x14009c68c
mov eax, 0xfffffffc
jmp 0x14009c913
mov rcx, qword [rsi + 0xe0]
mov ebx, 0xfffffffc
mov r15d, 0x80
call fcn.1400926b0
xor r8d, r8d
mov r14d, r8d
test r13d, r13d
jne 0x14009c6bd
or edx, 0xffffffff
lea ecx, [r12 - 9]
cmp ecx, 1
cmovbe r14d, edx
cmp qword [rsi + 0xe8], r8
je 0x14009c911
test rax, rax
je 0x14009c911
mov rcx, rax
call fcn.14009c594
xor r8d, r8d
mov qword [rsp + 0x78], rax
mov rdx, rax
cmp dword [rsi + 0x70], r8d
jne 0x14009c700
mov rcx, qword [rsi + 0xe8]
cmp qword [rcx + 0x2a8], r8
je 0x14009c700
movzx r15d, r8w
mov rcx, qword [rsi + 0xe8]
mov r9d, 1
jmp 0x14009c711
pause
xor eax, eax
lock cmpxchg dword [rcx + 0x288], r9d
je 0x14009c70f
cmp r14d, r13d
jge 0x14009c903
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 0x14009c77e
mov r9d, ebx
cmp dword [rdx + 4], r8d
jne 0x14009c771
movzx r8d, word [rsp + 0x64]
movzx edx, r15w
or dx, cx
jmp 0x14009c7a1
mov dword [rdx + 4], r8d
movzx edx, r15w
or dx, cx
jmp 0x14009c79e
cmp dword [rdx + 4], r8d
jne 0x14009c797
movzx r8d, word [rsp + 0x64]
mov dword [rdx + 4], r9d
mov r9d, ebx
movzx edx, r15w
jmp 0x14009c7a1
mov r9d, ebx
movzx edx, r15w
xor r8d, r8d
lea rcx, [rbp - 0x80]
call fcn.1400a963c
mov r13d, eax
test r15w, r15w
je 0x14009c89f
mov edx, 4
lea rcx, [rsp + 0x60]
call fcn.1400cd280
xor eax, eax
test ebx, ebx
jle 0x14009c848
movsxd r8, ebx
lea r11d, [rax + 1]
sar r8, 2
mov edx, eax
mov r9d, eax
test r8, r8
jle 0x14009c807
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 0x14009c7ee
shl edx, 2
cmp edx, ebx
jge 0x14009c848
movsxd rax, edx
lea r8, [rbp - 0x70]
add r8, rax
lea rax, [rbp - 0x70]
sub r12, rax
mov eax, edx
and eax, 0x80000003
jge 0x14009c831
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 0x14009c81f
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.14008a08c
jmp 0x14009c8d9
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.14008a08c
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 0x14009c732
mov rax, qword [rsi + 0xe8]
mov dword [rax + 0x288], r8d
mov eax, ebx
mov rcx, qword [rbp + 0xf90]
xor rcx, rsp
call fcn.1401c1120
add rsp, 0x10a0
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret