Function at 0x140012f4c
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov byte [rax + 0x20], r9b
mov qword [rax + 0x18], r8
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
movsxd rax, dword [0x140058f9c]
mov ecx, 1
mov rdi, qword [rsp + 0xd0]
mov r11d, dword [0x140058f98]
mov r10, qword [0x140058f30]
sub r11d, ecx
mov r12, qword [rsp + 0xe0]
mov qword [rsp + 0x38], rax
mov eax, dword [0x140058fdc]
add eax, ecx
movsxd r14, r11d
mov dword [0x140058fdc], eax
add r11d, ecx
add eax, 6
mov dword [0x140058f98], r11d
movsxd rcx, eax
mov ebp, r11d
and ebp, 0xa26
mov qword [rsp + 0x48], rbp
mov rax, qword [r10 + rcx*8]
mov rcx, qword [rdi]
mov qword [rsp + 0x30], rax
mov rax, qword [0x140058f88]
mov rdx, qword [r8 + rcx*8 + 0x38]
mov r8d, dword [0x140058fb8]
mov rbx, qword [rax + 0xbd18]
movzx eax, word [0x140058f70]
add eax, 0x1e80
mov qword [rsp + 0x28], rax
mov rax, qword [0x140058f50]
and rdx, qword [r12 + rax*8 + 0x28]
mov rax, qword [0x140059010]
mov qword [rsp + 0xe0], rax
mov rax, qword [0x140058fe0]
mov qword [rsp + 0x40], rdx
mov r13d, dword [rax + 0x13e0]
mov rax, qword [0x140059020]
movzx r15d, word [rax + rcx*2]
mov rax, qword [0x140058fe8]
movzx ecx, r9b
sub rax, rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x20], rax
lea eax, [r8 + 3]
lea ecx, [rax + rax*2]
inc r8d
mov rax, qword [0x140058fb0]
movsxd rdx, ecx
mov ecx, dword [0x140058ff4]
movzx eax, word [rax + rdx*2]
mov dword [0x140058fb8], r8d
cdq
idiv ecx
inc ecx
mov dword [0x140058ff4], ecx
mov esi, eax
movzx r9d, word [rbx]
lea ecx, [r11 + r11]
mov rax, qword [rsp + 0x30]
add sil, 0xff
movsxd rdx, ecx
movsxd rcx, dword [rax + r9*4]
mov r8, qword [r10 + rdx*8]
mov rdx, qword [rsp + 0x40]
xor r8, rcx
mov rax, qword [rsp + 0x38]
movzx ecx, sil
or r8, qword [rax + rcx*8]
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x28]
mov qword [rax + r9*8 + 0x38], r8
mov rax, qword [rdi]
mov ecx, dword [rcx + rax*4]
add dword [0x140059018], ecx
mov rcx, qword [rdi]
sub rdi, 8
mov qword [rsp + 0xd0], rdi
imul rax, qword [rdx + rcx*8 + 0x10], 0xde5
mov qword [rdx + rcx*8 + 0x10], rax
xor edx, edx
movsxd rax, dword [0x140058fac]
div qword [0x140058ff8]
mov eax, dword [0x140058f84]
mov r8, rdx
dec eax
mov rdx, qword [rsp + 0x20]
mov dword [0x140058f84], eax
mov rcx, qword [rdi]
add rcx, rcx
cdqe
mov rdx, qword [rdx + rcx*8 + 8]
mov rcx, r8
imul rdx, rax
call fcn.1400147e4
mov rcx, qword [0x140059008]
mov r9, qword [rsp + 0x20]
mov r8, qword [rsp + 0xd8]
mov r10, qword [rsp + 0x30]
mov dword [0x140058fc0], eax
mov rax, qword [rdi]
add rax, 2
lea rdx, [rax + rax*2]
mov rax, qword [0x140058f68]
xor rax, 0x1ea2
sub rax, 0x62e
xor qword [rcx + rdx*8], rax
mov eax, dword [0x140058fdc]
lea ecx, [rax + rax*2]
mov rax, qword [0x140058f78]
movsxd rdx, ecx
mov ecx, dword [r8 + rax*8]
and ecx, dword [0x140058f50]
mov rax, qword [rdi]
imul ecx, dword [r9 + rax*8]
mov rax, qword [rsp + 0x28]
xor dword [rax + rdx*4], ecx
movabs rax, 0x40fbcfc51bcbb55f
movsxd rcx, dword [0x140058fb8]
mul qword [r12 + rcx*8]
movsxd rcx, dword [0x140058fdc]
mov rax, rdx
xor edx, edx
shr rax, 9
div rcx
mov rdx, qword [0x140058f50]
mov rcx, qword [0x140058fc8]
mov r11, rax
mov dword [0x140058fdc], eax
movzx r9d, word [rcx + rdx*2]
lea ecx, [rax + 0x1b]
movsxd rdx, ecx
cmp r9d, dword [r10 + rdx*4]
je 0x1400132ef
mov rbp, qword [rsp + 0xc0]
lea rax, [r9 + r9*2]
lea r8, [rax*8 + 0x40]
mov edi, 1
mov eax, 0xffff
add sil, dil
add word [rbx], ax
add r9d, edi
movzx eax, word [rbx + 0xbf0]
movzx ecx, word [rbx]
sub ax, word [r15 + rcx*4 + 4]
mov word [r15 + rcx*4 + 4], ax
mov eax, dword [0x140058fb8]
sub eax, edi
mov dword [0x140058fb8], eax
lea eax, [rax + rax*2]
movsxd rcx, eax
movzx eax, sil
mov edx, dword [rbp + rcx*8]
movzx ecx, word [0x140058f40]
sub edx, eax
add edx, ecx
add cx, di
mov word [0x140058f40], cx
imul r13d, edx
mov edx, dword [0x140058ff4]
sub edx, edi
mov dword [0x140058ff4], edx
movzx ecx, word [rbx]
add rcx, rcx
mov eax, dword [r14 + rcx*8 + 0x64]
imul eax, edx
mov dword [r14 + rcx*8 + 0x64], eax
movzx eax, word [rbx]
mov rdx, qword [0x140058f88]
movsxd rcx, dword [r10 + rax*4]
movsxd rax, dword [0x140058ff4]
imul rcx, qword [r12 + rax*8]
movsxd rax, dword [r14 + 0x2474]
xor rcx, qword [0x140058f50]
imul rcx, rax
sub rcx, qword [r8 + rdx]
mov qword [r8 + rdx], rcx
lea r8, [r8 + 0x18]
mov r11d, dword [0x140058fdc]
lea eax, [r11 + 0x1b]
movsxd rcx, eax
cmp r9d, dword [r10 + rcx*4]
jne 0x140013210
mov rdi, qword [rsp + 0xd0]
mov rbp, qword [rsp + 0x48]
mov r8, qword [rsp + 0xd8]
movsxd rax, dword [rsp + 0xb8]
cmp qword [0x140058f58], rax
ja 0x1400134a6
mov rcx, qword [rdi]
movzx edx, sil
add rcx, rcx
movzx eax, byte [rdx + rbp + 3]
cmp rax, qword [r8 + rcx*8 + 0x68]
ja 0x1400134a6
movzx ecx, word [rbx]
mov r8, qword [rsp + 0xe0]
movzx eax, byte [rbp + rcx*2]
cmp rax, qword [r8 + rcx*8]
jb 0x1400134a6
movzx eax, sil
and eax, r13d
mov dword [0x140059018], eax
movzx eax, word [rbx]
lea rcx, [rax + rax*2]
mov rax, qword [rdi]
mov r10d, dword [rdi + rcx*8]
movzx ecx, word [rbx + 2]
inc r10d
add r10d, r13d
lea r9, [rax + rax*2]
lea eax, [r11 + 2]
mov r11, qword [rsp + 0x38]
movzx r8d, byte [rcx + rbp]
lea eax, [rax + rax*2]
cdqe
mov rax, qword [r11 + rax*8]
xor rax, rdx
xor edx, edx
div r8
mov rdx, qword [rsp + 0xe0]
mov rcx, qword [rdx + r9*8]
imul rcx, rax
mov qword [rdx + r9*8], rcx
xor edx, edx
mov rcx, qword [rdi]
movzx eax, word [r15 + rcx*2]
lea r8, [rcx + rcx*2]
mov rcx, qword [rsp + 0x40]
div qword [rcx + r8*8]
movzx eax, byte [rsp + 0xc8]
or edx, dword [0x140058fbc]
xor edx, eax
mov dword [0x140058fc4], edx
xor edx, edx
mov rax, qword [rdi]
lea rax, [rax + rax*2]
mov rax, qword [r11 + rax*8]
div qword [rsp + 0x50]
or al, r10b
sub al, byte [0x140058f42]
mov byte [0x140058f42], al
mov eax, dword [0x140058ff4]
add eax, 0x11
movsxd r8, eax
mov eax, dword [0x140058fdc]
add eax, 0x1a
movsxd rcx, eax
movsxd rax, r10d
mov r10d, 1
add sil, r10b
mov rdx, qword [r11 + rcx*8]
add rdx, qword [0x140058f50]
xor rdx, rax
movzx eax, sil
or qword [r12 + r8*8], rdx
add qword [rdi], r10
mov r8, qword [rdi]
movsxd rdx, dword [r14 + 0x1574]
lea rcx, [rax + rax*2]
mov rax, qword [rsp + 0x20]
lea r9, [r8 + r8*2]
add r8, r8
mov rax, qword [rax + rcx*8 + 0x40]
mov rcx, qword [rsp + 0xd8]
xor rax, rdx
xor edx, edx
imul rax, qword [rcx + r8*8]
movzx ecx, word [0x140058f40]
div rcx
movzx ecx, word [r15 + r9*2]
xor edx, edx
div rcx
mov rcx, qword [rsp + 0x28]
mov word [r15 + r9*2], ax
add qword [rdi], r10
mov rax, qword [0x140058f78]
add rax, r10
mov qword [0x140058f78], rax
lea r8, [rax + rax*2]
movzx eax, word [rbx + 2]
movsxd rdx, dword [rcx + rax*8]
mov rax, qword [rdi]
mov rcx, qword [rsp + 0xb0]
movzx ecx, byte [rax + rcx + 4]
xor rdx, rcx
add qword [r12 + r8*8 + 0x60], rdx
mov eax, 0x1cf0
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret