Function at 0x18005d8d0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbp
push rbx
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x58]
sub rsp, 0x128
movaps xmmword [rax - 0x48], xmm6
mov ebx, r8d
movaps xmmword [rax - 0x68], xmm8
mov r13, rcx
mov qword [rbp - 0x80], r9
mov r9, qword [0x180147368]
movaps xmmword [rax - 0x78], xmm9
mov rax, qword [r9 + 0x1a80]
mov byte [rax + 0x80], 1
mov r14, qword [r9 + 0x1a80]
cmp byte [r14 + 0x83], 0
jne 0x18005def3
mov r15, qword [0x180147368]
mov rdx, rcx
mov rcx, r14
xor r8d, r8d
call fcn.180048210
mov r12d, eax
call fcn.180048150
movss xmm8, dword [rbp - 0x80]
xorps xmm9, xmm9
ucomiss xmm8, xmm9
movaps xmm3, xmm0
jp 0x18005d964
jne 0x18005d964
movaps xmm8, xmm0
movss xmm6, dword [rbp - 0x7c]
ucomiss xmm6, xmm9
jp 0x18005d974
jne 0x18005d974
movaps xmm6, xmm3
comiss xmm6, xmm3
movss xmm0, dword [r14 + 0xd0]
movaps xmm2, xmm6
addss xmm2, dword [r14 + 0xd4]
movaps xmm1, xmm0
movss dword [rsp + 0x60], xmm0
movss xmm0, dword [r14 + 0xd4]
addss xmm1, xmm8
movss dword [rsp + 0x64], xmm0
unpcklps xmm1, xmm2
movsd qword [rsp + 0x68], xmm1
jb 0x18005d9bf
movss xmm1, dword [r15 + 0x15a4]
jmp 0x18005d9c2
xorps xmm1, xmm1
lea rcx, [rsp + 0x60]
call fcn.18004a510
xor r8d, r8d
lea rcx, [rsp + 0x60]
mov edx, r12d
call fcn.18004a250
test al, al
je 0x18005def3
mov qword [rsp + 0x160], rsi
lea r9, [rsp + 0x48]
mov qword [rsp + 0x120], rdi
lea r8, [rsp + 0x49]
movaps xmmword [rsp + 0xd0], xmm10
lea rcx, [rsp + 0x60]
xor edi, edi
movaps xmmword [rsp + 0xc0], xmm11
mov edx, r12d
movaps xmmword [rsp + 0xb0], xmm12
mov dword [rsp + 0x20], edi
call fcn.18005c800
mov ecx, ebx
mov byte [rsp + 0x48], al
mov esi, ebx
and esi, 0xfff9ffff
and cl, 2
mov rcx, qword [rbp + 0x68]
cmove esi, ebx
movups xmm0, xmmword [rcx]
movups xmmword [rsp + 0x70], xmm0
bt esi, 0x1c
jae 0x18005da82
movss xmm2, dword [rsp + 0x78]
lea rax, [rsp + 0x78]
movss xmm1, dword [rsp + 0x74]
lea r9, [rsp + 0x70]
movss xmm0, dword [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x74]
mov qword [rsp + 0x20], rax
call fcn.180045df0
movss xmm0, dword [rsp + 0x70]
minss xmm8, xmm6
movss xmm1, dword [rsp + 0x74]
mov eax, esi
movss xmm4, dword [0x180004c48]
and eax, 0x400
movss xmm2, dword [rsp + 0x60]
xorps xmm11, xmm11
movss xmm3, dword [rsp + 0x6c]
divss xmm8, dword [0x180006288]
mov dword [rbp - 0x5c], 0x3f800000
mov dword [rsp + 0x40], eax
movss xmm12, dword [0x180004c54]
movss dword [rbp - 0x68], xmm0
movss xmm0, dword [rsp + 0x78]
movss dword [rbp - 0x60], xmm0
movaps xmm0, xmm8
mulss xmm0, xmm4
movss dword [rbp - 0x64], xmm1
movss xmm10, dword [r15 + 0x15a8]
movss xmm1, dword [rsp + 0x68]
minss xmm10, xmm0
movss xmm0, dword [rsp + 0x64]
movss dword [rsp + 0x54], xmm0
movss dword [rsp + 0x50], xmm2
movss dword [rsp + 0x58], xmm1
movss dword [rsp + 0x5c], xmm3
jne 0x18005db5b
movss xmm11, dword [0x1800062cc]
subss xmm1, dword [0x180004c4c]
subss xmm3, dword [0x180004c4c]
subss xmm2, xmm11
subss xmm0, xmm11
movss dword [rsp + 0x58], xmm1
movss dword [rsp + 0x5c], xmm3
movss dword [rsp + 0x50], xmm2
movss dword [rsp + 0x54], xmm0
bt esi, 0x12
jae 0x18005dc46
comiss xmm12, dword [rsp + 0x7c]
jbe 0x18005dc46
addss xmm1, xmm2
movaps xmmword [rsp + 0x100], xmm7
movaps xmm6, xmm11
lea rcx, [rsp + 0x70]
subss xmm6, xmm8
mulss xmm1, xmm4
addss xmm1, xmm4
cvttss2si eax, xmm1
movd xmm7, eax
cvtdq2ps xmm7, xmm7
call fcn.180047fe0
mov r8, qword [rsp + 0x58]
mov r9d, eax
mov rcx, qword [r14 + 0x2b0]
mov dword [rsp + 0x38], 0xa
movss xmm2, dword [rsp + 0x50]
movaps xmm0, xmm6
movss xmm1, dword [rsp + 0x54]
addss xmm2, xmm8
unpcklps xmm0, xmm11
movss dword [rsp + 0x30], xmm10
movsd qword [rsp + 0x28], xmm0
movss dword [rsp + 0x20], xmm8
movaps xmm0, xmm2
unpcklps xmm0, xmm1
movq rdx, xmm0
call fcn.1800743f0
mov rbx, qword [r14 + 0x2b0]
lea rcx, [rbp - 0x68]
call fcn.180047fe0
movss xmm0, dword [rsp + 0x5c]
lea r8, [rbp - 0x78]
mov dword [rsp + 0x28], 5
lea rdx, [rsp + 0x50]
mov r9d, eax
movss dword [rbp - 0x74], xmm0
mov rcx, rbx
movss dword [rbp - 0x78], xmm7
movss dword [rsp + 0x20], xmm10
call fcn.18006fa40
movaps xmm7, xmmword [rsp + 0x100]
jmp 0x18005dce0
bt esi, 0x11
lea rcx, [rbp - 0x68]
lea rax, [rsp + 0x70]
cmovae rax, rcx
lea rcx, [rbp - 0x78]
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x78], xmm0
shufps xmm0, xmm0, 0xff
comiss xmm12, xmm0
jbe 0x18005dcb0
call fcn.180047fe0
mov r8, qword [rsp + 0x58]
movaps xmm0, xmm11
mov rdx, qword [rsp + 0x50]
mov r9d, eax
mov rcx, qword [r14 + 0x2b0]
mov dword [rsp + 0x38], 0xffffffff
unpcklps xmm0, xmm11
movss dword [rsp + 0x30], xmm10
movsd qword [rsp + 0x28], xmm0
movss dword [rsp + 0x20], xmm8
call fcn.1800743f0
jmp 0x18005dce0
mov rbx, qword [r14 + 0x2b0]
call fcn.180047fe0
mov r9d, eax
mov dword [rsp + 0x28], 0xf
lea r8, [rsp + 0x58]
movss dword [rsp + 0x20], xmm10
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.18006fa40
mov r8d, 1
lea rcx, [rsp + 0x60]
mov edx, r12d
call fcn.1800503f0
movaps xmm11, xmmword [rsp + 0xc0]
cmp dword [rsp + 0x40], edi
jne 0x18005dd66
movss xmm0, dword [r15 + 0x15ac]
comiss xmm0, xmm9
jbe 0x18005dd26
mov rdx, qword [rsp + 0x68]
movaps xmm2, xmm10
mov rcx, qword [rsp + 0x60]
call fcn.180050290
jmp 0x18005dd66
mov rbx, qword [r14 + 0x2b0]
movaps xmm1, xmm12
mov ecx, 7
call fcn.180048020
movss dword [rsp + 0x30], xmm12
lea r8, [rsp + 0x68]
mov dword [rsp + 0x28], 0xf
lea rdx, [rsp + 0x60]
mov r9d, eax
movss dword [rsp + 0x20], xmm10
mov rcx, rbx
call fcn.18006f940
movaps xmm12, xmmword [rsp + 0xb0]
movaps xmm10, xmmword [rsp + 0xd0]
cmp dword [r15 + 0x1ac8], r12d
jne 0x18005deb7
bt esi, 9
jb 0x18005deb7
xor ecx, ecx
call fcn.180044070
test al, al
je 0x18005deb7
mov r9d, 2
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
test r9b, sil
je 0x18005ddd6
mov eax, dword [0x180006064]
lea r8d, [r9 + 0xa]
mov dword [rsp + 0x40], eax
movzx eax, word [0x180006068]
mov word [rsp + 0x44], ax
movzx eax, byte [0x18000606a]
jmp 0x18005ddf9
mov eax, dword [0x18000606c]
mov r8d, 0x10
mov dword [rsp + 0x40], eax
movzx eax, word [0x180006070]
mov word [rsp + 0x44], ax
movzx eax, byte [0x180006072]
xor byte [rsp + 0x41], 0x32
xor al, 0x37
xor byte [rsp + 0x42], 0x33
xor byte [rsp + 0x43], 0x34
xor byte [rsp + 0x44], 0x35
xor byte [rsp + 0x45], 0x36
mov byte [rsp + 0x46], al
mov byte [rsp + 0x40], 0x5f
call fcn.180052dc0
mov rbx, qword [rbp + 0x68]
xorps xmm1, xmm1
unpcklps xmm1, xmm9
mov r8d, esi
movq r9, xmm1
mov rdx, rbx
mov rcx, r13
call fcn.18005d8d0
movss xmm1, dword [0x180004ce4]
xorps xmm0, xmm0
call fcn.1800526d0
mov eax, dword [0x180006074]
movabs r8, 0x29e4129e4129e413
mov dword [rsp + 0x40], eax
movzx eax, word [0x180006078]
mov word [rsp + 0x44], ax
mov rax, r8
mul rdi
mov rax, rdi
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 5
movsx eax, al
imul ecx, eax, 0x37
movzx eax, dil
sub al, cl
add al, 0x31
xor byte [rsp + rdi + 0x40], al
inc rdi
cmp rdi, 6
jb 0x18005de70
xor r8d, r8d
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.18006bd50
call fcn.180046b00
jmp 0x18005debb
mov rbx, qword [rbp + 0x68]
mov rdi, qword [rsp + 0x120]
test sil, 0x40
jne 0x18005dee4
cmp byte [rsp + 0x49], 0
je 0x18005dee4
and esi, 0x18060002
mov rdx, rbx
mov r8d, esi
mov rcx, r13
call fcn.180062a30
movzx eax, byte [rsp + 0x48]
mov rsi, qword [rsp + 0x160]
jmp 0x18005def5
xor al, al
lea r11, [rsp + 0x128]
movaps xmm6, xmmword [r11 - 0x18]
movaps xmm8, xmmword [r11 - 0x38]
movaps xmm9, xmmword [r11 - 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbx
pop rbp
ret