Function at 0x407280
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 0x5538ae
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 0x4072e0
mov eax, 0xaa
jmp 0x4076fc
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 0x407385
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 0x407385
lea edx, [esp + 0x34]
push str.Protocol_Catalog9
push edx
call fcn.0052f680
add esp, 8
test eax, eax
je 0x40736a
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 2
jmp 0x4076fc
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 0x40739a
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x4076fc
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 0x4076dc
mov ebp, dword [esp + 0x18c]
mov eax, dword [esp + 0x2c]
cmp ebp, eax
jne 0x4076dc
lea ecx, [ebp*8]
sub ecx, ebp
shl ecx, 7
add ecx, 4
push ecx
call fcn.0054276d
add esp, 4
mov dword [esp + 0x1c], eax
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x180], ebx
je 0x407422
push fcn.00407720
push 0x48bc40
lea ebx, [eax + 4]
push ebp
push 0x380
push ebx
mov dword [eax], ebp
call fcn.0052798f
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 0x40745d
lea ecx, [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.00542347
mov ecx, dword [esp + 0x14]
inc esi
add ecx, 0x380
test edi, edi
mov dword [esp + 0x14], ecx
je 0x407433
dec esi
cmp ebp, esi
je 0x4074c0
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 0x4074b6
mov eax, dword [ebx - 4]
lea esi, [ebx - 4]
push fcn.00407720
push eax
push 0x380
push ebx
call fcn.005278b1
push esi
call fcn.00542796
add esp, 4
mov eax, 0x271e
jmp 0x4076fc
xor edi, edi
test ebp, ebp
jbe 0x407545
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 0x407585
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 0x4074cc
test ebp, ebp
mov dword [esp + 0x1c], 0
jbe 0x407652
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 0x4075cf
inc esi
add eax, 0x380
cmp esi, ebp
jb 0x407572
jmp 0x407628
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 0x4075c6
mov ecx, dword [ebx - 4]
lea esi, [ebx - 4]
push fcn.00407720
push ecx
push 0x380
push ebx
call fcn.005278b1
push esi
call fcn.00542796
add esp, 4
mov eax, dword [esp + 0x1c]
jmp 0x4076fc
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 0x407697
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 0x407564
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x407681
mov edx, dword [ebx - 4]
lea esi, [ebx - 4]
push fcn.00407720
push edx
push 0x380
push ebx
call fcn.005278b1
push esi
call fcn.00542796
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 0x4076fc
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 0x4076d8
mov eax, dword [ebx - 4]
lea esi, [ebx - 4]
push fcn.00407720
push eax
push 0x380
push ebx
call fcn.005278b1
push esi
call fcn.00542796
add esp, 4
mov eax, edi
jmp 0x4076fc
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 0x4076fc
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