Function at 0x140006d10
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x58]
sub rsp, 0x158
mov rax, qword [0x140012040]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov r14, r9
mov r13, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
mov r15, qword [rbp + 0xc0]
mov rsi, qword [rbp + 0xc8]
mov r12, qword [rbp + 0xd0]
mov dword [rsp + 0x20], 0
xor edx, edx
mov r8d, 0xe8
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x14000c370]
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x28]
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 + 0x20], 2
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x4c], edx
lea rcx, [rsp + 0x58]
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 [rsp + 0x58], rax
mov qword [rbp - 0x40], 0
mov dword [rbp - 0x38], 4
cmp byte [rbx + 0xc], 0
je 0x140006e23
xor eax, eax
nop dword [rax]
nop word [rax + rax]
lea ecx, [rax + 0x4d]
xor byte [rbx + rax], cl
inc rax
cmp rax, 0xb
jb 0x140006e10
mov byte [rbx + 0xc], 0
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140006b00
mov r8, qword [r13 + 0x10]
cmp qword [r13 + 0x18], 0xf
jbe 0x140006e3f
mov r13, qword [r13]
mov rdx, r13
lea rcx, [rsp + 0x50]
call fcn.140007190
cmp byte [r14 + 2], 0
je 0x140006e5c
xor byte [r14], 0x4d
mov byte [r14 + 2], 0
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.140006b00
mov r8, qword [r15 + 0x10]
cmp qword [r15 + 0x18], 0xf
jbe 0x140006e77
mov r15, qword [r15]
mov rdx, r15
lea rcx, [rsp + 0x50]
call fcn.140007190
cmp byte [rsi + 2], 0
je 0x140006e91
xor byte [rsi], 0x4d
mov byte [rsi + 2], 0
mov rdx, rsi
lea rcx, [rsp + 0x50]
call fcn.140006b00
mov r8, qword [r12 + 0x10]
cmp qword [r12 + 0x18], 0xf
jbe 0x140006eaf
mov r12, qword [r12]
mov rdx, r12
lea rcx, [rsp + 0x50]
call fcn.140007190
nop
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
xor eax, eax
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], 0xf
mov byte [rdi], al
mov dword [rsp + 0x20], 0xa
mov ecx, dword [rbp - 0x38]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140006f05
mov rax, qword [rbp - 0x68]
mov rbx, qword [rax]
test rbx, rbx
je 0x140006f05
mov rax, qword [rsp + 0x78]
mov r9, qword [rax]
cmp rbx, qword [rbp - 0x40]
cmovb rbx, qword [rbp - 0x40]
jmp 0x140006f28
test cl, 4
jne 0x140006f5a
mov rax, qword [rbp - 0x70]
mov rcx, qword [rax]
test rcx, rcx
je 0x140006f5a
mov rax, qword [rsp + 0x70]
mov r9, qword [rax]
mov rax, qword [rbp - 0x58]
movsxd rbx, dword [rax]
add rbx, rcx
mov rax, r9
sub rbx, r9
test rax, rax
je 0x140006f5a
mov rcx, rdi
cmp rbx, 0xf
ja 0x140006f51
mov qword [rdi + 0x10], rbx
mov r8, rbx
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov byte [rdi + rbx], 0
jmp 0x140006f5a
mov rdx, rbx
call fcn.140007350
nop
mov rcx, qword [rsp + 0x50]
movsxd rdx, dword [rcx + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rdx + 0x50], rax
mov rcx, qword [rsp + 0x50]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x88]
mov dword [rsp + rdx + 0x4c], r8d
lea rcx, [rsp + 0x58]
call fcn.1400060e0
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x28]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rax, rdi
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.140007f50
add rsp, 0x158
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret