Function at 0x140039d10
Capabilities:
Encode data using xor
Execute command
Set console window title

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400c1060]
xor rax, rsp
mov qword [rbp - 0x10], rax
call fcn.14004ada0
lea rcx, [rbp - 0x38]
call fcn.14004b940
lea rcx, [rbp - 0x37]
call fcn.14004d4a0
mov edx, 6
lea rcx, [rbp - 0x30]
call fcn.140032d30
nop
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
call fcn.1400381e0
mov dword [rbp - 0x58], 0x1f0a2d22
mov dword [rbp - 0x54], 0x131c1209
mov dword [rbp - 0x50], 0xa2a1be1a
mov word [rbp - 0x4c], 0x100
xor edi, edi
mov ecx, edi
nop word [rax + rax]
lea eax, [rcx + 0x77]
xor byte [rbp + rcx - 0x58], al
inc rcx
cmp rcx, 0xc
jb 0x140039da0
mov byte [rbp - 0x4b], dil
lea rcx, [rbp - 0x58]
call fcn.14002c650
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.1400435b0
mov dword [rbp - 0x58], 0x9182827
mov dword [rbp - 0x54], 0xc120b08
mov dword [rbp - 0x50], 0xa1be1b
mov byte [rbp - 0x4c], 1
mov rcx, rdi
nop word [rax + rax]
lea eax, [rcx + 0x77]
xor byte [rbp + rcx - 0x58], al
inc rcx
cmp rcx, 0xb
jb 0x140039df0
mov byte [rbp - 0x4c], dil
lea rdx, [rbp - 0x58]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400420f0
mov r14d, edi
mov rsi, rdi
lea r15, [0x1401a7dc0]
call qword [sym.imp.api_ms_win_crt_conio_l1_1_0.dll__getch]
mov ebx, eax
lea ecx, [rax - 0x61]
cmp cl, 0x19
jbe 0x140039e41
lea ecx, [rax - 0x41]
cmp cl, 0x19
jbe 0x140039e41
lea ecx, [rax - 0x30]
cmp cl, 9
ja 0x140039e65
mov byte [rsi + r15], bl
inc r14d
inc rsi
mov word [rbp - 0x60], Ordinal_45
mov byte [rbp - 0x5e], dil
lea rdx, [rbp - 0x60]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400420f0
cmp bl, 8
jne 0x140039e8b
cmp rsi, 1
jl 0x140039e21
lea rdx, [0x1400b0c00]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400420f0
dec r14d
dec rsi
jmp 0x140039e21
cmp bl, 0xd
jne 0x140039e21
movsxd rax, r14d
cmp rax, 0x20
jae 0x14003a030
mov byte [rax + r15], dil
mov word [rbp - 0x60], 0xa
mov byte [rbp - 0x5e], dil
lea rcx, [rbp - 0x60]
call fcn.14002c650
test r14d, r14d
jg 0x140039ff1
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
lea rdx, [rbp - 0x58]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx edx, word [rbp - 0x50]
mov eax, 0xf0
and dx, ax
or dx, 0xc
mov word [rbp - 0x50], dx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
movdqa xmm0, xmmword [str.___Z_]
movdqu xmmword [rbp - 0x58], xmm0
mov dword [rbp - 0x48], 0xfdfafbe6
mov dword [rbp - 0x44], 0xaee9fee4
mov dword [rbp - 0x40], 0xfefde5c1
mov word [rbp - 0x3c], 0x100
mov rcx, rdi
lea eax, [rcx + 0x77]
xor byte [rbp + rcx - 0x58], al
inc rcx
cmp rcx, 0x1c
jb 0x140039f20
mov byte [rbp - 0x3b], dil
lea rdx, [rbp - 0x58]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400420f0
mov rcx, rax
lea rdx, [0x1400422c0]
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]
mov dword [rbp - 0x58], 0x90c1907
mov word [rbp - 0x54], reloc.WLDAP32.dll_Ordinal_30
mov byte [rbp - 0x52], 1
nop word [rax + rax]
lea eax, [rdi + 0x77]
xor byte [rbp + rdi - 0x58], al
inc rdi
cmp rdi, 5
jb 0x140039f70
mov byte [rbp - 0x52], 0
lea rcx, [rbp - 0x58]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x140039fc6
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039fc1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14003a029
call fcn.1400930d8
xor eax, eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140092b30
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.140038dd0
nop
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x140039fc6
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039fc1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140039fc1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140093258
nop
int3