Function at 0x1400012b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1530]
mov eax, 0x1630
call fcn.140006fc0
sub rsp, rax
mov rax, qword [0x14000c040]
xor rax, rsp
mov qword [rbp + 0x1520], rax
mov rdi, rdx
xor r12d, r12d
mov dword [rsp + 0x30], r12d
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
mov rsi, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x140001318
mov rsi, qword [rdi]
lea rax, [0x140008c48]
mov qword [rsp + 0x70], rax
lea rcx, [rbp + 0x20]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov ebx, 1
mov dword [rsp + 0x30], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_istream_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 + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rbp - 0x80]
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 [rbp - 0x80], rax
mov byte [rbp - 4], 0
mov byte [rbp - 0xf], 0
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp], r12
mov rax, qword [0x14000ca00]
mov qword [rbp - 0xc], rax
mov qword [rbp - 0x18], r12
lea r8d, [rbx + 0x24]
mov rdx, rsi
lea rcx, [rbp - 0x80]
call fcn.140004ad0
test rax, rax
jne 0x1400013e3
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
add rcx, rax
xor r8d, r8d
lea edx, [rbx + 1]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x6c], edx
cmp qword [rbp], 0
jne 0x140001453
lea rdx, str.Error_opening_file:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140004e10
mov rdx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x140001432
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, rax
call fcn.140005900
mov rcx, rax
lea rdx, [0x140004fe0]
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]
jmp 0x1400018b0
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____cdecl_std::basic_istream_char__struct_std::char_traits_char__::tellg_void____ptr64]
mov r14, qword [rax + 8]
add r14, qword [rax]
lea rcx, [rbp - 0x80]
call fcn.1400047c0
test rax, rax
jne 0x140001496
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
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]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov ecx, eax
movabs rax, 0x5555555555555555
mov qword [rbp + 0x1518], rax
mov qword [rbp + 0x198], rcx
movabs rdx, 0x5851f42d4c957f2d
mov rax, rcx
shr rax, 0x3e
xor rcx, rax
imul rcx, rdx
add rcx, rbx
mov qword [rbp + rbx*8 + 0x198], rcx
inc rbx
cmp rbx, 0x138
jb 0x1400014c2
mov dword [rbp + 0x190], 0x138
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov qword [rsp + 0x60], r12
test r14, r14
je 0x140001576
movabs rax, 0x7fffffffffffffff
cmp r14, rax
ja 0x140001975
cmp r14, 0x1000
jb 0x140001549
lea rcx, [r14 + 0x27]
cmp rcx, r14
jbe 0x14000196f
call fcn.140006188
test rax, rax
je 0x14000189d
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140001554
mov rcx, r14
call fcn.140006188
mov rsi, rax
mov qword [rsp + 0x50], rsi
lea r15, [rsi + r14]
mov qword [rsp + 0x60], r15
mov r8, r14
xor edx, edx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x58], r15
jmp 0x14000157b
mov rsi, qword [rsp + 0x50]
mov r13, r12
mov r12d, 0x40
lea r15, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
nop dword [rax + rax]
xor ebx, ebx
test r14, r14
je 0x1400015cb
nop word [rax + rax]
lea rcx, [rbp + 0x190]
call fcn.140005dd0
mov rcx, rax
mov eax, pe_nt_image_headers64
mul rcx
mov ecx, r12d
and ecx, 0x3f
shr rdx, cl
mov byte [rsi + rbx], dl
inc rbx
cmp rbx, r14
jb 0x1400015a0
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x80]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
mov rdx, rdi
lea rcx, [rbp + 0x80]
call fcn.1400036a0
nop
cmp qword [rbp + 0x108], 0
jne 0x1400016e1
lea rdx, str.Error_opening_file_for_writing:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140004e10
mov rdx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x140001623
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, rax
call fcn.140005900
mov rcx, rax
lea rdx, [0x140004fe0]
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]
nop
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x80], rax
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x7c], edx
mov qword [rbp + 0x88], r15
cmp qword [rbp + 0x108], 0
je 0x1400016b9
mov rax, qword [rbp + 0xa0]
lea rcx, [rbp + 0xf8]
cmp qword [rax], rcx
jne 0x1400016b9
mov rdx, qword [rbp + 0x118]
mov rcx, qword [rbp + 0x110]
mov qword [rax], rcx
mov rax, qword [rbp + 0xc0]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp + 0xd8]
mov dword [rax], edx
cmp byte [rbp + 0x104], 0
je 0x1400016ce
lea rcx, [rbp + 0x88]
call fcn.1400047c0
lea rcx, [rbp + 0x88]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
jmp 0x140001848
mov r8, r14
mov rdx, rsi
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__::write_char_const____ptr64__long_long___int64_____ptr64]
lea rcx, [rbp + 0x88]
call fcn.1400047c0
test rax, rax
jne 0x140001727
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp + 0x80]
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]
lea rdx, str.File_overwritten:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140004e10
mov rdx, rdi
cmp qword [rdi + 0x18], 0xf
jbe 0x140001747
mov rdx, qword [rdi]
mov r8, qword [rdi + 0x10]
mov rcx, rax
call fcn.140005900
lea rdx, str.__Pass
mov rcx, rax
call fcn.140004e10
mov rcx, rax
lea rdx, [r13 + 1]
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_long_long_unsigned___int64_____ptr64]
mov rcx, rax
lea rdx, str._of
call fcn.140004e10
mov rcx, rax
mov edx, 3
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_long_long_unsigned___int64_____ptr64]
mov rcx, rax
lea rdx, [0x140008674]
call fcn.140004e10
mov rcx, rax
lea rdx, [0x140004fe0]
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]
nop
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x80], rax
mov rax, qword [rbp + 0x80]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x7c], edx
mov qword [rbp + 0x88], r15
cmp qword [rbp + 0x108], 0
je 0x140001825
mov rax, qword [rbp + 0xa0]
lea rcx, [rbp + 0xf8]
cmp qword [rax], rcx
jne 0x140001825
mov rdx, qword [rbp + 0x118]
mov rcx, qword [rbp + 0x110]
mov qword [rax], rcx
mov rax, qword [rbp + 0xc0]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp + 0xd8]
mov dword [rax], edx
cmp byte [rbp + 0x104], 0
je 0x14000183a
lea rcx, [rbp + 0x88]
call fcn.1400047c0
lea rcx, [rbp + 0x88]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x90]
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 + 0x128]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
inc r13
cmp r13, 3
jb 0x140001590
test rsi, rsi
mov r15, qword [rsp + 0x60]
je 0x1400018b0
sub r15, rsi
mov rax, rsi
cmp r15, 0x1000
jb 0x1400018a4
add r15, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400018a4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, r15
mov rcx, rsi
call fcn.140006180
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rax
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x6c], edx
lea rax, vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov qword [rbp - 0x80], rax
cmp qword [rbp], 0
je 0x140001911
mov rax, qword [rbp - 0x68]
lea rcx, [rbp - 0x10]
cmp qword [rax], rcx
jne 0x140001911
mov rdx, qword [rbp + 0x10]
mov rcx, qword [rbp + 8]
mov qword [rax], rcx
mov rax, qword [rbp - 0x48]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rbp - 0x30]
mov dword [rax], edx
cmp byte [rbp - 4], 0
je 0x140001920
lea rcx, [rbp - 0x80]
call fcn.1400047c0
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]
nop
lea rcx, [rbp - 0x78]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_istream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp + 0x20]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rcx, qword [rbp + 0x1520]
xor rcx, rsp
call fcn.140006160
lea r11, [rsp + 0x1630]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140001110
nop
call fcn.1400058e0
int3