Function at 0x41cc70
Capabilities:
Check mutex on windows
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x18
push esi
call fcn.00413f70
push str.MiniYMsgCore
push str.MiniYMsgCore
call dword [sym.imp.USER32.dll_FindWindowA]
test eax, eax
je 0x41cc97
or eax, 0xffffffff
pop esi
add esp, 0x18
ret 0x10
push str.YMINISERVER20041012
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
mov dword [esp + 0x10], esi
jne 0x41ccb7
pop esi
add esp, 0x18
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41ccd4
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
pop esi
add esp, 0x18
ret 0x10
push ebx
push ebp
push edi
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
call fcn.00405560
push 0
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_DefWindowProcA]
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], 8
mov dword [esp + 0x28], 4
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov eax, dword [0x456050]
mov ecx, 0x104
mov dword [esp + 0x18], 1
mov dword [esp + 0x14], ecx
lea ebx, [eax - 0xc]
mov dword [esp + 0x10], eax
cmp dword [ebx], 1
jg 0x41cd34
cmp dword [eax - 4], ecx
jge 0x41cd8b
mov ebp, dword [eax - 8]
cmp ebp, ecx
jle 0x41cd3d
mov ecx, ebp
push ecx
lea ecx, [esp + 0x14]
call fcn.004044c0
test eax, eax
je 0x41cd87
mov edi, dword [esp + 0x10]
lea ecx, [ebp + 1]
mov edx, ecx
lea esi, [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
mov dword [eax - 8], ebp
mov eax, dword [0x456054]
cmp ebx, eax
je 0x41cd87
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41cd87
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [eax - 0xc]
lea ebx, [eax - 0xc]
xor ecx, ecx
cmp edx, 1
jg 0x41cd9f
mov edx, dword [eax - 4]
test edx, edx
jge 0x41cdf6
mov ebp, dword [eax - 8]
test ebp, ebp
jle 0x41cda8
mov ecx, ebp
push ecx
lea ecx, [esp + 0x14]
call fcn.004044c0
test eax, eax
je 0x41cdf6
mov edi, dword [esp + 0x10]
lea ecx, [ebp + 1]
mov edx, ecx
lea esi, [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x10]
mov dword [eax - 8], ebp
mov eax, dword [0x456054]
cmp ebx, eax
je 0x41cdf2
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x41cdf2
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push eax
push edx
push str.MiniMsgr
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.00404590
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test esi, esi
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x10]
mov byte [eax + edx], 0
je 0x41cf5d
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov edx, dword [eax - 0xc]
lea ebp, [eax - 0xc]
cmp edx, 1
jg 0x41ce5b
mov edx, dword [eax - 4]
test edx, edx
jge 0x41ce9b
mov ebx, dword [eax - 8]
test ebx, ebx
jle 0x41ce64
mov ecx, ebx
push ecx
lea ecx, [esp + 0x14]
call fcn.004044c0
test eax, eax
je 0x41ce9b
mov edi, dword [esp + 0x10]
lea ecx, [ebx + 1]
mov eax, ecx
lea esi, [ebp + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov dword [ecx - 8], ebx
call fcn.00404560
mov eax, dword [esp + 0x10]
mov edx, dword [0x5e885c]
push str.YMiniSvr.exe
push 0x104
push eax
push edx
call fcn.004123f0
mov edx, dword [esp + 0x20]
add esp, 0x10
xor eax, eax
mov ecx, dword [edx - 0xc]
lea ebx, [edx - 0xc]
cmp ecx, 1
jg 0x41cecd
mov ecx, dword [edx - 4]
test ecx, ecx
jge 0x41cf15
mov ebp, dword [edx - 8]
test ebp, ebp
jle 0x41ced6
mov eax, ebp
push eax
lea ecx, [esp + 0x14]
call fcn.004044c0
test eax, eax
jne 0x41ceec
mov edx, dword [esp + 0x10]
xor edi, edi
jmp 0x41cf17
mov edi, dword [esp + 0x10]
lea ecx, [ebp + 1]
mov eax, ecx
lea esi, [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov dword [ecx - 8], ebp
call fcn.00404560
mov edx, dword [esp + 0x10]
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push 1
push str.MiniMsgr
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
lea ecx, [esp + 0x10]
call fcn.00404590
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x10]
mov dword [ecx - 8], eax
mov edx, dword [esp + 0x10]
mov byte [eax + edx], 0
mov eax, dword [esp + 0x2c]
push 0
push eax
push 0
mov ecx, 0x5e8858
call fcn.0041cfc0
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push ecx
push edx
call fcn.0041c940
add esp, 8
mov ecx, 0x5e8858
mov esi, eax
call fcn.0041d0d0
call fcn.00405660
call dword [sym.imp.ole32.dll_OleUninitialize]
mov edi, dword [esp + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
call fcn.004046d0
pop edi
pop ebp
mov eax, esi
pop ebx
pop esi
add esp, 0x18
ret 0x10