Function at 0x180015850
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x78
mov rax, qword [0x180050040]
xor rax, rsp
mov qword [rbp - 0x18], rax
mov r13, r9
mov r12, r8
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 [0x18008a340], eax
jle 0x180012c1c
lea rcx, [0x18008a340]
call fcn.180027290
cmp dword [0x18008a340], 0xffffffff
jne 0x180012c1c
mov eax, dword [str._T_PDL6]
mov dword [rbp - 0x58], eax
movzx ecx, word [0x18004ae8c]
mov word [rbp - 0x54], cx
movzx eax, byte [0x18004ae8e]
mov byte [rbp - 0x58], 0x6d
xor byte [rbp - 0x57], 0x31
xor byte [rbp - 0x56], 0x32
xor byte [rbp - 0x55], 0x33
xor cl, 0x34
mov byte [rbp - 0x54], cl
xor byte [rbp - 0x53], 0x35
xor al, 0x36
mov byte [rbp - 0x52], al
movsd xmm0, qword [str.E___GX_]
movsd qword [rbp - 0x48], xmm0
mov eax, dword [0x18004acc8]
mov dword [rbp - 0x40], eax
movzx eax, byte [0x18004accc]
mov byte [rbp - 0x3c], al
mov ecx, ebx
cmp dword [0x180050090], 2
jl 0x180012bbd
movdqa xmm4, xmmword [0x18004b270]
movdqa xmm2, xmmword [0x18004b1c0]
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, xmmword [0x18004b1e0]
psubd xmm2, xmm0
andps xmm2, xmmword [0x18004b210]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x18004b250]
movd xmm0, dword [str.E___GX_]
xorps xmm2, xmm0
movd dword [rbp - 0x48], xmm2
movdqa xmm2, xmmword [0x18004b1d0]
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, xmmword [0x18004b1e0]
psubd xmm2, xmm0
andps xmm2, xmmword [0x18004b210]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x18004b250]
movd xmm0, dword [rbp - 0x44]
xorps xmm2, xmm0
movd dword [rbp - 0x44], xmm2
mov ecx, 8
movsxd rax, ecx
lea r8, [rbp - 0x48]
add r8, rax
nop word [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 0x180012bd0
lea rdx, [rbp - 0x58]
lea rcx, [rbp - 0x48]
call fcn.180001f60
mov qword [0x18008a328], rax
lea rcx, [0x18008a340]
call fcn.180027224
mov rax, qword [rdi]
mov rdi, qword [rax + 0xc0]
mov r14, qword [0x18008a328]
mov eax, dword [rsi]
cmp dword [0x18008a2f8], eax
jle 0x180012c7c
lea rcx, [0x18008a2f8]
call fcn.180027290
cmp dword [0x18008a2f8], 0xffffffff
jne 0x180012c7c
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 [0x18008a2b8], rax
lea rcx, [0x18008a2f8]
call fcn.180027224
mov dword [rbp - 0x38], 0x25ff
mov word [rbp - 0x34], 0
mov qword [rbp - 0x32], r14
mov rax, qword [0x18008a2a8]
mov qword [rbp - 0x58], 0xe
lea rcx, [rbp - 0x28]
mov qword [rbp - 0x50], rcx
mov qword [rbp - 0x48], rax
mov rcx, qword [rdi + 0x38]
test rcx, rcx
jne 0x180012cb8
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rbp - 0x58]
lea r8, [rbp - 0x50]
lea rdx, [rbp - 0x48]
call qword [rax + 0x10]
test al, al
je 0x180012d72
mov rax, qword [0x18008a2a8]
mov qword [rbp - 0x48], 0xe
lea rcx, [rbp - 0x38]
mov qword [rbp - 0x50], rcx
mov qword [rbp - 0x58], rax
mov rcx, qword [rdi + 0x78]
test rcx, rcx
jne 0x180012cfd
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xbad_function_call_void_]
int3
mov rax, qword [rcx]
lea r9, [rbp - 0x48]
lea r8, [rbp - 0x50]
lea rdx, [rbp - 0x58]
call qword [rax + 0x10]
test al, al
je 0x180012d72
mov rax, qword [0x18008a2b8]
mov r8, r13
mov rdx, r12
mov rcx, r15
call rax
mov rsi, rax
mov rcx, qword [0x18008a2a8]
mov qword [rbp - 0x48], 0xe
lea rax, [rbp - 0x28]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x58], rcx
mov rcx, qword [rdi + 0x78]
test rcx, rcx
jne 0x180012d53
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 - 0x48]
lea r8, [rbp - 0x50]
lea rdx, [rbp - 0x58]
call r10
test al, al
cmove rsi, rbx
mov rbx, rsi
mov rax, rbx
mov rcx, qword [rbp - 0x18]
xor rcx, rsp
call fcn.1800271c0
add rsp, 0x78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
mov r9, qword [r9]
add rcx, 8
mov r8, qword [r8]
mov rdx, qword [rdx]
jmp 0x180012a00