Function at 0x1800158a0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
mov rax, qword [0x180050040]
xor rax, rsp
mov qword [rbp + 7], rax
mov r15, rdx
mov rdi, rcx
mov edx, dword [0x18008a250]
mov rax, qword gs:[0x58]
mov ecx, 4
mov rsi, qword [rax + rdx*8]
add rsi, rcx
xor ebx, ebx
mov eax, dword [rsi]
cmp dword [0x18008a360], eax
jle 0x18001286c
lea rcx, [0x18008a360]
call fcn.180027290
cmp dword [0x18008a360], 0xffffffff
jne 0x18001286c
movsd xmm0, qword [str.uIs_XZUVLjTSQ_]
movsd qword [rbp - 0x19], xmm0
mov eax, dword [0x18004ae00]
mov dword [rbp - 0x11], eax
movzx eax, word [0x18004ae04]
mov word [rbp - 0xd], ax
movzx eax, byte [0x18004ae06]
mov byte [rbp - 0xb], al
mov r8d, ebx
movdqa xmm5, xmmword [0x18004b210]
movdqa xmm2, xmmword [0x18004b1d0]
movdqa xmm3, xmmword [0x18004b1c0]
movdqa xmm7, xmmword [0x18004b250]
movdqa xmm6, xmmword [0x18004b1e0]
movdqa xmm4, xmmword [0x18004b270]
mov r10d, dword [0x180050090]
cmp r10d, 2
jl 0x1800126e3
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
movdqa xmm1, xmm3
psubd xmm1, xmm0
andps xmm1, xmm5
packuswb xmm1, xmm1
packuswb xmm1, xmm1
paddb xmm1, xmm7
movd xmm0, dword [str.uIs_XZUVLjTSQ_]
xorps xmm1, xmm0
movd dword [rbp - 0x19], xmm1
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
movdqa xmm1, xmm2
psubd xmm1, xmm0
andps xmm1, xmm5
packuswb xmm1, xmm1
packuswb xmm1, xmm1
paddb xmm1, xmm7
movd xmm0, dword [rbp - 0x15]
xorps xmm1, xmm0
movd dword [rbp - 0x15], xmm1
mov r8d, 8
movsxd rax, r8d
lea r9, [rbp - 0x19]
add r9, rax
nop dword [rax]
mov eax, 0x4d4873ed
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x35
movzx eax, r8b
sub al, cl
add al, 0x30
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0xf
jl 0x1800126f0
movsd xmm0, qword [str.E___GX_]
movsd qword [rbp - 0x29], xmm0
mov eax, dword [0x18004acc8]
mov dword [rbp - 0x21], eax
movzx eax, byte [0x18004accc]
mov byte [rbp - 0x1d], al
mov ecx, ebx
cmp r10d, 2
jl 0x18001280a
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, xmm5
packuswb xmm3, xmm3
packuswb xmm3, xmm3
movd eax, xmm7
movd xmm0, eax
paddb xmm3, xmm0
movd xmm0, dword [str.E___GX_]
xorps xmm3, xmm0
movd dword [rbp - 0x29], xmm3
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, xmm5
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, eax
paddb xmm2, xmm0
movd xmm1, dword [rbp - 0x25]
xorps xmm2, xmm1
movd dword [rbp - 0x25], xmm2
mov ecx, 8
movsxd rax, ecx
lea r8, [rbp - 0x29]
add r8, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, 0x4d4873ed
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x35
movzx eax, cl
sub al, dl
add al, 0x30
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0xd
jl 0x180012820
lea rdx, [rbp - 0x19]
lea rcx, [rbp - 0x29]
call fcn.180001f60
mov qword [0x18008a330], rax
lea rcx, [0x18008a360]
call fcn.180027224
mov rax, qword [rdi]
mov rdi, qword [rax + 0xc0]
mov r14, qword [0x18008a330]
mov eax, dword [rsi]
cmp dword [0x18008a370], eax
jle 0x1800128cc
lea rcx, [0x18008a370]
call fcn.180027290
cmp dword [0x18008a370], 0xffffffff
jne 0x1800128cc
lea rcx, [0x18002a978]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18008a380], rax
lea rcx, [0x18008a370]
call fcn.180027224
mov dword [rbp - 9], 0x25ff
mov word [rbp - 5], 0
mov qword [rbp - 3], r14
mov rax, qword [0x18008a2a8]
mov qword [rbp - 0x39], 0xe
lea rcx, [rbp - 0x19]
mov qword [rbp - 0x31], rcx
mov qword [rbp - 0x29], rax
mov rcx, qword [rdi + 0x38]
test rcx, rcx
jne 0x180012908
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rbp - 0x39]
lea r8, [rbp - 0x31]
lea rdx, [rbp - 0x29]
call qword [rax + 0x10]
test al, al
je 0x1800129be
mov rax, qword [0x18008a2a8]
mov qword [rbp - 0x29], 0xe
lea rcx, [rbp - 9]
mov qword [rbp - 0x31], rcx
mov qword [rbp - 0x39], rax
mov rcx, qword [rdi + 0x78]
test rcx, rcx
jne 0x18001294d
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rbp - 0x29]
lea r8, [rbp - 0x31]
lea rdx, [rbp - 0x39]
call qword [rax + 0x10]
test al, al
je 0x1800129be
mov rax, qword [0x18008a380]
mov edx, r15d
xor ecx, ecx
call rax
mov rsi, rax
mov rcx, qword [0x18008a2a8]
mov qword [rbp - 0x29], 0xe
lea rax, [rbp - 0x19]
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x39], rcx
mov rcx, qword [rdi + 0x78]
test rcx, rcx
jne 0x18001299f
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rdx, qword [rcx]
mov r10, qword [rdx + 0x10]
lea r9, [rbp - 0x29]
lea r8, [rbp - 0x31]
lea rdx, [rbp - 0x39]
call r10
test al, al
cmove rsi, rbx
mov rbx, rsi
mov rax, rbx
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.1800271c0
mov rbx, qword [rsp + 0xd0]
movaps xmm6, xmmword [rsp + 0x80]
movaps xmm7, xmmword [rsp + 0x70]
add rsp, 0x90
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rdx, qword [rdx]
add rcx, 8
jmp 0x180012540