Function at 0x18002c860
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov rax, qword [0x18024d000]
xor rax, rsp
mov qword [rbp + 0xe8], rax
mov rsi, rcx
xor r12d, r12d
mov dword [rsp + 0x38], r12d
lea rbx, [rcx + 0x30]
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x18002c8ae
mov rdx, qword [rbx]
mov byte [rbp + 0x90], 0xfa
mov byte [rbp + 0x91], 0xcb
mov byte [rbp + 0x92], 0xdd
mov byte [rbp + 0x93], 0xc5
mov byte [rbp + 0x94], 0xc3
mov byte [rbp + 0x95], 0xc9
mov byte [rbp + 0x96], 0x8f
mov byte [rbp + 0x97], 0xd3
mov byte [rbp + 0x98], 0xde
mov byte [rbp + 0x99], 0xdc
mov byte [rbp + 0x9a], 0xd5
mov byte [rbp + 0x9b], 0xdd
mov byte [rbp + 0x9c], 0xd2
mov byte [rbp + 0x9d], 0x96
mov byte [rbp + 0x9e], 0x92
mov byte [rbp + 0x9f], 0xcb
xor eax, eax
mov byte [rbp + 0xa0], al
movzx eax, byte [rbp + 0x90]
mov r8d, r12d
lea r9, [rbp + 0x90]
nop word [rax + rax]
lea ecx, [r8 - 0x57]
movzx eax, byte [r9]
xor cl, al
movsxd rax, r8d
mov byte [rbp + rax + 0x90], cl
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x10
jb 0x18002c940
mov byte [rbp + 0xa0], r12b
lea rcx, [rbp + 0x90]
call fcn.1800e5ab0
mov rdi, qword [rsi + 0x40]
add rdi, qword [rsi + 0x10]
lea rcx, [rdi + 0x14]
call fcn.1800eb91c
mov r14, rax
cmp qword [rbx + 0x18], 0xf
jbe 0x18002c992
mov rbx, qword [rbx]
lea rcx, [rbp + 0xa8]
call fcn.1800e7c50
cmp qword [rax + 0x18], 0xf
jbe 0x18002c9a8
mov rax, qword [rax]
mov r9, rsi
cmp qword [rsi + 0x18], 7
jbe 0x18002c9b5
mov r9, qword [rsi]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
lea r8, str._S_sConfigs_s.h
lea rdx, [rdi + 0x14]
mov rcx, r14
call fcn.18002fbd0
mov rdx, qword [rbp + 0xc0]
cmp rdx, 0xf
jbe 0x18002ca16
inc rdx
mov rcx, qword [rbp + 0xa8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002ca11
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18002ca11
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800eb440
lea rdx, [rsi + 0x20]
mov rcx, qword [0x180251378]
call fcn.180051600
xorps xmm0, xmm0
movups xmmword [rbp + 0xc8], xmm0
mov qword [rbp + 0xe0], 0xf
mov rax, qword [0x180250af8]
movzx edx, byte [rax + 0x20]
mov qword [rbp + 0xd8], 1
mov byte [rbp + 0xc8], dl
mov byte [rbp + 0xc9], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
lea rdx, [rbp + 0xc8]
lea rcx, [rsp + 0x50]
call fcn.1800159f0
mov rbx, rax
lea rdx, str.prefix
lea rcx, [rsi + 0x20]
call fcn.180015c20
mov rcx, rax
mov rdx, rbx
call fcn.180023f80
lea rax, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rcx, [rbp + 0xa8]
call fcn.180035350
mov rbx, rax
mov byte [rsp + 0x40], 0
xor eax, eax
mov qword [rsp + 0x48], rax
xor edx, edx
lea rcx, [rsp + 0x48]
call fcn.180025e60
mov byte [rsp + 0x40], 2
mov rdi, qword [rbx + 8]
mov r15, qword [rbx]
mov ecx, 0x18
call fcn.1800eb404
mov rbx, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x78], rbx
mov qword [rbx], r12
mov qword [rbx + 8], r12
mov qword [rbx + 0x10], r12
mov rdx, rdi
sub rdx, r15
sar rdx, 5
test rdx, rdx
je 0x18002cb2a
mov rcx, rbx
call fcn.180024b20
mov qword [rsp + 0x50], rbx
mov r9, rbx
mov r8, qword [rbx]
mov rdx, rdi
mov rcx, r15
call fcn.180018620
mov qword [rbx + 8], rax
mov qword [rsp + 0x48], rbx
lea rcx, [rsi + 0x20]
lea rdx, str.friends
call fcn.180015c20
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.180023f80
nop
mov rcx, qword [rbp + 0xa8]
test rcx, rcx
je 0x18002cbae
lea r8, [rbp + 0xa8]
mov rdx, qword [rbp + 0xb0]
call fcn.180002310
mov rdx, qword [rbp + 0xb8]
mov rcx, qword [rbp + 0xa8]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002cba9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18002cba9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800eb440
lea rax, [0x1800f9be0]
mov qword [rsp + 0x60], 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 + 0x38], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x60]
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 + 0x60]
movsxd rcx, dword [rax + 4]
lea r15, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x60], r15
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x68]
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_filebuf_char__struct_std::char_traits_char__.0
mov qword [rsp + 0x68], rax
mov byte [rbp - 0x1c], 0
mov byte [rbp - 0x27], 0
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 0x18], r12
mov rax, qword [0x180250dd0]
mov qword [rbp - 0x24], rax
mov qword [rbp - 0x30], r12
mov r9d, 0x40
lea r8d, [r9 - 0x1e]
mov rdx, r14
lea rcx, [rsp + 0x68]
call fcn.18002b400
test rax, rax
jne 0x18002cc84
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x60]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov edx, 4
lea rcx, [rbp + 0x80]
call sub.MSVCP140.dll_struct_std::_Smanip_long_long___int64_____cdecl_std::setw_long_long___int64__
mov r8, qword [rax]
mov rcx, qword [rsp + 0x60]
movsxd rdx, dword [rcx + 4]
lea rcx, [rsp + 0x60]
add rcx, rdx
mov rdx, qword [rax + 8]
call r8
lea rdx, [rsi + 0x20]
lea rcx, [rsp + 0x60]
call fcn.180024080
lea rdx, [0x18001a180]
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___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rcx, [rsp + 0x60]
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__::flush_void____ptr64]
lea rcx, [rsp + 0x68]
cmp qword [rbp - 0x18], 0
je 0x18002cd5f
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rbp - 0x28]
cmp rax, rcx
jne 0x18002cd0a
mov r9, qword [rbp - 8]
mov rdx, qword [rbp - 0x10]
mov r8, rdx
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
lea rcx, [rsp + 0x68]
call fcn.180024d40
lea rbx, [rsp + 0x68]
test al, al
cmove rbx, r12
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, r12
test eax, eax
cmove rdi, rbx
mov byte [rbp - 0x1c], 0
mov byte [rbp - 0x27], 0
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 0x18], r12
mov rax, qword [0x180250dd0]
mov qword [rbp - 0x24], rax
mov qword [rbp - 0x30], r12
test rdi, rdi
jne 0x18002cd9e
jmp 0x18002cd80
mov byte [rbp - 0x1c], 0
mov byte [rbp - 0x27], 0
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 0x18], r12
mov rax, qword [0x180250dd0]
mov qword [rbp - 0x24], rax
mov qword [rbp - 0x30], r12
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x60]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rcx, r14
call fcn.1800eb440
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x60], r15
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x68]
call fcn.180023780
lea rcx, [rsp + 0x70]
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 + 8]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
mov rdx, qword [rbp + 0xe0]
cmp rdx, 0xf
jbe 0x18002ce2c
inc rdx
mov rcx, qword [rbp + 0xc8]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18002ce27
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18002ce27
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1800eb440
mov rcx, qword [rbp + 0xe8]
xor rcx, rsp
call fcn.1800eb8d0
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret