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

Disassembly:
sub rsp, 0x68
mov rax, qword [0x140139080]
xor rax, rsp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
xor ecx, ecx
mov qword [0x14040f788], rcx
mov dword [0x14040f790], ecx
mov word [0x14040f794], cx
mov byte [0x14040f796], cl
mov qword [0x14040f4d8], rcx
mov word [0x14040f4e0], cx
mov byte [0x14040f4e2], cl
xorps xmm0, xmm0
xor eax, eax
movups xmmword [0x14040f7a0], xmm0
movups xmmword [0x14040f7b0], xmm0
movups xmmword [0x14040f7c0], xmm0
movups xmmword [0x14040f7d0], xmm0
mov byte [0x14040f7e0], al
mov dword [0x14040f4d0], eax
movups xmmword [0x14040f4e8], xmm0
mov qword [0x14040f4f8], rax
mov dword [0x14040f500], eax
mov byte [0x14040f504], al
movsd xmm0, qword [str.rNGWRT]
movsd qword [rsp + 0x20], xmm0
mov eax, dword [0x140119588]
mov dword [rsp + 0x28], eax
cmp byte [0x14011958b], cl
je 0x14003857c
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x140038537
movdqa xmm4, xmmword [0x140122060]
movdqa xmm2, xmmword [0x140121d90]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140121dc0]
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140121e50]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140121e80]
movd xmm0, dword [str.rNGWRT]
xorps xmm2, xmm0
movd dword [rsp + 0x20], xmm2
movdqa xmm3, xmmword [0x140121db0]
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x140121dc0]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140121e50]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140121e80]
movd xmm0, dword [rsp + 0x24]
xorps xmm2, xmm0
movd dword [rsp + 0x24], xmm2
mov ecx, 8
movsxd rax, ecx
lea r8, [rsp + 0x20]
add r8, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x4d4873ed
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x35
movzx eax, cl
sub al, dl
add al, 0x33
xor byte [r8], al
inc ecx
lea r8, [r8 + 1]
cmp ecx, 0xc
jl 0x140038550
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x40], xmm1
lea rax, [rsp + 0x20]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400385a0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.14003a0e0
nop
lea rcx, [rsp + 0x30]
cmp qword [rsp + 0x48], 0xf
cmova rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
lea rcx, [0x14040f510]
call fcn.1400ac4c0
cmp byte [0x14040f720], 0
jne 0x1400385f1
mov ecx, 0x5dc
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
call fcn.140041550
lea rcx, str.___An_Error_has_occured_dm_gloomcomplex_on_Discord_press_enter_to_close_this_console
call fcn.140037000
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_istream_char__struct_std::char_traits_char__::get_void____ptr64]
nop
lea rcx, [rsp + 0x30]
call fcn.140039a70
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400fd270
add rsp, 0x68
ret