Function at 0x18002ef40
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0x90
movaps xmmword [rax - 0x28], xmm6
xor ebx, ebx
mov esi, ebx
mov edi, 1
xor eax, eax
lock cmpxchg dword [0x180210790], edi
je 0x18002ef94
cmp rsi, 0x20
jae 0x18002ef7d
xor ecx, ecx
jmp 0x18002ef7f
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rsi
xor eax, eax
lock cmpxchg dword [0x180210790], edi
jne 0x18002ef73
mov rsi, 0xffffffffffffffff
mov r14d, dword [0x180111088]
cmp qword [0x180210798], rbx
jne 0x18002efda
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x180210798], rax
mov edi, 9
test rax, rax
cmovne edi, ebx
mov ecx, ebx
xchg dword [0x180210790], ecx
jne 0x18002f1c6
jmp 0x18002efe2
mov eax, ebx
xchg dword [0x180210790], eax
cmp edi, 1
je 0x18002f1c6
movups xmm0, xmmword [0x1800ec430]
movups xmmword [rbp - 9], xmm0
movsd xmm0, qword [0x1800ec440]
movsd qword [rbp + 7], xmm0
cmp byte [0x1800ec447], bl
je 0x18002f18f
cmp r14d, 2
jl 0x18002f14f
movdqa xmm5, xmmword [0x1800fdc00]
mov edx, ebx
movdqa xmm4, xmmword [0x1800fdda0]
movdqa xmm6, xmmword [0x1800fdca0]
movdqa xmm0, xmmword [0x1800fddb0]
movdqa xmmword [rbp - 0x19], xmm0
lea rcx, [rbp - 9]
mov r8d, dword [rbp - 0x19]
nop dword [rax + rax]
movd xmm2, edx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800fdd90]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
lea eax, [rdx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800fdd90]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx + 4]
xorps xmm2, xmm0
movd dword [rcx + 4], xmm2
add edx, 8
lea rcx, [rcx + 8]
cmp edx, 0x18
jl 0x18002f050
jmp 0x18002f18f
lea r9, [rbp - 9]
mov r8d, ebx
nop word [rax + rax]
mov eax, 0x94f2095
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, r8b
sub al, cl
add al, 0x30
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x18
jl 0x18002f160
xorps xmm0, xmm0
movups xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x27], rbx
mov qword [rbp + 0x2f], rbx
lea rax, [rbp - 9]
mov r8, rsi
inc r8
cmp byte [rax + r8], bl
jne 0x18002f1a5
lea rdx, [rbp - 9]
lea rcx, [rbp + 0x17]
call fcn.180013b40
mov dl, 1
lea rcx, [rbp + 0x17]
call fcn.180028f80
cmp qword [0x180210b50], rbx
je 0x18002f269
call fcn.18002bd90
mov rdi, rax
mov rcx, rax
call fcn.18004d3b0
test al, al
je 0x18002f1f9
mov rcx, qword [0x180111cc8]
cmp rcx, rsi
je 0x18002f1f9
mov rcx, qword [rcx + rdi]
jmp 0x18002f1fc
mov rcx, rbx
call fcn.18004d3b0
test al, al
je 0x18002f269
mov ecx, 0x18
call fcn.1800b54a0
mov rdi, rax
mov qword [rbp + 0x67], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rax
mov r14, qword [0x180210b50]
call fcn.18002bd90
mov rsi, rax
mov rcx, rax
call fcn.18004d3b0
test al, al
je 0x18002f24e
mov rcx, qword [0x180111cc8]
cmp rcx, 0xffffffffffffffff
je 0x18002f24e
mov rbx, qword [rcx + rsi]
mov r8, r14
mov rdx, qword [rbx]
mov rcx, rdi
call fcn.18002fa60
nop
mov qword [0x180210810], rax
jmp 0x18002f453
movups xmm0, xmmword [0x1800ec410]
movups xmmword [rbp - 9], xmm0
movsd xmm0, qword [0x1800ec420]
movsd qword [rbp + 7], xmm0
mov eax, dword [0x1800ec428]
mov dword [rbp + 0xf], eax
movzx eax, word [0x1800ec42c]
mov word [rbp + 0x13], ax
movzx eax, byte [0x1800ec42e]
mov byte [rbp + 0x15], al
mov ecx, ebx
cmp r14d, 2
jl 0x18002f3e2
movdqa xmm5, xmmword [0x1800fdc00]
movdqa xmm4, xmmword [0x1800fdda0]
movdqa xmm6, xmmword [0x1800fdca0]
movdqa xmm0, xmmword [0x1800fddb0]
movdqa xmmword [rbp - 0x19], xmm0
lea rdx, [rbp - 9]
mov r8d, dword [rbp - 0x19]
nop dword [rax + rax]
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800fdd90]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
xorps xmm2, xmm0
movd dword [rdx], xmm2
lea eax, [rcx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1800fdd90]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx + 4]
xorps xmm2, xmm0
movd dword [rdx + 4], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x18
jl 0x18002f2e0
cmp ecx, 0x1f
jge 0x18002f41b
movsxd rax, ecx
lea r8, [rbp - 9]
add r8, rax
nop dword [rax]
mov eax, 0x94f2095
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x37
movzx eax, cl
sub al, dl
add al, 0x30
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x1f
jl 0x18002f3f0
xorps xmm0, xmm0
movups xmmword [rbp + 0x17], xmm0
mov qword [rbp + 0x27], rbx
mov qword [rbp + 0x2f], rbx
lea rax, [rbp - 9]
nop
inc rsi
cmp byte [rax + rsi], bl
jne 0x18002f430
mov r8, rsi
lea rdx, [rbp - 9]
lea rcx, [rbp + 0x17]
call fcn.180013b40
mov dl, 1
lea rcx, [rbp + 0x17]
call fcn.180028f80
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret