Function at 0x140012f10
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x5e0]
sub rsp, 0x6e0
mov rax, qword [0x140267660]
xor rax, rsp
mov qword [rbp + 0x5a0], rax
mov rdi, rcx
call fcn.1400025a0
test eax, eax
jns 0x14001317f
cmp byte [0x14023428d], 0
mov eax, dword [0x140234288]
movups xmm0, xmmword [str.KSMYO]
mov dword [rsp + 0x78], eax
movzx eax, word [0x14023428c]
movups xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x7c], ax
je 0x14001314d
xor ebx, ebx
cmp dword [0x140267678], 2
jl 0x14001310d
movdqa xmm0, xmmword [0x1402351a0]
lea rcx, [rsp + 0x6c]
movdqa xmm5, xmmword [0x140235140]
mov r8d, 4
movdqa xmm4, xmmword [0x1402351c0]
mov eax, 0x1f
movaps xmmword [rsp + 0x6d0], xmm6
movaps xmmword [rsp + 0x6c0], xmm7
movdqa xmm7, xmmword [0x140235160]
movdqa xmmword [rsp + 0x50], xmm0
mov edx, dword [rsp + 0x50]
movaps xmmword [rsp + 0x6b0], xmm8
movd xmm6, r8d
movd xmm8, eax
nop word [rax + rax]
movd xmm2, ebx
lea eax, [rbx + 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 ebx, 8
pmuldq xmm1, 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 xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
pand xmm2, xmmword [0x140235180]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
pxor xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x140235180]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
pxor xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp ebx, 0x10
jl 0x140012ff0
movaps xmm8, xmmword [rsp + 0x6b0]
movaps xmm7, xmmword [rsp + 0x6c0]
movaps xmm6, xmmword [rsp + 0x6d0]
cmp ebx, 0x16
jge 0x14001314d
movsxd rax, ebx
lea r8, [rsp + 0x68]
add r8, rax
nop dword [rax + rax]
mov eax, 0x5397829d
lea r8, [r8 + 1]
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x31
movzx eax, bl
inc ebx
sub al, cl
add al, 0x38
xor byte [r8 - 1], al
cmp ebx, 0x16
jl 0x140013120
lea rcx, [rsp + 0x68]
call fcn.140002550
xor eax, eax
xorps xmm0, xmm0
mov ecx, 0x7d0
mov dword [rsp + 0x78], eax
movups xmmword [rsp + 0x68], xmm0
mov word [rsp + 0x7c], ax
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
jmp 0x1400132fb
xor edx, edx
lea rcx, [rbp + 0x3a0]
mov r8d, 0x200
call fcn.14019d7b0
mov r8d, 0x104
lea rdx, [rbp + 0x3a0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor ebx, ebx
lea rcx, [rbp + 0x90]
xor edx, edx
mov dword [rsp + 0x60], ebx
mov r8d, 0x104
call fcn.14019d7b0
xor edx, edx
lea rcx, [rbp + 0x2a0]
mov r8d, 0x100
call fcn.14019d7b0
xor edx, edx
lea rcx, [rbp + 0x1a0]
mov r8d, 0x100
call fcn.14019d7b0
mov qword [rsp + 0x40], 0x100
lea rax, [rbp + 0x1a0]
mov qword [rsp + 0x38], rax
lea r9, [rbp + 0x90]
lea rax, [rbp + 0x2a0]
mov qword [rsp + 0x30], 0x100
mov qword [rsp + 0x28], rax
lea r8d, [rbx + 4]
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x20], 0x104
lea rcx, [rbp + 0x3a0]
call fcn.1401a5fe8
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x104
call fcn.14019d7b0
nop word [rax + rax]
movzx eax, byte [rsp + rbx + 0x60]
mov byte [rbp + rbx - 0x80], al
lea rbx, [rbx + 1]
test al, al
jne 0x140013250
lea rcx, [rbp - 0x80]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140013270
lea r8, [rbp + 0x90]
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140013290
lea rcx, [rbp - 0x80]
dec rcx
nop word [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400132b0
movzx eax, word [0x1402342d0]
lea rdx, [rbp - 0x80]
movsd xmm0, qword [str.ee.dll.dll]
movsd qword [rcx], xmm0
mov word [rcx + 8], ax
movzx eax, byte [0x1402342d2]
mov byte [rcx + 0xa], al
lea rcx, [0x1402342d4]
call fcn.140002550
lea rdx, [rbp - 0x80]
mov qword [rsp + 0x28], rdi
call fcn.140002c80
xor eax, eax
mov rcx, qword [rbp + 0x5a0]
xor rcx, rsp
call fcn.140197d80
lea r11, [rsp + 0x6e0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret