Function at 0x140039b60
Capabilities:
Encode data using xor
Set console window title

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
mov rbp, rsp
sub rsp, 0x50
xor edi, edi
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
lea rdx, str.NtWriteVirtualMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14004dd60], rax
lea rdx, str.NtReadVirtualMemory
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14004de08], rax
cmp qword [0x14004dd60], rdi
je 0x140039e7f
test rax, rax
je 0x140039e7f
lea rcx, [rbp - 0x20]
call fcn.1400397e0
mov rbx, rax
lea rsi, [0x14004d230]
cmp rsi, rax
je 0x140039c5d
mov rdx, qword [0x14004d248]
cmp rdx, 0xf
jbe 0x140039c22
mov rcx, qword [0x14004d230]
inc rdx
cmp rdx, 0x1000
jb 0x140039c1d
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140039c8f
mov rcx, r8
call fcn.14003b064
movdqa xmm0, xmmword [0x140046140]
movdqu xmmword [0x14004d240], xmm0
mov byte [0x14004d230], dil
movups xmm0, xmmword [rbx]
movups xmmword [0x14004d230], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [0x14004d240], xmm1
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], dil
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x140039c9b
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039c96
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140039c96
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003b064
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
cmp qword [0x14004d248], 0xf
cmova rsi, qword [0x14004d230]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov rbx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov edx, 0x1e
lea rcx, [rbp - 0x20]
call fcn.140039980
nop
mov r8, qword [rax + 0x10]
cmp qword [rax + 0x18], 0xf
jbe 0x140039cde
mov rax, qword [rax]
mov rdx, rax
mov rcx, rbx
call fcn.14003a910
nop
mov rdx, qword [rbp - 8]
cmp rdx, 0xf
jbe 0x140039d28
inc rdx
mov rcx, qword [rbp - 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140039d23
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140039d23
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14003b064
movdqa xmm0, xmmword [0x140046140]
movdqu xmmword [rbp - 0x10], xmm0
mov byte [rbp - 0x20], 0
mov rcx, qword [0x14004de28]
test rcx, rcx
jne 0x140039db4
nop word [rax + rax]
mov dword [rbp - 0x30], 0x90918da7
mov dword [rbp - 0x2c], 0x8d938f8b
mov word [rbp - 0x28], 0xcac9
xor eax, eax
mov byte [rbp - 0x26], al
mov eax, edi
nop dword [rax + rax]
movsxd rcx, eax
lea rdx, [rbp - 0x30]
add rdx, rcx
lea ecx, [rax - 0x1f]
xor byte [rdx], cl
inc eax
cmp eax, 0xa
jb 0x140039d70
mov byte [rbp - 0x26], 0
lea rdx, [rbp - 0x30]
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
mov qword [0x14004de28], rax
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x14004de28]
test rcx, rcx
je 0x140039d50
lea rdx, [0x14004ddac]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov r8d, dword [0x14004ddac]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [0x14004dd48], rax
inc rax
test rax, 0xfffffffffffffffe
jne 0x140039e4a
movdqa xmm0, xmmword [0x140046310]
movdqu xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x10], 0x91909d83
mov word [rbp - 0xc], 0x8586
xor eax, eax
mov byte [rbp - 0xa], al
nop word [rax + rax]
movsxd rax, edi
lea rdx, [rbp - 0x20]
add rdx, rax
lea eax, [rdi - 0x1f]
xor byte [rdx], al
inc edi
cmp edi, 0x16
jb 0x140039e10
mov byte [rbp - 0xa], 0
lea rdx, [rbp - 0x20]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.14003a260
lea rdx, [0x14003a430]
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]
call fcn.140039740
mov qword [0x14004de20], rax
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140035580
call fcn.140035240
mov edx, 0x1f4
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Beep]
call fcn.140039330
jmp 0x140039e78
mov eax, 1
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret