Function at 0x40e5b0
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 [0x758898]
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 0x40e619
mov eax, 0xaa
pop esi
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.0062016f
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 0x40e651
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x40ea48
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 0x40e6d2
lea edx, [esp + 0x30]
push str.Protocol_Catalog9
push edx
call fcn.00621c8e
add esp, 8
test eax, eax
je 0x40e6b7
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi + 2]
jmp 0x40ea47
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 0x40e6e7
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x40ea47
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 0x40ea27
mov ebp, dword [esp + 0x180]
cmp ebp, dword [esp + 0x28]
jne 0x40ea27
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.005f4427
add esp, 4
test eax, eax
je 0x40e777
push fcn.004e6f40
push fcn.0040e040
push ebp
lea esi, [eax + 4]
push 0x380
push esi
mov dword [eax], ebp
call fcn.00622869
mov ebx, esi
mov dword [esp + 0x18], ebx
jmp 0x40e783
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 0x40e7ba
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x70]
push eax
call fcn.0054f250
add dword [esp + 0x14], 0x380
inc edi
test esi, esi
je 0x40e790
dec edi
cmp ebp, edi
je 0x40e817
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 0x40e80d
mov edx, dword [ebx - 4]
push fcn.004e6f40
lea esi, [ebx - 4]
push edx
push 0x380
push ebx
call fcn.00620714
push esi
call fcn.005f4432
add esp, 4
mov eax, 0x271e
jmp 0x40ea47
xor edi, edi
test ebp, ebp
jbe 0x40e8a7
lea esi, [ebx + 0x12d]
jmp 0x40e830
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 0x40e8e5
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 0x40e830
mov ebx, dword [esp + 0x18]
xor ecx, ecx
mov dword [esp + 0x18], ecx
test ebp, ebp
jbe 0x40e99d
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 0x40e931
inc esi
add eax, 0x380
cmp esi, ebp
jb 0x40e8d2
jmp 0x40e988
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 0x40e92a
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.004e6f40
push ecx
push 0x380
push eax
call fcn.00620714
push esi
call fcn.005f4432
add esp, 4
mov eax, ebx
jmp 0x40ea47
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 0x40e9e2
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 0x40e8c0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x40e9cc
mov eax, dword [ebx - 4]
push fcn.004e6f40
lea esi, [ebx - 4]
push eax
push 0x380
push ebx
call fcn.00620714
push esi
call fcn.005f4432
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 0x40ea47
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 0x40ea23
mov ecx, dword [ebx - 4]
push fcn.004e6f40
lea esi, [ebx - 4]
push ecx
push 0x380
push ebx
call fcn.00620714
push esi
call fcn.005f4432
add esp, 4
mov eax, edi
jmp 0x40ea47
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 0x40ea47
mov eax, 0x2726
pop ebx
mov ecx, dword [esp + 0x170]
pop edi
pop ebp
pop esi
xor ecx, esp
call fcn.0062016f
add esp, 0x168
ret 8