Function at 0x40e330
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 [0x74d890]
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 0x40e399
mov eax, 0xaa
pop esi
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.006157d3
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 0x40e3d1
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x40e7c8
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 0x40e452
lea edx, [esp + 0x30]
push str.Protocol_Catalog9
push edx
call fcn.006172ee
add esp, 8
test eax, eax
je 0x40e437
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi + 2]
jmp 0x40e7c7
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 0x40e467
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp 0x40e7c7
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 0x40e7a7
mov ebp, dword [esp + 0x180]
cmp ebp, dword [esp + 0x28]
jne 0x40e7a7
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.005e9aa7
add esp, 4
test eax, eax
je 0x40e4f7
push fcn.004f34f0
push fcn.004f34a0
push ebp
lea esi, [eax + 4]
push 0x380
push esi
mov dword [eax], ebp
call fcn.00617ec9
mov ebx, esi
mov dword [esp + 0x18], ebx
jmp 0x40e503
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 0x40e53a
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x70]
push eax
call fcn.00546c40
add dword [esp + 0x14], 0x380
inc edi
test esi, esi
je 0x40e510
dec edi
cmp ebp, edi
je 0x40e597
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 0x40e58d
mov edx, dword [ebx - 4]
push fcn.004f34f0
lea esi, [ebx - 4]
push edx
push 0x380
push ebx
call fcn.00615d78
push esi
call fcn.005e9ab2
add esp, 4
mov eax, 0x271e
jmp 0x40e7c7
xor edi, edi
test ebp, ebp
jbe 0x40e627
lea esi, [ebx + 0x12d]
jmp 0x40e5b0
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 0x40e665
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 0x40e5b0
mov ebx, dword [esp + 0x18]
xor ecx, ecx
mov dword [esp + 0x18], ecx
test ebp, ebp
jbe 0x40e71d
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 0x40e6b1
inc esi
add eax, 0x380
cmp esi, ebp
jb 0x40e652
jmp 0x40e708
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 0x40e6aa
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.004f34f0
push ecx
push 0x380
push eax
call fcn.00615d78
push esi
call fcn.005e9ab2
add esp, 4
mov eax, ebx
jmp 0x40e7c7
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 0x40e762
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 0x40e640
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x40e74c
mov eax, dword [ebx - 4]
push fcn.004f34f0
lea esi, [ebx - 4]
push eax
push 0x380
push ebx
call fcn.00615d78
push esi
call fcn.005e9ab2
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 0x40e7c7
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 0x40e7a3
mov ecx, dword [ebx - 4]
push fcn.004f34f0
lea esi, [ebx - 4]
push ecx
push 0x380
push ebx
call fcn.00615d78
push esi
call fcn.005e9ab2
add esp, 4
mov eax, edi
jmp 0x40e7c7
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 0x40e7c7
mov eax, 0x2726
pop ebx
mov ecx, dword [esp + 0x170]
pop edi
pop ebp
pop esi
xor ecx, esp
call fcn.006157d3
add esp, 0x168
ret 8