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

Disassembly:
sub esp, 0x168
mov eax, dword [0x74f8a0]
xor eax, esp
mov dword [esp + 0x164], eax
push esi
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 + 0x1c], esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40e669
mov eax, 0xaa
pop esi
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.0061807e
add esp, 0x168
ret 8
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [esp + 0xc]
push eax
push 1
push 0
push str.SYSTEMCurrentControlSetServicesWinSock2Parameters
push 0x80000002
call ebp
mov edi, eax
test edi, edi
je 0x40e6a1
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x40ea98
mov eax, dword [esp + 0xc]
push ebx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x34]
push edx
push 0
push 0
push str.Current_Protocol_Catalog
push eax
mov dword [esp + 0x3c], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
mov edi, eax
call ebx
test edi, edi
jne 0x40e722
lea edx, [esp + 0x30]
push str.Protocol_Catalog9
push edx
call fcn.00619b9e
add esp, 8
test eax, eax
je 0x40e707
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi + 2]
jmp 0x40ea97
lea eax, [esp + 0x10]
push eax
push 0xb
push 0
push str.SYSTEMCurrentControlSetServicesWinSock2ParametersProtocol_Catalog9Catalog_Entries
push 0x80000002
call ebp
mov edi, eax
test edi, edi
je 0x40e737
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x40ea97
mov eax, dword [esp + 0x10]
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x44]
push edx
push 0
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov edi, eax
test edi, edi
jne 0x40ea77
mov ebp, dword [esp + 0x180]
cmp ebp, dword [esp + 0x28]
jne 0x40ea77
xor ecx, ecx
mov eax, ebp
mov edx, 0x380
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.005ec342
add esp, 4
test eax, eax
je 0x40e7c7
push fcn.004eee20
push fcn.004e1400
push ebp
lea esi, [eax + 4]
push 0x380
push esi
mov dword [eax], ebp
call fcn.0061a779
mov ebx, esi
mov dword [esp + 0x18], ebx
jmp 0x40e7d3
mov dword [esp + 0x18], 0
mov ebx, dword [esp + 0x18]
xor edi, edi
mov dword [esp + 0x14], ebx
lea esp, [esp]
mov edx, dword [esp + 0x10]
push 0x104
lea ecx, [esp + 0x74]
push ecx
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov esi, eax
test esi, esi
jne 0x40e80a
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x70]
push eax
call fcn.005494d0
add dword [esp + 0x14], 0x380
inc edi
test esi, esi
je 0x40e7e0
dec edi
cmp ebp, edi
je 0x40e867
mov esi, dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x40e85d
mov edx, dword [ebx - 4]
push fcn.004eee20
lea esi, [ebx - 4]
push edx
push 0x380
push ebx
call fcn.00618623
push esi
call fcn.005ec337
add esp, 4
mov eax, 0x271e
jmp 0x40ea97
xor edi, edi
test ebp, ebp
jbe 0x40e8f7
lea esi, [ebx + 0x12d]
jmp 0x40e880
mov eax, dword [esi - 0x12d]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push 3
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ebx, eax
test ebx, ebx
jne 0x40e935
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x24]
push eax
lea ecx, [esi - 0x129]
push ecx
push ebx
push ebx
push str.PackedCatalogItem
push edx
mov dword [esp + 0x3c], 0x378
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
movzx ecx, byte [esi]
movzx eax, byte [esi - 1]
shl ecx, 8
add eax, ecx
mov dword [esi + 0x24f], eax
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc edi
add esi, 0x380
cmp edi, ebp
jb 0x40e880
mov ebx, dword [esp + 0x18]
xor ecx, ecx
mov dword [esp + 0x18], ecx
test ebp, ebp
jbe 0x40e9ed
mov dword [esp + 0x14], ebx
lea esp, [esp]
mov edx, dword [esp + 0x17c]
mov edx, dword [edx + ecx*4]
xor esi, esi
lea eax, [ebx + 0x37c]
cmp edx, dword [eax]
je 0x40e981
inc esi
add eax, 0x380
cmp esi, ebp
jb 0x40e922
jmp 0x40e9d8
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]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40e97a
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.004eee20
push ecx
push 0x380
push eax
call fcn.00618623
push esi
call fcn.005ec337
add esp, 4
mov eax, ebx
jmp 0x40ea97
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x1c]
push ecx
push 3
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, eax
test edi, edi
jne 0x40ea32
mov ecx, dword [esp + 0x1c]
imul esi, esi, 0x380
push 0x378
lea eax, [esi + ebx + 4]
push eax
push 3
push edi
push str.PackedCatalogItem
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x18]
add dword [esp + 0x14], 0x380
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, ebp
jb 0x40e910
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x40ea1c
mov eax, dword [ebx - 4]
push fcn.004eee20
lea esi, [ebx - 4]
push eax
push 0x380
push ebx
call fcn.00618623
push esi
call fcn.005ec337
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 0x40ea97
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 0x40ea73
mov ecx, dword [ebx - 4]
push fcn.004eee20
lea esi, [ebx - 4]
push ecx
push 0x380
push ebx
call fcn.00618623
push esi
call fcn.005ec337
add esp, 4
mov eax, edi
jmp 0x40ea97
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
push ecx
call ebx
mov eax, edi
test edi, edi
jne 0x40ea97
mov eax, 0x2726
pop ebx
mov ecx, dword [esp + 0x170]
pop edi
pop ebp
pop esi
xor ecx, esp
call fcn.0061807e
add esp, 0x168
ret 8