Function at 0x1001bfa18
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov r13, rcx
mov rcx, qword [rcx + 0x10]
mov rdi, rdx
lea rsi, [rcx + 1]
mov rdx, rsi
mov qword [rsp + 0x20], rsi
mov eax, 0x64ae8dd5
lea r12, [0x100000000]
mov eax, 0xfffffff
mov r8d, dword [rsi]
mov rbp, 0xfffffffffffff000
mov rcx, r12
mov r10d, dword [rsi + 0xc]
and qword [rsp + 0xb0], 0
and r10, rax
and r8, rax
mov rax, qword [0x1000487b8]
add r10, r12
sub rcx, rax
mov qword [rsp + 0x28], rcx
jne 0x1001bfb0c
xor r11d, r11d
test r8, r8
je 0x1001bfded
mov edx, dword [rsp + 0xb4]
mov r15d, 0xffcbde40
mov r9d, dword [rsp + 0xb0]
mov r14d, 0x3421c0
movzx ecx, byte [r11 + r10]
inc r11
sub ecx, r14d
add r9d, ecx
add ecx, edx
imul ecx, ecx, 0xffcbde40
ror ecx, 0x1e
mov eax, ecx
imul eax, eax, 0x975e
xor eax, ecx
imul rax, r15
mov qword [rsp + 0xa0], rax
mov edx, dword [rsp + 0xa0]
shr rax, 0x20
add edx, eax
add r9d, edx
cmp r11, r8
jb 0x1001bfab4
mov dword [rsp + 0xb4], edx
mov dword [rsp + 0xb0], r9d
jmp 0x1001bfded
movsxd rdx, dword [0x10000003c]
lea rax, [r10 + r8]
mov qword [rsp + 0x40], rax
lea rax, [0x1000000b0]
add rdx, rax
mov eax, r10d
sub eax, r12d
mov ebx, eax
mov r11d, eax
add rax, r8
mov r8d, dword [rdx]
and r11, rbp
mov rsi, rax
and rsi, rbp
add r8, r12
mov r12d, dword [rdx + 4]
sub rax, rsi
mov qword [rsp + 0x38], rsi
sub rbx, r11
add r12, r8
mov qword [rsp + 0x30], rax
jmp 0x1001bfb6b
mov eax, dword [r8]
cmp rax, r11
jae 0x1001bfb70
mov eax, dword [r8 + 4]
add r8, rax
cmp r8, r12
jne 0x1001bfb5c
xor r9d, r9d
cmp r8, r12
je 0x1001bfbaa
mov eax, dword [r8]
cmp rax, r11
jne 0x1001bfbaa
mov ecx, dword [r8 + 4]
sub rcx, 8
shr rcx, 1
je 0x1001bfbaa
lea rdx, [r8 + 8]
movzx eax, word [rdx]
and eax, 0xfff
cmp rax, rbx
jae 0x1001bfbaa
inc r9
add rdx, 2
cmp r9, rcx
jne 0x1001bfb91
mov r15d, 0xffcbde40
mov r14d, 0x3421c0
mov ebp, dword [rsp + 0xb0]
mov r13, qword [rsp + 0x28]
mov edi, dword [rsp + 0xb4]
cmp r8, r12
je 0x1001bfd6e
mov eax, dword [r8]
cmp rax, rsi
ja 0x1001bfd6e
mov ecx, dword [r8 + 4]
lea rax, [rcx - 8]
shr rax, 1
cmp r9, rax
jne 0x1001bfc0b
add r8, rcx
cmp r8, r12
je 0x1001bfd6e
mov eax, dword [r8]
cmp rax, rsi
ja 0x1001bfd6e
xor r9d, r9d
jmp 0x1001bfbde
mov eax, dword [r8]
cmp rax, rsi
jne 0x1001bfc29
movzx eax, word [r8 + r9*2 + 8]
and eax, 0xfff
cmp rax, qword [rsp + 0x30]
jae 0x1001bfd6e
mov rax, r9
mov ecx, 0xf000
inc r9
test word [r8 + rax*2 + 8], cx
je 0x1001bfbc9
movzx edx, word [r8 + rax*2 + 8]
mov esi, edx
lea rax, [0x100000000]
xor ebx, ebx
and esi, 0xfff
add esi, dword [r8]
add rsi, rax
mov r11, rsi
sub r11, r10
je 0x1001bfcb1
movzx ecx, byte [rbx + r10]
inc rbx
sub ecx, r14d
add ebp, ecx
add ecx, edi
imul ecx, ecx, 0xffcbde40
ror ecx, 0x1e
mov eax, ecx
imul eax, eax, 0x975e
xor eax, ecx
imul rax, r15
mov qword [rsp + 0xb8], rax
mov edi, dword [rsp + 0xb8]
shr rax, 0x20
add edi, eax
add ebp, edi
cmp rbx, r11
jb 0x1001bfc61
mov dword [rsp + 0xb4], edi
mov dword [rsp + 0xb0], ebp
shr edx, 0xc
mov rax, qword [rsi]
mov qword [rsp + 0xb8], rax
cmp edx, 3
je 0x1001bfcd0
sub edx, 0xa
neg edx
sbb edx, edx
add edx, 3
jmp 0x1001bfcd5
mov edx, 2
mov r10, r13
neg r10
sub edx, 2
je 0x1001bfcfd
cmp edx, 1
je 0x1001bfceb
or rdx, 0xffffffffffffffff
jmp 0x1001bfd0a
mov edx, 8
add rax, r10
mov qword [rsp + 0xb8], rax
jmp 0x1001bfd0a
mov edx, 4
add dword [rsp + 0xb8], r10d
xor r10d, r10d
test rdx, rdx
je 0x1001bfd60
movzx ecx, byte [rsp + r10 + 0xb8]
inc r10
sub ecx, r14d
add ebp, ecx
add ecx, edi
imul ecx, ecx, 0xffcbde40
ror ecx, 0x1e
mov eax, ecx
imul eax, eax, 0x975e
xor eax, ecx
imul rax, r15
mov qword [rsp + 0x28], rax
shr rax, 0x20
mov edi, dword [rsp + 0x28]
add edi, eax
add ebp, edi
cmp r10, rdx
jb 0x1001bfd12
mov dword [rsp + 0xb4], edi
mov dword [rsp + 0xb0], ebp
lea r10, [rdx + rsi]
mov rsi, qword [rsp + 0x38]
jmp 0x1001bfbc9
xor edx, edx
mov r8, qword [rsp + 0x40]
mov r13, qword [rsp + 0xa0]
sub r8, r10
je 0x1001bfdd2
movzx ecx, byte [rdx + r10]
inc rdx
sub ecx, r14d
add ebp, ecx
add ecx, edi
imul ecx, ecx, 0xffcbde40
ror ecx, 0x1e
mov eax, ecx
imul eax, eax, 0x975e
xor eax, ecx
imul rax, r15
mov qword [rsp + 0xa0], rax
mov edi, dword [rsp + 0xa0]
shr rax, 0x20
add edi, eax
add ebp, edi
cmp rdx, r8
jb 0x1001bfd82
mov dword [rsp + 0xb4], edi
mov dword [rsp + 0xb0], ebp
mov rdi, qword [rsp + 0xa8]
mov rsi, qword [rsp + 0x20]
mov rbp, 0xfffffffffffff000
lea r12, [0x100000000]
add qword [r13 + 0x10], 0x11
mov r14d, 0xfffffff
mov eax, dword [rsi + 4]
and rax, r14
mov rax, qword [rax + r12]
cmp qword [rsp + 0xb0], rax
je 0x1001bff0f
call fcn.100058248
lea r9, [r13 + 0x18]
mov r11d, 0xffff
and r9, 0xfffffffffffffff8
lea r10, [r9 + 0xfff]
mov rbx, rax
and rbx, rbp
and r10, rbp
xor r8d, r8d
lea rbp, [0x1001094ec]
mov qword [r13 + 0x10], rbp
mov rcx, qword [0x1004c43a0]
imul rcx, rcx, 0x343fd
shl r8, 0x10
shr r11, 0x10
add rcx, 0x269ec3
mov rax, rcx
shr rax, 0x10
movzx edx, ax
or r8, rdx
test r11, r11
jne 0x1001bfe48
mov qword [0x1004c43a0], rcx
movabs rax, 0x8000800080008001
mul r8
shr rdx, 0xf
mov qword [rdi + 0x98], rbx
imul rdx, rdx, 0xffff
sub r8, rdx
inc r8
mov qword [rdi + 0xb0], r8
mov qword [rsp + 0xa0], r11
jmp 0x1001bfebc
mov rax, qword [rsp + 0xa0]
mov qword [r9], rax
add r9, 8
cmp r9, r10
jb 0x1001bfead
movabs r8, 0x7d4b8ee50000
mov qword [r13 + 0x10], rbp
mov eax, dword [rsi + 8]
and rax, r14
mov rdx, qword [rdi + 0xb0]
mov rcx, rdx
xor rcx, r8
shl rcx, 0x10
mov qword [rdi + 0x80], rdx
mov eax, dword [rax + r12]
xor rcx, rax
mov eax, dword [0x1004c5920]
xor rcx, rax
xor rcx, rdx
and qword [rdi + 0xb0], 0
mov qword [rdi + 0xa0], rcx
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret