Function at 0x18000a7d0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x138]
sub rsp, 0x210
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
movaps xmmword [rax - 0x68], xmm9
mov rax, qword [0x18025cbc0]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov edi, edx
mov rsi, rcx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
lea r15, [rcx + 0x88]
mov qword [rbp - 0x70], r15
mov rcx, r15
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov byte [rbp - 0x68], 1
mov eax, dword [rsi + 0x80]
cmp edi, eax
jne 0x18000ae09
cmp edi, dword [rsi + 4]
jae 0x18000ae09
inc eax
mov dword [rsi + 0x80], eax
mov r8d, 2
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.18000a500
movzx eax, word [rsp + 0x30]
movzx r14d, ax
ror r14w, 8
mov edx, dword [rsi + 8]
mov ecx, edx
shr rcx, 0x18
lea r13, [0x180000000]
shl edx, 8
xor edx, dword [r13 + rcx*4 + 0x15c4b0]
movzx ecx, al
xor edx, ecx
mov eax, edx
shr rax, 0x18
shl edx, 8
xor edx, dword [r13 + rax*4 + 0x15c4b0]
movzx eax, byte [rsp + 0x31]
xor edx, eax
mov dword [rsi + 8], edx
movzx ebx, r14w
mov rax, qword [rsi + 0x30]
sub rax, qword [rsi + 0x28]
cmp rbx, rax
jbe 0x18000a8d4
mov edx, ebx
lea rcx, [rsi + 0x28]
call fcn.18000b680
mov r8, rbx
mov rdx, qword [rsi + 0x28]
mov rcx, rsi
call fcn.18000a500
mov edx, dword [rsi + 8]
mov r10, qword [rsi + 0x28]
movzx r8d, r14w
test r8d, r8d
je 0x18000a924
mov rdi, r12
nop word [rax + rax]
mov eax, edx
shr rax, 0x18
movzx ecx, byte [rdi + r10]
xor ecx, dword [r13 + rax*4 + 0x15c4b0]
mov eax, edx
shl eax, 8
mov edx, ecx
xor edx, eax
inc rdi
cmp rdi, r8
jl 0x18000a900
mov dword [rsi + 8], edx
lea rcx, [rsi + 0x40]
mov rax, qword [rsi + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsi + 0xac]
mov rdx, r10
call fcn.18000d930
lea r13, [rsi + 0x10]
mov r8, qword [rsi + 0x50]
mov r9, qword [rsi + 0x58]
sub r9, r8
sar r9, 1
mov rdx, qword [rsi + 0x18]
mov rcx, r13
call fcn.180003490
mov edx, dword [rsi + 0x80]
cmp edx, dword [rsi + 0xd4]
jne 0x18000aa98
mov qword [rsp + 0x40], 0xffffffffffffffff
mov eax, dword [rsi + 0xb4]
test al, 3
jne 0x18000ae8e
shr eax, 2
mov dword [rsp + 0x34], eax
lea r15d, [rax + rax]
mov r14d, r12d
test r15d, r15d
je 0x18000aa75
movsd xmm7, qword [0x18015d578]
movsd xmm8, qword [0x18015d570]
movsd xmm9, qword [0x18015d580]
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x30], eax
mov rbx, r12
mov edi, r12d
mov r12d, dword [rsi + 0xa8]
mov eax, dword [rsi + 0xac]
xorps xmm6, xmm6
cvtsi2sd xmm6, rax
mov r13, qword [r13]
nop dword [rax]
nop word [rax + rax]
movd xmm0, edi
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm7
divsd xmm0, xmm6
mulsd xmm0, xmm8
call sub.api_ms_win_crt_math_l1_1_0.dll_sin
mulsd xmm0, xmm9
cvttsd2si ecx, xmm0
lea eax, [rdi + r14]
imul eax, r12d
movsx edx, word [r13 + rax*2]
movsx eax, cx
sub edx, eax
imul edx, edx
movsxd rax, edx
add rbx, rax
inc edi
cmp edi, r15d
jb 0x18000a9f0
cmp rbx, qword [rsp + 0x40]
jae 0x18000aa4b
mov qword [rsp + 0x40], rbx
mov ecx, r14d
mov dword [rsp + 0x30], ecx
jmp 0x18000aa4f
mov ecx, dword [rsp + 0x30]
inc r14d
cmp r14d, r15d
lea r13, [rsi + 0x10]
mov r12d, 0
jb 0x18000a9c3
lea r13, [rsi + 0x10]
mov eax, dword [rsp + 0x34]
mov edx, dword [rsi + 0x80]
jmp 0x18000aa79
mov ecx, dword [rsp + 0x34]
sub ecx, eax
mov dword [rsi + 0xc], ecx
mov eax, ecx
neg eax
cmovs eax, ecx
cmp eax, dword [rsi + 0xac]
ja 0x18000ae55
lea r15, [rsi + 0x88]
cmp edx, dword [rsi + 4]
jne 0x18000ae09
mov ecx, dword [rsi + 8]
mov eax, ecx
shr rax, 0x18
shl ecx, 8
lea rdx, [0x180000000]
xor ecx, dword [rdx + rax*4 + 0x15c8b0]
mov eax, ecx
shr rax, 0x18
shl ecx, 8
xor ecx, dword [rdx + rax*4 + 0x15c8b0]
mov eax, ecx
shr rax, 0x18
shl ecx, 8
xor ecx, dword [rdx + rax*4 + 0x15c8b0]
mov eax, ecx
shr rax, 0x18
shl ecx, 8
xor ecx, dword [rdx + rax*4 + 0x15c8b0]
mov dword [rsi + 8], ecx
cmp ecx, dword [rsi + 0xcc]
je 0x18000ad9f
lea rax, [rdx + 0x15bf00]
mov qword [rbp - 0x60], rax
lea rax, [0x18015bf08]
mov qword [rbp - 0x50], rax
lea rcx, [rbp + 0x38]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x30], 1
xor r8d, r8d
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x60]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
nop
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x60], rax
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x64], edx
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp - 0x48], rax
mov qword [rbp + 0x20], r12
mov dword [rbp + 0x28], r12d
lea rdx, str.mua_crc_verification_failure:
lea rcx, [rbp - 0x50]
call fcn.180002a10
mov edx, dword [rsi + 0xcc]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int____ptr64]
mov rcx, rax
lea rdx, str._saved_in_mua_file__but
call fcn.180002a10
mov edx, dword [rsi + 8]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int____ptr64]
mov rcx, rax
lea rdx, str._calculated
call fcn.180002a10
call sym.libMilody.dll_public:_static_class_milody::log::MilodyLogger____ptr64___cdecl_milody::log::MilodyLogger::getInstance_void_
mov rcx, rax
call sym.libMilody.dll_public:_class_spdlog::logger____ptr64___cdecl_milody::log::MilodyLogger::getLogger_void_const___ptr64
mov r14, rax
xorps xmm0, xmm0
movups xmmword [rbp + 0xa0], xmm0
movdqa xmm1, xmmword [0x18015d590]
movdqu xmmword [rbp + 0xb0], xmm1
mov byte [rbp + 0xa0], 0
mov dword [rsp + 0x30], 5
xor eax, eax
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rax
mov ecx, dword [rbp + 0x28]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x18000ac55
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x18000ac52
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbase_void_const___ptr64]
mov rbx, rax
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov rdi, rax
cmp rax, qword [rbp + 0x20]
cmovb rdi, qword [rbp + 0x20]
sub rdi, rbx
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
jmp 0x18000ac92
mov ecx, dword [rbp + 0x28]
test cl, 4
jne 0x18000ac88
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
test rax, rax
je 0x18000ac88
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
mov rbx, rax
lea rcx, [rbp - 0x48]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::egptr_void_const___ptr64]
mov rdi, rax
sub rdi, rbx
jmp 0x18000ac92
mov rdi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
test rbx, rbx
je 0x18000acaa
mov r8, rdi
mov rdx, rbx
lea rcx, [rbp + 0xa0]
call fcn.180007940
nop
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x60], r12
lea rax, [0x18015ce60]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], 2
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0x70], xmm1
movsd xmm0, qword [rsp + 0x60]
movsd qword [rbp - 0x80], xmm0
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x40]
mov r8d, 4
lea rdx, [rsp + 0x70]
mov rcx, r14
call fcn.180005040
nop
mov rdx, qword [rbp + 0xb8]
cmp rdx, 0xf
jbe 0x18000ad5c
inc rdx
mov rcx, qword [rbp + 0xa0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18000ad56
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18000ad56
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180150e98
nop
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp + rcx - 0x60], rax
mov rax, qword [rbp - 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rbp + rcx - 0x64], edx
lea rcx, [rbp - 0x48]
call fcn.1800068a0
lea rcx, [rbp - 0x40]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x38]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov word [rsp + 0x30], r12w
mov rbx, qword [r13 + 8]
mov rdi, qword [r13]
mov rcx, rbx
sub rcx, rdi
sar rcx, 1
mov edx, dword [rsi + 0xac]
add rdx, rcx
cmp rdx, rcx
jae 0x18000adce
lea rax, [rdi + rdx*2]
mov qword [r13 + 8], rax
jmp 0x18000ae09
jbe 0x18000ae09
mov rax, qword [r13 + 0x10]
sub rax, rdi
sar rax, 1
cmp rdx, rax
jbe 0x18000adee
lea r8, [rsp + 0x30]
mov rcx, r13
call fcn.180003e80
jmp 0x18000ae09
sub rdx, rcx
lea rdi, [rdx + rdx]
mov r8, rdi
xor edx, edx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
add rbx, rdi
mov qword [r13 + 8], rbx
mov rcx, r15
call fcn.18015073c
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.180151320
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
movaps xmm9, xmmword [r11 - 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rdx, str.Offset_Too_Big
lea rcx, [rbp + 0xa0]
call fcn.180005d10
mov r8, rax
mov rdx, 0xfffffffffffffff9
lea rcx, [rsp + 0x70]
call fcn.1800060a0
lea rdx, [0x180246ae8]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.Pad_Sn_Error2
lea rcx, [rbp + 0xa0]
call fcn.180005d10
mov r8, rax
mov rdx, 0xfffffffffffffffa
lea rcx, [rsp + 0x70]
call fcn.1800060a0
lea rdx, [0x180246ae8]
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll__CxxThrowException
int3