Function at 0x14006ea30
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rbx, rcx
mov rax, qword [0x140346038]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rdi, qword [0x140362c40]
test rdi, rdi
je 0x14006eaea
mov ebp, dword [rdi + 0x50]
movabs r14, 0xaaaaaaaaaaaaaaaa
mov r15d, 0xaaaaaaab
mov qword [rsp + 0x48], r14
mov edx, dword [rdi + 0x6c]
mov eax, dword [rdi + 0x68]
mov rcx, qword [rdi + 0x60]
cmp eax, 0x30
je 0x14006ed2d
lea r10d, [rax + 0x10]
cmp r10d, 0x50
jb 0x14006eaea
mov r9d, eax
mov r8d, r9d
and r8d, 7
jne 0x14006eaea
mov r8d, dword [rcx + 0x14]
cmp r8d, r10d
jb 0x14006eaea
mov rcx, qword [rcx + 8]
mov r10d, dword [rcx + r9 + 4]
cmp r10d, 0xc8799269
jne 0x14006eaea
add rcx, r9
mov r9d, dword [rcx]
cmp r9d, 0x10
jb 0x14006eaea
mov r9d, dword [rcx]
add r9d, eax
jb 0x14006eaea
cmp r9d, r8d
ja 0x14006eaea
test rcx, rcx
je 0x14006eaea
mov r8d, dword [rcx + 0xc]
cmp r8d, 0x30
jne 0x14006ee07
mov rsi, qword [0x140362950]
cmp rsi, 1
jbe 0x14006ef84
mov rax, qword [rsi]
test al, 0x1c
jne 0x14006ef18
mov rcx, rax
or rcx, 1
add rcx, 0x100
lock cmpxchg qword [rsi], rcx
jne 0x14006ef18
mov r8, qword [0x140362960]
test r8, r8
je 0x14006ed3a
mov r13, qword [rbx]
mov rbp, qword [rbx + 8]
cmp rbp, 0x20
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], rbp
jbe 0x14006ed71
cmp rbp, 0x40
ja 0x14006f0cc
mov rcx, qword [r13 + 0x10]
mov r10, qword [r13 + 0x18]
mov rdi, qword [r13 + rbp - 0x10]
lea rdx, [rdi + rbp]
movabs rax, 0xc3a5c85c97cb3127
imul rdx, rax
add rdx, qword [r13]
lea r9, [rdx + r10]
rol r9, 0xc
mov r14, rdx
rol r14, 0x1b
add rdx, qword [r13 + 8]
mov r11, rdx
rol r11, 0x39
add rdx, rcx
add rcx, qword [r13 + rbp - 0x20]
mov rbx, qword [r13 + rbp - 8]
add rbx, r10
lea r15, [rbx + rcx]
rol r15, 0xc
mov r12, rcx
rol r12, 0x1b
add rcx, qword [r13 + rbp - 0x18]
add r11, r14
mov r14, rcx
rol r14, 0x39
add rcx, rdi
add rbx, rcx
rol rcx, 0x21
add r12, r10
add r12, r14
add r12, r15
add r12, rcx
add r12, rdx
rol rdx, 0x21
add r11, r9
add rdx, r11
movabs rcx, 0x9ae16a3b2f90404f
imul r12, rcx
add rbx, rdx
imul rbx, rax
add rbx, r12
mov r9, rbx
shr r9, 0x2f
xor r9, rbx
imul r9, rax
add r9, rdx
mov r14, r9
shr r14, 0x2f
xor r14, r9
imul r14, rcx
mov r13, qword [r8 + 8]
test r13, r13
je 0x14006ed3a
mov rax, r13
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, r13
sub rax, rcx
movabs rcx, 0x3333333333333333
mov rdx, rax
and rdx, rcx
shr rax, 2
and rax, rcx
add rax, rdx
mov rcx, rax
shr rcx, 4
add rcx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rcx
movabs rbp, 0x101010101010101
imul rbp, rax
shr rbp, 0x38
cmp rbp, 1
ja 0x14006ed3f
lea r12, [r13 - 1]
and r12, r14
mov rax, qword [r8]
mov rax, qword [rax + r12*8]
test rax, rax
je 0x14006ed3a
mov rbx, qword [rax]
test rbx, rbx
je 0x14006ed3a
lea rdi, [r13 - 1]
xor r15d, r15d
mov rax, qword [rbx + 8]
cmp r14, rax
je 0x14006eecc
cmp ebp, 1
ja 0x14006ed5b
and rax, rdi
cmp rax, r12
jne 0x14006ecdc
mov rbx, qword [rbx]
test rbx, rbx
jne 0x14006ecb6
mov rax, qword [rsi]
mov ecx, eax
and ecx, 0x15
cmp ecx, 1
jne 0x14006eeff
cmp rax, 0x200
mov rcx, rax
sbb rcx, 0
add rcx, 0xffffffffffffff00
lock cmpxchg qword [rsi], rcx
jne 0x14006eeff
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140156fe0
mov rax, r15
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rcx + 8]
add rcx, 0x30
jmp 0x14006ead7
xor r15d, r15d
jmp 0x14006ecdc
mov r12, r14
cmp r14, r13
jb 0x14006ec93
mov rax, r14
xor edx, edx
div r13
mov r12, rdx
jmp 0x14006ec93
cmp rax, r13
jb 0x14006eccf
xor edx, edx
div r13
mov rax, rdx
jmp 0x14006eccf
cmp rbp, 0x10
jbe 0x14006f00a
movabs rcx, 0xb492b66fbe98f273
imul rcx, qword [r13]
mov rdx, qword [r13 + 8]
movabs rax, 0x9ae16a3b2f90404f
imul rax, qword [r13 + rbp - 8]
movabs r9, 0xc3a5c85c97cb3127
imul r9, qword [r13 + rbp - 0x10]
movabs r10, 0xc949d7c7509e6557
xor r10, rdx
rol r10, 0x2c
add r10, rcx
add r10, rbp
sub rcx, rdx
rol rcx, 0x15
sub r10, rax
rol rax, 0x22
add rax, r9
add rax, rcx
xor rax, r10
movabs rcx, 0x9ddfea08eb382d69
imul rax, rcx
xor r10, rax
shr rax, 0x2f
xor rax, r10
imul rax, rcx
mov r14, rax
shr r14, 0x2f
xor r14, rax
jmp 0x14006ec15
mov rcx, qword [rdi + 0x60]
lea r9d, [r8 + 0x10]
cmp r9d, 0x50
jb 0x14006ef0e
mov r10d, r8d
and r10d, 7
jne 0x14006ef0e
mov r10d, dword [rcx + 0x14]
cmp r10d, r9d
jb 0x14006ef0e
mov r9, qword [rcx + 8]
mov r11d, dword [r9 + r8 + 4]
cmp r11d, 0xc8799269
jne 0x14006ef0e
add r9, r8
mov r11d, dword [r9]
cmp r11d, 0x10
jb 0x14006ef0e
mov r11d, dword [r9]
add r11d, r8d
setb sil
test r9, r9
je 0x14006ef0e
test sil, sil
jne 0x14006ef0e
cmp r11d, r10d
ja 0x14006ef0e
lock cmpxchg dword [rdi + 0x68], r8d
jne 0x14006ea80
mov eax, dword [r9 + 8]
mov rcx, qword [rdi + 0x60]
mov r9, qword [rcx + 8]
mov r9d, dword [r9 + 0x28]
mov r10d, dword [rcx + 0x14]
cmp r10d, r9d
cmovb r9d, r10d
imul r9, r15
shr r9, 0x24
cmp edx, r9d
ja 0x14006ef0e
lock inc dword [rdi + 0x6c]
cmp eax, 0xf1645913
jne 0x14006ea7a
cmp r8d, ebp
je 0x14006ea7a
jmp 0x14006ef32
mov rax, qword [rsp + 0x20]
cmp qword [rbx + 0x18], rax
jne 0x14006ecd4
mov rcx, qword [rbx + 0x10]
mov rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x20]
call fcn.140158970
test eax, eax
jne 0x14006ecd4
mov r15, qword [rbx + 0x20]
jmp 0x14006ecdc
mov rcx, rsi
xor edx, edx
call fcn.140102bcc
jmp 0x14006ed0c
call fcn.14025a3e0
jmp 0x14006eaea
lea rdx, [0x140304cb0]
mov rcx, rsi
xor r8d, r8d
xor r9d, r9d
call fcn.140100042
jmp 0x14006eb1f
mov rcx, qword [rdi + 0x58]
lea rsi, [rsp + 0x48]
mov rdx, rsi
call fcn.1401392b0
mov rcx, qword [rsi]
test rcx, rcx
je 0x14006eaea
xor esi, esi
mov qword [rsp + 0x48], rsi
call fcn.140070500
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x48], rsi
test rcx, rcx
je 0x14006ea75
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [0x14037e008]
jmp 0x14006ea75
lea rcx, [0x140362950]
call fcn.1400d86a0
test al, al
je 0x14006f334
mov qword [0x140362958], 0
lea rsi, [0x140362958]
lea rcx, [0x140362950]
mov rdx, rsi
xor r8d, r8d
mov r9, rcx
call fcn.1400d85d0
jmp 0x14006eafb
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx]
mov rdx, qword [rsp + 0x20]
mov ecx, dword [rcx + rdx - 4]
lea rax, [rdx + rax*8]
xor rax, rcx
movabs rdx, 0x9ddfea08eb382d69
imul rax, rdx
xor rcx, rax
shr rax, 0x2f
xor rax, rcx
imul rax, rdx
mov r14, rax
shr r14, 0x2f
xor r14, rax
imul r14, rdx
jmp 0x14006ec19
cmp rbp, 9
jae 0x14006f07e
cmp qword [rsp + 0x20], 4
jae 0x14006efc4
movabs r14, 0x9ae16a3b2f90404f
cmp qword [rsp + 0x20], 0
je 0x14006ec19
mov rdx, qword [rsp + 0x28]
movzx eax, byte [rdx]
mov r9, qword [rsp + 0x20]
mov rcx, r9
shr rcx, 1
movzx ecx, byte [rdx + rcx]
movzx edx, byte [r9 + rdx - 1]
shl rcx, 8
or rcx, rax
lea rax, [r9 + rdx*4]
imul rcx, r14
movabs rdx, 0xc949d7c7509e6557
imul rdx, rax
xor rdx, rcx
mov rax, rdx
shr rax, 0x2f
xor rax, rdx
imul r14, rax
jmp 0x14006ec19
mov r9, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
mov rax, qword [r9 + rcx - 8]
lea rdx, [rax + rcx]
ror rdx, cl
mov rcx, qword [r9]
xor rcx, rdx
movabs r9, 0x9ddfea08eb382d69
imul rcx, r9
xor rdx, rcx
shr rcx, 0x2f
xor rcx, rdx
imul rcx, r9
mov r14, rcx
shr r14, 0x2f
xor r14, rcx
imul r14, r9
xor r14, rax
jmp 0x14006ec19
movabs r12, 0xb492b66fbe98f273
movabs rbx, 0x9ddfea08eb382d69
mov r14, qword [r13 + rbp - 0x28]
mov rax, qword [r13 + rbp - 0x10]
mov rcx, qword [r13 + rbp - 0x38]
mov r9, qword [r13 + rbp - 0x30]
lea rdx, [rcx + rax]
mov r11, qword [r13 + rbp - 0x18]
lea rdi, [r9 + rbp]
xor rdi, r11
imul rdi, rbx
mov r10, r11
xor r10, rdi
shr rdi, 0x2f
xor rdi, r10
imul rdi, rbx
mov r10, rdi
shr r10, 0x2f
xor r10, rdi
imul r10, rbx
mov rdi, qword [r13 + rbp - 0x40]
add rdi, rbp
lea rbx, [rdi + r14]
mov qword [rsp + 0x30], r10
add rbx, r10
rol rbx, 0x2b
add r9, rcx
add r9, rdi
mov r15, r9
rol r15, 0x14
add r15, rdi
add r15, rbx
add r9, r14
mov rcx, qword [r13 + rbp - 0x20]
add rcx, rdx
mov rdi, qword [r13 + rbp - 8]
mov r10, r12
add rcx, r12
lea rbx, [rdi + r14]
add rbx, rcx
rol rbx, 0x2b
add r11, rax
add r11, rcx
mov r12, r11
rol r12, 0x14
add r12, rcx
add r12, rbx
imul r14, r10
add r14, qword [r13]
add r11, rdi
lea rax, [rbp - 1]
and rax, 0xffffffffffffffc0
mov qword [rsp + 0x38], rax
xor ebp, ebp
mov rax, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x30]
add r14, r9
add r14, rdx
mov r13, qword [rax + rbp + 8]
mov rcx, qword [rax + rbp + 0x10]
add r14, r13
rol r14, 0x1b
add rdx, r15
mov r10, qword [rax + rbp + 0x30]
mov qword [rsp + 0x40], r10
add rdx, r10
rol rdx, 0x16
movabs rdi, 0xb492b66fbe98f273
imul r14, rdi
mov r10, rdx
imul r10, rdi
xor r14, r12
mov rdi, qword [rax + rbp + 0x28]
add r9, rdi
mov rdx, r9
add rdx, r10
add rbx, r11
movabs r9, 0xb492b66fbe98f273
imul r15, r9
mov r10, qword [rax + rbp + 0x18]
add r15, qword [rax + rbp]
add r11, r10
add r11, r15
mov qword [rsp + 0x30], r14
add r11, r14
rol r11, 0x2b
add r13, rcx
add r13, r15
mov r9, r13
rol r9, 0x14
add r15, r9
add r15, r11
rol rbx, 0x1f
mov r9, r13
mov r14, rbx
movabs r11, 0xb492b66fbe98f273
imul r14, r11
add r9, r10
add r12, r14
mov r10, qword [rax + rbp + 0x38]
add r12, qword [rax + rbp + 0x20]
add rcx, r10
add rcx, rdx
add rcx, r12
add rdi, qword [rsp + 0x40]
add rdi, r12
mov r11, rdi
rol r11, 0x14
add r12, r11
rol rcx, 0x2b
add r12, rcx
mov r11, rdi
add r11, r10
add rbp, 0x40
cmp qword [rsp + 0x38], rbp
jne 0x14006f1a5
xor r15, r12
movabs r10, 0x9ddfea08eb382d69
imul r15, r10
xor r12, r15
shr r15, 0x2f
xor r15, r12
imul r15, r10
mov rax, r15
shr rax, 0x2f
xor rax, r15
imul rax, r10
add rax, r14
xor r9, r11
imul r9, r10
xor r11, r9
shr r9, 0x2f
xor r9, r11
imul r9, r10
mov rcx, r9
shr rcx, 0x2f
xor rcx, r9
imul rcx, r10
mov r9, rdx
shr r9, 0x2f
xor r9, rdx
movabs rdx, 0xb492b66fbe98f273
imul r9, rdx
add r9, qword [rsp + 0x30]
add r9, rcx
xor r9, rax
imul r9, r10
xor rax, r9
shr r9, 0x2f
xor r9, rax
imul r9, r10
mov r14, r9
shr r14, 0x2f
xor r14, r9
imul r14, r10
jmp 0x14006ec19
mov rsi, qword [0x140362950]
jmp 0x14006eafb