Function at 0x180004940
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movups xmm0, xmmword [rdx + 0x30]
lea rbx, [rcx + 1]
mov r11, rcx
movsd xmm1, qword [rdx + 0x40]
mov esi, 2
movups xmmword [rsp], xmm0
mov rdi, qword [rsp]
sub rdx, rcx
mov r9, qword [rsp + 8]
movsd qword [rsp + 0x10], xmm1
mov r8, qword [rsp + 0x10]
nop
lea rcx, [r9 + rdi]
imul r8, r8
add r8, rcx
mov r9, r8
shl r8, 0x20
shr r9, 0x20
or r9, r8
lea r8, [rcx + rdi]
movzx eax, r9b
lea rcx, [r8 + rdi]
xor al, byte [rdx + rbx - 1]
imul r9, r9
mov byte [rbx - 1], al
add r9, r8
lea r8, [rcx + rdi]
mov r10, r9
shl r9, 0x20
shr r10, 0x20
or r10, r9
movzx eax, r10b
xor al, byte [rdx + rbx]
imul r10, r10
mov byte [rbx], al
add r10, rcx
lea rcx, [r8 + rdi]
mov r9, r10
shl r10, 0x20
shr r9, 0x20
or r9, r10
movzx eax, r9b
xor al, byte [rdx + rbx + 1]
imul r9, r9
mov byte [rbx + 1], al
add r9, r8
lea r8, [rcx + rdi]
mov r10, r9
shl r9, 0x20
shr r10, 0x20
or r10, r9
movzx eax, r10b
xor al, byte [rdx + rbx + 2]
imul r10, r10
mov byte [rbx + 2], al
add r10, rcx
lea rcx, [r8 + rdi]
mov r9, r10
shl r10, 0x20
shr r9, 0x20
or r9, r10
movzx eax, r9b
xor al, byte [rdx + rbx + 3]
imul r9, r9
mov byte [rbx + 3], al
add r9, r8
lea r8, [rcx + rdi]
mov r10, r9
shl r9, 0x20
shr r10, 0x20
or r10, r9
movzx eax, r10b
xor al, byte [rdx + rbx + 4]
imul r10, r10
mov byte [rbx + 4], al
add r10, rcx
lea rcx, [r8 + rdi]
mov r9, r10
shl r10, 0x20
shr r9, 0x20
or r9, r10
movzx eax, r9b
xor al, byte [rdx + rbx + 5]
imul r9, r9
mov byte [rbx + 5], al
add r9, r8
mov r10, r9
shl r9, 0x20
shr r10, 0x20
or r10, r9
movzx eax, r10b
xor al, byte [rdx + rbx + 6]
mov byte [rbx + 6], al
imul r10, r10
lea r8, [rcx + rdi]
add r10, rcx
lea rcx, [r8 + rdi]
mov r9, r10
shl r10, 0x20
shr r9, 0x20
or r9, r10
movzx eax, r9b
xor al, byte [rdx + rbx + 7]
imul r9, r9
mov byte [rbx + 7], al
add r9, r8
lea r8, [rcx + rdi]
mov r10, r9
shl r9, 0x20
shr r10, 0x20
or r10, r9
movzx eax, r10b
xor al, byte [rdx + rbx + 8]
imul r10, r10
mov byte [rbx + 8], al
add r10, rcx
lea rcx, [r8 + rdi]
mov r9, r10
shl r10, 0x20
shr r9, 0x20
or r9, r10
movzx eax, r9b
xor al, byte [rdx + rbx + 9]
imul r9, r9
mov byte [rbx + 9], al
add r9, r8
lea r8, [rcx + rdi]
mov r10, r9
shl r9, 0x20
shr r10, 0x20
or r10, r9
movzx eax, r10b
xor al, byte [rdx + rbx + 0xa]
imul r10, r10
mov byte [rbx + 0xa], al
add r10, rcx
lea rcx, [r8 + rdi]
mov r9, r10
shl r10, 0x20
shr r9, 0x20
or r9, r10
movzx eax, r9b
xor al, byte [rdx + rbx + 0xb]
imul r9, r9
mov byte [rbx + 0xb], al
add r9, r8
lea r8, [rcx + rdi]
mov r10, r9
shl r9, 0x20
shr r10, 0x20
or r10, r9
movzx eax, r10b
xor al, byte [rdx + rbx + 0xc]
imul r10, r10
mov byte [rbx + 0xc], al
add r10, rcx
lea rcx, [r8 + rdi]
mov r9, r10
shl r10, 0x20
shr r9, 0x20
or r9, r10
movzx eax, r9b
xor al, byte [rdx + rbx + 0xd]
imul r9, r9
mov byte [rbx + 0xd], al
add r9, r8
mov r10, r9
shl r9, 0x20
shr r10, 0x20
or r10, r9
movzx eax, r10b
xor al, byte [rdx + rbx + 0xe]
mov byte [rbx + 0xe], al
imul r10, r10
add r10, rcx
lea r8, [rcx + rdi]
mov r9, r10
lea rcx, [r8 + rdi]
shr r9, 0x20
lea rbx, [rbx + 0x15]
shl r10, 0x20
or r9, r10
movzx eax, r9b
xor al, byte [rdx + rbx - 6]
imul r9, r9
mov byte [rbx - 6], al
add r9, r8
lea r8, [rcx + rdi]
mov r10, r9
shl r9, 0x20
shr r10, 0x20
or r10, r9
movzx eax, r10b
xor al, byte [rdx + rbx - 5]
mov byte [rbx - 5], al
imul r10, r10
add r10, rcx
mov r9, r10
shl r10, 0x20
shr r9, 0x20
or r9, r10
movzx eax, r9b
xor al, byte [rdx + rbx - 4]
mov byte [rbx - 4], al
imul r9, r9
add r9, r8
mov rcx, r9
shl r9, 0x20
shr rcx, 0x20
or rcx, r9
lea r9, [r8 + rdi]
movzx eax, cl
xor al, byte [rdx + rbx - 3]
imul rcx, rcx
mov byte [rbx - 3], al
add rcx, r9
mov r8, rcx
shl rcx, 0x20
shr r8, 0x20
or r8, rcx
movzx eax, r8b
xor al, byte [rdx + rbx - 2]
mov byte [rbx - 2], al
sub rsi, 1
jne 0x180004980
mov rbx, qword [rsp + 0x30]
mov rax, r11
mov byte [r11 + 0x2a], sil
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret