Function at 0x140006720
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x90]
sub rsp, 0x190
mov rax, qword [0x14008f080]
xor rax, rsp
mov qword [rbp + 0x80], rax
xor r15d, r15d
mov ebx, r15d
mov dword [rsp + 0x48], ebx
lea rdx, str.Do_you_want_to_load_the_key_from_file___y_n_:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000a450
lea rdx, [rsp + 0x40]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.14000a8b0
movzx eax, byte [rsp + 0x40]
sub al, 0x59
lea rsi, [0x1400d38a0]
test al, 0xdf
je 0x1400067ee
xor r14b, r14b
xor dil, dil
test bl, 1
je 0x140006855
and ebx, 0xfffffffe
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x140006855
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006850
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006850
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov r14b, 1
mov rdi, qword [0x1400d38b0]
mov rbx, rsi
cmp qword [0x1400d38b8], 0xf
cmova rbx, qword [0x1400d38a0]
call fcn.14006fb84
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rdi
lea r8, [rsp + 0x20]
mov edx, eax
lea rcx, [rsp + 0x50]
call fcn.140001fc0
nop
mov ebx, 7
mov dword [rsp + 0x48], ebx
lea rcx, [rsp + 0x50]
call fcn.1400029d0
test al, al
je 0x14000679b
movzx edi, r14b
jmp 0x14000679e
call fcn.140070768
test dil, dil
je 0x1400069ee
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
cmp qword [0x1400d38b8], 0xf
cmova rsi, qword [0x1400d38a0]
lea rax, [0x140000000]
lea rax, [rax + 0x82dc0]
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
or ebx, 8
mov dword [rsp + 0x48], 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 rbx, vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rbx
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], r15
mov rax, qword [0x1400d3ba8]
mov qword [rbp - 0xc], rax
mov qword [rbp - 0x18], r15
mov r8d, 1
mov rdx, rsi
lea rcx, [rbp - 0x80]
call fcn.14000a040
test rax, rax
jne 0x140006953
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]
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], rbx
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x6c], edx
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x70]
add rcx, rax
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rcx, [rsp + 0x70]
call fcn.14000c260
lea rdx, str.Checking_Key...
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000a450
lea rdx, [0x14000a6f0]
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 rdx, [0x1400d27d0]
lea rcx, [rsp + 0x50]
call fcn.1400098e0
mov rdx, rax
lea rcx, [0x1400d38f0]
call fcn.14001b670
nop
lea rcx, [rsp + 0x70]
call fcn.140007160
jmp 0x14000712c
lea rdx, str.___n__________________________________________________________________________________n______________________________________________________________________________n______________________________________________________________________n_________________________________________________________________________n_________________________________________________________________________n________________________________________________________________________n___________________________________________________________________________n_________________________________________________________________________n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000a450
xor edx, edx
mov cl, 0x5b
call fcn.1400035d0
movzx r15d, al
mov byte [rsp + 0x20], al
mov edx, 1
mov cl, 0x2b
call fcn.1400035d0
movzx edi, al
mov byte [rsp + 0x21], al
mov edx, 2
mov cl, 0x5d
call fcn.1400035d0
movzx r12d, al
mov byte [rsp + 0x22], al
mov edx, 3
mov cl, reloc.WLDAP32.dll_Ordinal_32
call fcn.1400035d0
movzx r13d, al
mov byte [rsp + 0x23], al
mov edx, 4
mov cl, 0x50
call fcn.1400035d0
mov byte [rsp + 0x24], al
mov edx, 5
mov cl, WSAStartup
call fcn.1400035d0
mov byte [rsp + 0x25], al
mov edx, 6
mov cl, reloc.WS2_32.dll_WSAGetLastError
call fcn.1400035d0
mov byte [rsp + 0x26], al
mov edx, 7
mov cl, 0x64
call fcn.1400035d0
mov byte [rsp + 0x27], al
mov edx, 8
mov cl, 0x75
call fcn.1400035d0
mov byte [rsp + 0x28], al
mov edx, 9
mov cl, 0x63
call fcn.1400035d0
mov byte [rsp + 0x29], al
mov edx, 0xa
mov cl, reloc.WS2_32.dll_WSACleanup
call fcn.1400035d0
mov byte [rsp + 0x2a], al
mov edx, listen
mov cl, 0x3a
call fcn.1400035d0
mov byte [rsp + 0x2b], al
mov edx, listen
mov cl, reloc.WLDAP32.dll_Ordinal_32
call fcn.1400035d0
mov byte [rsp + 0x2c], al
mov edx, reloc.WS2_32.dll_listen
mov cl, 0x4d
call fcn.1400035d0
mov byte [rsp + 0x2d], al
mov edx, reloc.WS2_32.dll_ntohl
mov cl, 0x57
call fcn.1400035d0
mov byte [rsp + 0x2e], al
mov edx, reloc.WS2_32.dll_ntohs
mov cl, reloc.WLDAP32.dll_Ordinal_50
call fcn.1400035d0
mov byte [rsp + 0x2f], al
mov edx, reloc.WS2_32.dll_recv
mov cl, 0x30
call fcn.1400035d0
mov byte [rsp + 0x30], al
mov edx, reloc.WS2_32.dll_recvfrom
mov cl, Ordinal_50
call fcn.1400035d0
mov byte [rsp + 0x31], al
mov edx, reloc.WS2_32.dll_select
mov cl, reloc.WS2_32.dll_gethostname
call fcn.1400035d0
mov byte [rsp + 0x32], al
mov edx, reloc.WS2_32.dll_send
mov cl, reloc.WLDAP32.dll_Ordinal_32
call fcn.1400035d0
mov byte [rsp + 0x33], al
mov edx, reloc.WS2_32.dll_sendto
mov cl, 0x41
call fcn.1400035d0
mov byte [rsp + 0x34], al
mov edx, reloc.WS2_32.dll_setsockopt
mov cl, 0x49
call fcn.1400035d0
mov byte [rsp + 0x35], al
mov edx, reloc.WLDAP32.dll_Ordinal_22
mov cl, reloc.WLDAP32.dll_Ordinal_79
call fcn.1400035d0
mov byte [rsp + 0x36], al
mov edx, reloc.WS2_32.dll_socket
mov cl, 0xa
call fcn.1400035d0
mov byte [rsp + 0x37], al
xor eax, eax
mov byte [rsp + 0x38], al
xor edx, edx
nop word [rax + rax]
movsxd rax, edx
lea rcx, [rsp + 0x20]
add rcx, rax
lea eax, [rdx + 0x13]
xor byte [rcx], al
inc edx
cmp edx, 0x18
jb 0x140006ba0
mov byte [rsp + 0x38], 0
mov edx, 2
mov rcx, qword [0x1400d38e8]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, [rsp + 0x20]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000a450
mov byte [rsp + 0x20], r15b
mov byte [rsp + 0x21], dil
mov byte [rsp + 0x22], r12b
mov byte [rsp + 0x23], r13b
mov edx, 4
mov cl, 0x53
call fcn.1400035d0
mov byte [rsp + 0x24], al
mov edx, 5
mov cl, 0x54
call fcn.1400035d0
mov byte [rsp + 0x25], al
mov edx, 6
mov cl, 0x41
call fcn.1400035d0
mov byte [rsp + 0x26], al
mov edx, 7
mov cl, 0x54
call fcn.1400035d0
movzx edi, al
mov byte [rsp + 0x27], al
mov edx, 8
mov cl, 0x55
call fcn.1400035d0
mov byte [rsp + 0x28], al
mov edx, 9
mov cl, 0x53
call fcn.1400035d0
mov byte [rsp + 0x29], al
mov edx, 0xa
mov cl, 0x3a
call fcn.1400035d0
mov byte [rsp + 0x2a], al
mov edx, listen
mov cl, reloc.WLDAP32.dll_Ordinal_32
call fcn.1400035d0
mov byte [rsp + 0x2b], al
xor eax, eax
mov byte [rsp + 0x2c], al
xor edx, edx
nop
movsxd rax, edx
lea rcx, [rsp + 0x20]
add rcx, rax
lea eax, [rdx + 0x13]
xor byte [rcx], al
inc edx
cmp edx, 0xc
jb 0x140006c80
mov byte [rsp + 0x2c], 0
mov edx, 2
mov rcx, qword [0x1400d38e8]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, [rsp + 0x20]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000a450
xor edx, edx
mov cl, 0x55
call fcn.1400035d0
mov byte [rsp + 0x20], al
mov edx, 1
mov cl, Ordinal_79
call fcn.1400035d0
mov byte [rsp + 0x21], al
mov edx, 2
mov cl, 0x44
call fcn.1400035d0
mov byte [rsp + 0x22], al
mov edx, 3
mov cl, 0x45
call fcn.1400035d0
mov byte [rsp + 0x23], al
mov edx, 4
mov cl, 0x54
call fcn.1400035d0
mov byte [rsp + 0x24], al
mov edx, 5
mov cl, 0x45
call fcn.1400035d0
mov byte [rsp + 0x25], al
mov edx, 6
mov cl, 0x43
call fcn.1400035d0
mov byte [rsp + 0x26], al
mov byte [rsp + 0x27], dil
mov edx, 8
mov cl, 0x45
call fcn.1400035d0
mov byte [rsp + 0x28], al
mov edx, 9
mov cl, 0x44
call fcn.1400035d0
mov byte [rsp + 0x29], al
mov edx, 0xa
movzx ecx, dl
call fcn.1400035d0
mov byte [rsp + 0x2a], al
xor eax, eax
mov byte [rsp + 0x2b], al
xor edx, edx
nop word [rax + rax]
movsxd rax, edx
lea rcx, [rsp + 0x20]
add rcx, rax
lea eax, [rdx + 0x13]
xor byte [rcx], al
inc edx
cmp edx, 0xb
jb 0x140006d70
mov byte [rsp + 0x2b], 0
mov edx, 2
mov rcx, qword [0x1400d38e8]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, [rsp + 0x20]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000a450
mov byte [rsp + 0x20], r15b
mov edx, 1
mov cl, reloc.WLDAP32.dll_Ordinal_60
call fcn.1400035d0
mov byte [rsp + 0x21], al
mov byte [rsp + 0x22], r12b
mov byte [rsp + 0x23], r13b
mov edx, 4
mov cl, 0x45
call fcn.1400035d0
mov byte [rsp + 0x24], al
mov edx, 5
mov cl, WSAGetLastError
call fcn.1400035d0
mov byte [rsp + 0x25], al
mov edx, 6
mov cl, reloc.WS2_32.dll_WSACleanup
call fcn.1400035d0
mov byte [rsp + 0x26], al
mov edx, 7
mov cl, 0x65
call fcn.1400035d0
mov byte [rsp + 0x27], al
mov edx, 8
mov cl, WSAStartup
call fcn.1400035d0
mov byte [rsp + 0x28], al
mov edx, 9
mov cl, reloc.WLDAP32.dll_Ordinal_32
call fcn.1400035d0
mov byte [rsp + 0x29], al
mov edx, 0xa
mov cl, 0x4c
call fcn.1400035d0
mov byte [rsp + 0x2a], al
mov edx, listen
mov cl, 0x69
call fcn.1400035d0
mov byte [rsp + 0x2b], al
mov edx, listen
mov cl, 0x63
call fcn.1400035d0
mov byte [rsp + 0x2c], al
mov edx, reloc.WS2_32.dll_listen
mov cl, 0x65
call fcn.1400035d0
mov byte [rsp + 0x2d], al
mov edx, reloc.WS2_32.dll_ntohl
mov cl, WSAGetLastError
call fcn.1400035d0
mov byte [rsp + 0x2e], al
mov edx, reloc.WS2_32.dll_ntohs
mov cl, reloc.WS2_32.dll_WSAStartup
call fcn.1400035d0
mov byte [rsp + 0x2f], al
mov edx, reloc.WS2_32.dll_recv
mov cl, 0x65
call fcn.1400035d0
mov byte [rsp + 0x30], al
mov edx, reloc.WS2_32.dll_recvfrom
mov cl, reloc.WLDAP32.dll_Ordinal_32
call fcn.1400035d0
mov byte [rsp + 0x31], al
mov edx, reloc.WS2_32.dll_select
mov cl, 0x4b
call fcn.1400035d0
mov byte [rsp + 0x32], al
mov edx, reloc.WS2_32.dll_send
mov cl, 0x65
call fcn.1400035d0
mov byte [rsp + 0x33], al
mov edx, reloc.WS2_32.dll_sendto
mov cl, 0x79
call fcn.1400035d0
mov byte [rsp + 0x34], al
mov edx, reloc.WS2_32.dll_setsockopt
mov cl, 0x3a
call fcn.1400035d0
mov byte [rsp + 0x35], al
mov edx, reloc.WLDAP32.dll_Ordinal_22
mov cl, reloc.WLDAP32.dll_Ordinal_32
call fcn.1400035d0
mov byte [rsp + 0x36], al
xor eax, eax
mov byte [rsp + 0x37], al
xor r15d, r15d
nop word [rax + rax]
movsxd rcx, eax
lea rdx, [rsp + 0x20]
add rdx, rcx
lea ecx, [rax + 0x13]
xor byte [rdx], cl
inc eax
cmp eax, 0x17
jb 0x140006f10
mov byte [rsp + 0x37], r15b
mov edx, 2
mov rcx, qword [0x1400d38e8]
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
lea rdx, [rsp + 0x20]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14000a450
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.14000aa10
lea rdi, [0x1400d27d0]
mov rdx, rdi
lea rcx, [rsp + 0x50]
call fcn.1400098e0
mov rdx, rax
lea rcx, [0x1400d38f0]
call fcn.14001b670
test r14b, r14b
je 0x14000712c
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0x70]
call sub.VCRUNTIME140.dll_memset
cmp qword [0x1400d38b8], 0xf
cmova rsi, qword [0x1400d38a0]
lea rax, [0x140000000]
lea rax, [rax + 0x82d80]
mov qword [rsp + 0x70], rax
lea rcx, [rbp + 0x18]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
or ebx, 0x10
mov dword [rsp + 0x48], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x70]
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 + 0x70]
movsxd rcx, dword [rax + 4]
lea rbx, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rsp + rcx + 0x70], rbx
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], edx
lea rcx, [rsp + 0x78]
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 + 0x78], rax
mov byte [rbp - 0xc], 0
mov byte [rbp - 0x17], 0
lea rcx, [rsp + 0x78]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void____ptr64]
mov qword [rbp - 8], r15
mov rax, qword [0x1400d3ba8]
mov qword [rbp - 0x14], rax
mov qword [rbp - 0x20], r15
mov r8d, 2
mov rdx, rsi
lea rcx, [rsp + 0x78]
call fcn.14000a040
test rax, rax
jne 0x140007081
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]
nop
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
mov qword [rsp + rcx + 0x70], rbx
mov rax, qword [rsp + 0x70]
movsxd rcx, dword [rax + 4]
lea r8d, [rcx - 0xa8]
mov dword [rsp + rcx + 0x6c], r8d
cmp qword [rbp - 8], 0
je 0x1400070fe
cmp qword [reloc.WS2_32.dll_ntohs], 0xf
cmova rdi, qword [0x1400d27d0]
mov r8, qword [0x1400d27e0]
mov rdx, rdi
lea rcx, [rsp + 0x70]
call fcn.14000c430
lea rcx, [rsp + 0x78]
call fcn.140009c60
test rax, rax
jne 0x140007122
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]
jmp 0x140007122
lea rdx, str.Unable_to_save_key_to_file.
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.14000a450
lea rdx, [0x14000a6f0]
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]
nop
lea rcx, [rsp + 0x70]
call fcn.140007220
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.140070310
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret