Function at 0x18001c930
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [r11 - 0xb8]
sub rsp, 0x188
movaps xmmword [r11 - 0x48], xmm6
movaps xmmword [r11 - 0x58], xmm7
movaps xmmword [r11 - 0x68], xmm8
movaps xmmword [r11 - 0x78], xmm9
mov rax, qword [0x1800a5010]
xor rax, rsp
mov qword [rbp], rax
movsd xmm6, qword [rcx + 0x158]
mov rbx, rcx
movsd xmm0, qword [rcx + 0x110]
movaps xmm9, xmm6
addsd xmm6, qword [0x18009d6f8]
movsd xmm7, qword [rcx + 0x118]
addsd xmm9, xmm0
cmp byte [r8], 0
movaps xmm8, xmm7
addsd xmm7, qword [rcx + 0x160]
addsd xmm8, qword [rcx + 0x160]
movaps xmm1, xmmword [0x18009dc20]
addsd xmm6, xmm0
movups xmm0, xmmword [rcx + 0x10]
mov eax, 0x60
mov ecx, 0x70
movaps xmmword [r11 - 0x88], xmm10
cmove eax, ecx
movaps xmmword [rbp - 0x50], xmm0
xor edi, edi
movaps xmmword [r11 - 0x98], xmm11
mov r14, r8
movss xmm11, dword [0x18009d650]
mov r15, rdx
movups xmm0, xmmword [rax + rbx]
mov esi, edi
movsd qword [rbp - 0x80], xmm6
addsd xmm6, qword [0x18009d668]
movsd qword [rbp - 0x78], xmm7
addsd xmm7, qword [0x18009d668]
movaps xmmword [r11 - 0xa8], xmm12
movsd xmm12, qword [0x18009d6f0]
movaps xmm10, xmm6
movaps xmmword [rbp - 0x60], xmm0
addsd xmm10, qword [0x18009d7a0]
movaps xmmword [rbp - 0x40], xmm1
xorps xmm0, xmm0
nop word [rax + rax]
mov rcx, qword [rbx + 0x1b0]
addsd xmm0, xmm7
lea rax, [rbp - 0x60]
movsd qword [rsp + 0x70], xmm10
movaps xmm3, xmm11
movsd qword [rbp - 0x70], xmm6
lea r8, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea rdx, [rbp - 0x70]
movsd qword [rsp + 0x78], xmm0
movsd qword [rbp - 0x68], xmm0
call fcn.18006a3f0
inc esi
movd xmm0, esi
cvtdq2pd xmm0, xmm0
comisd xmm12, xmm0
ja 0x18001ca40
mov rcx, qword [rbx + 0x1b0]
lea rax, [rbp - 0x50]
movaps xmm3, xmm11
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x40]
mov qword [rsp + 0x180], r12
lea rdx, [rbp - 0x80]
call fcn.18006a690
movss xmm1, dword [rbx + 0x130]
movaps xmm12, xmmword [rsp + 0x110]
movaps xmm11, xmmword [rsp + 0x120]
movaps xmm10, xmmword [rsp + 0x130]
cvtps2pd xmm1, xmm1
comisd xmm1, xmm9
jb 0x18001cbe5
movss xmm0, dword [rbx + 0x134]
cvtps2pd xmm0, xmm0
comisd xmm0, xmm8
jb 0x18001cbe5
addsd xmm9, qword [0x18009d7a8]
comisd xmm9, xmm1
jb 0x18001cbe5
addsd xmm8, qword [0x18009d6f8]
comisd xmm8, xmm0
jb 0x18001cbe5
mov rcx, qword [rbx + 0x1c0]
lea rdx, [0x1800a7b80]
call fcn.18006f600
test al, al
je 0x18001cb4d
cmp byte [r14], dil
jne 0x18001cb56
mov byte [r14], 1
mov al, 1
jmp 0x18001cf67
cmp byte [r14], dil
je 0x18001cbe8
lea rsi, [0x1800a7dd0]
lea r12, [0x1800a8270]
nop dword [rax]
nop dword [rax + rax]
mov rdx, rsi
lea rcx, [rsp + 0x70]
call fcn.18005df10
lea rdx, [rbp - 0x20]
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x10], rdi
mov rcx, qword [rax]
mov qword [rbp - 0x20], rcx
mov rcx, qword [rbx + 0x1c0]
call fcn.18006f600
test al, al
jne 0x18001cbab
add rsi, 0x10
cmp rsi, r12
jne 0x18001cb70
jmp 0x18001cbe8
movups xmm0, xmmword [rbp - 0x20]
movsd xmm1, qword [rbp - 0x10]
movups xmmword [r15], xmm0
movsd qword [r15 + 0x10], xmm1
mov rcx, qword [r14 + 8]
call fcn.180079a50
mov rdx, r15
mov qword [r14 + 8], rdi
lea rcx, [r14 + 8]
mov qword [r14 + 0x10], rdi
call fcn.180031c00
mov al, 1
mov byte [r14], dil
jmp 0x18001cf67
mov byte [r14], dil
movsd xmm1, qword [rbx + 0x158]
addsd xmm1, qword [0x18009d6f8]
movsd xmm2, qword [rbx + 0x160]
addsd xmm2, qword [rbx + 0x118]
addsd xmm1, qword [rbx + 0x110]
addsd xmm2, qword [0x18009d6b0]
addsd xmm1, qword [0x18009d750]
cmp dword [r14 + 0x10], edi
jne 0x18001ce7c
cmp word [0x180097632], di
movups xmm0, xmmword [str.e_PA_R]
mov eax, dword [0x180097630]
movsd qword [rbp - 0x80], xmm1
movsd xmm1, qword [0x180097628]
movups xmmword [rbp - 0x20], xmm0
mov dword [rbp - 8], eax
movsd qword [rbp - 0x78], xmm2
movsd qword [rbp - 0x10], xmm1
je 0x18001cda5
cmp dword [0x1800a5018], 2
mov r8d, edi
jl 0x18001cd65
movdqa xmm2, xmmword [0x18009d8f0]
mov eax, 4
movdqa xmm3, xmmword [0x18009d910]
movdqa xmm1, xmm2
movdqa xmm4, xmmword [0x18009dd00]
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
mov r8d, 8
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
pmuldq xmm1, xmm4
movd xmm6, eax
mov eax, 0x1f
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movd xmm5, eax
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x18009d930]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [str.e_PA_R]
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
paddw xmm2, xmmword [0x18009d9d0]
pxor xmm2, xmm0
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movq qword [rbp - 0x20], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm5
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x18009d930]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rbp - 0x18]
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmmword [0x18009d9d0]
pxor xmm2, xmm0
movq qword [rbp - 0x18], xmm2
mov eax, r8d
lea r9, [rbp - 0x20]
lea r9, [r9 + rax*2]
mov eax, 0x51eb851f
lea r9, [r9 + 2]
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x32
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x30
xor word [r9 - 2], ax
cmp r8d, 0xe
jl 0x18001cd70
mov qword [rsp + 0x70], rdi
cmp word [rbp - 0x20], di
je 0x18001cde8
lea rax, [rbp - 0x20]
nop dword [rax]
nop dword [rax + rax]
cmp word [rax + 2], 0
lea rax, [rax + 2]
lea edi, [rdi + 1]
jne 0x18001cdc0
lea eax, [rdi + 1]
mov dword [rsp + 0x78], eax
mov dword [rsp + 0x7c], eax
test eax, eax
je 0x18001cded
lea rax, [rbp - 0x20]
mov qword [rsp + 0x70], rax
jmp 0x18001cded
mov qword [rsp + 0x78], rdi
movups xmm0, xmmword [rbx + 0xb0]
movzx eax, byte [0x1800a5a71]
movss xmm2, dword [0x18009d640]
movaps xmmword [rbp - 0x70], xmm0
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
xorps xmm0, xmm0
movups xmm1, xmmword [rbp - 0x80]
movups xmmword [rbp - 0x50], xmm0
movss xmm0, dword [0x18009d63c]
movaps xmmword [rbp - 0x30], xmm1
xorps xmm1, xmm1
movups xmmword [rbp - 0x40], xmm1
movups xmmword [rbp - 0x60], xmm1
test al, al
je 0x18001ce3d
movaps xmm1, xmm0
jmp 0x18001ce40
movaps xmm1, xmm2
cvtps2pd xmm3, xmm1
test al, al
jne 0x18001ce4a
movaps xmm0, xmm2
lea rax, [rbp - 0x40]
mov qword [rsp + 0x60], rax
lea r9, [rbp - 0x30]
mov byte [rsp + 0x50], 1
lea rax, [rbp - 0x50]
mov byte [rsp + 0x48], 1
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x60]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x70]
jmp 0x18001cf11
movups xmm0, xmmword [rbx + 0xb0]
mov rdx, r15
lea rcx, [rbp - 0x20]
movsd qword [rbp - 0x70], xmm1
movaps xmmword [rbp - 0x60], xmm0
movsd qword [rbp - 0x68], xmm2
call fcn.18005d620
movss xmm2, dword [0x18009d640]
xorps xmm1, xmm1
movups xmmword [rbp - 0x30], xmm1
movups xmm0, xmmword [rax]
movzx eax, byte [0x1800a5a71]
movups xmmword [rbp - 0x50], xmm1
movaps xmmword [rsp + 0x70], xmm0
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
movss xmm0, dword [0x18009d63c]
test al, al
je 0x18001ced7
movaps xmm1, xmm0
jmp 0x18001ceda
movaps xmm1, xmm2
cvtps2pd xmm3, xmm1
test al, al
jne 0x18001cee4
movaps xmm0, xmm2
lea rax, [rbp - 0x30]
mov qword [rsp + 0x60], rax
lea r9, [rbp - 0x70]
mov byte [rsp + 0x50], 1
lea rax, [rbp - 0x40]
mov byte [rsp + 0x48], 1
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x60]
mov rdx, qword [0x1800a7650]
lea r8, [rsp + 0x70]
mov rcx, qword [rbx + 0x1b0]
cvtps2pd xmm0, xmm0
movsd qword [rbp - 0x78], xmm3
movsd qword [rbp - 0x80], xmm0
xorps xmm0, xmm0
movss dword [rsp + 0x30], xmm0
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
call fcn.18006abb0
movsd xmm0, qword [rbx + 0x118]
xor al, al
addsd xmm0, qword [0x18009d708]
movsd qword [rbx + 0x118], xmm0
mov r12, qword [rsp + 0x180]
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.180079a30
lea r11, [rsp + 0x188]
movaps xmm6, xmmword [r11 - 0x18]
movaps xmm7, xmmword [r11 - 0x28]
movaps xmm8, xmmword [r11 - 0x38]
movaps xmm9, xmmword [r11 - 0x48]
mov rsp, r11
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret