Function at 0x140010fb0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
inc dword [0x140156228]
mov r11, rcx
mov r13, qword [rcx + 0x7b48]
mov r10, rdx
movsxd rax, dword [0x1401561dc]
xor edx, edx
mov rbp, qword [0x1401561b0]
mov edi, r8d
mov rbx, qword [rsp + 0xd0]
inc rbp
imul r13, rax
movzx eax, word [0x1401561e8]
mov esi, 0x1b32
mov r14, qword [rsp + 0xe0]
mov qword [rsp + 0x38], rax
mov rax, rbx
imul rax, rbx
movsxd r12, r9d
mov qword [rsp + 0x58], rax
movzx eax, word [rsp + 0xd8]
mov r15d, eax
mov qword [rsp + 0xb0], rax
movsxd rax, dword [0x14015625c]
xor r15, qword [0x140156230]
or rax, r12
mov qword [rsp + 0x48], rax
movzx eax, word [0x140156258]
mov dword [rsp + 0xc8], 0x1645
mov rcx, qword [rcx + rax*8]
inc dword [0x140156204]
movzx eax, word [0x14015622c]
sub eax, dword [0x1401561c4]
cdqe
mov qword [rsp + 0x50], rax
movsxd rax, dword [0x1401561c0]
mov dword [rsp + 0xc0], eax
imul rax, qword [0x140156208]
mov qword [rsp + 0x40], rcx
mov rcx, qword [0x140156220]
imul rax, rax, 0x494
mov qword [0x1401561b0], rbp
movsxd r8, dword [rcx*4 + 0xe57]
movzx ecx, byte [0x1401561da]
div r8
mov eax, ecx
xor edx, dword [rcx*8 + 0xe57]
add eax, eax
mov dword [rax*4 + 0xe57], edx
mov rdx, qword [0x140156220]
mov r8, qword [0x140156238]
dec rdx
mov qword [0x140156220], rdx
mov rax, rdx
shl rax, 5
shl r8, 4
mov ecx, dword [rax + r11]
xor ecx, edx
or ecx, dword [0x140156210]
add dword [r8 + 0x1b32], ecx
movzx eax, word [0x1401561b0]
movzx ecx, word [0x14015624c]
mov word [r14 + rcx*2], ax
lea ecx, [r9 + r9]
inc qword [0x1401561b0]
mov eax, 0x2dfb6b75
imul ecx
sar edx, 0xa
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x1645
sub ecx, eax
movsxd rax, ecx
xor qword [0x140156208], rax
cmp qword [0x140156238], 0xfa
jae 0x1400111a8
mov edx, dword [rsp + 0xc0]
movzx eax, dx
cmp rax, qword [0x1401561f8]
je 0x1400111af
mov ecx, dword [rbp + 0x7c70]
movzx eax, byte [0x1401561da]
add ecx, 0x1518
mov dword [r13 + rax*8 + 0x40], ecx
mov eax, edi
shl eax, 2
movsxd rcx, eax
movzx eax, word [r11 + rcx*8]
and ax, word [0x140156238]
movzx ecx, ax
movzx eax, word [0x1401561ec]
imul eax, ecx
mov word [0x1401561ec], ax
jmp 0x1400111af
mov edx, dword [rsp + 0xc0]
mov eax, dword [rsi]
mov r11d, 0xffff
movzx r9d, word [rsp + 0xd8]
add eax, eax
cdqe
movzx r13d, byte [rax + 1]
cmp r13d, 0xad2
jb 0x14001136a
mov rcx, rbx
lea r8, [r10 + 0x23]
or rcx, 0xb3
lea r8, [r8 + r13*4]
mov qword [rsp + 0xe0], rcx
mov rbx, qword [rsp + 0xe0]
imul ecx, edi, 0xb4
mov qword [rsp + 0x30], r8
sub ecx, 0xb4
movzx edx, dx
movsxd rax, ecx
dec edi
mov qword [0x140156230], rax
mov eax, dword [rsi]
sub rsi, 4
add eax, eax
mov dword [rsp + 0xe0], ecx
cdqe
mov rcx, qword [r15 + rax*8]
mov rax, qword [rsp + 0x38]
movzx r8d, word [rax + 0x12d0]
mov al, byte [0x1401561da]
or r8, 0xb4
inc al
movzx r10d, al
mov byte [0x1401561da], al
mov eax, 0x196f
xor r9w, ax
mov qword [rsp + 0x20], r10
call fcn.140014fc0
movzx ecx, word [0x1401561b0]
mov r11d, 0xffff
movzx r9d, word [rsp + 0xd8]
movsxd r10, eax
or cx, r9w
movzx edx, cx
mov rax, rbx
movzx ecx, word [0x140156258]
add r9w, r11w
imul ecx, edx
xor edx, edx
mov dword [rsp + 0xc8], r10d
mov word [rsp + 0xd8], r9w
mov word [0x140156258], cx
movzx r8d, byte [r10 + 1]
movsxd rcx, dword [0x140156248]
div r8
mov rax, rdx
xor edx, edx
div rcx
xor edx, edx
mov dword [0x140156248], eax
lea eax, [r10 + r10]
mov r10, qword [rsp + 0x30]
movsxd r8, eax
mov rax, qword [0x140156250]
movzx ecx, byte [r10]
add r10, 4
mov qword [rsp + 0x30], r10
movzx eax, word [rax + 0x1a0c]
div ecx
mov rcx, qword [rsp + 0xb0]
mov eax, edx
cdq
idiv dword [rbp + rcx*4]
movzx ecx, r9w
cdq
mov qword [rsp + 0xb0], rcx
idiv r13d
mov rax, qword [rsp + 0x40]
inc r13d
xor dword [rax + r8*4], edx
mov r8d, 0x32e
mov edx, dword [rsp + 0xc0]
mov rax, qword [rsp + 0x48]
add dx, r11w
mov dword [rsp + 0xc0], edx
movzx eax, word [rax + rcx*2]
mov ecx, dword [rsp + 0xe0]
or ax, r8w
xor word [r14 + r12*2], ax
cmp r13d, 0xad2
jge 0x140011203
mov rbx, qword [rsp + 0xd0]
movzx eax, word [0x1401561d8]
movsxd rcx, dword [rbp + rax*8]
mov rax, rbx
dec rbx
cmp rcx, rax
jae 0x1400113a1
mov rax, qword [0x1401561c8]
movsxd rdx, dword [0x1401561dc]
mov rcx, rax
inc rax
mov qword [0x1401561c8], rax
cmp rdx, rcx
je 0x1400113bf
movzx eax, word [0x1401561e8]
movzx ecx, ax
add ax, r11w
cmp word [0x14015622c], cx
mov word [0x1401561e8], ax
jae 0x14001140a
movsxd rax, dword [0x14015625c]
mov rdx, qword [rsp + 0x50]
movzx ecx, r9w
add ecx, dword [0x140156210]
mov dword [rdx + rax*4], ecx
lea eax, [rdi*4 + 0x15]
movsxd r8, eax
mov eax, 0x18af
movzx ecx, ax
mov rax, qword [0x140156238]
movzx edx, word [r15 + rax*8]
imul edx, ecx
sub dx, word [r14 + r8*2]
mov word [r14 + r8*2], dx
dec qword [0x140156238]
dec byte [0x1401561da]
lea eax, [rdi - 1]
shl eax, 2
movsxd r11, eax
mov rax, qword [0x140156250]
movzx ecx, word [rax + r11*2]
mov eax, dword [0x140156228]
cdq
idiv ecx
movsxd rax, edx
xor edx, edx
div qword [0x140156220]
mov qword [0x1401561f8], rdx
movsxd rax, dword [rsi]
movzx r10d, word [r14 + rax*2]
cmp r10, rbx
jb 0x1400114c4
movsxd rdi, dword [rsp + 0xc8]
or r12, 0x149f
mov rbp, qword [rsp + 0xb8]
mov r9d, r10d
mov r13, qword [rsp + 0x58]
shl r9, 4
mov al, byte [r15 + 0x808]
xor edx, edx
sub al, byte [r9 + rsi]
inc r10d
xor al, byte [r13 + 0x3b4c]
lea r9, [r9 + 0x10]
add byte [rbp + rdi*4], al
movsxd rcx, dword [rsi]
lea rsi, [rsi - 4]
lea eax, [rcx + rcx]
movsxd r8, eax
mov rax, qword [r15 + rcx*8]
movzx ecx, word [0x1401561d8]
imul rax, r12
xor rax, rcx
movzx ecx, word [r14 + r8*2]
div rcx
movsxd rcx, r10d
mov word [r14 + r8*2], ax
cmp rcx, rbx
jae 0x140011471
mov rax, qword [0x1401561f0]
mov eax, dword [rax + r11*8]
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret