Function at 0x10005278
Capabilities:
Check mutex on windows
Check os version

Disassembly:
push 0xc6c
push 0x100151e0
call fcn.10008650
mov ebx, dword [ebp + 8]
xor eax, eax
mov byte [ebp - 0xc4e], al
mov dword [ebp - 4], eax
mov edi, 0x114
push edi
push eax
mov esi, 0x10017718
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [0x10017718], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor edi, edi
mov dword [ebp - 0xc54], edi
cmp dword [0x10017728], 2
jne 0x10005310
and dword [ebp - 0xc60], edi
lea eax, [ebp - 0xc7c]
mov dword [ebp - 0xc64], eax
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
test eax, eax
je 0x1000571b
push edi
push edi
push 1
lea eax, [ebp - 0xc7c]
push eax
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
test eax, eax
je 0x1000571b
lea edi, [ebp - 0xc68]
mov dword [ebp - 0xc54], edi
test ebx, ebx
je 0x100053c4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x100053c4
push ebx
push str.WBXTRA_TRACE_MUTEX
push str._s__s
mov esi, 0x104
push esi
lea eax, [ebp - 0x634]
push eax
call fcn.100041e9
push ebx
push str.WBXTRA_TRACE_MUTEX_EX
push str._s__s
push esi
lea eax, [ebp - 0x83c]
push eax
call fcn.100041e9
push ebx
push str.WBXTRA_TRACE_FILE
push str._s__s
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.100041e9
push ebx
push str.WBXTRA_TRACE_FILE_EX
push str._s__s
push esi
lea eax, [ebp - 0x42c]
push eax
call fcn.100041e9
add esp, 0x50
push ebx
push str.WBXTRA_TRACE_EVENT
push str._s__s
push esi
lea eax, [ebp - 0xa44]
push eax
call fcn.100041e9
push ebx
push str.WBXTRA_TRACE_EVENT_EX
push str._s__s
push esi
lea eax, [ebp - 0xc4c]
push eax
call fcn.100041e9
add esp, 0x28
jmp 0x10005438
push str.WBXTRA_TRACE_MUTEX
mov esi, 0x104
push esi
lea eax, [ebp - 0x634]
push eax
call fcn.10004295
push str.WBXTRA_TRACE_MUTEX_EX
push esi
lea eax, [ebp - 0x83c]
push eax
call fcn.10004295
push str.WBXTRA_TRACE_FILE
push esi
lea eax, [ebp - 0x224]
push eax
call fcn.10004295
push str.WBXTRA_TRACE_FILE_EX
push esi
lea eax, [ebp - 0x42c]
push eax
call fcn.10004295
push str.WBXTRA_TRACE_EVENT
push esi
lea eax, [ebp - 0xa44]
push eax
call fcn.10004295
push str.WBXTRA_TRACE_EVENT_EX
push esi
lea eax, [ebp - 0xc4c]
push eax
call fcn.10004295
add esp, 0x48
lea eax, [ebp - 0x634]
push eax
push 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateMutexW]
call edi
mov dword [0x10017830], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
sub eax, 0xb7
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0xc5c], eax
lea eax, [ebp - 0x83c]
push eax
push 0
push dword [ebp - 0xc54]
call edi
mov edi, eax
call esi
lea ecx, [eax - 0xb7]
neg ecx
sbb ecx, ecx
inc ecx
xor esi, esi
inc esi
mov dword [ebp - 0xc58], esi
mov edx, dword [0x10017830]
test edx, edx
je 0x100056c6
test edi, edi
je 0x100056d1
mov eax, dword [ebp - 0xc5c]
test eax, eax
jne 0x100054e0
test ecx, ecx
jne 0x100054e0
mov byte [ebp - 0xc4d], 1
call fcn.10001562
mov dword [section..data], eax
cmp dword [0x10017878], 0
cmovne eax, dword [0x10017004]
mov dword [section..data], eax
push dword [0x10017830]
jmp 0x100054ec
mov byte [ebp - 0xc4d], 0
test ecx, ecx
je 0x10005502
push edx
xor esi, esi
mov dword [ebp - 0xc58], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x10017830], edi
jmp 0x1000550d
test eax, eax
je 0x1000550d
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0xc4d], 0
je 0x10005585
push ebx
push dword [ebp - 0xc54]
call fcn.10004f3b
pop ecx
pop ecx
mov dword [0x1001782c], eax
test eax, eax
je 0x100056b0
cmp dword [0x10017728], 2
jne 0x100055e5
cmp dword [0x1001771c], 6
jb 0x100055e5
lea eax, [ebp - 0x634]
push eax
call fcn.10004012
lea eax, [ebp - 0x83c]
push eax
call fcn.10004012
lea eax, [ebp - 0x224]
push eax
call fcn.10004012
lea eax, [ebp - 0x42c]
push eax
call fcn.10004012
add esp, 0x10
mov eax, dword [0x1001782c]
jmp 0x100055e5
test esi, esi
mov esi, dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
je 0x100055b5
lea eax, [ebp - 0x224]
push eax
push 0
push 6
call esi
mov dword [0x1001782c], eax
test eax, eax
jne 0x100055ed
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x224]
jmp 0x100055d9
lea eax, [ebp - 0x42c]
push eax
push 0
push 6
call esi
mov dword [0x1001782c], eax
test eax, eax
jne 0x100055ed
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x42c]
push eax
push 0
push 6
call esi
mov dword [0x1001782c], eax
test eax, eax
je 0x100056b0
push 0x3e8
push dword [0x10017830]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10005619
cmp eax, 0x80
je 0x10005619
push str.wbxtra_do_init___WaitForSingleObject__r_n
call fcn.1000150d
pop ecx
jmp 0x100056b0
mov byte [ebp - 0xc4e], 1
push ebx
xor ebx, ebx
push ebx
push ebx
push ebx
push 2
push dword [0x1001782c]
call fcn.10003dfe
add esp, 0x18
mov esi, eax
mov dword [0x10017834], esi
test esi, esi
je 0x10005693
cmp byte [ebp - 0xc4d], bl
je 0x10005659
push dword [section..data]
push esi
call fcn.10005da9
pop ecx
jmp 0x1000569d
push 4
push str.WBXT
push 4
push esi
call fcn.10004310
add esp, 0x10
test eax, eax
jne 0x10005675
cmp byte [esi + 6], 3
je 0x1000569e
push str.wbxtra_do_init___WbxUnmapViewOfFile_r_n
call fcn.1000150d
push dword [0x10017834]
call fcn.100040d4
pop ecx
mov dword [0x10017834], ebx
jmp 0x1000569d
push str.wbxtra_do_init___WbxMapViewOfFile_failed_r_n
call fcn.1000150d
pop ecx
push dword [0x10017830]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [ebp - 0xc4e], bl
cmp dword [0x10017834], 0
jne 0x1000571b
push str.wbxtra_do_init___wbxtra_lib_clean_111_r_n
call fcn.1000150d
pop ecx
jmp 0x10005716
test edi, edi
je 0x100056d1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.wbxtra_do_init___wbxtra_lib_clean_r_n
jmp 0x100056be
call fcn.10005e10
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret