Function at 0x1801d1a30
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor edi, edi
lea rax, [r8 + 0x7c]
mov r9, rcx
add rcx, 0x7c
lea r10d, [rdi + 0x20]
cmp r9, rax
ja 0x1801d1a6a
mov eax, edi
cmp rcx, r8
jae 0x1801d1af4
lea rax, [rdx + 0x7c]
cmp r9, rax
ja 0x1801d1a7b
mov rax, rdi
cmp rcx, rdx
jae 0x1801d1af4
mov rcx, rdx
lea rax, [r8 + 0x10]
sub rcx, r8
mov r11, r9
sub r11, r8
mov ebx, 2
movdqu xmm0, xmmword [rax - 0x10]
movdqu xmm1, xmmword [rcx + rax - 0x10]
movdqu xmm2, xmmword [rcx + rax]
lea rax, [rax + 0x40]
paddd xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [r11 + rax - 0x50], xmm1
paddd xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [rcx + rax - 0x30]
movdqu xmmword [r11 + rax - 0x40], xmm2
paddd xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm2, xmmword [rcx + rax - 0x20]
movdqu xmmword [r11 + rax - 0x30], xmm1
paddd xmm2, xmm0
movdqu xmmword [r11 + rax - 0x20], xmm2
sub rbx, 1
jne 0x1801d1a90
mov rax, r10
cmp rax, r10
jae 0x1801d1b23
mov r11, r9
lea rcx, [r8 + rax*4]
sub r11, r8
sub rdx, r8
sub r10, rax
nop dword [rax]
mov eax, dword [rcx + rdx]
add eax, dword [rcx]
mov dword [rcx + r11], eax
lea rcx, [rcx + 4]
sub r10, 1
jne 0x1801d1b10
mov r11d, dword [r9]
mov r8, r9
mov r10d, 0x1f
nop
mov eax, r11d
lea r8, [r8 + 4]
shr eax, 8
mov ecx, r11d
add dword [r8], eax
mov r11d, dword [r8]
movzx eax, cl
mov dword [r8 - 4], eax
sub r10, 1
jne 0x1801d1b30
lea rax, [0x1802e7210]
mov qword [rsp + 0xa8], rdi
sub rax, r9
lea r11, [0x1802e71f0]
mov qword [rsp], rax
lea rbx, [0x1802e71f4]
sub r11, r9
lea rax, [0x1802e7214]
sub rax, r9
lea rsi, [0x1802e71f8]
mov qword [rsp + 8], rax
lea rbp, [0x1802e71fc]
sub rbx, r9
lea rax, [0x1802e7218]
sub rax, r9
lea r14, [0x1802e7200]
mov qword [rsp + 0x10], rax
lea r15, [0x1802e7204]
sub rsi, r9
lea rax, [0x1802e721c]
sub rax, r9
lea r12, [0x1802e7208]
mov qword [rsp + 0x18], rax
lea r13, [0x1802e720c]
sub rbp, r9
lea rax, [0x1802e7220]
sub rax, r9
lea r10, [r9 + 8]
mov qword [rsp + 0x20], rax
sub r14, r9
sub r15, r9
lea rax, [0x1802e7224]
sub r12, r9
sub r13, r9
sub rax, r9
mov r8, rdi
mov r9, qword [rsp]
mov qword [rsp + 0x28], rax
nop dword [rax]
add edi, dword [r11 + r10 - 8]
mov ecx, dword [r10 - 4]
mov edx, dword [r10 - 8]
movzx eax, dl
sub al, dil
sub edx, edi
mov byte [rsp + r8 + 0x30], al
movzx eax, cl
shr edx, 0x1f
add edx, dword [rbx + r10 - 8]
sub al, dl
sub ecx, edx
mov edx, dword [r10]
mov byte [rsp + r8 + 0x31], al
movzx eax, dl
shr ecx, 0x1f
add ecx, dword [r11 + r10]
sub al, cl
sub edx, ecx
mov ecx, dword [r10 + 4]
mov byte [rsp + r8 + 0x32], al
movzx eax, cl
shr edx, 0x1f
add edx, dword [rbx + r10]
sub al, dl
sub ecx, edx
mov edx, dword [r10 + 8]
mov byte [rsp + r8 + 0x33], al
movzx eax, dl
shr ecx, 0x1f
add ecx, dword [rsi + r10]
sub al, cl
sub edx, ecx
mov ecx, dword [r10 + 0xc]
mov byte [rsp + r8 + 0x34], al
movzx eax, cl
shr edx, 0x1f
add edx, dword [r10 + rbp]
sub al, dl
sub ecx, edx
mov edx, dword [r10 + 0x10]
mov byte [rsp + r8 + 0x35], al
movzx eax, dl
shr ecx, 0x1f
add ecx, dword [r14 + r10]
sub al, cl
sub edx, ecx
mov ecx, dword [r10 + 0x14]
mov byte [rsp + r8 + 0x36], al
movzx eax, cl
shr edx, 0x1f
add edx, dword [r15 + r10]
sub al, dl
sub ecx, edx
mov edx, dword [r10 + 0x18]
mov byte [rsp + r8 + 0x37], al
movzx eax, dl
shr ecx, 0x1f
add ecx, dword [r12 + r10]
sub al, cl
sub edx, ecx
mov rcx, qword [rsp + 0xa8]
mov byte [rsp + r8 + 0x38], al
mov r8d, dword [r10 + 0x1c]
movzx eax, r8b
shr edx, 0x1f
add edx, dword [r10 + r13]
sub al, dl
sub r8d, edx
mov byte [rsp + rcx + 0x39], al
movzx eax, byte [r10 + 0x20]
shr r8d, 0x1f
add r8d, dword [r9 + r10]
sub al, r8b
mov byte [rsp + rcx + 0x3a], al
mov rax, qword [rsp + 8]
mov ecx, dword [r10 + 0x20]
sub ecx, r8d
shr ecx, 0x1f
add ecx, dword [rax + r10]
movzx eax, byte [r10 + 0x24]
mov r8, qword [rsp + 0xa8]
sub al, cl
mov edx, dword [r10 + 0x24]
lea r10, [r10 + 0x40]
sub edx, ecx
mov ecx, dword [r10 - 0x18]
shr edx, 0x1f
mov byte [rsp + r8 + 0x3b], al
mov rax, qword [rsp + 0x10]
add edx, dword [rax + r10 - 0x40]
movzx eax, byte [r10 - 0x18]
sub ecx, edx
sub al, dl
shr ecx, 0x1f
mov edx, dword [r10 - 0x14]
mov byte [rsp + r8 + 0x3c], al
mov rax, qword [rsp + 0x18]
add ecx, dword [r10 + rax - 0x40]
movzx eax, byte [r10 - 0x14]
sub edx, ecx
sub al, cl
shr edx, 0x1f
mov ecx, dword [r10 - 0x10]
mov byte [rsp + r8 + 0x3d], al
mov rax, qword [rsp + 0x20]
add edx, dword [r10 + rax - 0x40]
movzx eax, byte [r10 - 0x10]
sub ecx, edx
sub al, dl
shr ecx, 0x1f
mov byte [rsp + r8 + 0x3e], al
mov rax, qword [rsp + 0x28]
add ecx, dword [r10 + rax - 0x40]
mov eax, dword [r10 - 0xc]
mov edx, eax
sub al, cl
sub edx, ecx
shr edx, 0x1f
mov byte [rsp + r8 + 0x3f], al
mov edi, edx
add r8, 0x10
mov qword [rsp + 0xa8], r8
cmp r8, 0x20
jl 0x1801d1c10
mov r9, qword [rsp + 0x90]
lea eax, [rdx - 1]
movd xmm3, eax
mov ecx, 4
pshufd xmm3, xmm3, 0
lea rax, [rsp + 0x34]
nop word [rax + rax]
movd xmm2, dword [rax - 4]
xorps xmm0, xmm0
punpcklbw xmm2, xmm0
lea rax, [rax + 8]
punpcklwd xmm2, xmm0
movdqu xmm1, xmmword [r9]
lea r9, [r9 + 0x20]
pxor xmm2, xmm1
pand xmm2, xmm3
pxor xmm2, xmm1
movdqu xmmword [r9 - 0x20], xmm2
movd xmm2, dword [rax - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
movdqu xmm1, xmmword [r9 - 0x10]
pxor xmm2, xmm1
pand xmm2, xmm3
pxor xmm2, xmm1
movdqu xmmword [r9 - 0x10], xmm2
sub rcx, 1
jne 0x1801d1e00
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret