Function at 0x1400a1a5c
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.1401c4230
sub rsp, rax
mov rax, qword [0x1402bced0]
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.140094060
test eax, eax
jne 0x1400a1ab8
mov eax, 0xfffffffc
jmp 0x1400a1d3f
mov rcx, qword [rsi + 0xe0]
mov ebx, 0xfffffffc
mov r15d, 0x80
call fcn.140097b00
xor r8d, r8d
mov r14d, r8d
test r13d, r13d
jne 0x1400a1ae9
or edx, 0xffffffff
lea ecx, [r12 - 9]
cmp ecx, 1
cmovbe r14d, edx
cmp qword [rsi + 0xe8], r8
je 0x1400a1d3d
test rax, rax
je 0x1400a1d3d
mov rcx, rax
call fcn.1400a19c0
xor r8d, r8d
mov qword [rsp + 0x78], rax
mov rdx, rax
cmp dword [rsi + 0x70], r8d
jne 0x1400a1b2c
mov rcx, qword [rsi + 0xe8]
cmp qword [rcx + 0x2a8], r8
je 0x1400a1b2c
movzx r15d, r8w
mov rcx, qword [rsi + 0xe8]
mov r9d, 1
jmp 0x1400a1b3d
pause
xor eax, eax
lock cmpxchg dword [rcx + 0x288], r9d
je 0x1400a1b3b
cmp r14d, r13d
jge 0x1400a1d2f
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 0x1400a1baa
mov r9d, ebx
cmp dword [rdx + 4], r8d
jne 0x1400a1b9d
movzx r8d, word [rsp + 0x64]
movzx edx, r15w
or dx, cx
jmp 0x1400a1bcd
mov dword [rdx + 4], r8d
movzx edx, r15w
or dx, cx
jmp 0x1400a1bca
cmp dword [rdx + 4], r8d
jne 0x1400a1bc3
movzx r8d, word [rsp + 0x64]
mov dword [rdx + 4], r9d
mov r9d, ebx
movzx edx, r15w
jmp 0x1400a1bcd
mov r9d, ebx
movzx edx, r15w
xor r8d, r8d
lea rcx, [rbp - 0x80]
call fcn.1400aea8c
mov r13d, eax
test r15w, r15w
je 0x1400a1ccb
mov edx, 4
lea rcx, [rsp + 0x60]
call fcn.1400d2d80
xor eax, eax
test ebx, ebx
jle 0x1400a1c74
movsxd r8, ebx
lea r11d, [rax + 1]
sar r8, 2
mov edx, eax
mov r9d, eax
test r8, r8
jle 0x1400a1c33
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 0x1400a1c1a
shl edx, 2
cmp edx, ebx
jge 0x1400a1c74
movsxd rax, edx
lea r8, [rbp - 0x70]
add r8, rax
lea rax, [rbp - 0x70]
sub r12, rax
mov eax, edx
and eax, 0x80000003
jge 0x1400a1c5d
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 0x1400a1c4b
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.14008f2ec
jmp 0x1400a1d05
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.14008f2ec
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 0x1400a1b5e
mov rax, qword [rsi + 0xe8]
mov dword [rax + 0x288], r8d
mov eax, ebx
mov rcx, qword [rbp + 0xf90]
xor rcx, rsp
call fcn.1401c3cc0
add rsp, 0x10a0
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rbx
pop rbp
ret