Function at 0x180031590
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x110
mov rax, qword [0x1802138c0]
xor rax, rsp
mov qword [rsp + 0x100], rax
mov ebp, r8d
mov rsi, rdx
mov r11, rcx
xor r15d, r15d
mov edi, r15d
mov dword [rsp + 0x20], r15d
mov r9d, r15d
lea rbx, [0x1801af4ba]
lea r10, str.MPPLY_LAST_MP_CHAR
nop word [rax + rax]
movzx r8d, byte [r10]
lea edx, [r8 - 0x41]
movzx eax, r8b
or al, 0x20
movzx ecx, al
cmp dl, 0x19
cmova ecx, r8d
movsx eax, cl
add eax, r9d
imul r9d, eax, 0x401
mov eax, r9d
shr eax, 6
xor r9d, eax
inc r10
cmp r10, rbx
jne 0x1800315e0
lea eax, [r9 + r9*8]
mov ecx, eax
shr ecx, 0xb
xor ecx, eax
imul ebx, ecx, 0x8001
lea r14, [r11 + 8]
call fcn.180026500
mov dword [rax + 8], r15d
mov dword [rax + 0x18], r15d
call fcn.180026500
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov dword [rcx + rdx*8], ebx
inc dword [rax + 8]
call fcn.180026500
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov qword [rcx + rdx*8], r14
inc dword [rax + 8]
call fcn.180026500
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov dword [rcx + rdx*8], 1
inc dword [rax + 8]
movabs rcx, 0x767fbc2ac802ef3d
call fcn.1800263a0
call fcn.180026500
lea rdx, str.MPPLY
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x18003177e
lea rdx, str.MP_PLAYING_TIM
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x18003177e
mov edx, dword [r14]
lea rcx, [rsp + 0x68]
call fcn.180031bc0
nop
mov edi, 1
mov dword [rsp + 0x20], edi
lea r9d, [rdi + 1]
lea r8, [0x1801af4dc]
xor edx, edx
mov rcx, rax
call fcn.1800194f0
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x58], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x48], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x58], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
or edi, 8
or edi, 2
mov dword [rsp + 0x20], edi
mov r8d, 1
lea rdx, [0x1801af4d8]
lea rcx, [rsp + 0x48]
call fcn.180031ef0
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x38], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x28], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x38], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
or edi, 0x14
lea r8, [rsp + 0x28]
cmp qword [rsp + 0x40], 0xf
cmova r8, qword [rsp + 0x28]
jmp 0x180031785
lea r8, [0x1801a844c]
mov r9, rsi
lea rdx, str._s_s
lea rcx, [rsp + 0x90]
call fcn.180031a30
test dil, 4
je 0x1800317b0
and edi, 0xfffffffb
lea rcx, [rsp + 0x28]
call fcn.180004250
nop
test dil, 2
je 0x1800317c4
and edi, 0xfffffffd
lea rcx, [rsp + 0x48]
call fcn.180004250
nop
test dil, 1
je 0x1800317d4
lea rcx, [rsp + 0x68]
call fcn.180004250
mov r9d, r15d
lea rcx, [rsp + 0x90]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], r9b
jne 0x1800317e6
lea r11, [rsp + 0x90]
add r11, rax
lea r10, [rsp + 0x90]
cmp r10, r11
je 0x180031846
nop word [rax + rax]
movzx r8d, byte [r10]
lea edx, [r8 - 0x41]
movzx eax, r8b
or al, 0x20
movzx ecx, al
cmp dl, 0x19
cmova ecx, r8d
movsx eax, cl
add eax, r9d
imul r9d, eax, 0x401
mov eax, r9d
shr eax, 6
xor r9d, eax
inc r10
cmp r10, r11
jne 0x180031810
lea ebx, [r9 + r9*8]
call fcn.180026500
mov dword [rax + 8], r15d
mov dword [rax + 0x18], r15d
call fcn.180026500
mov ecx, ebx
shr ecx, 0xb
xor ecx, ebx
imul r8d, ecx, 0x8001
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov dword [rcx + rdx*8], r8d
inc dword [rax + 8]
call fcn.180026500
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov dword [rcx + rdx*8], ebp
inc dword [rax + 8]
call fcn.180026500
mov edx, dword [rax + 8]
mov rcx, qword [rax + 0x10]
mov dword [rcx + rdx*8], 1
inc dword [rax + 8]
movabs rcx, 0xb3271d7ab655b441
call fcn.1800263a0
call fcn.180026500
mov rcx, qword [rsp + 0x100]
xor rcx, rsp
call fcn.180168800
mov rbx, qword [rsp + 0x150]
add rsp, 0x110
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret