Function at 0x40e4c0
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 [0x70a308]
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 0x40e529
mov eax, 0xaa
pop esi
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.005f85e7
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 0x40e561
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x40e958
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 0x40e5e2
lea edx, [esp + 0x30]
push str.Protocol_Catalog9
push edx
call fcn.005fa111
add esp, 8
test eax, eax
je 0x40e5c7
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi + 2]
jmp 0x40e957
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 0x40e5f7
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x40e957
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 0x40e937
mov ebp, dword [esp + 0x180]
cmp ebp, dword [esp + 0x28]
jne 0x40e937
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.005cfaa6
add esp, 4
test eax, eax
je 0x40e687
push fcn.0040df50
push fcn.0053b4c0
push ebp
lea esi, [eax + 4]
push 0x380
push esi
mov dword [eax], ebp
call fcn.005face9
mov ebx, esi
mov dword [esp + 0x18], ebx
jmp 0x40e693
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 0x40e6ca
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x70]
push eax
call fcn.00402fc0
add dword [esp + 0x14], 0x380
inc edi
test esi, esi
je 0x40e6a0
dec edi
cmp ebp, edi
je 0x40e727
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 0x40e71d
mov edx, dword [ebx - 4]
push fcn.0040df50
lea esi, [ebx - 4]
push edx
push 0x380
push ebx
call fcn.005f8b6f
push esi
call fcn.005cfa9b
add esp, 4
mov eax, 0x271e
jmp 0x40e957
xor edi, edi
test ebp, ebp
jbe 0x40e7b7
lea esi, [ebx + 0x12d]
jmp 0x40e740
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 0x40e7f5
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 0x40e740
mov ebx, dword [esp + 0x18]
xor ecx, ecx
mov dword [esp + 0x18], ecx
test ebp, ebp
jbe 0x40e8ad
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 0x40e841
inc esi
add eax, 0x380
cmp esi, ebp
jb 0x40e7e2
jmp 0x40e898
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 0x40e83a
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.0040df50
push ecx
push 0x380
push eax
call fcn.005f8b6f
push esi
call fcn.005cfa9b
add esp, 4
mov eax, ebx
jmp 0x40e957
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 0x40e8f2
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 0x40e7d0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x40e8dc
mov eax, dword [ebx - 4]
push fcn.0040df50
lea esi, [ebx - 4]
push eax
push 0x380
push ebx
call fcn.005f8b6f
push esi
call fcn.005cfa9b
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 0x40e957
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 0x40e933
mov ecx, dword [ebx - 4]
push fcn.0040df50
lea esi, [ebx - 4]
push ecx
push 0x380
push ebx
call fcn.005f8b6f
push esi
call fcn.005cfa9b
add esp, 4
mov eax, edi
jmp 0x40e957
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 0x40e957
mov eax, 0x2726
pop ebx
mov ecx, dword [esp + 0x170]
pop edi
pop ebp
pop esi
xor ecx, esp
call fcn.005f85e7
add esp, 0x168
ret 8