Function at 0x1800045d0
Capabilities:
Encode data using xor

Disassembly:
push rdi
sub rsp, 0x60
mov rdi, qword [0x180b5ed08]
test rdi, rdi
je 0x1800048bd
cmp rdi, qword [0x180b5ef08]
je 0x1800048bd
cmp byte [0x180237cdb], 0
mov rax, qword [0x180b60468]
vmovsd xmm0, qword [str.___f_YMUTR]
mov qword [rsp + 0x70], rbx
mov ebx, 8
vmovaps xmmword [rsp + 0x50], xmm6
mov r10, qword [rax + 0x208]
mov eax, dword [0x180237cd8]
vmovaps xmmword [rsp + 0x40], xmm7
mov dword [rsp + 0x28], eax
vmovaps xmmword [rsp + 0x30], xmm8
vmovsd qword [rsp + 0x20], xmm0
je 0x18000473a
vmovdqu xmm5, xmmword [0x1802493c0]
vmovdqu xmm6, xmmword [0x1802498c0]
vpunpckldq xmm0, xmm5, xmm5
vpmuldq xmm3, xmm0, xmm6
vpunpckhdq xmm1, xmm5, xmm5
vpmuldq xmm2, xmm1, xmm6
vshufps xmm0, xmm3, xmm2, 0xdd
vpsrad xmm4, xmm0, 4
vpsrld xmm1, xmm4, 0x1f
vpaddd xmm0, xmm1, xmm4
vpmulld xmm2, xmm0, xmmword [0x180249420]
vpsubd xmm3, xmm5, xmm2
vpshufb xmm0, xmm3, xmmword [0x180249360]
vpaddb xmm2, xmm0, xmmword [str.22222222222222223333333333333333]
vmovdqu xmm5, xmmword [0x180249400]
vmovd xmm0, dword [str.___f_YMUTR]
vpxor xmm1, xmm2, xmm0
vmovd dword [rsp + 0x20], xmm1
vpunpckhdq xmm1, xmm5, xmm5
vpmuldq xmm2, xmm1, xmm6
vpunpckldq xmm0, xmm5, xmm5
vpmuldq xmm3, xmm0, xmm6
vshufps xmm0, xmm3, xmm2, 0xdd
vpsrad xmm4, xmm0, 4
vpsrld xmm1, xmm4, 0x1f
vpaddd xmm0, xmm1, xmm4
vpmulld xmm2, xmm0, xmmword [0x180249420]
vmovd xmm1, dword [rsp + 0x24]
vpsubd xmm3, xmm5, xmm2
vpshufb xmm0, xmm3, xmmword [0x180249360]
vpaddb xmm2, xmm0, xmmword [str.22222222222222223333333333333333]
vpxor xmm0, xmm2, xmm1
vmovd dword [rsp + 0x24], xmm0
mov r8d, ebx
lea r9, [rsp + 0x28]
nop word [rax + rax]
mov eax, 0x51eb851f
lea r9, [r9 + 1]
mul r8d
shr edx, 4
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x32
xor byte [r9 - 1], al
cmp r8d, 0xc
jl 0x180004710
lea rdx, [rsp + 0x20]
mov rcx, rdi
call r10
test eax, eax
je 0x1800048b9
cmp byte [0x180237cdb], 0
mov rax, qword [0x180b60468]
vmovsd xmm0, qword [str.___f_YMUTR]
mov r9, qword [rax + 0x48]
mov eax, dword [0x180237cd8]
mov dword [rsp + 0x28], eax
vmovsd qword [rsp + 0x20], xmm0
je 0x180004876
vmovdqu xmm5, xmmword [0x1802493c0]
vmovdqu xmm7, xmmword [0x1802498c0]
mov eax, dword [str.22222222222222223333333333333333]
lea r8, [rsp + 0x28]
vpunpckldq xmm0, xmm5, xmm5
vpmuldq xmm3, xmm0, xmm7
vpunpckhdq xmm1, xmm5, xmm5
vpmuldq xmm2, xmm1, xmm7
vshufps xmm0, xmm3, xmm2, 0xdd
vpsrad xmm4, xmm0, 4
vpsrld xmm1, xmm4, 0x1f
vpaddd xmm0, xmm1, xmm4
vpmulld xmm2, xmm0, xmmword [0x180249420]
vpsubd xmm3, xmm5, xmm2
vpshufb xmm4, xmm3, xmmword [0x180249360]
vmovdqu xmm5, xmmword [0x180249400]
vmovd xmm0, eax
vpaddb xmm1, xmm4, xmm0
vmovd xmm0, dword [str.___f_YMUTR]
vpxor xmm1, xmm1, xmm0
vmovd dword [rsp + 0x20], xmm1
vpunpckhdq xmm1, xmm5, xmm5
vpmuldq xmm2, xmm1, xmm7
vpunpckldq xmm0, xmm5, xmm5
vpmuldq xmm3, xmm0, xmm7
vshufps xmm0, xmm3, xmm2, 0xdd
vpsrad xmm4, xmm0, 4
vpsrld xmm1, xmm4, 0x1f
vpaddd xmm0, xmm1, xmm4
vpmulld xmm2, xmm0, xmmword [0x180249420]
vmovd xmm1, dword [rsp + 0x24]
vpsubd xmm3, xmm5, xmm2
vpshufb xmm4, xmm3, xmmword [0x180249360]
vmovd xmm0, eax
vpaddb xmm2, xmm4, xmm0
vpxor xmm0, xmm2, xmm1
vmovd dword [rsp + 0x24], xmm0
nop dword [rax + rax]
mov eax, 0x51eb851f
lea r8, [r8 + 1]
mul ebx
shr edx, 4
movsx eax, dl
imul edx, eax, 0x32
movzx eax, bl
inc ebx
sub al, dl
add al, 0x32
xor byte [r8 - 1], al
cmp ebx, 0xc
jl 0x180004850
xor r8d, r8d
lea rdx, [rsp + 0x20]
mov rcx, rdi
call r9
mov rcx, qword [0x180b60468]
mov rdx, qword [rcx + 0xd8]
mov rcx, rax
call rdx
test eax, eax
setne al
vmovaps xmm7, xmmword [rsp + 0x40]
vmovaps xmm6, xmmword [rsp + 0x50]
vmovaps xmm8, xmmword [rsp + 0x30]
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
xor al, al
jmp 0x18000489c
xor al, al
add rsp, 0x60
pop rdi
ret