Function at 0x18009efc0
Capabilities:
Encode data using xor

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0xd0
mov rax, qword [0x180127040]
xor rax, rsp
mov qword [rsp + 0xb0], rax
xor ebx, ebx
cmp dword [0x180128da4], 0x1d
jl 0x18009f30a
cmp dword [0x180127018], 2
mov r8d, ebx
movups xmm0, xmmword [0x18010a840]
movups xmm1, xmmword [0x18010a850]
mov eax, dword [0x18010a890]
movups xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [0x18010a860]
movups xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [0x18010a880]
movups xmmword [rsp + 0x60], xmm1
movups xmm1, xmmword [0x18010a870]
mov qword [r11 + 8], rbp
mov dword [r11 - 0x38], eax
movzx eax, word [0x18010a894]
mov qword [r11 + 0x10], rsi
mov word [r11 - 0x34], ax
mov qword [r11 + 0x18], rdi
movups xmmword [r11 - 0x58], xmm1
movups xmmword [r11 - 0x48], xmm0
jl 0x18009f1a7
movdqa xmm0, xmmword [0x180110f70]
lea rcx, [rsp + 0x54]
movdqa xmm5, xmmword [0x180110e60]
movdqa xmm4, xmmword [0x180111070]
movdqa xmmword [rsp + 0x30], xmm0
mov edx, dword [rsp + 0x30]
movaps xmmword [r11 - 0x18], xmm6
movdqa xmm6, xmmword [0x180110e90]
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 [0x180110f50]
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 [0x180110f50]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x50
jl 0x18009f090
movaps xmm6, xmmword [rsp + 0xc0]
cmp r8d, 0x56
jge 0x18009f1f4
movsxd rax, r8d
lea r9, [rsp + 0x50]
add r9, rax
nop dword [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, 0x33
xor byte [r9 - 1], al
cmp r8d, 0x56
jl 0x18009f1c0
mov rcx, qword [0x180128be8]
mov ebp, ebx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, qword [0x180128be8]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [rsp + 0x50]
movsxd rcx, dword [rax + 0x3c]
mov edi, dword [rcx + rdi + 0x50]
lea rcx, [rsp + 0x30]
call fcn.180021880
mov rcx, qword [0x180128be8]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r10, qword [rsp + 0x38]
mov r9d, ebx
mov r11, qword [rsp + 0x30]
mov rsi, rax
sub r10, r11
sar r10, 2
sub rdi, r10
je 0x18009f299
mov eax, ebx
test r10, r10
je 0x18009f280
mov rcx, rbx
nop dword [rax]
mov r8d, dword [r11 + rcx*4]
lea ecx, [rax + r9]
movzx ecx, byte [rcx + rsi]
cmp ecx, r8d
je 0x18009f277
cmp r8d, 0xffffffff
jne 0x18009f286
inc eax
mov ecx, eax
cmp rcx, r10
jb 0x18009f260
test ebp, ebp
jle 0x18009f293
dec ebp
inc r9d
mov eax, r9d
cmp rax, rdi
jb 0x18009f253
jmp 0x18009f299
mov ebx, r9d
add rbx, rsi
mov rdi, qword [rsp + 0xf0]
mov rsi, qword [rsp + 0xe8]
mov rbp, qword [rsp + 0xe0]
test r11, r11
je 0x18009f2f2
mov rdx, qword [rsp + 0x40]
mov rax, r11
sub rdx, r11
and rdx, 0xfffffffffffffffc
cmp rdx, 0x1000
jb 0x18009f2ea
mov r11, qword [r11 - 8]
add rdx, 0x27
sub rax, r11
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18009f2ea
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r11
call fcn.1800d3c10
cmp dword [0x180128da4], 0x1d
mov qword [0x180129758], rbx
jl 0x18009f30a
test rbx, rbx
setne al
jmp 0x18009f30c
mov al, 1
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1800d3880
add rsp, 0xd0
pop rbx
ret