Function at 0x65015990
Capabilities:
Encode data using xor

Disassembly:
push rbx
push r12
push r14
sub rsp, 0x30
cmp dword [0x65047d38], 0
mov rbx, rcx
jne 0x650159b5
call fcn.650156b0
mov dword [0x65047d38], 1
lea r12, [rbx + 0x10]
lea r8, [0x6504495a]
xor r9d, r9d
mov r10, r12
mov dword [rbx], 0xa
lea r14, [0x65000000]
sub r10, r8
mov qword [rbx + 8], r12
nop
nop
movzx eax, byte [r8]
movzx edx, byte [r8 + 1]
add r8, 4
shl edx, 8
or edx, eax
movzx eax, byte [r8 - 5]
shl edx, 8
or edx, eax
lea eax, [r9*4]
add r9d, 1
shl edx, 8
movsxd rcx, eax
movzx eax, byte [rcx + r14 + 0x44958]
or edx, eax
cmp r9d, 4
mov dword [r10 + r8 - 4], edx
jl 0x650159e0
mov eax, dword [rbx]
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
cmp eax, 0xa
mov qword [rsp + 0x28], r13
je 0x65015dc1
cmp eax, 0xc
je 0x65015b65
cmp eax, 0xe
jne 0x65016031
lea r10, [0x65045b08]
lea r11, [0x65045b24]
nop
mov r9d, dword [r12 + 0x1c]
mov ecx, dword [r12 + 8]
add r10, 4
movzx eax, r9b
add r12, 0x20
movzx edx, byte [rax + r14 + 0x45b30]
movzx eax, byte [r12 - 1]
movzx eax, byte [rax + r14 + 0x45b30]
shl edx, 8
xor edx, eax
movzx eax, byte [r12 - 2]
movzx eax, byte [rax + r14 + 0x45b30]
shl edx, 8
xor edx, eax
movzx eax, byte [r12 - 3]
movzx eax, byte [rax + r14 + 0x45b30]
shl edx, 8
xor edx, eax
mov eax, dword [r12 - 0x1c]
xor edx, dword [r12 - 0x20]
xor edx, dword [r10 - 4]
xor eax, edx
mov dword [r12], edx
xor ecx, eax
mov dword [r12 + 4], eax
mov dword [r12 + 8], ecx
xor ecx, dword [r12 - 0x14]
mov dword [r12 + 0xc], ecx
movzx eax, byte [r12 + 0xf]
movzx edx, byte [rax + r14 + 0x45b30]
movzx eax, byte [r12 + 0xe]
movzx eax, byte [rax + r14 + 0x45b30]
shl edx, 8
xor edx, eax
movzx eax, byte [r12 + 0xd]
movzx eax, byte [rax + r14 + 0x45b30]
shl edx, 8
xor edx, eax
movzx eax, cl
mov ecx, dword [r12 - 8]
movzx eax, byte [rax + r14 + 0x45b30]
shl edx, 8
xor edx, eax
mov eax, dword [r12 - 0xc]
xor edx, dword [r12 - 0x10]
xor eax, edx
mov dword [r12 + 0x10], edx
xor ecx, eax
mov dword [r12 + 0x14], eax
xor r9d, ecx
cmp r10, r11
mov dword [r12 + 0x18], ecx
mov dword [r12 + 0x1c], r9d
jl 0x65015a60
jmp 0x65016031
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x20], r15
lea r13, [0x65045b0c]
lea r15, [0x65045b2c]
nop
mov edx, dword [r12 + 0x14]
mov r8d, dword [r12 + 4]
mov edi, dword [r12 + 8]
mov esi, dword [r12 + 0xc]
mov r9d, dword [r12 + 0x10]
movzx eax, dl
movzx r10d, byte [rax + r14 + 0x45b30]
movzx eax, byte [r12 + 0x17]
movzx eax, byte [rax + r14 + 0x45b30]
shl r10d, 8
xor r10d, eax
movzx eax, byte [r12 + 0x16]
movzx eax, byte [rax + r14 + 0x45b30]
shl r10d, 8
xor r10d, eax
movzx eax, byte [r12 + 0x15]
movzx eax, byte [rax + r14 + 0x45b30]
shl r10d, 8
xor r10d, eax
xor r10d, dword [r13 - 4]
xor r10d, dword [r12]
mov dword [r12 + 0x18], r10d
xor r8d, r10d
mov dword [r12 + 0x1c], r8d
xor edi, r8d
mov dword [r12 + 0x20], edi
xor esi, edi
mov dword [r12 + 0x24], esi
xor r9d, esi
mov dword [r12 + 0x28], r9d
xor edx, r9d
mov dword [r12 + 0x2c], edx
movzx eax, dl
movzx r11d, byte [rax + r14 + 0x45b30]
movzx eax, byte [r12 + 0x2f]
movzx eax, byte [rax + r14 + 0x45b30]
shl r11d, 8
xor r11d, eax
movzx eax, byte [r12 + 0x2e]
movzx eax, byte [rax + r14 + 0x45b30]
shl r11d, 8
xor r11d, eax
movzx eax, byte [r12 + 0x2d]
movzx eax, byte [rax + r14 + 0x45b30]
shl r11d, 8
xor r11d, eax
xor r11d, dword [r13]
xor r11d, r10d
mov dword [r12 + 0x30], r11d
mov r10d, r11d
xor r10d, r8d
mov dword [r12 + 0x34], r10d
xor edi, r10d
mov dword [r12 + 0x38], edi
xor esi, edi
mov dword [r12 + 0x3c], esi
mov ebp, esi
xor ebp, r9d
mov dword [r12 + 0x40], ebp
xor edx, ebp
mov dword [r12 + 0x44], edx
movzx eax, dl
movzx ebx, byte [rax + r14 + 0x45b30]
movzx eax, byte [r12 + 0x47]
movzx eax, byte [rax + r14 + 0x45b30]
shl ebx, 8
xor ebx, eax
movzx eax, byte [r12 + 0x46]
movzx eax, byte [rax + r14 + 0x45b30]
shl ebx, 8
xor ebx, eax
movzx eax, byte [r12 + 0x45]
movzx eax, byte [rax + r14 + 0x45b30]
shl ebx, 8
xor ebx, eax
xor ebx, dword [r13 + 4]
xor ebx, r11d
mov r9d, ebx
mov dword [r12 + 0x48], ebx
xor r9d, r10d
mov dword [r12 + 0x4c], r9d
mov r11d, r9d
add r13, 0x10
add r12, 0x60
xor r11d, edi
mov dword [r12 - 0x10], r11d
mov r10d, r11d
xor r10d, esi
mov dword [r12 - 0xc], r10d
xor ebp, r10d
xor edx, ebp
mov dword [r12 - 8], ebp
mov r8d, edx
movzx eax, dl
mov dword [r12 - 4], r8d
movzx edx, byte [rax + r14 + 0x45b30]
movzx eax, byte [r12 - 1]
movzx eax, byte [rax + r14 + 0x45b30]
shl edx, 8
xor edx, eax
movzx eax, byte [r12 - 2]
movzx eax, byte [rax + r14 + 0x45b30]
shl edx, 8
xor edx, eax
movzx eax, byte [r12 - 3]
movzx eax, byte [rax + r14 + 0x45b30]
shl edx, 8
xor edx, eax
xor edx, dword [r13 - 8]
xor edx, ebx
mov dword [r12], edx
xor edx, r9d
xor r11d, edx
mov dword [r12 + 4], edx
xor r10d, r11d
mov dword [r12 + 8], r11d
xor ebp, r10d
mov dword [r12 + 0xc], r10d
xor r8d, ebp
cmp r13, r15
mov dword [r12 + 0x10], ebp
mov dword [r12 + 0x14], r8d
jl 0x65015b80
mov r15, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x50]
jmp 0x65016031
lea r13, [0x65045b0c]
lea rsi, [0x65045b34]
nop
mov edx, dword [r12 + 0xc]
mov r8d, dword [r12 + 4]
mov r9d, dword [r12 + 8]
movzx eax, dl
movzx r10d, byte [rax + r14 + 0x45b30]
movzx eax, byte [r12 + 0xf]
movzx eax, byte [rax + r14 + 0x45b30]
shl r10d, 8
xor r10d, eax
movzx eax, byte [r12 + 0xe]
movzx eax, byte [rax + r14 + 0x45b30]
shl r10d, 8
xor r10d, eax
movzx eax, byte [r12 + 0xd]
movzx eax, byte [rax + r14 + 0x45b30]
shl r10d, 8
xor r10d, eax
xor r10d, dword [r13 - 4]
xor r10d, dword [r12]
mov dword [r12 + 0x10], r10d
xor r8d, r10d
mov dword [r12 + 0x14], r8d
xor r9d, r8d
mov dword [r12 + 0x18], r9d
xor edx, r9d
mov dword [r12 + 0x1c], edx
movzx eax, dl
movzx r11d, byte [rax + r14 + 0x45b30]
movzx eax, byte [r12 + 0x1f]
movzx eax, byte [rax + r14 + 0x45b30]
shl r11d, 8
xor r11d, eax
movzx eax, byte [r12 + 0x1e]
movzx eax, byte [rax + r14 + 0x45b30]
shl r11d, 8
xor r11d, eax
movzx eax, byte [r12 + 0x1d]
movzx eax, byte [rax + r14 + 0x45b30]
shl r11d, 8
xor r11d, eax
xor r11d, r10d
xor r11d, dword [r13]
mov dword [r12 + 0x20], r11d
mov r10d, r11d
xor r10d, r8d
mov dword [r12 + 0x24], r10d
mov r8d, r10d
xor r8d, r9d
mov dword [r12 + 0x28], r8d
mov eax, r8d
xor eax, edx
mov edx, eax
movzx eax, al
mov dword [r12 + 0x2c], edx
movzx ebx, byte [rax + r14 + 0x45b30]
movzx eax, byte [r12 + 0x2f]
movzx eax, byte [rax + r14 + 0x45b30]
shl ebx, 8
xor ebx, eax
movzx eax, byte [r12 + 0x2e]
movzx eax, byte [rax + r14 + 0x45b30]
shl ebx, 8
xor ebx, eax
movzx eax, byte [r12 + 0x2d]
movzx eax, byte [rax + r14 + 0x45b30]
shl ebx, 8
xor ebx, eax
xor ebx, dword [r13 + 4]
xor ebx, r11d
mov r9d, ebx
mov dword [r12 + 0x30], ebx
xor r9d, r10d
mov r10d, r9d
mov dword [r12 + 0x34], r9d
xor r10d, r8d
xor edx, r10d
mov dword [r12 + 0x38], r10d
movzx eax, dl
mov dword [r12 + 0x3c], edx
movzx edi, byte [rax + r14 + 0x45b30]
shl edi, 8
movzx eax, byte [r12 + 0x3f]
add r13, 0x14
add r12, 0x50
movzx eax, byte [rax + r14 + 0x45b30]
xor edi, eax
movzx eax, byte [r12 - 0x12]
movzx eax, byte [rax + r14 + 0x45b30]
shl edi, 8
xor edi, eax
movzx eax, byte [r12 - 0x13]
movzx eax, byte [rax + r14 + 0x45b30]
shl edi, 8
xor edi, eax
xor edi, dword [r13 - 0xc]
xor edi, ebx
mov dword [r12 - 0x10], edi
mov r11d, edi
xor r11d, r9d
mov dword [r12 - 0xc], r11d
mov r9d, r11d
xor r9d, r10d
mov dword [r12 - 8], r9d
mov eax, r9d
xor eax, edx
mov r8d, eax
movzx eax, al
mov dword [r12 - 4], r8d
movzx edx, byte [rax + r14 + 0x45b30]
movzx eax, byte [r12 - 1]
movzx eax, byte [rax + r14 + 0x45b30]
shl edx, 8
xor edx, eax
movzx eax, byte [r12 - 2]
movzx eax, byte [rax + r14 + 0x45b30]
shl edx, 8
xor edx, eax
movzx eax, byte [r12 - 3]
movzx eax, byte [rax + r14 + 0x45b30]
shl edx, 8
xor edx, eax
xor edx, dword [r13 - 8]
xor edx, edi
mov dword [r12], edx
xor edx, r11d
mov dword [r12 + 4], edx
xor edx, r9d
mov dword [r12 + 8], edx
xor edx, r8d
cmp r13, rsi
mov dword [r12 + 0xc], edx
jl 0x65015dd0
mov r13, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop r12
pop rbx
ret