Function at 0x18002ec70
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
movaps xmmword [rax - 0x38], xmm7
xor ebx, ebx
mov esi, ebx
mov edi, 1
xor eax, eax
lock cmpxchg dword [0x18021b448], edi
je 0x18002ecc8
cmp rsi, 0x20
jae 0x18002ecb1
xor ecx, ecx
jmp 0x18002ecb3
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rsi
xor eax, eax
lock cmpxchg dword [0x18021b448], edi
jne 0x18002eca7
mov rsi, 0xffffffffffffffff
mov r14d, dword [0x18011b098]
movdqa xmm6, xmmword [0x180106680]
cmp qword [0x18021b450], rbx
jne 0x18002ed16
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x18021b450], rax
mov edi, 9
test rax, rax
cmovne edi, ebx
mov ecx, ebx
xchg dword [0x18021b448], ecx
jne 0x18002eed7
jmp 0x18002ed1e
mov eax, ebx
xchg dword [0x18021b448], eax
cmp edi, 1
je 0x18002eed7
movups xmm0, xmmword [str.wSZXPR]
movups xmmword [rbp + 7], xmm0
movsd xmm0, qword [0x1800f4db0]
movsd qword [rbp + 0x17], xmm0
cmp r14d, 2
jl 0x18002ee61
movdqa xmm5, xmmword [0x180106550]
mov edx, ebx
movdqa xmm4, xmmword [0x180106c70]
movdqa xmm7, xmmword [0x1801065e0]
movdqa xmm0, xmmword [0x180106720]
movdqa xmmword [rbp - 0x19], xmm0
lea rcx, [rbp + 7]
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, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
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, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
andps xmm3, xmm6
packuswb xmm3, xmm3
packuswb xmm3, xmm3
movd xmm0, r8d
paddb xmm3, xmm0
movd xmm0, dword [rcx + 4]
xorps xmm3, xmm0
movd dword [rcx + 4], xmm3
add edx, 8
lea rcx, [rcx + 8]
cmp edx, 0x18
jl 0x18002ed80
jmp 0x18002eea0
lea r9, [rbp + 7]
mov r8d, ebx
nop dword [rax + rax]
mov eax, 0x4d4873ed
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x35
movzx eax, r8b
sub al, cl
add al, 0x31
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x18
jl 0x18002ee70
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
mov qword [rbp - 9], rbx
mov qword [rbp - 1], rbx
lea rax, [rbp + 7]
mov r8, rsi
inc r8
cmp byte [rax + r8], bl
jne 0x18002eeb6
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x19]
call fcn.180013470
mov dl, 1
lea rcx, [rbp - 0x19]
call fcn.180028ef0
cmp qword [0x18021b820], rbx
je 0x18002ef7a
call fcn.18002bc40
mov rdi, rax
mov rcx, rax
call fcn.18004bab0
test al, al
je 0x18002ef0a
mov rcx, qword [0x18011c118]
cmp rcx, rsi
je 0x18002ef0a
mov rcx, qword [rcx + rdi]
jmp 0x18002ef0d
mov rcx, rbx
call fcn.18004bab0
test al, al
je 0x18002ef7a
mov ecx, 0x18
call fcn.1800b51e0
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 [0x18021b820]
call fcn.18002bc40
mov rsi, rax
mov rcx, rax
call fcn.18004bab0
test al, al
je 0x18002ef5f
mov rcx, qword [0x18011c118]
cmp rcx, 0xffffffffffffffff
je 0x18002ef5f
mov rbx, qword [rsi + rcx]
mov r8, r14
mov rdx, qword [rbx]
mov rcx, rdi
call fcn.18002f760
nop
mov qword [0x18021b4c0], rax
jmp 0x18002f143
movups xmm0, xmmword [0x1800f4d80]
movups xmmword [rbp + 7], xmm0
movsd xmm0, qword [0x1800f4d90]
movsd qword [rbp + 0x17], xmm0
mov eax, dword [0x1800f4d98]
mov dword [rbp + 0x1f], eax
movzx eax, word [0x1800f4d9c]
mov word [rbp + 0x23], ax
movzx eax, byte [0x1800f4d9e]
mov byte [rbp + 0x25], al
mov ecx, ebx
cmp r14d, 2
jl 0x18002f0d4
movdqa xmm5, xmmword [0x180106550]
movdqa xmm4, xmmword [0x180106c70]
movdqa xmm7, xmmword [0x1801065e0]
movdqa xmm0, xmmword [0x180106720]
movdqa xmmword [rbp - 0x19], xmm0
lea rdx, [rbp + 7]
mov r8d, dword [rbp - 0x19]
nop dword [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, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
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, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
andps xmm3, xmm6
packuswb xmm3, xmm3
packuswb xmm3, xmm3
movd xmm0, r8d
paddb xmm3, xmm0
movd xmm0, dword [rdx + 4]
xorps xmm3, xmm0
movd dword [rdx + 4], xmm3
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x18
jl 0x18002eff0
cmp ecx, 0x1f
jge 0x18002f10c
movsxd rax, ecx
lea r8, [rbp + 7]
add r8, rax
nop
mov eax, 0x4d4873ed
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x35
movzx eax, cl
sub al, dl
add al, 0x31
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x1f
jl 0x18002f0e0
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
mov qword [rbp - 9], rbx
mov qword [rbp - 1], rbx
lea rax, [rbp + 7]
nop
inc rsi
cmp byte [rax + rsi], bl
jne 0x18002f120
mov r8, rsi
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x19]
call fcn.180013470
mov dl, 1
lea rcx, [rbp - 0x19]
call fcn.180028ef0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [rsp + 0x70]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret