Function at 0x1800afc30
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x78
mov qword [rsp + 0x88], rbx
xor ebx, ebx
mov qword [rsp + 0x70], rdi
xor eax, eax
mov edi, 1
lock cmpxchg dword [0x18020b810], edi
je 0x1800afc75
cmp rbx, 0x20
jae 0x1800afc5e
xor ecx, ecx
jmp 0x1800afc60
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18020b810], edi
jne 0x1800afc54
cmp qword [0x18020b818], 0
mov rdi, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x88]
jne 0x1800afcb2
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
xor ecx, ecx
mov qword [0x18020b818], rax
xchg dword [0x18020b810], ecx
test rax, rax
jne 0x1800afcba
add rsp, 0x78
ret
xor eax, eax
xchg dword [0x18020b810], eax
cmp byte [0x18020bc28], 0
je 0x1800afd32
mov rcx, qword [0x18020bc90]
test rcx, rcx
je 0x1800afd32
mov rcx, qword [rcx + 0x40]
xor edx, edx
call fcn.1800602e0
mov rcx, qword [0x18020bc90]
mov rcx, qword [rcx + 0x40]
call fcn.180060060
mov rcx, qword [0x18020bc90]
xor edx, edx
mov rcx, qword [rcx + 0x68]
call fcn.1800602e0
mov rcx, qword [0x18020bc90]
mov rcx, qword [rcx + 0x68]
call fcn.180060060
call fcn.18005fc40
mov rcx, qword [0x18020bc90]
mov edx, 8
call fcn.1800b0f48
mov qword [0x18020bc90], 0
add rsp, 0x78
ret
cmp byte [0x1800f877d], 0
mov eax, dword [0x1800f8778]
movups xmm0, xmmword [str.jX_CxE]
mov dword [rsp + 0x50], eax
movzx eax, word [0x1800f877c]
movups xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x54], ax
je 0x1800afedd
xor ecx, ecx
cmp dword [0x18010c090], 2
jl 0x1800afe9b
movdqa xmm0, xmmword [0x1800f8c10]
lea rdx, [rsp + 0x44]
movdqa xmm4, xmmword [0x1800f8a70]
movdqa xmm3, xmmword [0x1800f8ef0]
movdqa xmm5, xmmword [0x1800f8ac0]
movdqa xmmword [rsp + 0x20], xmm0
mov r8d, dword [rsp + 0x20]
movaps xmmword [rsp + 0x60], xmm6
movdqa xmm6, xmmword [0x1800f8b90]
nop dword [rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm4
add ecx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movd dword [rdx - 0xc], xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm3
pmuldq xmm1, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
movd xmm0, r8d
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x10
jl 0x1800afdb0
movaps xmm6, xmmword [rsp + 0x60]
cmp ecx, 0x16
jge 0x1800afedd
movsxd rax, ecx
lea r8, [rsp + 0x40]
add r8, rax
nop word [rax + rax]
mov eax, 0x5397829d
lea r8, [r8 + 1]
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x31
movzx eax, cl
inc ecx
sub al, dl
add al, 0x38
xor byte [r8 - 1], al
cmp ecx, 0x16
jl 0x1800afeb0
xorps xmm0, xmm0
mov qword [rsp + 0x30], 0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x1800aff03
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call fcn.1800133e0
xor edx, edx
lea rcx, [rsp + 0x20]
call fcn.180027c70
add rsp, 0x78
ret