Function at 0x40c4a0
Capabilities:
Check mutex on windows
Persist via windows service
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x614abe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x168
push ebx
push ebp
push esi
push edi
push str.sporder.dll
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push str.sporder.dll
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov esi, eax
push 0
push esi
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40c500
mov eax, 0xaa
jmp 0x40c91c
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x10]
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetServicesWinSock2Parameters
push reloc.WS2_32.dll_bind
call ebp
mov edi, eax
test edi, edi
jne 0x40c5a5
lea ecx, [esp + 0x28]
lea edx, [esp + 0x34]
push ecx
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push str.Current_Protocol_Catalog
push eax
mov dword [esp + 0x40], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov ecx, dword [esp + 0x10]
push ecx
call ebx
test edi, edi
jne 0x40c5a5
lea edx, [esp + 0x34]
push str.Protocol_Catalog9
push edx
call fcn.005e6820
add esp, 8
test eax, eax
je 0x40c58a
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 2
jmp 0x40c91c
lea eax, [esp + 0x10]
push eax
push 0xb
push 0
push str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9Catalog_Entries
push reloc.WS2_32.dll_bind
call ebp
mov edi, eax
test edi, edi
je 0x40c5ba
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x40c91c
push 0
push 0
mov eax, dword [esp + 0x18]
push 0
push 0
push 0
lea ecx, [esp + 0x44]
push 0
lea edx, [esp + 0x44]
push ecx
push edx
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov edi, eax
test edi, edi
jne 0x40c8fc
mov ebp, dword [esp + 0x18c]
mov eax, dword [esp + 0x2c]
cmp ebp, eax
jne 0x40c8fc
lea ecx, [ebp*8]
sub ecx, ebp
shl ecx, 7
add ecx, 4
push ecx
call fcn.005feedc
add esp, 4
mov dword [esp + 0x1c], eax
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x180], ebx
je 0x40c642
push fcn.0040c940
push fcn.0045dd70
lea ebx, [eax + 4]
push ebp
push 0x380
push ebx
mov dword [eax], ebp
call fcn.005e6f4c
mov dword [esp + 0x180], 0xffffffff
xor esi, esi
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x74]
push 0x104
push edx
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, eax
test edi, edi
jne 0x40c67d
lea ecx, [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.00602c5f
mov ecx, dword [esp + 0x14]
inc esi
add ecx, 0x380
test edi, edi
mov dword [esp + 0x14], ecx
je 0x40c653
dec esi
cmp ebp, esi
je 0x40c6e0
mov esi, dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x40c6d6
mov eax, dword [ebx - 4]
lea esi, [ebx - 4]
push fcn.0040c940
push eax
push 0x380
push ebx
call fcn.005e5d51
push esi
call fcn.005fef05
add esp, 4
mov eax, 0x271e
jmp 0x40c91c
xor edi, edi
test ebp, ebp
jbe 0x40c765
lea esi, [ebx + 0x12d]
mov eax, dword [esi - 0x12d]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push 3
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov dword [esp + 0x1c], eax
jne 0x40c7a5
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x28]
lea ecx, [esi - 0x129]
push eax
push ecx
push 0
push 0
push str.PackedCatalogItem
push edx
mov dword [esp + 0x40], 0x378
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor ecx, ecx
xor eax, eax
mov cl, byte [esi]
mov al, byte [esi - 1]
shl ecx, 8
add eax, ecx
mov dword [esi + 0x24f], eax
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
add esi, 0x380
cmp edi, ebp
jb 0x40c6ec
test ebp, ebp
mov dword [esp + 0x1c], 0
jbe 0x40c872
mov edx, dword [esp + 0x188]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x14]
xor esi, esi
mov ecx, dword [eax]
lea eax, [ebx + 0x37c]
cmp ecx, dword [eax]
je 0x40c7ef
inc esi
add eax, 0x380
cmp esi, ebp
jb 0x40c792
jmp 0x40c848
mov esi, dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x40c7e6
mov ecx, dword [ebx - 4]
lea esi, [ebx - 4]
push fcn.0040c940
push ecx
push 0x380
push ebx
call fcn.005e5d51
push esi
call fcn.005fef05
add esp, 4
mov eax, dword [esp + 0x1c]
jmp 0x40c91c
mov ecx, dword [esp + 0x24]
lea edx, [esp + 0x18]
push edx
push 3
mov eax, dword [ecx]
push 0
push eax
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test edi, edi
jne 0x40c8b7
lea ecx, [esi*8]
push 0x378
sub ecx, esi
shl ecx, 7
lea edx, [ecx + ebx + 4]
push edx
push 3
push eax
mov eax, dword [esp + 0x28]
push str.PackedCatalogItem
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x24]
inc eax
add esi, 4
add edx, 0x380
cmp eax, ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x24], edx
jb 0x40c784
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x40c8a1
mov edx, dword [ebx - 4]
lea esi, [ebx - 4]
push fcn.0040c940
push edx
push 0x380
push ebx
call fcn.005e5d51
push esi
call fcn.005fef05
add esp, 4
mov esi, dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40c91c
mov esi, dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x40c8f8
mov eax, dword [ebx - 4]
lea esi, [ebx - 4]
push fcn.0040c940
push eax
push 0x380
push ebx
call fcn.005e5d51
push esi
call fcn.005fef05
add esp, 4
mov eax, edi
jmp 0x40c91c
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
push eax
call ebx
test edi, edi
mov eax, edi
jne 0x40c91c
mov eax, 0x2726
mov ecx, dword [esp + 0x178]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x174
ret 8