Function at 0x106902b
Capabilities:
Check mutex on windows
Create process on windows
Get common file path
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x694
mov eax, dword [0x111121c]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x620], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
xor ecx, ecx
inc ecx
cmp eax, reloc.WSOCK32.dll_closesocket
mov dword [ebp - 0x630], ecx
je 0x106936b
cmp eax, reloc.WSOCK32.dll_connect
je 0x106936b
push ebx
push edi
xor eax, eax
lea edi, [ebp - 0x640]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor ebx, ebx
push ebx
push 0x9c9c
push ebx
stosd dword es:[edi], eax
push 4
lea eax, [ebp - 0x640]
push eax
push 0xffffffffffffffff
mov dword [ebp - 0x640], 0xc
mov dword [ebp - 0x638], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp - 0x634], eax
je 0x1069361
push esi
push ebx
push ebx
push ebx
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
cmp esi, ebx
je 0x1069354
push ebx
xor eax, eax
push ebx
mov ecx, 0x2727
mov edi, esi
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
lea eax, [ebp - 0x640]
push eax
call edi
push ebx
push ebx
mov dword [ebp - 0x62c], eax
push ebx
lea eax, [ebp - 0x640]
push eax
call edi
push ebx
mov dword [ebp - 0x628], eax
push ebx
lea eax, [ebp - 0x640]
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
push 1
mov dword [ebp - 0x624], eax
lea eax, [esi + 0x28]
push 0x1f0fff
push eax
call edi
push eax
push dword [ebp - 0x620]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1069311
mov edx, dword [ebp - 0x62c]
cmp edx, ebx
je 0x1069325
mov ecx, dword [ebp - 0x628]
cmp ecx, ebx
je 0x1069311
mov eax, dword [ebp - 0x624]
cmp eax, ebx
je 0x1069311
cmp dword [esi + 0x28], ebx
je 0x1069311
mov edi, dword [ebp + 0x14]
mov dword [esi + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x10]
push 0x38
mov dword [esi + 0x10], eax
mov dword [esi + 8], edi
mov edi, dword [ebp + 0x18]
push 0x100b43c
lea eax, [esi + 0x21ac]
push eax
mov dword [esi + 0xc], edi
mov dword [esi + 0x20], edx
mov dword [esi + 0x18], ecx
mov dword [esi], 0x9c9c
mov dword [esi + 4], 0x20000
mov dword [esi + 0x30], 0x20
mov dword [esi + 0x44], 3
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
push 0x104
lea eax, [esi + 0x258]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x694]
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x650]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x20c]
push eax
push ebx
push ebx
push 0x2b
push ebx
mov dword [ebp - 0x694], 0x44
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push dword [ebp - 0x634]
lea eax, [ebp - 0x20c]
push eax
push 0x100b3e8
lea eax, [ebp - 0x61c]
push 0x208
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x14
lea eax, [ebp - 0x650]
push eax
lea eax, [ebp - 0x694]
push eax
push ebx
push ebx
push 0x4000020
xor edi, edi
inc edi
push edi
push ebx
push ebx
lea eax, [ebp - 0x61c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1069302
mov dword [ebp - 0x620], edi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x4e20
push dword [ebp - 0x62c]
call edi
test eax, eax
jne 0x1069291
push 1
push dword [ebp - 0x628]
call edi
test eax, eax
jne 0x10692e8
mov dword [ebp - 0x620], ebx
jmp 0x10692e8
push 0x4e20
push dword [ebp - 0x624]
call edi
cmp eax, 0x102
je 0x1069302
cmp eax, 0x80
je 0x10692f6
push 1
push dword [ebp - 0x62c]
call edi
test eax, eax
je 0x10692c8
push dword [ebp - 0x628]
call dword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x10692d6
push 1
push dword [ebp - 0x628]
call edi
test eax, eax
jne 0x10692dc
mov dword [ebp - 0x620], ebx
push dword [ebp - 0x624]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 0x620], ebx
jne 0x106926a
jmp 0x1069302
push dword [ebp - 0x624]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [esi + 0x9a84], 0x10
jne 0x1069311
mov dword [ebp - 0x630], ebx
cmp dword [ebp - 0x62c], ebx
je 0x1069325
push dword [ebp - 0x62c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x628], ebx
je 0x1069339
push dword [ebp - 0x628]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x624], ebx
je 0x106934d
push dword [ebp - 0x624]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x634]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, dword [ebp - 0x630]
pop edi
pop ebx
jmp 0x106936d
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.0105ec09
leave
ret 0x18