Function at 0x1800513b0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
push rbp
lea rbp, [rax - 0x98]
sub rsp, 0x190
movaps xmmword [rax - 0x18], xmm6
mov rax, qword [0x180148040]
xor rax, rsp
mov qword [rbp + 0x70], rax
xor edi, edi
mov dword [rsp + 0x20], edi
xor edx, edx
mov r8d, 0xe8
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp - 0x80]
call fcn.1800520f0
nop
movups xmm0, xmmword [0x180121e48]
movups xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [0x180121e58]
movups xmmword [rsp + 0x50], xmm1
movzx eax, word [0x180121e68]
mov word [rsp + 0x60], ax
movzx eax, byte [0x180121e6a]
mov byte [rsp + 0x62], al
mov ecx, edi
cmp dword [0x180148090], 2
jl 0x180051557
movdqa xmm4, xmmword [0x18012e100]
movdqa xmm3, xmmword [0x18012e5f0]
movdqa xmm5, xmmword [str.555566668888]
movdqa xmm0, xmmword [0x18012e230]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x44]
movdqa xmm6, xmmword [0x18012e1e0]
mov r8d, dword [rsp + 0x30]
movd xmm2, ecx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 4]
xorps xmm2, xmm0
movd dword [rdx - 4], xmm2
lea eax, [rcx + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx]
xorps xmm2, xmm0
movd dword [rdx], xmm2
add ecx, 8
lea rdx, [rdx + 8]
cmp ecx, 0x20
jl 0x180051473
cmp ecx, 0x23
jge 0x18005159c
movsxd rax, ecx
lea r8, [rsp + 0x40]
add r8, rax
nop dword [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, 0x23
jl 0x180051570
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x80]
call fcn.1800527f0
mov dl, 1
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___bool____ptr64]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rdi
mov r8d, 7
mov qword [rsp + 0x58], r8
mov word [rsp + 0x40], di
mov dword [rsp + 0x20], 2
movups xmmword [rsp + 0x68], xmm0
mov rcx, rdi
mov r9, qword [rbp - 8]
mov eax, r9d
and al, 0x22
cmp al, 2
je 0x180051620
mov rax, qword [rbp - 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x180051620
mov rax, qword [rbp - 0x58]
mov r9, qword [rax]
cmp rdx, qword [rbp - 0x10]
cmovb rdx, qword [rbp - 0x10]
sub rdx, r9
sar rdx, 1
mov rcx, r9
jmp 0x180051659
test r9b, 4
jne 0x18005168d
mov rax, qword [rbp - 0x40]
mov r10, qword [rax]
mov rdx, rdi
test r10, r10
je 0x180051654
mov rax, qword [rbp - 0x60]
mov r9, qword [rax]
mov rax, qword [rbp - 0x28]
movsxd rdx, dword [rax]
add rdx, rdx
sub rdx, r9
add rdx, r10
sar rdx, 1
mov rcx, r9
jmp 0x180051659
mov r9, qword [rsp + 0x68]
test rcx, rcx
je 0x18005168d
lea rcx, [rsp + 0x40]
cmp rdx, r8
ja 0x180051683
mov qword [rsp + 0x50], rdx
lea rbx, [rdx + rdx]
mov r8, rbx
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov word [rsp + rbx + 0x40], di
jmp 0x180051688
call fcn.18002b570
mov r8, qword [rsp + 0x58]
mov qword [rsp + 0x30], rdi
lea rax, [rsp + 0x40]
mov rdx, qword [rsp + 0x40]
cmp r8, 7
cmova rax, rdx
mov rbx, 0xffffffffffffffff
cmp word [rax], 0
je 0x1800516d0
lea rcx, [rsp + 0x40]
cmp r8, 7
cmova rcx, rdx
mov rax, rbx
inc rax
cmp word [rcx + rax*2], 0
jne 0x1800516c1
inc rax
jmp 0x1800516d3
mov rax, rdi
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x3c], eax
lea rcx, [rsp + 0x40]
test eax, eax
je 0x1800516f6
lea rax, [rsp + 0x40]
cmp r8, 7
cmova rax, rdx
mov qword [rsp + 0x30], rax
call fcn.18002d480
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call fcn.1800d5c90
mov eax, dword [0x180121e40]
mov dword [rsp + 0x20], eax
movzx eax, word [0x180121e44]
mov ecx, 0x20
mov word [rsp + 0x20], cx
xor word [rsp + 0x22], 0x31
xor ax, 0x32
mov word [rsp + 0x24], ax
lea rax, [rsp + 0x20]
nop
inc rbx
cmp word [rax + rbx*2], 0
jne 0x180051740
inc rbx
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x3c], ebx
lea rax, [rsp + 0x20]
test ebx, ebx
cmove rax, rdi
mov qword [rsp + 0x30], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call fcn.1800d5c90
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov qword [rbp + rcx - 0x80], rax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x7c], edx
lea rcx, [rbp - 0x78]
call fcn.180052020
lea rcx, [rbp - 0x70]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
lea rcx, [rbp + 8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void____ptr64]
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.1800ec360
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rbp
ret