Function at 0x140002f48
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], r9
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rbx, qword [rsp + 0xc8]
mov r15, rcx
mov r11, qword [rsp + 0xe8]
mov r12d, 1
movsxd rdx, dword [0x1412f6ad0]
mov r13, r8
mov rbp, qword [rsp + 0xb8]
mov r10, r9
mov rax, qword [0x1412f6b00]
sub rbp, r12
mov rdi, qword [rsp + 0xd0]
movzx r14d, word [0x1412f6a94]
mov qword [rsp + 0x10], rbp
add r14d, 0x1a7f
movsxd rax, dword [rax + 0x5a2c]
mov qword [rsp + 0x28], rax
mov rax, qword [0x1412f6ac8]
sub rax, r12
mov qword [0x1412f6ac8], rax
movzx esi, word [rbx + rax*2]
movzx eax, byte [r11 + 0x977]
imul rsi, qword [0x1412f6b18]
mov qword [rsp], rax
mov rax, qword [0x1412f6b10]
movzx ecx, word [rax + rdx*2]
sub dword [0x1412f6ac0], r12d
movsxd rax, dword [0x1412f6ad4]
or rcx, rax
mov dword [rsp + 0xa0], eax
movzx eax, word [0x1412f6a70]
sub rax, rbp
mov qword [rsp + 0x20], rcx
movzx ecx, word [0x1412f6b20]
mov qword [rsp + 0x40], rax
mov edx, ecx
movzx eax, word [0x1412f6a5c]
add cx, r12w
xor rdx, rax
mov word [0x1412f6b20], cx
movzx eax, byte [r9 + 0x31d]
add rax, qword [0x1412f6ae0]
movzx r9d, word [rdi]
mov qword [rsp + 8], rax
movzx eax, word [0x1412f6a60]
mov word [rsp + 0xb8], ax
movzx r10d, byte [r9 + r10]
xor r10w, word [0x1412f6a78]
movzx eax, cx
add eax, 5
mov qword [rsp + 0x18], rdx
xor edx, edx
lea eax, [rax + rax*2]
movzx r8d, word [rbx + rax*2]
mov rax, rbp
div r8
mov rax, qword [r15 + r9*8]
movzx r8d, word [0x1412f6ab0]
mov qword [rsp + 0x38], rax
mov eax, dword [0x1412f6afc]
mov word [rsp + 0xe8], r8w
mov r8, qword [0x1412f6a50]
sub r8, r12
mov qword [rsp + 0x30], rdx
lea eax, [rax*2 + 0x26]
mov qword [0x1412f6a50], r8
movsxd rcx, eax
mov edx, 1
mov rax, qword [r15 + 0xa7d8]
sub rbp, rdx
mov qword [rsp + 0xd0], rax
movzx eax, word [0x1412f6ab4]
movzx r12d, word [rbx + rcx*2]
add ax, dx
mov r9b, byte [r11 + rbp + 2]
sub r12, r8
mov word [0x1412f6ab4], ax
xor r9b, 0xde
movzx eax, ax
and r8b, 0xbf
mov byte [rsp + 0xc8], r9b
add eax, 0x27
mov r15, qword [rsp + 0xe0]
movzx r11d, word [rsp + 0xe8]
mov byte [rax + r15], r8b
add qword [0x1412f6a50], rdx
xor edx, edx
mov r8, qword [rsp + 0xd0]
mov rax, qword [rsp + 8]
movzx eax, byte [rax]
lea rcx, [rax + rax*2]
mov eax, dword [rsi*4 + 0x1a96]
add eax, 0x4ec
cdqe
imul rax, qword [0x1412f6ad8]
div qword [r8 + rcx*8]
mov rdx, r8
mov qword [rdx + rcx*8], rax
lea rax, [r11 + r11*2]
mov eax, dword [rdx + rax*8]
xor edx, edx
movzx r8d, word [rdi]
movzx ecx, r10w
mov r10, qword [rsp + 0xd8]
and rax, rcx
and eax, 0x1084
or rax, qword [rsp]
movzx ecx, word [rbx + r8*4 + 0x32]
div rcx
mov word [rbx + r8*4 + 0x32], dx
mov r8, qword [rsp + 0xa8]
mov rax, qword [0x1412f6ad8]
shl rax, 4
movzx ecx, byte [r8 + rsi*2 + 7]
cmp rcx, qword [rax + 0xcc2]
jb 0x1400031de
mov rcx, qword [rsp + 0xb0]
movzx eax, byte [rsp + 0xc0]
cmp word [rcx + r10*2], ax
jae 0x1400031f9
movzx eax, word [0x1412f6ab4]
mov rcx, qword [rsp + 0x10]
mov ecx, dword [rcx + rax*8]
cmp dword [0x1412f6af8], ecx
jl 0x140003295
movzx eax, word [0x1412f6aec]
mov ecx, 0xa9
sub ax, word [r14 + rsi*2 + 2]
add ax, word [rsp]
mov rdx, qword [rsp + 0x18]
add ax, cx
mov word [r14 + rsi*2 + 2], ax
mov esi, 1
add word [rdi], si
movzx r8d, word [rdi]
movsxd rax, dword [0x1412f6b08]
mov rcx, qword [0x1412f6a78]
add rcx, rcx
mov rdx, qword [rdx + rcx*8 + 8]
mov ecx, 0xffff
or rdx, rax
mov rax, qword [rsp + 0x90]
mov qword [rax + r8*8 + 0x108], rdx
xor edx, edx
movzx eax, word [0x1412f6ab4]
add ax, cx
mov rcx, qword [rsp + 0x20]
mov word [0x1412f6ab4], ax
movzx eax, ax
movzx r8d, word [rcx + rax*2 + 0x1c]
mov eax, 0xec
movzx ecx, word [0x1412f6a70]
div ecx
or r8d, eax
xor dword [0x1412f6ad0], r8d
jmp 0x140003391
movzx eax, r11w
mov esi, 1
movzx r9d, r9b
lea edx, [rax*2 + 7]
add edx, eax
lea ecx, [r9 + r9*2]
mov rax, qword [rsp + 0xd0]
mov al, byte [rax + rcx*8]
mov ecx, 0x336
add byte [rdx + r8], al
xor edx, edx
mov rax, 0xfffffffffffffec3
lea r8d, [r9 + 0xe]
div qword [0x1412f6a60]
mov rax, qword [rsp + 8]
mov qword [0x1412f6a60], rdx
movzx eax, byte [rax]
xor word [rbx + rax*2 + 0xe], cx
mov eax, 0x67f1620f
mov ecx, dword [0x1412f6aec]
add ecx, esi
imul ecx
mov dword [0x1412f6aec], ecx
movzx ecx, word [r14 + r8*2]
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax
mov word [r14 + r8*2], cx
mov eax, dword [0x1412f6a90]
mov rcx, qword [rsp + 0xb0]
add eax, 0x13
movsxd rdx, eax
mov rax, qword [0x1412f6a78]
movzx ecx, word [rcx + rax*2]
mov rax, qword [rsp + 0x90]
mov r8d, dword [rax + rdx*8]
movzx eax, word [rsp + 0xb8]
add r8d, ecx
sub r8d, eax
xor dword [0x1412f6a74], r8d
add word [rdi], si
movzx eax, word [0x1412f6ab4]
movzx r8d, word [rdi]
lea eax, [rax*2 + 0x1c]
movzx edx, word [r14 + rax*2]
and edx, dword [0x1412f6a74]
movzx eax, byte [rsp + 0xc0]
or edx, r9d
imul edx, eax
mov rax, qword [rsp + 0x28]
mov dword [rax + r8*4], edx
movsxd r8, dword [0x1412f6ae8]
mov edi, 0x553e
movzx eax, r11w
mov r14d, 0x2249
lea r11d, [rax + rax*2]
mov rax, qword [rsp + 0x30]
add rax, 0x10
lea r9, [rax + r8*8]
movsxd rcx, dword [rdi]
sub rbp, rsi
movsxd rax, dword [0x1412f6afc]
xor edx, edx
or rcx, rax
add r8d, esi
mov qword [r9], rcx
lea r9, [r9 + 8]
or word [r12 + r11*2], r10w
add r10, rsi
movzx eax, word [r14]
xor rax, rbp
div r13
xor dword [0x1412f6aec], eax
cmp r8d, dword [0x1412f6ae8]
je 0x1400033b8
movzx r8d, byte [rsp + 0xc8]
mov rax, qword [rsp + 0x38]
movzx edx, word [rsp + 0xa0]
add edx, 4
lea ecx, [r8 + r8*2]
movzx eax, word [rax + rcx*4]
mov rcx, qword [rsp + 0x40]
add ax, word [rcx + 0x638]
add ax, r13w
add word [rbx + rdx*2], ax
lea eax, [r8 + 0x19]
xor edx, edx
movzx r8d, byte [rax + r15]
mov eax, 0x1a4e
div r8d
movzx r8d, word [rsp + 0xe8]
and byte [r8 + r15], al
mov ecx, dword [0x1412f6a58]
movzx eax, word [0x1412f6a5c]
sub ecx, esi
mov dword [0x1412f6a58], ecx
movzx eax, word [rbx + rax*2]
mov rbx, qword [rsp + 0x98]
add eax, ecx
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret