Function at 0x40e6e0
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 [0x755898]
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 0x40e749
mov eax, 0xaa
pop esi
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.0061d2ff
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 0x40e781
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x40eb78
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 0x40e802
lea edx, [esp + 0x30]
push str.Protocol_Catalog9
push edx
call fcn.0061ee1e
add esp, 8
test eax, eax
je 0x40e7e7
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi + 2]
jmp 0x40eb77
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 0x40e817
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x40eb77
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 0x40eb57
mov ebp, dword [esp + 0x180]
cmp ebp, dword [esp + 0x28]
jne 0x40eb57
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.005f15c2
add esp, 4
test eax, eax
je 0x40e8a7
push fcn.004e5fb0
push fcn.0054dcf0
push ebp
lea esi, [eax + 4]
push 0x380
push esi
mov dword [eax], ebp
call fcn.0061f9f9
mov ebx, esi
mov dword [esp + 0x18], ebx
jmp 0x40e8b3
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 0x40e8ea
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x70]
push eax
call fcn.0054e080
add dword [esp + 0x14], 0x380
inc edi
test esi, esi
je 0x40e8c0
dec edi
cmp ebp, edi
je 0x40e947
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 0x40e93d
mov edx, dword [ebx - 4]
push fcn.004e5fb0
lea esi, [ebx - 4]
push edx
push 0x380
push ebx
call fcn.0061d8a4
push esi
call fcn.005f15b7
add esp, 4
mov eax, 0x271e
jmp 0x40eb77
xor edi, edi
test ebp, ebp
jbe 0x40e9d7
lea esi, [ebx + 0x12d]
jmp 0x40e960
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 0x40ea15
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 0x40e960
mov ebx, dword [esp + 0x18]
xor ecx, ecx
mov dword [esp + 0x18], ecx
test ebp, ebp
jbe 0x40eacd
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 0x40ea61
inc esi
add eax, 0x380
cmp esi, ebp
jb 0x40ea02
jmp 0x40eab8
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 0x40ea5a
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.004e5fb0
push ecx
push 0x380
push eax
call fcn.0061d8a4
push esi
call fcn.005f15b7
add esp, 4
mov eax, ebx
jmp 0x40eb77
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 0x40eb12
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 0x40e9f0
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x40eafc
mov eax, dword [ebx - 4]
push fcn.004e5fb0
lea esi, [ebx - 4]
push eax
push 0x380
push ebx
call fcn.0061d8a4
push esi
call fcn.005f15b7
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 0x40eb77
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 0x40eb53
mov ecx, dword [ebx - 4]
push fcn.004e5fb0
lea esi, [ebx - 4]
push ecx
push 0x380
push ebx
call fcn.0061d8a4
push esi
call fcn.005f15b7
add esp, 4
mov eax, edi
jmp 0x40eb77
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 0x40eb77
mov eax, 0x2726
pop ebx
mov ecx, dword [esp + 0x170]
pop edi
pop ebp
pop esi
xor ecx, esp
call fcn.0061d2ff
add esp, 0x168
ret 8