Function at 0x140106d10
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0xb8]
sub rsp, 0x190
movaps xmmword [rax - 0x38], xmm6
mov rax, qword [0x14012d010]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov rdi, rdx
mov qword [rsp + 0x68], rdx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rsp + 0x70]
call fcn.14010faca
lea rax, [0x140120058]
mov qword [rsp + 0x70], rax
lea rax, [0x14011ff88]
mov qword [rbp - 0x80], rax
lea rcx, [rbp + 8]
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 r8d, r8d
lea rdx, [rbp - 0x78]
lea rcx, [rsp + 0x70]
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 [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea r12, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x70], r12
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rbp - 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
lea r15, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rbp - 0x78], r15
mov qword [rbp - 0x10], r14
mov dword [rbp - 8], r14d
mov qword [rdi], r14
mov qword [rdi + 0x10], r14
mov qword [rdi + 0x18], 0xf
mov byte [rdi], r14b
mov dword [rsp + 0x20], 3
mov esi, r14d
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov ebx, eax
mov eax, 0x81020409
imul ebx
add edx, ebx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0xfe
sub ebx, eax
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
mov byte [rbp + rcx - 0x28], 0x30
mov edx, 2
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__]
mov rdx, qword [rax + 8]
mov r8, qword [rax]
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
call r8
lea rdx, [0x140051da0]
lea rcx, [rbp - 0x80]
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___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
mov edx, ebx
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___int____ptr64]
cmp esi, 5
je 0x140106ecc
mov ecx, 1
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x2c], 0x82ac
mov eax, r14d
nop dword [rax]
nop word [rax + rax]
mov ecx, eax
lea rdx, [rsp + 0x2c]
add rdx, rcx
lea ecx, [rax - 0x7f]
xor byte [rdx], cl
inc eax
mov ecx, dword [rsp + 0x28]
cmp eax, ecx
jb 0x140106ea0
mov byte [rsp + rcx + 0x2c], 0
lea rdx, [rsp + 0x2c]
lea rcx, [rbp - 0x80]
call fcn.14004f1e0
inc esi
cmp esi, 6
jl 0x140106e04
mov qword [rsp + 0x30], r14
movdqa xmm6, xmmword [0x140120ab0]
movdqu xmmword [rsp + 0x40], xmm6
mov byte [rsp + 0x30], 0
mov dword [rsp + 0x20], 0xb
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov ecx, dword [rbp - 8]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x140106f2b
mov rax, qword [rbp - 0x38]
mov r8, qword [rax]
test r8, r8
je 0x140106f2b
mov rax, qword [rbp - 0x58]
mov rdx, qword [rax]
cmp r8, qword [rbp - 0x10]
cmovb r8, qword [rbp - 0x10]
sub r8, rdx
jmp 0x140106f5c
test cl, 4
jne 0x140106f52
mov rax, qword [rbp - 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140106f52
mov rax, qword [rbp - 0x60]
mov rdx, qword [rax]
mov rax, qword [rbp - 0x28]
movsxd r8, dword [rax]
sub r8, rdx
add r8, rcx
jmp 0x140106f5c
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
test rdx, rdx
je 0x140106f71
lea rcx, [rsp + 0x30]
call fcn.14004efe0
movdqu xmm6, xmmword [rsp + 0x40]
lea rax, [rsp + 0x30]
cmp rdi, rax
je 0x140106fa2
mov rcx, rdi
call fcn.14004ef80
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
movups xmmword [rdi + 0x10], xmm6
movdqa xmm0, xmmword [0x140120ab0]
movdqu xmmword [rsp + 0x40], xmm0
mov byte [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.14004ef80
cmp qword [rdi + 0x18], 0x10
jb 0x140106fbe
mov rcx, qword [rdi]
mov rdx, rcx
mov rbx, rcx
jmp 0x140106fc7
mov rbx, rdi
mov rdx, rdi
mov rcx, rdi
mov rsi, qword [rdi + 0x10]
add rsi, rdx
cmp rcx, rsi
je 0x140106fe6
movsx ecx, byte [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
mov byte [rbx], al
inc rbx
cmp rbx, rsi
jne 0x140106fd3
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], r12
mov rcx, qword [rsp + 0x70]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x98]
mov dword [rsp + rdx + 0x6c], r8d
mov qword [rbp - 0x78], r15
lea rcx, [rbp - 0x78]
call fcn.14010d200
lea rcx, [rbp - 0x78]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x70]
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 + 8]
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 + 0x70]
xor rcx, rsp
call fcn.14010ea20
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret