Function at 0x40c480
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 0x615a1e
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 0x40c4e0
mov eax, 0xaa
jmp 0x40c8fc
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 0x40c585
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 0x40c585
lea edx, [esp + 0x34]
push str.Protocol_Catalog9
push edx
call fcn.005e7640
add esp, 8
test eax, eax
je 0x40c56a
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 2
jmp 0x40c8fc
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 0x40c59a
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x40c8fc
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 0x40c8dc
mov ebp, dword [esp + 0x18c]
mov eax, dword [esp + 0x2c]
cmp ebp, eax
jne 0x40c8dc
lea ecx, [ebp*8]
sub ecx, ebp
shl ecx, 7
add ecx, 4
push ecx
call fcn.005ffe3f
add esp, 4
mov dword [esp + 0x1c], eax
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x180], ebx
je 0x40c622
push fcn.0040c920
push fcn.0045e140
lea ebx, [eax + 4]
push ebp
push 0x380
push ebx
mov dword [eax], ebp
call fcn.005e7d6c
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 0x40c65d
lea ecx, [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.00603bc5
mov ecx, dword [esp + 0x14]
inc esi
add ecx, 0x380
test edi, edi
mov dword [esp + 0x14], ecx
je 0x40c633
dec esi
cmp ebp, esi
je 0x40c6c0
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 0x40c6b6
mov eax, dword [ebx - 4]
lea esi, [ebx - 4]
push fcn.0040c920
push eax
push 0x380
push ebx
call fcn.005e6b71
push esi
call fcn.005ffe68
add esp, 4
mov eax, 0x271e
jmp 0x40c8fc
xor edi, edi
test ebp, ebp
jbe 0x40c745
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 0x40c785
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 0x40c6cc
test ebp, ebp
mov dword [esp + 0x1c], 0
jbe 0x40c852
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 0x40c7cf
inc esi
add eax, 0x380
cmp esi, ebp
jb 0x40c772
jmp 0x40c828
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 0x40c7c6
mov ecx, dword [ebx - 4]
lea esi, [ebx - 4]
push fcn.0040c920
push ecx
push 0x380
push ebx
call fcn.005e6b71
push esi
call fcn.005ffe68
add esp, 4
mov eax, dword [esp + 0x1c]
jmp 0x40c8fc
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 0x40c897
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 0x40c764
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x40c881
mov edx, dword [ebx - 4]
lea esi, [ebx - 4]
push fcn.0040c920
push edx
push 0x380
push ebx
call fcn.005e6b71
push esi
call fcn.005ffe68
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 0x40c8fc
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 0x40c8d8
mov eax, dword [ebx - 4]
lea esi, [ebx - 4]
push fcn.0040c920
push eax
push 0x380
push ebx
call fcn.005e6b71
push esi
call fcn.005ffe68
add esp, 4
mov eax, edi
jmp 0x40c8fc
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 0x40c8fc
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