Function at 0x18009e4f0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xa0
movaps xmmword [rsp + 0x90], xmm6
mov rax, qword [0x180119040]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov esi, dword [0x180119010]
xor edi, edi
cmp dword [0x18011abec], 0xc
movsd xmm1, qword [0x18011ac10]
jl 0x18009e75c
movsd xmm0, qword [0x1801040f8]
comisd xmm0, xmm1
jbe 0x18009e75c
movups xmm0, xmmword [0x1800ff1a0]
mov r8d, edi
movups xmm1, xmmword [0x1800ff1b0]
mov eax, dword [str.azwD]
movups xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [0x1800ff1c0]
movups xmmword [rsp + 0x50], xmm0
movsd xmm0, qword [0x1800ff1e0]
movups xmmword [rsp + 0x40], xmm1
movups xmm1, xmmword [0x1800ff1d0]
movsd qword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x60], xmm1
mov dword [rsp + 0x78], eax
cmp esi, 2
jl 0x18009e6df
movdqa xmm0, xmmword [str.2222222222222222]
lea rcx, [rsp + 0x34]
movdqa xmm5, xmmword [0x1801044a0]
movdqa xmm4, xmmword [0x1801046b0]
movdqa xmm6, xmmword [0x180104500]
movdqa xmmword [rsp + 0x20], xmm0
mov edx, dword [rsp + 0x20]
nop
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add r8d, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
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
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1801045a0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1801045a0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x48
jl 0x18009e5d0
cmp r8d, 0x4c
jge 0x18009e724
movsxd rax, r8d
lea r9, [rsp + 0x30]
add r9, rax
nop word [rax + rax]
mov eax, 0x8fb823ef
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x39
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x32
xor byte [r9 - 1], al
cmp r8d, 0x4c
jl 0x18009e6f0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.180009330
lea r8, [0x18011be20]
lea rdx, [0x18009fef0]
mov rbx, qword [rax]
mov rcx, rbx
call fcn.1800c3070
mov rcx, rbx
call fcn.1800c3230
movsd xmm1, qword [0x18011ac10]
movsd xmm6, qword [0x180104028]
ucomisd xmm1, xmm6
jp 0x18009e78d
jne 0x18009e78d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [rax + 0xaec475], 0x239e9
mov byte [rax + 0xaec479], dil
movsd xmm1, qword [0x18011ac10]
comisd xmm1, xmmword [0x180104020]
jb 0x18009e9aa
comisd xmm6, xmm1
jbe 0x18009e9aa
mov eax, dword [0x1800fed70]
mov dword [rsp + 0x58], eax
movzx eax, word [0x1800fed74]
mov word [rsp + 0x5c], ax
movups xmm0, xmmword [0x1800fed48]
movups xmm1, xmmword [0x1800fed58]
movups xmmword [rsp + 0x30], xmm0
movsd xmm0, qword [0x1800fed68]
movsd qword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x40], xmm1
cmp esi, 2
jl 0x18009e92a
movdqa xmm0, xmmword [str.2222222222222222]
lea rcx, [rsp + 0x34]
movdqa xmm5, xmmword [0x1801044a0]
movdqa xmm4, xmmword [0x1801046b0]
movdqa xmm6, xmmword [0x180104500]
movdqa xmmword [rsp + 0x20], xmm0
mov edx, dword [rsp + 0x20]
nop dword [rax]
movd xmm2, edi
lea eax, [rdi + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add edi, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
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
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1801045a0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1801045a0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp edi, 0x28
jl 0x18009e820
cmp edi, 0x2e
jge 0x18009e970
movsxd rax, edi
lea r8, [rsp + 0x30]
add r8, rax
nop word [rax + rax]
mov eax, 0x8fb823ef
lea r8, [r8 + 1]
imul edi
add edx, edi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x39
movzx eax, dil
inc edi
sub al, cl
add al, 0x32
xor byte [r8 - 1], al
cmp edi, 0x2e
jl 0x18009e940
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x20]
call fcn.180009330
xor r8d, r8d
mov rdx, qword [rax]
movsxd rcx, dword [rdx + 1]
lea rbx, [rdx + 5]
add rbx, rcx
lea rdx, [fcn.18003d430]
mov rcx, rbx
mov qword [rax], rbx
call fcn.1800c3070
mov rcx, rbx
call fcn.1800c3230
mov al, 1
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1800c8140
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rdi
ret