Function at 0x180012f90
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
mov rax, qword [0x18004d010]
xor rax, rsp
mov qword [rbp - 0x11], rax
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
mov qword [rbp - 0x19], rbx
mov eax, 0x5a4d
mov r14d, 4
cmp word [0x18003cd60], ax
jne 0x180012ffc
movsxd rax, dword [0x18003cd9c]
lea rcx, [0x18003cd60]
add rax, 8
add rax, rcx
jmp 0x180012fff
mov rax, r14
mov r8d, dword [rax]
mov rdx, rbx
mov rcx, rdi
call fcn.18001ebe0
test al, al
jne 0x18001321b
movups xmm0, xmmword [str.XSWYY]
movups xmmword [rbp - 0x59], xmm0
movups xmm1, xmmword [0x180047ee0]
movups xmmword [rbp - 0x49], xmm1
movups xmm0, xmmword [0x180047ef0]
movups xmmword [rbp - 0x39], xmm0
movsd xmm1, qword [0x180047f00]
movsd qword [rbp - 0x29], xmm1
movzx eax, word [0x180047f08]
mov word [rbp - 0x21], ax
xor r8d, r8d
cmp dword [0x18004d018], 2
jl 0x180013183
movdqa xmm5, xmmword [0x180047fb0]
movdqa xmm4, xmmword [0x180048050]
movd xmm6, r14d
movdqa xmm7, xmmword [0x180047ff0]
mov eax, 0x1f
movd xmm8, eax
movdqa xmm9, xmmword [0x180048010]
lea rcx, [rbp - 0x59]
movd xmm2, r8d
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, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, xmm9
paddw xmm3, xmm2
movq xmm0, qword [rcx]
pxor xmm3, xmm0
movq qword [rcx], xmm3
lea eax, [r8 + 4]
movd xmm2, eax
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, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, xmm9
paddw xmm3, xmm2
movq xmm0, qword [rcx + 8]
pxor xmm3, xmm0
movq qword [rcx + 8], xmm3
add r8d, 8
lea rcx, [rcx + 0x10]
cmp r8d, 0x18
jl 0x180013092
cmp r8d, 0x1d
jge 0x1800131c4
movsxd rax, r8d
lea r9, [rbp - 0x59]
lea r9, [r9 + rax*2]
nop
mov eax, 0x4bda12f7
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x36
movzx eax, r8w
sub ax, cx
add ax, 0x38
xor word [r9], ax
inc r8d
lea r9, [r9 + 2]
cmp r8d, 0x1d
jl 0x180013190
mov edx, 1
lea rcx, [rbp - 0x59]
call fcn.180011ac0
movzx edi, al
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x18001320b
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x180013206
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180013214
mov rcx, r8
call fcn.180024a90
movzx eax, dil
jmp 0x1800138ae
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rdx, rbx
mov rcx, rdi
call fcn.180019350
test al, al
jne 0x180013436
movups xmm0, xmmword [str.XSWYY]
movups xmmword [rbp - 0x59], xmm0
movups xmm1, xmmword [0x180047ee0]
movups xmmword [rbp - 0x49], xmm1
movups xmm0, xmmword [0x180047ef0]
movups xmmword [rbp - 0x39], xmm0
movsd xmm1, qword [0x180047f00]
movsd qword [rbp - 0x29], xmm1
movzx eax, word [0x180047f08]
mov word [rbp - 0x21], ax
xor r8d, r8d
cmp dword [0x18004d018], 2
jl 0x1800133a1
movdqa xmm5, xmmword [0x180047fb0]
movdqa xmm4, xmmword [0x180048050]
movd xmm6, r14d
movdqa xmm7, xmmword [0x180047ff0]
mov eax, 0x1f
movd xmm8, eax
movdqa xmm9, xmmword [0x180048010]
lea rcx, [rbp - 0x59]
nop dword [rax + rax]
movd xmm2, r8d
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, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, xmm9
paddw xmm3, xmm2
movq xmm0, qword [rcx]
pxor xmm3, xmm0
movq qword [rcx], xmm3
lea eax, [r8 + 4]
movd xmm2, eax
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, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, xmm9
paddw xmm3, xmm2
movq xmm0, qword [rcx + 8]
pxor xmm3, xmm0
movq qword [rcx + 8], xmm3
add r8d, 8
lea rcx, [rcx + 0x10]
cmp r8d, 0x18
jl 0x1800132b0
cmp r8d, 0x1d
jge 0x1800133e4
movsxd rax, r8d
lea r9, [rbp - 0x59]
lea r9, [r9 + rax*2]
nop dword [rax]
mov eax, 0x4bda12f7
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x36
movzx eax, r8w
sub ax, cx
add ax, 0x38
xor word [r9], ax
inc r8d
lea r9, [r9 + 2]
cmp r8d, 0x1d
jl 0x1800133b0
mov edx, 1
lea rcx, [rbp - 0x59]
call fcn.180011ac0
movzx edi, al
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x18001320b
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x180013206
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x180013203
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rdx, rsi
mov rcx, rdi
call fcn.180014cc0
test al, al
jne 0x180013656
movups xmm0, xmmword [str.XSWYY]
movups xmmword [rbp - 0x59], xmm0
movups xmm1, xmmword [0x180047ee0]
movups xmmword [rbp - 0x49], xmm1
movups xmm0, xmmword [0x180047ef0]
movups xmmword [rbp - 0x39], xmm0
movsd xmm1, qword [0x180047f00]
movsd qword [rbp - 0x29], xmm1
movzx eax, word [0x180047f08]
mov word [rbp - 0x21], ax
xor r8d, r8d
cmp dword [0x18004d018], 2
jl 0x1800135c1
movdqa xmm5, xmmword [0x180047fb0]
movdqa xmm4, xmmword [0x180048050]
movd xmm6, r14d
movdqa xmm7, xmmword [0x180047ff0]
mov eax, 0x1f
movd xmm8, eax
movdqa xmm9, xmmword [0x180048010]
lea rcx, [rbp - 0x59]
nop word [rax + rax]
movd xmm2, r8d
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, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, xmm9
paddw xmm3, xmm2
movq xmm0, qword [rcx]
pxor xmm3, xmm0
movq qword [rcx], xmm3
lea eax, [r8 + 4]
movd xmm2, eax
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, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, xmm9
paddw xmm3, xmm2
movq xmm0, qword [rcx + 8]
pxor xmm3, xmm0
movq qword [rcx + 8], xmm3
add r8d, 8
lea rcx, [rcx + 0x10]
cmp r8d, 0x18
jl 0x1800134d0
cmp r8d, 0x1d
jge 0x180013604
movsxd rax, r8d
lea r9, [rbp - 0x59]
lea r9, [r9 + rax*2]
nop dword [rax]
mov eax, 0x4bda12f7
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x36
movzx eax, r8w
sub ax, cx
add ax, 0x38
xor word [r9], ax
inc r8d
lea r9, [r9 + 2]
cmp r8d, 0x1d
jl 0x1800135d0
mov edx, 1
lea rcx, [rbp - 0x59]
call fcn.180011ac0
movzx edi, al
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x18001320b
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x180013206
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x180013203
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rdx, rbx
mov rcx, rdi
call fcn.180016d20
test al, al
jne 0x180013876
movups xmm0, xmmword [str.XSWYY]
movups xmmword [rbp - 0x59], xmm0
movups xmm1, xmmword [0x180047ee0]
movups xmmword [rbp - 0x49], xmm1
movups xmm0, xmmword [0x180047ef0]
movups xmmword [rbp - 0x39], xmm0
movsd xmm1, qword [0x180047f00]
movsd qword [rbp - 0x29], xmm1
movzx eax, word [0x180047f08]
mov word [rbp - 0x21], ax
xor r8d, r8d
cmp dword [0x18004d018], 2
jl 0x1800137e1
movdqa xmm5, xmmword [0x180047fb0]
movdqa xmm4, xmmword [0x180048050]
movd xmm6, r14d
movdqa xmm7, xmmword [0x180047ff0]
mov eax, 0x1f
movd xmm8, eax
movdqa xmm9, xmmword [0x180048010]
lea rcx, [rbp - 0x59]
nop word [rax + rax]
movd xmm2, r8d
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, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, xmm9
paddw xmm3, xmm2
movq xmm0, qword [rcx]
pxor xmm3, xmm0
movq qword [rcx], xmm3
lea eax, [r8 + 4]
movd xmm2, eax
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, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, xmm9
paddw xmm3, xmm2
movq xmm0, qword [rcx + 8]
pxor xmm3, xmm0
movq qword [rcx + 8], xmm3
add r8d, 8
lea rcx, [rcx + 0x10]
cmp r8d, 0x18
jl 0x1800136f0
cmp r8d, 0x1d
jge 0x180013824
movsxd rax, r8d
lea r9, [rbp - 0x59]
lea r9, [r9 + rax*2]
nop dword [rax]
mov eax, 0x4bda12f7
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x36
movzx eax, r8w
sub ax, cx
add ax, 0x38
xor word [r9], ax
inc r8d
lea r9, [r9 + 2]
cmp r8d, 0x1d
jl 0x1800137f0
mov edx, 1
lea rcx, [rbp - 0x59]
call fcn.180011ac0
movzx edi, al
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x18001320b
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x180013206
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
jbe 0x180013203
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1800138ac
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x1800138a7
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800138f3
mov rcx, r8
call fcn.180024a90
mov al, 1
mov byte [rbx], 0
mov qword [rbx + 0x18], 0xf
mov qword [rbx + 0x10], 0
mov rcx, qword [rbp - 0x11]
xor rcx, rsp
call fcn.180024a70
lea r11, [rsp + 0xb0]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
mov rsp, r11
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3