Function at 0x140040a70
Capabilities:
Encode data using xor
Execute command
Terminate process

Disassembly:
push rbx
sub rsp, 0x90
mov qword [rsp + 0xb0], rdi
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
mov rdi, rax
call qword [sym.imp.USER32.dll_GetSystemMenu]
xor r8d, r8d
mov edx, 0xf030
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_RemoveMenu]
xor r8d, r8d
mov edx, 0xf020
mov rcx, rbx
call qword [sym.imp.USER32.dll_RemoveMenu]
xor r8d, r8d
mov edx, 0xf060
mov rcx, rbx
call qword [sym.imp.USER32.dll_RemoveMenu]
xor r8d, r8d
mov edx, 0xf000
mov rcx, rbx
call qword [sym.imp.USER32.dll_RemoveMenu]
mov edx, 0xfffffff0
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowLongA]
mov edx, 0xfffffff0
mov rcx, rdi
btr eax, 0x12
mov r8d, eax
call qword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
lea rdx, [rsp + 0xa0]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov edx, dword [rsp + 0xa0]
mov rcx, rbx
and edx, 0xffffffaf
mov dword [rsp + 0xa0], edx
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
lea rdx, [rsp + 0x40]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
movzx ecx, word [rsp + 0x40]
mov word [rsp + 0xa8], cx
movzx ecx, word [rsp + 0x50]
sub cx, word [rsp + 0x4c]
inc cx
mov word [rsp + 0xaa], cx
mov rcx, rbx
mov edx, dword [rsp + 0xa8]
call qword [sym.imp.KERNEL32.dll_SetConsoleScreenBufferSize]
mov rdi, qword [rsp + 0xb0]
test eax, eax
jne 0x140040bd5
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.SetConsoleScreenBufferSize___failed__Reason:
call fcn.140045c80
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
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_int____ptr64]
mov rcx, rax
lea rdx, [0x140045e50]
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 ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
movups xmm0, xmmword [0x140132aa0]
movzx eax, word [0x140132ab8]
xor ecx, ecx
cmp dword [reloc.WS2_32.dll_accept], 2
movups xmmword [rsp + 0x58], xmm0
mov word [rsp + 0x70], ax
movsd xmm0, qword [0x140132ab0]
movzx eax, byte [0x140132aba]
movsd qword [rsp + 0x68], xmm0
mov byte [rsp + 0x72], al
jl 0x140040d64
movdqa xmm0, xmmword [0x1401337b0]
lea rdx, [rsp + 0x5c]
movdqa xmm5, xmmword [0x140133480]
movdqa xmm4, xmmword [0x140133b10]
movdqa xmmword [rsp + 0x20], xmm0
mov r8d, dword [rsp + 0x20]
movaps xmmword [rsp + 0x80], xmm6
movdqa xmm6, xmmword [0x1401334a0]
nop dword [rax]
movd xmm2, ecx
lea eax, [rcx + 4]
pshufd xmm2, xmm2, 0
lea rdx, [rdx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ecx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x1401334d0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rdx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rdx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm3
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, r8d
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1401334d0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rdx - 8]
xorps xmm2, xmm0
movd dword [rdx - 8], xmm2
cmp ecx, 0x18
jl 0x140040c50
movaps xmm6, xmmword [rsp + 0x80]
cmp ecx, 0x1b
jge 0x140040d9f
movsxd rax, ecx
lea r8, [rsp + 0x58]
add r8, rax
nop
mov eax, 0x8fb823ef
lea r8, [r8 + 1]
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x39
movzx eax, cl
inc ecx
sub al, dl
add al, 0x36
xor byte [r8 - 1], al
cmp ecx, 0x1b
jl 0x140040d70
xorps xmm0, xmm0
lea rax, [rsp + 0x58]
xorps xmm1, xmm1
mov r8, 0xffffffffffffffff
movups xmmword [rsp + 0x20], xmm0
movdqu xmmword [rsp + 0x30], xmm1
nop dword [rax]
inc r8
cmp byte [rax + r8], 0
jne 0x140040dc0
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x20]
call fcn.1400464e0
cmp qword [rsp + 0x38], 0xf
lea rcx, [rsp + 0x20]
cmova rcx, qword [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x140040e30
mov rcx, qword [rsp + 0x20]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140040e2b
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140040e2b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14004d314
add rsp, 0x90
pop rbx
ret