Function at 0x14009e428
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.1401c3ba0
sub rsp, rax
mov rax, qword [0x1402bdf00]
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.140090a84
test eax, eax
jne 0x14009e484
mov eax, 0xfffffffc
jmp 0x14009e70b
mov rcx, qword [rsi + 0xe0]
mov ebx, 0xfffffffc
mov r15d, 0x80
call fcn.1400944cc
xor r8d, r8d
mov r14d, r8d
test r13d, r13d
jne 0x14009e4b5
or edx, 0xffffffff
lea ecx, [r12 - 9]
cmp ecx, 1
cmovbe r14d, edx
cmp qword [rsi + 0xe8], r8
je 0x14009e709
test rax, rax
je 0x14009e709
mov rcx, rax
call fcn.14009e38c
xor r8d, r8d
mov qword [rsp + 0x78], rax
mov rdx, rax
cmp dword [rsi + 0x70], r8d
jne 0x14009e4f8
mov rcx, qword [rsi + 0xe8]
cmp qword [rcx + 0x2a8], r8
je 0x14009e4f8
movzx r15d, r8w
mov rcx, qword [rsi + 0xe8]
mov r9d, 1
jmp 0x14009e509
pause
xor eax, eax
lock cmpxchg dword [rcx + 0x288], r9d
je 0x14009e507
cmp r14d, r13d
jge 0x14009e6fb
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 0x14009e576
mov r9d, ebx
cmp dword [rdx + 4], r8d
jne 0x14009e569
movzx r8d, word [rsp + 0x64]
movzx edx, r15w
or dx, cx
jmp 0x14009e599
mov dword [rdx + 4], r8d
movzx edx, r15w
or dx, cx
jmp 0x14009e596
cmp dword [rdx + 4], r8d
jne 0x14009e58f
movzx r8d, word [rsp + 0x64]
mov dword [rdx + 4], r9d
mov r9d, ebx
movzx edx, r15w
jmp 0x14009e599
mov r9d, ebx
movzx edx, r15w
xor r8d, r8d
lea rcx, [rbp - 0x80]
call fcn.1400ab458
mov r13d, eax
test r15w, r15w
je 0x14009e697
mov edx, 4
lea rcx, [rsp + 0x60]
call fcn.1400cf6f0
xor eax, eax
test ebx, ebx
jle 0x14009e640
movsxd r8, ebx
lea r11d, [rax + 1]
sar r8, 2
mov edx, eax
mov r9d, eax
test r8, r8
jle 0x14009e5ff
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 0x14009e5e6
shl edx, 2
cmp edx, ebx
jge 0x14009e640
movsxd rax, edx
lea r8, [rbp - 0x70]
add r8, rax
lea rax, [rbp - 0x70]
sub r12, rax
mov eax, edx
and eax, 0x80000003
jge 0x14009e629
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 0x14009e617
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.14008bd40
jmp 0x14009e6d1
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.14008bd40
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 0x14009e52a
mov rax, qword [rsi + 0xe8]
mov dword [rax + 0x288], r8d
mov eax, ebx
mov rcx, qword [rbp + 0xf90]
xor rcx, rsp
call fcn.1401c3630
add rsp, 0x10a0
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret