Function at 0x1800326d0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
xor edi, edi
mov ebx, edi
xor eax, eax
mov r15d, 1
lock cmpxchg dword [0x18021e810], r15d
je 0x180032733
nop
cmp rbx, 0x20
jae 0x18003271a
xor ecx, ecx
jmp 0x18003271d
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x18021e810], r15d
jne 0x180032710
mov rbx, 0xffffffffffffffff
mov r14d, dword [0x18011f090]
movdqa xmm7, xmmword [0x18010bc10]
cmp qword [0x18021e818], rdi
jne 0x180032781
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov qword [0x18021e818], rax
mov edx, 9
test rax, rax
cmovne edx, edi
mov ecx, edi
xchg dword [0x18021e810], ecx
jne 0x180032a73
jmp 0x18003278c
mov edx, r15d
mov eax, edi
xchg dword [0x18021e810], eax
cmp edx, r15d
je 0x180032a73
movups xmm3, xmmword [0x1800fa3f8]
movups xmmword [rbp - 0x19], xmm3
movsd xmm0, qword [0x1800fa408]
movsd qword [rbp - 9], xmm0
mov r8d, edi
cmp r14d, 2
jl 0x180032a05
movdqa xmm4, xmmword [0x18010bf70]
movdqa xmm5, xmmword [0x18010bb20]
movdqa xmm6, xmmword [0x18010bc70]
movdqa xmm2, xmmword [0x18010ba90]
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, xmm5
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm6
movd eax, xmm3
movd xmm0, eax
xorps xmm2, xmm0
movd dword [rbp - 0x19], xmm2
movdqa xmm2, xmmword [0x18010bab0]
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, xmm5
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm6
movd xmm0, dword [rbp - 0x15]
xorps xmm2, xmm0
movd dword [rbp - 0x15], xmm2
movdqa xmm3, xmmword [0x18010bac0]
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, xmm5
psubd xmm3, xmm0
andps xmm3, xmm7
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmm6
movd xmm0, dword [rbp - 0x11]
xorps xmm3, xmm0
movd dword [rbp - 0x11], xmm3
movdqa xmm2, xmmword [0x18010bad0]
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, xmm5
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm6
movd xmm0, dword [rbp - 0xd]
xorps xmm2, xmm0
movd dword [rbp - 0xd], xmm2
movdqa xmm3, xmmword [0x18010bae0]
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, xmm5
psubd xmm3, xmm0
andps xmm3, xmm7
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmm6
movd xmm0, dword [rbp - 9]
xorps xmm3, xmm0
movd dword [rbp - 9], xmm3
movdqa xmm2, xmmword [0x18010bb00]
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, xmm5
psubd xmm2, xmm0
andps xmm2, xmm7
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm6
movd xmm0, dword [rbp - 5]
xorps xmm2, xmm0
movd dword [rbp - 5], xmm2
jmp 0x180032a39
lea r9, [rbp - 0x19]
nop dword [rax]
mov eax, 0x5397829d
mul r8d
shr edx, 4
movsx eax, dl
imul ecx, eax, 0x31
movzx eax, r8b
sub al, cl
add al, 0x31
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x18
jl 0x180032a10
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
mov qword [rbp + 0x17], rdi
mov qword [rbp + 0x1f], rdi
lea rax, [rbp - 0x19]
mov r8, rbx
nop
inc r8
cmp byte [rax + r8], dil
jne 0x180032a50
lea rdx, [rbp - 0x19]
lea rcx, [rbp + 7]
call fcn.180015bf0
movzx edx, r15b
lea rcx, [rbp + 7]
call fcn.18002beb0
cmp qword [0x18021ebd8], rdi
je 0x180032b16
call fcn.18002f370
mov rsi, rax
mov rcx, rax
call fcn.1800598e0
test al, al
je 0x180032aa6
mov rcx, qword [0x18011fd38]
cmp rcx, rbx
je 0x180032aa6
mov rcx, qword [rcx + rsi]
jmp 0x180032aa9
mov rcx, rdi
call fcn.1800598e0
test al, al
je 0x180032b16
mov ecx, 0x18
call fcn.1800c4130
mov rbx, rax
mov qword [rbp + 0x67], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rax
mov r14, qword [0x18021ebd8]
call fcn.18002f370
mov rsi, rax
mov rcx, rax
call fcn.1800598e0
test al, al
je 0x180032afb
mov rcx, qword [0x18011fd38]
cmp rcx, 0xffffffffffffffff
je 0x180032afb
mov rdi, qword [rsi + rcx]
mov r8, r14
mov rdx, qword [rdi]
mov rcx, rbx
call fcn.180033300
nop
mov qword [0x18021e890], rax
jmp 0x180032ce6
movups xmm0, xmmword [0x1800fa410]
movups xmmword [rbp + 7], xmm0
movsd xmm0, qword [0x1800fa420]
movsd qword [rbp + 0x17], xmm0
mov eax, dword [0x1800fa428]
mov dword [rbp + 0x1f], eax
movzx eax, word [0x1800fa42c]
mov word [rbp + 0x23], ax
movzx eax, byte [0x1800fa42e]
mov byte [rbp + 0x25], al
mov ecx, edi
cmp r14d, 2
jl 0x180032c74
movdqa xmm5, xmmword [0x18010ba90]
movdqa xmm4, xmmword [0x18010bf70]
movdqa xmm6, xmmword [0x18010bb20]
movdqa xmm0, xmmword [0x18010bc70]
movdqa xmmword [rbp - 0x19], xmm0
lea rdx, [rbp + 7]
mov r8d, dword [rbp - 0x19]
nop word [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, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
andps xmm2, xmm7
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, xmm6
psubd xmm3, xmm0
andps xmm3, xmm7
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 0x180032b90
cmp ecx, 0x1f
jge 0x180032cac
movsxd rax, ecx
lea r8, [rbp + 7]
add r8, rax
nop
mov eax, 0x5397829d
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, r15d
sub al, dl
movsx eax, al
imul edx, eax, 0x31
add dl, cl
xor byte [r8], dl
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0x1f
jl 0x180032c80
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
mov qword [rbp - 9], rdi
mov qword [rbp - 1], rdi
lea rax, [rbp + 7]
nop
inc rbx
cmp byte [rax + rbx], dil
jne 0x180032cc0
mov r8, rbx
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x19]
call fcn.180015bf0
movzx edx, r15b
lea rcx, [rbp - 0x19]
call fcn.18002beb0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [rsp + 0x70]
mov rsp, r11
pop r15
pop r14
pop rbp
ret