Function at 0x1800181d0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov r10d, dword [rcx + 4]
mov ebp, edx
mov rbx, r9
mov r9d, dword [rcx]
sar ebp, 3
mov rdi, r8
mov esi, edx
mov r11, rcx
test ebp, ebp
je 0x1800183c2
lea eax, [r9 + 1]
movzx r9d, al
mov r8d, dword [r11 + r9*4 + 8]
lea eax, [r8 + r10]
movzx r10d, al
mov eax, dword [r11 + r10*4 + 8]
mov dword [r11 + r9*4 + 8], eax
mov dword [r11 + r10*4 + 8], r8d
add eax, r8d
movzx ecx, al
movzx eax, byte [r11 + rcx*4 + 8]
xor al, byte [rdi]
mov byte [rbx], al
lea eax, [r9 + 1]
movzx r9d, al
mov r8d, dword [r11 + r9*4 + 8]
lea eax, [r8 + r10]
movzx r10d, al
mov eax, dword [r11 + r10*4 + 8]
mov dword [r11 + r9*4 + 8], eax
mov dword [r11 + r10*4 + 8], r8d
add eax, r8d
movzx ecx, al
movzx eax, byte [r11 + rcx*4 + 8]
xor al, byte [rdi + 1]
mov byte [rbx + 1], al
lea eax, [r9 + 1]
movzx r9d, al
mov r8d, dword [r11 + r9*4 + 8]
lea eax, [r8 + r10]
movzx r10d, al
mov eax, dword [r11 + r10*4 + 8]
mov dword [r11 + r9*4 + 8], eax
mov dword [r11 + r10*4 + 8], r8d
add eax, r8d
movzx ecx, al
movzx eax, byte [r11 + rcx*4 + 8]
xor al, byte [rdi + 2]
mov byte [rbx + 2], al
lea eax, [r9 + 1]
movzx r9d, al
mov r8d, dword [r11 + r9*4 + 8]
lea eax, [r8 + r10]
movzx r10d, al
mov eax, dword [r11 + r10*4 + 8]
mov dword [r11 + r9*4 + 8], eax
mov dword [r11 + r10*4 + 8], r8d
add eax, r8d
movzx ecx, al
movzx eax, byte [r11 + rcx*4 + 8]
xor al, byte [rdi + 3]
mov byte [rbx + 3], al
lea eax, [r9 + 1]
movzx r9d, al
mov r8d, dword [r11 + r9*4 + 8]
lea eax, [r8 + r10]
movzx r10d, al
mov eax, dword [r11 + r10*4 + 8]
mov dword [r11 + r9*4 + 8], eax
add eax, r8d
mov dword [r11 + r10*4 + 8], r8d
movzx ecx, al
movzx eax, byte [r11 + rcx*4 + 8]
xor al, byte [rdi + 4]
mov byte [rbx + 4], al
lea eax, [r9 + 1]
movzx r9d, al
mov r8d, dword [r11 + r9*4 + 8]
lea eax, [r8 + r10]
movzx r10d, al
mov eax, dword [r11 + r10*4 + 8]
mov dword [r11 + r9*4 + 8], eax
add eax, r8d
mov dword [r11 + r10*4 + 8], r8d
movzx ecx, al
movzx eax, byte [r11 + rcx*4 + 8]
xor al, byte [rdi + 5]
mov byte [rbx + 5], al
lea eax, [r9 + 1]
movzx r9d, al
mov r8d, dword [r11 + r9*4 + 8]
lea eax, [r8 + r10]
add rbx, 8
add rdi, 8
movzx r10d, al
mov eax, dword [r11 + r10*4 + 8]
mov dword [r11 + r9*4 + 8], eax
add eax, r8d
mov dword [r11 + r10*4 + 8], r8d
movzx ecx, al
movzx eax, byte [r11 + rcx*4 + 8]
xor al, byte [rdi - 2]
mov byte [rbx - 2], al
lea eax, [r9 + 1]
movzx r9d, al
mov r8d, dword [r11 + r9*4 + 8]
lea eax, [r8 + r10]
movzx r10d, al
mov eax, dword [r11 + r10*4 + 8]
mov dword [r11 + r9*4 + 8], eax
add eax, r8d
mov dword [r11 + r10*4 + 8], r8d
movzx ecx, al
movzx eax, byte [r11 + rcx*4 + 8]
xor al, byte [rdi - 1]
sub ebp, 1
mov byte [rbx - 1], al
jne 0x180018203
and esi, 7
je 0x1800185cb
lea eax, [r9 + 1]
inc rbx
inc rdi
movzx r9d, al
mov r8d, dword [r11 + r9*4 + 8]
lea eax, [r8 + r10]
movzx r10d, al
mov eax, dword [r11 + r10*4 + 8]
mov dword [r11 + r9*4 + 8], eax
add eax, r8d
mov dword [r11 + r10*4 + 8], r8d
movzx ecx, al
movzx eax, byte [r11 + rcx*4 + 8]
xor al, byte [rdi - 1]
sub esi, 1
mov byte [rbx - 1], al
je 0x1800185cb
lea eax, [r9 + 1]
movzx r9d, al
mov r8d, dword [r11 + r9*4 + 8]
lea eax, [r8 + r10]
movzx r10d, al
mov eax, dword [r11 + r10*4 + 8]
mov dword [r11 + r9*4 + 8], eax
add eax, r8d
mov dword [r11 + r10*4 + 8], r8d
movzx ecx, al
movzx eax, byte [r11 + rcx*4 + 8]
xor al, byte [rdi]
sub esi, 1
mov byte [rbx], al
je 0x1800185cb
lea eax, [r9 + 1]
movzx r9d, al
mov r8d, dword [r11 + r9*4 + 8]
lea eax, [r8 + r10]
movzx r10d, al
mov eax, dword [r11 + r10*4 + 8]
mov dword [r11 + r9*4 + 8], eax
add eax, r8d
mov dword [r11 + r10*4 + 8], r8d
movzx ecx, al
movzx eax, byte [r11 + rcx*4 + 8]
xor al, byte [rdi + 1]
sub esi, 1
mov byte [rbx + 1], al
je 0x1800185cb
lea eax, [r9 + 1]
movzx r9d, al
mov r8d, dword [r11 + r9*4 + 8]
lea eax, [r8 + r10]
movzx r10d, al
mov eax, dword [r11 + r10*4 + 8]
mov dword [r11 + r9*4 + 8], eax
add eax, r8d
mov dword [r11 + r10*4 + 8], r8d
movzx ecx, al
movzx eax, byte [r11 + rcx*4 + 8]
xor al, byte [rdi + 2]
sub esi, 1
mov byte [rbx + 2], al
je 0x1800185cb
lea eax, [r9 + 1]
movzx r9d, al
mov r8d, dword [r11 + r9*4 + 8]
lea eax, [r8 + r10]
movzx r10d, al
mov eax, dword [r11 + r10*4 + 8]
mov dword [r11 + r9*4 + 8], eax
add eax, r8d
mov dword [r11 + r10*4 + 8], r8d
movzx ecx, al
movzx eax, byte [r11 + rcx*4 + 8]
xor al, byte [rdi + 3]
sub esi, 1
mov byte [rbx + 3], al
je 0x1800185cb
lea eax, [r9 + 1]
movzx r9d, al
mov r8d, dword [r11 + r9*4 + 8]
lea eax, [r8 + r10]
movzx r10d, al
mov eax, dword [r11 + r10*4 + 8]
mov dword [r11 + r9*4 + 8], eax
add eax, r8d
mov dword [r11 + r10*4 + 8], r8d
movzx ecx, al
movzx eax, byte [r11 + rcx*4 + 8]
xor al, byte [rdi + 4]
sub esi, 1
mov byte [rbx + 4], al
je 0x1800185cb
lea eax, [r9 + 1]
movzx r9d, al
mov r8d, dword [r11 + r9*4 + 8]
lea eax, [r8 + r10]
movzx r10d, al
mov eax, dword [r11 + r10*4 + 8]
mov dword [r11 + r9*4 + 8], eax
add eax, r8d
mov dword [r11 + r10*4 + 8], r8d
movzx ecx, al
movzx eax, byte [r11 + rcx*4 + 8]
xor al, byte [rdi + 5]
sub esi, 1
mov byte [rbx + 5], al
je 0x1800185cb
lea eax, [r9 + 1]
add rbx, 7
add rdi, 7
movzx r9d, al
mov r8d, dword [r11 + r9*4 + 8]
lea eax, [r8 + r10]
movzx r10d, al
mov eax, dword [r11 + r10*4 + 8]
mov dword [r11 + r9*4 + 8], eax
add eax, r8d
mov dword [r11 + r10*4 + 8], r8d
movzx ecx, al
movzx eax, byte [r11 + rcx*4 + 8]
xor al, byte [rdi - 1]
sub esi, 1
mov byte [rbx - 1], al
jne 0x180018410
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov dword [r11], r9d
mov dword [r11 + 4], r10d
ret