Function at 0x408fa0
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 0x5b24ae
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 0x409000
mov eax, 0xaa
jmp 0x40941c
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x10]
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetServicesWinSock2Parameters
push reloc.WSOCK32.dll_bind
call ebp
mov edi, eax
test edi, edi
jne 0x4090a5
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 0x4090a5
lea edx, [esp + 0x34]
push str.Protocol_Catalog9
push edx
call fcn.0058dd90
add esp, 8
test eax, eax
je 0x40908a
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 2
jmp 0x40941c
lea eax, [esp + 0x10]
push eax
push 0xb
push 0
push str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9Catalog_Entries
push reloc.WSOCK32.dll_bind
call ebp
mov edi, eax
test edi, edi
je 0x4090ba
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x40941c
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 0x4093fc
mov ebp, dword [esp + 0x18c]
mov eax, dword [esp + 0x2c]
cmp ebp, eax
jne 0x4093fc
lea ecx, [ebp*8]
sub ecx, ebp
shl ecx, 7
add ecx, 4
push ecx
call fcn.0059cff9
add esp, 4
mov dword [esp + 0x1c], eax
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x180], ebx
je 0x409142
push fcn.004bd830
push fcn.00448290
lea ebx, [eax + 4]
push ebp
push 0x380
push ebx
mov dword [eax], ebp
call fcn.00585393
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 0x40917d
lea ecx, [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.005a0de6
mov ecx, dword [esp + 0x14]
inc esi
add ecx, 0x380
test edi, edi
mov dword [esp + 0x14], ecx
je 0x409153
dec esi
cmp ebp, esi
je 0x4091e0
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 0x4091d6
mov eax, dword [ebx - 4]
lea esi, [ebx - 4]
push fcn.004bd830
push eax
push 0x380
push ebx
call fcn.005842b1
push esi
call fcn.0059d022
add esp, 4
mov eax, 0x271e
jmp 0x40941c
xor edi, edi
test ebp, ebp
jbe 0x409265
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 0x4092a5
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 0x4091ec
test ebp, ebp
mov dword [esp + 0x1c], 0
jbe 0x409372
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 0x4092ef
inc esi
add eax, 0x380
cmp esi, ebp
jb 0x409292
jmp 0x409348
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 0x4092e6
mov ecx, dword [ebx - 4]
lea esi, [ebx - 4]
push fcn.004bd830
push ecx
push 0x380
push ebx
call fcn.005842b1
push esi
call fcn.0059d022
add esp, 4
mov eax, dword [esp + 0x1c]
jmp 0x40941c
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 0x4093b7
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 0x409284
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x4093a1
mov edx, dword [ebx - 4]
lea esi, [ebx - 4]
push fcn.004bd830
push edx
push 0x380
push ebx
call fcn.005842b1
push esi
call fcn.0059d022
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 0x40941c
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 0x4093f8
mov eax, dword [ebx - 4]
lea esi, [ebx - 4]
push fcn.004bd830
push eax
push 0x380
push ebx
call fcn.005842b1
push esi
call fcn.0059d022
add esp, 4
mov eax, edi
jmp 0x40941c
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 0x40941c
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