Function at 0xfc5180
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Create thread
Hash data with md5
Print debug messages
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10b17c5
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x10df584]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push esi
push edi
mov eax, dword [0x10df584]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
push 0x104
lea eax, [esp + 0x150]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0xfc5212
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor esi, esi
push 0
push 0
push 3
push 0
push 0
push 0x80000000
lea ecx, [esp + 0x164]
push ecx
call edi
cmp eax, 0xffffffff
jne 0xfc5212
push 0x3e8
call ebx
inc esi
cmp esi, 0xa
jl 0xfc51e7
lea edx, [esp + 0x90]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx ecx, word [esp + 0x90]
xor eax, eax
mov dword [esp + 0x115], eax
mov dword [esp + 0x119], eax
mov dword [esp + 0x11d], eax
mov dword [esp + 0x121], eax
mov word [esp + 0x125], ax
mov byte [esp + 0x127], al
movzx eax, word [esp + 0x92]
push eax
push ecx
push str.Singon__d__d
lea edx, [esp + 0x120]
mov byte [esp + 0x120], 0
call fcn.00fc5dc0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push str.3D66C561_FD36_40C4_89A8_7406132B97BC
push 0
push 0xf001f
mov edi, eax
call dword [sym.imp.KERNEL32.dll_OpenFileMappingA]
mov ebx, eax
xor esi, esi
cmp ebx, esi
je 0xfc52da
push 0xfa4
push esi
push esi
push 0xf001f
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0xfc52d1
mov edx, dword [esi]
push 0xfa4
mov dword [esi + edx*4 + 4], edi
inc dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
xor eax, eax
mov dword [esp + 0x35], eax
mov dword [esp + 0x39], eax
mov dword [esp + 0x3d], eax
mov word [esp + 0x41], ax
mov byte [esp + 0x43], al
mov byte [esp + 0x128], al
mov dword [esp + 0x129], eax
mov dword [esp + 0x12d], eax
mov dword [esp + 0x131], eax
mov dword [esp + 0x135], eax
mov dword [esp + 0x139], eax
mov dword [esp + 0x13d], eax
mov dword [esp + 0x141], eax
mov dword [esp + 0x145], eax
mov byte [esp + 0x74], al
lea eax, [esp + 0x114]
mov byte [esp + 0x34], 0
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xfc5355
sub eax, edx
push eax
lea eax, [esp + 0x118]
push eax
lea ecx, [esp + 0x7c]
call fcn.00fc2a60
mov dword [esp + 0x268], esi
mov eax, dword [esp + 0x74]
mov edi, 0x10
cmp dword [esp + 0x88], edi
jae 0xfc538d
lea eax, [esp + 0x74]
push eax
mov eax, dword [esp + 0x88]
lea ecx, [esp + 0xc0]
mov dword [esp + 0xd4], esi
mov dword [esp + 0xd0], esi
mov dword [esp + 0xc0], 0x67452301
mov dword [esp + 0xc4], 0xefcdab89
mov dword [esp + 0xc8], 0x98badcfe
mov dword [esp + 0xcc], 0x10325476
call fcn.00fe2e60
add esp, 4
lea esi, [esp + 0xbc]
lea ebx, [esp + 0x34]
call fcn.00fe2f20
lea ecx, [esp + 0x128]
push ecx
mov edx, ebx
push edx
call fcn.00fc26c0
add esp, 8
xor ebx, ebx
lea eax, [esp + 0x128]
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0xfc5420
sub eax, edx
push eax
lea eax, [esp + 0x12c]
push eax
lea ecx, [esp + 0x60]
call fcn.00fc2a60
mov byte [esp + 0x268], 1
mov eax, dword [esp + 0x58]
cmp dword [esp + 0x6c], edi
jae 0xfc5451
lea eax, [esp + 0x58]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0xfc54f7
push str.Found_an_Existing_Instance.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp esi, ebx
je 0xfc5483
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esp + 0x268], 0
cmp dword [esp + 0x6c], edi
jb 0xfc549e
mov ecx, dword [esp + 0x58]
push ecx
call fcn.010425e4
add esp, 4
mov dword [esp + 0x268], 0xffffffff
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], 0
cmp dword [esp + 0x88], edi
jb 0xfc54d0
mov edx, dword [esp + 0x74]
push edx
call fcn.010425e4
add esp, 4
or eax, 0xffffffff
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.01042239
mov esp, ebp
pop ebp
ret
push str.Tpsp_Begin_to_Start.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.NtQueryInformationProcess
push 0x10d1118
or ebx, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0xfc5578
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
test edi, edi
je 0xfc5578
push 0
push 0x18
lea eax, [esp + 0x3c]
push eax
push 0
push edi
call esi
test eax, eax
jne 0xfc5544
mov ebx, dword [esp + 0x48]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
cmp ebx, 0xffffffff
je 0xfc5578
push ebx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0xfc5571
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call edi
jmp 0xfc5583
push str.GetParentProcessID_OpenProcess_failed.
jmp 0xfc557d
push str.GetParentProcessID_failed.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x10e7140
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x19000
push 0x2800
push 0
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x10e7160], eax
test eax, eax
jne 0xfc55b0
push str._BugReport__HeapCreate_Failed__n
jmp 0xfc55cb
push 0xfc38f0
push 1
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov dword [0x10e715c], eax
test eax, eax
jne 0xfc55d1
push str._BugReport__AddVectoredExceptionHandler_Failed__n
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 0x10ce248
push 0
push 0
mov dword [0x10e7360], 0x28
mov dword [0x10e7364], 0
mov dword [0x10e7368], 0x10ce314
mov dword [0x10e736c], 0x10ce340
mov dword [0x10e7374], 0x10ce248
call edi
mov ebx, eax
lea ecx, [ebx + 1]
push ecx
call fcn.010430b5
add esp, 4
push 0
push 0
push ebx
mov esi, eax
push esi
push 0xffffffffffffffff
push 0x10ce248
push 0
push 0
mov byte [esi + ebx], 0
call edi
mov edi, 0xf
mov eax, esi
mov dword [esp + 0xb4], edi
mov dword [esp + 0xb0], 0
mov byte [esp + 0xa0], 0
lea ecx, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0xfc5670
sub eax, ecx
push eax
push esi
lea ecx, [esp + 0xa8]
call fcn.00fc2a60
mov bl, 2
push esi
mov byte [esp + 0x26c], bl
call fcn.01043498
add esp, 4
push 0xffffffffffffffff
push 0
lea edx, [esp + 0xa8]
push edx
lea ecx, [esp + 0x40]
mov dword [esp + 0x54], edi
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
call fcn.00fc2c50
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x3c]
push eax
mov ecx, 0x10e5be4
mov byte [esp + 0x274], 3
call fcn.00fc2c50
mov esi, 0x10
mov byte [esp + 0x268], bl
cmp dword [esp + 0x48], esi
jb 0xfc56f9
mov ecx, dword [esp + 0x34]
push ecx
call fcn.010425e4
add esp, 4
lea ebx, [esp + 0x34]
mov dword [0x10e7378], 0x12c
mov dword [0x10e737c], 0x278d00
mov dword [0x10e7380], 0xe10
call fcn.0100c0d0
mov byte [esp + 0x268], 4
cmp dword [eax + 0x14], esi
jb 0xfc5731
mov edi, dword [eax]
jmp 0xfc5733
mov edi, eax
xor esi, esi
cmp edi, esi
jne 0xfc573d
xor ebx, ebx
jmp 0xfc5780
push esi
push esi
push 0xffffffffffffffff
push edi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
xor ecx, ecx
lea eax, [esi + esi + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.010430b5
add esp, 4
push esi
mov ebx, eax
push ebx
push 0xffffffffffffffff
xor eax, eax
push edi
push eax
push eax
mov word [ebx + esi*2], ax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor esi, esi
mov byte [esp + 0x268], 2
cmp dword [esp + 0x48], 0x10
jb 0xfc579c
mov ecx, dword [esp + 0x34]
push ecx
call fcn.010425e4
add esp, 4
mov eax, 1
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], esi
mov byte [esp + 0x34], 0
test byte [0x10e7470], al
jne 0xfc5816
or dword [0x10e7470], eax
mov byte [esp + 0x268], 5
xor edx, edx
mov eax, ebx
mov word [0x10e7454], dx
mov dword [0x10e7468], 7
mov dword [0x10e7464], esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0xfc57e6
sub eax, edx
sar eax, 1
push eax
push ebx
mov ecx, 0x10e7454
call fcn.00fc5a50
push 0x10b93c0
call fcn.01042da7
add esp, 4
mov byte [esp + 0x268], 2
push ebx
call fcn.01043498
add esp, 4
cmp dword [0x10e7468], 8
jb 0xfc5834
mov eax, dword [0x10e7454]
mov dword [0x10e7384], eax
jmp 0xfc583e
mov dword [0x10e7384], 0x10e7454
push 0x10e7360
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], esi
call fcn.00fc5080
test eax, eax
jne 0xfc5868
mov edx, dword [esp + 0x14]
push edx
push esi
push 0xfc5160
call fcn.01043187
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push str.kernel32
mov ebx, eax
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, esi
je 0xfc58b6
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0xfc58a3
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
cmp dword [esp + 0x14], esi
je 0xfc58b6
push ebx
call fcn.0100d410
add esp, 4
cmp eax, esi
jne 0xfc58bc
push ebx
call fcn.00fe4610
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
push esi
push esi
push esi
lea ecx, [esp + 0x24]
push ecx
call edi
test eax, eax
je 0xfc5901
mov ebx, dword [sym.imp.USER32.dll_TranslateMessage]
mov esi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea esp, [esp]
lea edx, [esp + 0x18]
push edx
call ebx
lea eax, [esp + 0x18]
push eax
call esi
push 0
push 0
push 0
lea ecx, [esp + 0x24]
push ecx
call edi
test eax, eax
jne 0xfc58e0
xor esi, esi
push str.Tpsp_Main_Thread_Exit.
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]