Function at 0x7ff674a837f0
Capabilities:
Encode data using xor

Disassembly:
test r9, r9
je 0x7ff674a83c1f
mov rax, rsp
mov qword [rax + 0x20], r9
push r13
push r15
sub rsp, 0x28
mov qword [rax + 8], rbx
mov r13d, ecx
mov rcx, qword [rsp + 0x68]
mov r15, rdx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax - 0x18], rdi
mov qword [rax - 0x20], r12
mov qword [rax - 0x28], r14
lea r14, [rcx + 2]
mov rax, qword [rsp + 0x60]
sub rcx, rax
sub rcx, 2
mov qword [rsp + 0x68], rcx
lea r10, [rax + 2]
mov qword [rsp], r10
nop dword [rax + rax]
movzx eax, byte [r14]
mov r12d, 1
movzx esi, byte [r14 + 1]
movzx ebp, byte [r14 + 5]
movzx edi, byte [r14 + 9]
movzx edx, byte [r14 + 0xd]
shl esi, 8
or esi, eax
shl ebp, 8
movzx eax, byte [r14 - 1]
shl edi, 8
shl edx, 8
shl esi, 8
or esi, eax
movzx eax, byte [rcx + r10]
shl esi, 8
or esi, eax
movzx eax, byte [r14 + 4]
xor esi, dword [r15]
or ebp, eax
movzx eax, byte [r14 + 3]
shl ebp, 8
or ebp, eax
movzx eax, byte [r14 + 2]
shl ebp, 8
or ebp, eax
movzx eax, byte [r14 + 8]
xor ebp, dword [r15 + 4]
or edi, eax
movzx eax, byte [r14 + 7]
shl edi, 8
or edi, eax
movzx eax, byte [r14 + 6]
shl edi, 8
or edi, eax
movzx eax, byte [r14 + 0xc]
xor edi, dword [r15 + 8]
or edx, eax
movzx eax, byte [r14 + 0xb]
shl edx, 8
or edx, eax
movzx eax, byte [r14 + 0xa]
shl edx, 8
or edx, eax
xor edx, dword [r15 + 0xc]
cmp r13d, r12d
jbe 0x7ff674a83a25
nop dword [rax]
mov ebx, edx
lea r11d, [r12*4]
mov r9d, esi
inc r12d
mov edx, ebp
mov eax, ebp
shr rax, 8
movzx ecx, al
mov eax, edi
shr rax, 0x10
movzx eax, al
mov esi, dword [r8 + rcx*4 + 0x500]
mov r10d, edi
xor esi, dword [r8 + rax*4 + 0x900]
mov eax, ebx
shr rax, 0x18
xor esi, dword [r8 + rax*4 + 0xd00]
movzx eax, r9b
xor esi, dword [r8 + rax*4 + 0x100]
xor esi, dword [r15 + r11*4]
mov eax, edi
shr rax, 8
movzx ecx, al
mov eax, ebx
shr rax, 0x10
movzx eax, al
mov ebp, dword [r8 + rcx*4 + 0x500]
xor ebp, dword [r8 + rax*4 + 0x900]
mov eax, r9d
shr rax, 0x18
xor ebp, dword [r8 + rax*4 + 0xd00]
movzx eax, dl
xor ebp, dword [r8 + rax*4 + 0x100]
lea eax, [r11 + 1]
xor ebp, dword [r15 + rax*4]
mov eax, r9d
shr rax, 0x10
movzx ecx, al
mov eax, ebx
shr rax, 8
movzx eax, al
shr r9, 8
mov edi, dword [r8 + rcx*4 + 0x900]
xor edi, dword [r8 + rax*4 + 0x500]
mov eax, edx
shr rax, 0x18
shr rdx, 0x10
movzx ecx, dl
xor edi, dword [r8 + rax*4 + 0xd00]
movzx eax, r10b
mov edx, dword [r8 + rcx*4 + 0x900]
shr r10, 0x18
xor edi, dword [r8 + rax*4 + 0x100]
lea eax, [r11 + 2]
xor edi, dword [r15 + rax*4]
movzx eax, r9b
xor edx, dword [r8 + rax*4 + 0x500]
xor edx, dword [r8 + r10*4 + 0xd00]
movzx eax, bl
xor edx, dword [r8 + rax*4 + 0x100]
lea eax, [r11 + 3]
xor edx, dword [r15 + rax*4]
cmp r12d, r13d
jb 0x7ff674a83900
mov r10d, edi
mov edi, edx
mov eax, r10d
shr rax, 0x10
movzx eax, al
mov edx, ebp
mov r11d, esi
lea esi, [r12*4]
movzx ebp, byte [rax + r8]
mov eax, edi
shr rax, 0x18
movzx ecx, byte [rax + r8]
mov eax, edx
shr rax, 8
movzx eax, al
shl ecx, 8
or ebp, ecx
shl ebp, 8
movzx ecx, byte [rax + r8]
or ebp, ecx
movzx eax, r11b
shl ebp, 8
movzx ecx, byte [rax + r8]
mov eax, r11d
shr rax, 0x18
or ebp, ecx
xor ebp, dword [r15 + rsi*4]
movzx ebx, byte [rax + r8]
mov eax, edi
shr rax, 0x10
movzx eax, al
shl ebx, 8
movzx ecx, byte [rax + r8]
mov eax, r10d
shr rax, 8
or ebx, ecx
movzx eax, al
shl ebx, 8
movzx ecx, byte [rax + r8]
movzx eax, dl
or ebx, ecx
shl ebx, 8
movzx ecx, byte [rax + r8]
lea eax, [rsi + 1]
or ebx, ecx
xor ebx, dword [r15 + rax*4]
mov eax, r11d
shr rax, 0x10
movzx eax, al
shr r11, 8
movzx r9d, byte [rax + r8]
mov eax, edx
shr rax, 0x18
shr rdx, 0x10
movzx ecx, byte [rax + r8]
mov eax, edi
shr rax, 8
movzx eax, al
shl ecx, 8
or r9d, ecx
shl r9d, 8
movzx ecx, byte [rax + r8]
or r9d, ecx
movzx eax, r10b
shl r9d, 8
shr r10, 0x18
movzx ecx, byte [rax + r8]
lea eax, [rsi + 2]
or r9d, ecx
xor r9d, dword [r15 + rax*4]
movzx eax, dl
movzx edx, byte [rax + r8]
movzx eax, byte [r10 + r8]
shl eax, 8
or edx, eax
movzx eax, r11b
shl edx, 8
movzx ecx, byte [rax + r8]
or edx, ecx
movzx eax, dil
shl edx, 8
movzx ecx, byte [rax + r8]
add r14, 0x10
mov r10, qword [rsp]
lea eax, [rsi + 3]
or edx, ecx
mov rcx, qword [rsp + 0x68]
xor edx, dword [r15 + rax*4]
mov eax, ebp
shr eax, 0x18
mov byte [r10 + 1], al
mov eax, ebp
shr eax, 0x10
mov byte [r10], al
mov eax, ebp
shr eax, 8
mov byte [r10 - 1], al
mov eax, ebx
shr eax, 0x18
mov byte [r10 + 5], al
mov eax, ebx
shr eax, 0x10
mov byte [r10 + 4], al
mov eax, ebx
shr eax, 8
mov byte [r10 + 3], al
mov eax, r9d
shr eax, 0x18
mov byte [r10 + 9], al
mov eax, r9d
shr eax, 0x10
mov byte [r10 + 8], al
mov eax, r9d
shr eax, 8
mov byte [r10 + 7], al
mov eax, edx
shr eax, 0x18
mov byte [r10 + 0xd], al
mov eax, edx
shr eax, 0x10
mov byte [r10 + 0xc], al
mov eax, edx
mov byte [r10 + 6], r9b
mov r9, qword [rsp + 0x58]
shr eax, 8
sub r9, 0x10
mov byte [r10 + 0xb], al
mov byte [r10 - 2], bpl
mov byte [r10 + 2], bl
mov byte [r10 + 0xa], dl
add r10, 0x10
mov qword [rsp + 0x58], r9
mov qword [rsp], r10
test r9, r9
jne 0x7ff674a83850
mov r14, qword [rsp + 0x10]
mov r12, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
pop r15
pop r13
ret