Function at 0x40ab40
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 0x5bf69e
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 0x40aba0
mov eax, 0xaa
jmp 0x40afbc
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 0x40ac45
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 0x40ac45
lea edx, [esp + 0x34]
push str.Protocol_Catalog9
push edx
call fcn.0059adb0
add esp, 8
test eax, eax
je 0x40ac2a
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 2
jmp 0x40afbc
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 0x40ac5a
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x40afbc
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 0x40af9c
mov ebp, dword [esp + 0x18c]
mov eax, dword [esp + 0x2c]
cmp ebp, eax
jne 0x40af9c
lea ecx, [ebp*8]
sub ecx, ebp
shl ecx, 7
add ecx, 4
push ecx
call fcn.005a9fe9
add esp, 4
mov dword [esp + 0x1c], eax
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x180], ebx
je 0x40ace2
push fcn.004c0c10
push fcn.004afa60
lea ebx, [eax + 4]
push ebp
push 0x380
push ebx
mov dword [eax], ebp
call fcn.00592283
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 0x40ad1d
lea ecx, [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.005addd6
mov ecx, dword [esp + 0x14]
inc esi
add ecx, 0x380
test edi, edi
mov dword [esp + 0x14], ecx
je 0x40acf3
dec esi
cmp ebp, esi
je 0x40ad80
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 0x40ad76
mov eax, dword [ebx - 4]
lea esi, [ebx - 4]
push fcn.004c0c10
push eax
push 0x380
push ebx
call fcn.00591197
push esi
call fcn.005aa012
add esp, 4
mov eax, 0x271e
jmp 0x40afbc
xor edi, edi
test ebp, ebp
jbe 0x40ae05
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 0x40ae45
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 0x40ad8c
test ebp, ebp
mov dword [esp + 0x1c], 0
jbe 0x40af12
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 0x40ae8f
inc esi
add eax, 0x380
cmp esi, ebp
jb 0x40ae32
jmp 0x40aee8
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 0x40ae86
mov ecx, dword [ebx - 4]
lea esi, [ebx - 4]
push fcn.004c0c10
push ecx
push 0x380
push ebx
call fcn.00591197
push esi
call fcn.005aa012
add esp, 4
mov eax, dword [esp + 0x1c]
jmp 0x40afbc
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 0x40af57
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 0x40ae24
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x40af41
mov edx, dword [ebx - 4]
lea esi, [ebx - 4]
push fcn.004c0c10
push edx
push 0x380
push ebx
call fcn.00591197
push esi
call fcn.005aa012
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 0x40afbc
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 0x40af98
mov eax, dword [ebx - 4]
lea esi, [ebx - 4]
push fcn.004c0c10
push eax
push 0x380
push ebx
call fcn.00591197
push esi
call fcn.005aa012
add esp, 4
mov eax, edi
jmp 0x40afbc
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 0x40afbc
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