Function at 0x180058ea0
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 [0x1800821d8]
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 0x1800594c3
mov r15, qword [0x1800821d8]
mov rdx, rcx
mov rcx, r14
xor r8d, r8d
call fcn.180034d10
mov r12d, eax
call fcn.180034c50
movss xmm8, dword [rbp - 0x80]
xorps xmm9, xmm9
ucomiss xmm8, xmm9
movaps xmm3, xmm0
jp 0x180058f34
jne 0x180058f34
movaps xmm8, xmm0
movss xmm6, dword [rbp - 0x7c]
ucomiss xmm6, xmm9
jp 0x180058f44
jne 0x180058f44
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 0x180058f8f
movss xmm1, dword [r15 + 0x15a4]
jmp 0x180058f92
xorps xmm1, xmm1
lea rcx, [rsp + 0x60]
call fcn.180036e90
xor r8d, r8d
lea rcx, [rsp + 0x60]
mov edx, r12d
call fcn.180036bd0
test al, al
je 0x1800594c3
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.180057dd0
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 0x180059052
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.1800328d0
movss xmm0, dword [rsp + 0x70]
minss xmm8, xmm6
movss xmm1, dword [rsp + 0x74]
mov eax, esi
movss xmm4, dword [0x1800733e8]
and eax, 0x400
movss xmm2, dword [rsp + 0x60]
xorps xmm11, xmm11
movss xmm3, dword [rsp + 0x6c]
divss xmm8, dword [0x180078e70]
mov dword [rbp - 0x5c], 0x3f800000
mov dword [rsp + 0x40], eax
movss xmm12, dword [0x1800733ec]
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 0x18005912b
movss xmm11, dword [0x1800785e0]
subss xmm1, dword [0x180073cfc]
subss xmm3, dword [0x180073cfc]
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 0x180059216
comiss xmm12, dword [rsp + 0x7c]
jbe 0x180059216
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.180034ab0
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.1800495b0
mov rbx, qword [r14 + 0x2b0]
lea rcx, [rbp - 0x68]
call fcn.180034ab0
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.180044cd0
movaps xmm7, xmmword [rsp + 0x100]
jmp 0x1800592b0
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 0x180059280
call fcn.180034ab0
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.1800495b0
jmp 0x1800592b0
mov rbx, qword [r14 + 0x2b0]
call fcn.180034ab0
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.180044cd0
mov r8d, 1
lea rcx, [rsp + 0x60]
mov edx, r12d
call fcn.18003ce00
movaps xmm11, xmmword [rsp + 0xc0]
cmp dword [rsp + 0x40], edi
jne 0x180059336
movss xmm0, dword [r15 + 0x15ac]
comiss xmm0, xmm9
jbe 0x1800592f6
mov rdx, qword [rsp + 0x68]
movaps xmm2, xmm10
mov rcx, qword [rsp + 0x60]
call fcn.18003cca0
jmp 0x180059336
mov rbx, qword [r14 + 0x2b0]
movaps xmm1, xmm12
mov ecx, 7
call fcn.180034af0
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.180044bd0
movaps xmm12, xmmword [rsp + 0xb0]
movaps xmm10, xmmword [rsp + 0xd0]
cmp dword [r15 + 0x1ac8], r12d
jne 0x180059487
bt esi, 9
jb 0x180059487
xor ecx, ecx
call fcn.180030b50
test al, al
je 0x180059487
mov r9d, 2
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
test r9b, sil
je 0x1800593a6
mov eax, dword [0x180078c4c]
lea r8d, [r9 + 0xa]
mov dword [rsp + 0x40], eax
movzx eax, word [0x180078c50]
mov word [rsp + 0x44], ax
movzx eax, byte [0x180078c52]
jmp 0x1800593c9
mov eax, dword [str.mpy]
mov r8d, 0x10
mov dword [rsp + 0x40], eax
movzx eax, word [0x180078c58]
mov word [rsp + 0x44], ax
movzx eax, byte [0x180078c5a]
xor byte [rsp + 0x41], 0x33
xor al, 0x38
xor byte [rsp + 0x42], 0x34
xor byte [rsp + 0x43], 0x35
xor byte [rsp + 0x44], 0x36
xor byte [rsp + 0x45], 0x37
mov byte [rsp + 0x46], al
mov byte [rsp + 0x40], 0x5f
call fcn.18003f380
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.180058ea0
movss xmm1, dword [0x180073458]
xorps xmm0, xmm0
call fcn.18003ec40
mov eax, dword [str.qXZD7]
movabs r8, 0x47ae147ae147ae15
mov dword [rsp + 0x40], eax
movzx eax, word [0x180078c60]
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, 0x32
movzx eax, dil
sub al, cl
add al, 0x32
xor byte [rsp + rdi + 0x40], al
inc rdi
cmp rdi, 6
jb 0x180059440
xor r8d, r8d
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.180065470
call fcn.1800335e0
jmp 0x18005948b
mov rbx, qword [rbp + 0x68]
mov rdi, qword [rsp + 0x120]
test sil, 0x40
jne 0x1800594b4
cmp byte [rsp + 0x49], 0
je 0x1800594b4
and esi, 0x18060002
mov rdx, rbx
mov r8d, esi
mov rcx, r13
call fcn.18005e000
movzx eax, byte [rsp + 0x48]
mov rsi, qword [rsp + 0x160]
jmp 0x1800594c5
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