Function at 0x140012f60
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
movzx eax, r8w
mov r14, rcx
mov rcx, qword [rcx + 0xc8c8]
mov r9d, eax
movzx esi, dx
mov r15d, 1
add dword [0x14060b254], r15d
mov r10d, esi
add word [0x14060b20c], r15w
mov edi, 0xffff
mov qword [rsp + 0xb8], rcx
mov r11d, 0x1245
lea ebx, [rsi + rax]
add ax, r15w
mov word [rsp + 0xb0], ax
add si, di
movsxd rax, dword [0x14060b200]
mov qword [rsp + 0x40], rax
mov rax, qword [0x14060b1e8]
movzx r8d, si
movzx ecx, word [rax + r8*8 + 0x10]
movzx eax, word [0x14060b278]
imul eax, ecx
movzx ecx, byte [0x14060b1f0]
cdqe
mov qword [rsp + 0x50], rax
mov eax, dword [0x14060b1f4]
sub eax, r15d
mov dword [0x14060b1f4], eax
cdqe
mov rax, qword [r14 + rax*8]
xor rax, qword [0x14060b228]
mov qword [rsp + 0x30], rax
mov eax, 0x16b8
cdq
idiv dword [0x14060b204]
cdqe
mov qword [rsp + 0x38], rax
mov rax, qword [0x14060b218]
mov rbp, qword [rax + 0xf700]
mov eax, r11d
sub eax, ecx
mov qword [rsp + 0x48], rbp
movzx ecx, word [0x14060b250]
cdq
idiv ecx
movzx edx, bl
add bl, r15b
add eax, r9d
movzx r9d, bl
and eax, r11d
mov dword [r8*4 + 0xa03], eax
mov rax, qword [0x14060b270]
lea ecx, [rdx + 0x21]
lea r9, [r9 + r9*2]
movzx r8d, word [rax + rcx*2]
mov eax, edx
shl eax, 2
movzx eax, word [r10 + rax*2]
add r8d, eax
mov eax, dword [0x14060b208]
sub r8d, dword [0x14060b220]
add eax, r15d
mov dword [0x14060b208], eax
xor r8d, 0x164d
sub r8d, dword [0x14060b200]
movsxd rcx, eax
mov rax, qword [0x14060b218]
mov dword [0x14060b200], r8d
movsxd r8, dword [0x14060b1f4]
xor r8, 0x14d5
mov rcx, qword [rax + rcx*8]
mov eax, dword [0x14060b234]
sub eax, r15d
mov dword [0x14060b234], eax
add si, di
movsxd rdx, eax
movzx eax, word [0x14060b244]
mov r11, qword [r14 + rax*8]
mov rax, qword [0x14060b258]
mov r10b, byte [rax + r9*4]
or r10b, sil
xor r9d, r9d
mov byte [rsp + 0x28], r10b
mov qword [rsp + 0x20], r11
call fcn.1400125b4
movzx ecx, bl
add bl, r15b
mov dword [rcx*4 + 0xa03], eax
movzx r10d, word [0x14060b244]
movzx eax, bl
mov edi, r10d
mov r13d, r10d
lea rax, [rax + rax*2]
cmp r10, qword [r14 + rax*8]
je 0x14001330e
mov rcx, qword [rsp + 0xa0]
lea r14d, [rdi + 0x4b0]
mov r15, rbp
movzx ebp, si
mov r12d, ebp
or r15, 0xfae
add r12, r12
mov r8, qword [rsp + 0xb8]
mov r9, qword [rsp + 0x38]
mov qword [rcx + r12*8], r15
mov rcx, qword [rsp + 0x40]
movzx eax, bl
movzx ecx, byte [rcx + rax*4]
mov eax, dword [0x14060b240]
mov dl, al
xor dl, byte [r8 + rbp*2]
inc eax
mov dword [0x14060b240], eax
movzx eax, word [0x14060b20c]
sub eax, 0x115c
movsxd r8, eax
movsxd rax, dword [0x14060b1f4]
mov r9, qword [r9 + rax*8]
mov qword [rsp + 0x28], r9
mov r9b, dil
mov dword [rsp + 0x20], 0x2d3
call fcn.14000148c
movsxd rcx, dword [0x14060b268]
xor edx, edx
mov ebx, eax
mov r8d, 0x10af
mov rax, qword [rsp + 0x48]
sub rax, rcx
mov qword [rsp + 0x20], r13
mov rcx, qword [rsp + 0xb8]
movzx ecx, word [rcx + 0x1a60]
div rcx
mov rax, qword [rsp + 0xa0]
movzx ecx, word [rsp + 0xb0]
or rdx, r13
xor ecx, edi
add qword [rax + 0x2c9a0], rdx
mov rax, qword [rsp + 0x30]
inc dword [0x14060b268]
mov edx, dword [rax + 0x2810]
mov eax, dword [0x14060b254]
add edx, edi
mov r9b, al
movsxd rdx, edx
inc eax
mov dword [0x14060b254], eax
call fcn.140002468
mov ecx, dword [0x14060b204]
mov r8d, eax
mov rax, qword [rsp + 0x50]
dec ecx
mov dword [0x14060b204], ecx
xor edx, edx
or ecx, dword [rax + rbp*4]
sub ecx, dword [0x14060b234]
movsxd rax, r14d
div qword [0x14060b1f8]
mov dword [0x14060b234], ecx
mov ecx, dword [0x14060b1f4]
mov r9, rax
mov qword [0x14060b1f8], rax
add ecx, 6
mov rax, qword [rsp + 0xb8]
movsxd rdx, ecx
movzx ecx, word [rax + rdx*2]
movzx eax, r8w
xor eax, 0x164d
cdq
idiv ecx
mov rcx, qword [rsp + 0x30]
mov eax, edx
cdq
idiv dword [0x14060b240]
movzx eax, bl
mov dword [0x14060b240], edx
mov r8d, dword [rcx + rax*4]
cmp r8d, edi
jle 0x1400132de
movzx ecx, byte [rbp + 0xa54]
xor edx, edx
mov eax, 0x7cb
div ecx
mov cl, al
inc r8d
sub cl, byte [0x14060b220]
xor cl, sil
add bl, cl
cmp r8d, edi
jg 0x1400132c9
mov rcx, qword [rsp + 0xa0]
inc bl
inc edi
movzx eax, bl
inc r14d
movsxd r13, edi
lea rax, [rax + rax*2]
cmp r13, qword [rcx + rax*8]
jne 0x140013162
movzx r10d, word [0x14060b244]
mov r14, rcx
jmp 0x140013315
mov r9, qword [0x14060b1f8]
mov rax, qword [0x14060b258]
mov r8, qword [0x14060b270]
movzx ecx, bl
mov rbx, qword [rsp + 0xa8]
movzx edx, word [rax + rcx*4]
mov rax, qword [rsp + 0x38]
xor dx, r9w
movzx r9d, word [0x14060b230]
shl rcx, 5
or dx, word [rcx + rax]
mov eax, 0xa4d
and dx, ax
movzx ecx, r10w
mov word [0x14060b20c], dx
xor edx, edx
mov rax, qword [r14 + 0x1120]
or rax, rcx
movzx ecx, si
xor rax, rcx
movzx ecx, word [r8 + r9*2]
div rcx
mov eax, 0x829d66af
mov word [r8 + r9*2], dx
imul dword [0x14060b220]
add edx, dword [0x14060b220]
sar edx, 0xb
mov eax, edx
shr eax, 0x1f
add eax, edx
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret