Function at 0x180051e40
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x68]
sub rsp, 0x128
mov r13d, dword [rcx + 0xc]
mov rdi, r9
mov r14, qword [0x180147368]
mov r12, r8
movaps xmmword [rax - 0x58], xmm6
mov rsi, rdx
movaps xmmword [rax - 0x68], xmm7
mov rbx, rcx
movaps xmmword [rax - 0x78], xmm8
movaps xmmword [rax - 0x88], xmm9
movaps xmmword [rax - 0x98], xmm10
movaps xmmword [rax - 0xa8], xmm11
movaps xmmword [rax - 0xb8], xmm12
movaps xmmword [rax - 0xc8], xmm13
movaps xmmword [rax - 0xd8], xmm14
test r13b, 0x20
jne 0x180051ec6
cmp dword [r14 + 0x158c], 0xffffffff
je 0x180051ec6
mov cl, 1
jmp 0x180051ec8
xor cl, cl
mov r15d, dword [rbx + 0x1b8]
xorps xmm13, xmm13
mov dword [rbx + 0x13c], 1
mov eax, r15d
mov dword [rbx + 0x140], 2
or eax, 0x10
mov dword [rbx + 0x1b8], eax
movss xmm6, dword [r14 + 0x15a0]
movss xmm3, dword [r14 + 0x1928]
movaps xmm8, xmm6
movss xmm1, dword [rdx + 8]
movss xmm2, dword [rdx + 4]
mov qword [rbp + 0x88], 0
mov qword [rbp + 0x70], 0
test rdi, rdi
je 0x180051f51
addss xmm8, xmm3
movaps xmm0, xmm1
subss xmm0, xmm8
subss xmm0, dword [r14 + 0x15a0]
movss dword [rbp + 0x8c], xmm2
movss dword [rbp + 0x88], xmm0
test cl, cl
je 0x18005206f
mov eax, dword [r14 + 0x158c]
cmp eax, 1
jne 0x180051f89
addss xmm8, xmm3
subss xmm1, xmm8
subss xmm1, dword [r14 + 0x15a0]
movss dword [rbp + 0x74], xmm2
movss dword [rbp + 0x70], xmm1
mov eax, dword [r14 + 0x158c]
test eax, eax
jne 0x180051fab
movaps xmm0, xmm6
addss xmm6, xmm3
addss xmm0, dword [rdx]
subss xmm0, dword [r14 + 0x15a0]
movss dword [rbp + 0x74], xmm2
movss dword [rbp + 0x70], xmm0
cmp byte [0x180005b49], 0
movsd xmm0, qword [0x180005b40]
movzx eax, word [0x180005b48]
movsd qword [rsp + 0x60], xmm0
mov word [rsp + 0x68], ax
je 0x180052016
xor r8d, r8d
movabs rsi, 0x47ae147ae147ae15
nop dword [rax + rax]
mov rax, rsi
mul r8
mov rax, r8
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 5
movsx eax, al
imul ecx, eax, 0x32
movzx eax, r8b
sub al, cl
add al, 0x31
xor byte [rsp + r8 + 0x60], al
inc r8
cmp r8, 0xa
jb 0x180051fe0
mov rsi, qword [rbp + 0x78]
movsxd rcx, dword [rbx + 0xc0]
xor edx, edx
mov rax, qword [rbx + 0xc8]
mov r8d, dword [rax + rcx*4 - 4]
lea rcx, [rsp + 0x60]
call fcn.180048db0
mov rcx, qword [0x180147368]
cmp dword [rcx + 0x1ac8], eax
jne 0x18005204a
mov dword [rcx + 0x1acc], eax
cmp dword [rcx + 0x1b08], eax
jne 0x180052059
mov byte [rcx + 0x1b0c], 1
lea rdx, [rbp + 0x70]
mov ecx, eax
call fcn.18005d6d0
test al, al
je 0x18005206f
mov byte [rbx + 0x82], 1
test rdi, rdi
je 0x180052107
mov eax, dword [0x180005b4c]
xor edx, edx
movsxd rcx, dword [rbx + 0xc0]
mov dword [rbp + 0x78], eax
movzx eax, word [0x180005b50]
xor byte [rbp + 0x79], 0x32
xor byte [rbp + 0x7a], 0x33
xor byte [rbp + 0x7b], 0x34
mov word [rbp + 0x7c], ax
movzx eax, byte [0x180005b52]
xor byte [rbp + 0x7c], 0x35
xor al, 0x37
xor byte [rbp + 0x7d], 0x36
mov byte [rbp + 0x7e], al
mov rax, qword [rbx + 0xc8]
mov byte [rbp + 0x78], 0x23
mov r8d, dword [rax + rcx*4 - 4]
lea rcx, [rbp + 0x78]
call fcn.180048db0
mov rcx, qword [0x180147368]
cmp dword [rcx + 0x1ac8], eax
jne 0x1800520e3
mov dword [rcx + 0x1acc], eax
cmp dword [rcx + 0x1b08], eax
jne 0x1800520f2
mov byte [rcx + 0x1b0c], 1
lea rdx, [rbp + 0x88]
mov ecx, eax
call fcn.18005d480
test al, al
je 0x180052107
mov byte [rdi], 0
movzx eax, word [0x180005b54]
mov dword [rbx + 0x1b8], r15d
xor r15d, r15d
cmp byte [0x180005b55], r15b
mov dword [rbx + 0x13c], 0
mov dword [rbx + 0x140], 1
mov word [rbp + 0x78], ax
je 0x180052182
mov r8d, r15d
movabs r9, 0x47ae147ae147ae15
nop word [rax + rax]
mov rax, r9
mul r8
mov rax, r8
sub rax, rdx
shr rax, 1
add rax, rdx
shr rax, 5
movsx eax, al
imul ecx, eax, 0x32
movzx eax, r8b
sub al, cl
add al, 0x31
xor byte [rbp + r8 + 0x78], al
inc r8
cmp r8, 2
jb 0x180052150
movss xmm7, dword [0x180004ce4]
movss xmm9, dword [0x180004dc0]
movss xmm10, dword [0x180005ce8]
and r13d, 0x100000
je 0x180052200
mov rcx, qword [0x180147368]
lea rax, [rbp + 0x78]
mov qword [rsp + 0x38], r15
lea rdx, [rbp + 0x80]
mov qword [rsp + 0x30], r15
movaps xmm3, xmm9
mov qword [rsp + 0x28], rax
movss xmm2, dword [rcx + 0x1928]
mov rcx, qword [rcx + 0x1920]
movss dword [rsp + 0x20], xmm7
call fcn.180070400
movss xmm0, dword [rbp + 0x80]
addss xmm0, xmm10
cvttss2si eax, xmm0
movd xmm14, eax
cvtdq2ps xmm14, xmm14
jmp 0x180052204
movaps xmm14, xmm13
mov r8, qword [0x180147368]
mov rax, r12
cmp r12, 0xffffffffffffffff
jae 0x18005222e
movzx ecx, byte [rax]
test cl, cl
je 0x18005222e
cmp cl, 0x23
jne 0x180052225
cmp byte [rax + 1], cl
je 0x18005222e
inc rax
cmp rax, 0xffffffffffffffff
jb 0x180052214
movss xmm11, dword [r8 + 0x1928]
cmp r12, rax
jne 0x180052242
movaps xmm10, xmm13
jmp 0x180052295
mov rcx, qword [r8 + 0x1920]
lea rdx, [rbp + 0x80]
mov qword [rsp + 0x38], r15
movaps xmm3, xmm9
mov qword [rsp + 0x30], rax
movaps xmm2, xmm11
mov qword [rsp + 0x28], r12
movss dword [rsp + 0x20], xmm7
call fcn.180070400
movss xmm0, dword [rbp + 0x80]
movss xmm11, dword [rbp + 0x84]
addss xmm0, xmm10
cvttss2si eax, xmm0
movd xmm10, eax
cvtdq2ps xmm10, xmm10
movss xmm1, dword [r14 + 0x15a0]
addss xmm10, xmm14
comiss xmm6, xmm1
movss xmm0, dword [r14 + 0x15b8]
addss xmm11, xmm13
jbe 0x1800522ba
addss xmm6, xmm0
comiss xmm8, xmm1
jbe 0x1800522c5
addss xmm8, xmm0
movss xmm0, dword [r14 + 0x1584]
comiss xmm0, xmm13
movss xmm12, dword [0x180004c80]
jbe 0x18005234c
movss xmm7, dword [0x180004c54]
comiss xmm7, xmm0
jbe 0x18005234c
subss xmm0, dword [0x180004c48]
call fcn.18003f510
mulss xmm0, xmm12
movaps xmm1, xmm7
subss xmm1, xmm0
comiss xmm13, xmm1
jbe 0x18005230f
movaps xmm7, xmm13
jmp 0x180052313
minss xmm7, xmm1
movss xmm0, dword [rsi + 8]
movaps xmm1, xmm6
subss xmm0, dword [rsi]
maxss xmm1, xmm8
subss xmm0, xmm6
subss xmm0, xmm8
subss xmm0, xmm10
minss xmm1, xmm0
mulss xmm1, xmm7
comiss xmm6, xmm1
jae 0x180052342
movaps xmm6, xmm1
comiss xmm8, xmm1
jae 0x18005234c
movaps xmm8, xmm1
movss xmm9, dword [rsi + 8]
mov rbx, r12
movss xmm7, dword [rsi + 4]
subss xmm9, xmm8
movss xmm8, dword [rsi + 0xc]
movss dword [rsp + 0x54], xmm7
movss dword [rsp + 0x5c], xmm8
movss dword [rsp + 0x74], xmm7
movss dword [rsp + 0x58], xmm9
movaps xmm2, xmm9
movss dword [rsp + 0x7c], xmm8
addss xmm6, dword [rsi]
addss xmm2, dword [r14 + 0x15b8]
movss dword [rsp + 0x50], xmm6
movss dword [rsp + 0x78], xmm2
movss dword [rsp + 0x70], xmm6
cmp r12, 0xffffffffffffffff
jae 0x1800523c9
nop
movzx eax, byte [rbx]
test al, al
je 0x1800523c9
cmp al, 0x23
jne 0x1800523c0
cmp byte [rbx + 1], al
je 0x1800523c9
inc rbx
cmp rbx, 0xffffffffffffffff
jb 0x1800523b0
cmp ebx, r12d
je 0x18005254a
mov rdi, qword [0x180147368]
movaps xmm0, xmm6
addss xmm0, xmm10
movss dword [rbp + 0x80], xmm6
movss dword [rbp + 0x84], xmm7
mov rax, qword [rdi + 0x1a80]
comiss xmm0, xmm2
mov rsi, qword [rax + 0x2b0]
jae 0x180052416
movaps xmm0, xmm11
addss xmm0, xmm7
comiss xmm0, xmm8
jae 0x180052416
xor al, al
jmp 0x180052418
mov al, 1
comiss xmm6, xmm6
ja 0x180052426
comiss xmm7, xmm7
ja 0x180052426
xor cl, cl
jmp 0x180052428
mov cl, 1
movss xmm1, dword [r14 + 0x1584]
or al, cl
comiss xmm1, xmm13
jbe 0x18005245b
movaps xmm0, xmm9
subss xmm0, xmm6
subss xmm0, xmm10
mulss xmm0, xmm1
addss xmm0, xmm6
comiss xmm6, xmm0
jae 0x18005245b
movss dword [rbp + 0x80], xmm0
movss xmm1, dword [r14 + 0x1588]
comiss xmm1, xmm13
jbe 0x18005248c
movaps xmm0, xmm8
subss xmm0, xmm7
subss xmm0, xmm11
mulss xmm0, xmm1
addss xmm0, xmm7
comiss xmm7, xmm0
jae 0x18005248c
movss dword [rbp + 0x84], xmm0
test al, al
lea rcx, [rbp - 0x80]
mov rax, qword [0x180147368]
je 0x1800524e1
movss dword [rsp + 0x68], xmm2
movss dword [rsp + 0x60], xmm6
movss dword [rsp + 0x64], xmm7
movss dword [rsp + 0x6c], xmm8
movups xmm0, xmmword [rax + 0x161c]
movups xmmword [rbp - 0x80], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [rax + 0x1568]
movss dword [rbp - 0x74], xmm0
call fcn.180045d40
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x40], rcx
jmp 0x180052507
movups xmm0, xmmword [rax + 0x161c]
movups xmmword [rbp - 0x80], xmm0
shufps xmm0, xmm0, 0xff
mulss xmm0, dword [rax + 0x1568]
movss dword [rbp - 0x74], xmm0
call fcn.180045d40
mov qword [rsp + 0x40], r15
movss dword [rsp + 0x38], xmm13
lea r9, [rbp + 0x80]
mov qword [rsp + 0x30], rbx
movaps xmm2, xmm13
mov qword [rsp + 0x28], r12
xor edx, edx
mov rcx, rsi
mov dword [rsp + 0x20], eax
call fcn.18006fe60
cmp byte [rdi + 0x2fc8], 0
je 0x18005254a
mov r8, rbx
lea rcx, [rsp + 0x50]
mov rdx, r12
call fcn.18004a6d0
test r13d, r13d
je 0x180052685
movss xmm0, dword [r14 + 0x1928]
subss xmm12, xmm14
xorps xmm0, xmmword [0x180004d70]
addss xmm7, xmm13
mulss xmm0, dword [0x180005cc8]
lea rdi, [rbp + 0x78]
mov dword [rsp + 0x50], 0
movaps xmm1, xmm9
xorps xmm2, xmm2
subss xmm9, xmm6
cvttss2si eax, xmm0
movss xmm0, dword [r14 + 0x1588]
addss xmm1, xmm13
subss xmm9, xmm10
movss dword [rsp + 0x54], xmm0
cvtsi2ss xmm2, eax
lea rax, [rbp + 0x78]
movss dword [rsp + 0x60], xmm1
mulss xmm9, dword [r14 + 0x1584]
addss xmm8, xmm2
addss xmm7, xmm2
addss xmm9, xmm6
movss dword [rsp + 0x64], xmm8
movss dword [rbp + 0x84], xmm7
maxss xmm6, xmm9
addss xmm6, xmm10
addss xmm6, xmm12
addss xmm6, xmm13
movss dword [rbp + 0x80], xmm6
cmp rax, 0xffffffffffffffff
jae 0x180052619
movzx eax, byte [rdi]
test al, al
je 0x180052619
cmp al, 0x23
jne 0x180052610
cmp byte [rdi + 1], al
je 0x180052619
inc rdi
cmp rdi, 0xffffffffffffffff
jb 0x180052600
lea rcx, [rbp + 0x78]
cmp edi, ecx
je 0x180052685
mov rbx, qword [0x180147368]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
lea r9, [rbp + 0x78]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x60]
mov rcx, qword [rbx + 0x1a80]
lea rdx, [rbp + 0x80]
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], rdi
mov rcx, qword [rcx + 0x2b0]
call fcn.180050880
cmp byte [rbx + 0x2fc8], 0
je 0x180052685
mov r8, rdi
lea rdx, [rbp + 0x78]
lea rcx, [rbp + 0x80]
call fcn.18004a6d0
lea r11, [rsp + 0x128]
movaps xmm6, xmmword [r11 - 0x18]
movaps xmm7, xmmword [r11 - 0x28]
movaps xmm8, xmmword [r11 - 0x38]
movaps xmm9, xmmword [r11 - 0x48]
movaps xmm10, xmmword [r11 - 0x58]
movaps xmm11, xmmword [r11 - 0x68]
movaps xmm12, xmmword [r11 - 0x78]
movaps xmm13, xmmword [r11 - 0x88]
movaps xmm14, xmmword [r11 - 0x98]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret