Function at 0x40ede0
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4b8
mov eax, dword [0x52b420]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x104
lea eax, [ebp - 0x410]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x6c
call fcn.004169cb
add esp, 4
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 0
je 0x40ee41
push 0
push 0
push 0
mov ecx, dword [ebp - 0x43c]
call fcn.004071b0
mov dword [ebp - 0x440], eax
jmp 0x40ee4b
mov dword [ebp - 0x440], 0
mov ecx, dword [ebp - 0x440]
mov dword [ebp - 0x488], ecx
mov edx, dword [ebp - 0x488]
mov dword [0x52c378], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov dword [ebp - 0x48c], eax
lea eax, [ebp - 0x48c]
push eax
mov ecx, dword [0x52c378]
add ecx, 0x3c
call fcn.00410270
push 0x2c
call fcn.004169cb
add esp, 4
mov dword [ebp - 0x444], eax
cmp dword [ebp - 0x444], 0
je 0x40eeb0
mov ecx, dword [ebp - 0x444]
call fcn.00407880
mov dword [ebp - 0x448], eax
jmp 0x40eeba
mov dword [ebp - 0x448], 0
mov ecx, dword [ebp - 0x448]
mov dword [ebp - 0x490], ecx
mov edx, dword [ebp - 0x490]
mov dword [0x52c374], edx
push 0
mov ecx, dword [0x52c374]
call fcn.00407b20
movzx eax, al
test eax, eax
jne 0x40ef08
lea ecx, [ebp - 0x410]
push ecx
push 0x43b5e4
mov edx, dword [0x52c378]
push edx
call fcn.00406ae0
add esp, 0xc
xor eax, eax
jmp 0x40f83a
mov eax, dword [0x52c374]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.00421d8d
add esp, 4
mov edx, dword [0x52c378]
mov dword [edx + 0x48], eax
mov eax, dword [0x52c374]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.00421d8d
add esp, 4
mov edx, dword [0x52c378]
mov dword [edx + 0x4c], eax
mov eax, dword [0x52c374]
mov ecx, dword [eax + 0x1c]
push ecx
call fcn.00421d8d
add esp, 4
mov edx, dword [0x52c378]
mov dword [edx + 0x50], eax
mov ecx, dword [0x52c378]
call fcn.00406280
push 0x43b608
mov eax, dword [0x52c378]
push eax
call fcn.00406ae0
add esp, 8
lea ecx, [ebp - 0x460]
push ecx
lea edx, [ebp - 0x4a8]
push edx
lea eax, [ebp - 0x494]
push eax
push 0x43b618
mov ecx, dword [0x52c374]
call fcn.00407dd0
movzx ecx, al
test ecx, ecx
je 0x40f003
lea edx, [ebp - 0x464]
push edx
lea eax, [ebp - 0x4ac]
push eax
lea ecx, [ebp - 0x494]
push ecx
push 0x43b624
mov ecx, dword [0x52c374]
call fcn.00407dd0
movzx edx, al
test edx, edx
je 0x40f003
mov eax, dword [ebp - 0x460]
push eax
push 0x43b630
mov ecx, dword [0x52c378]
push ecx
call fcn.00406ae0
add esp, 0xc
mov edx, dword [ebp - 0x464]
push edx
push 0x43b644
mov eax, dword [0x52c378]
push eax
call fcn.00406ae0
add esp, 0xc
jmp 0x40f017
push 0x43b658
mov ecx, dword [0x52c378]
push ecx
call fcn.00406ae0
add esp, 8
call fcn.00410640
test eax, eax
je 0x40f3ac
push str.Log:isSystem64BitWow___True_n
mov edx, dword [0x52c378]
push edx
call fcn.00406ae0
add esp, 8
mov eax, dword [0x52c374]
mov ecx, dword [eax + 0x10]
push ecx
push 0x43b6a8
push 0
push 0
call fcn.00407780
add esp, 0x10
mov dword [ebp - 0x468], eax
mov edx, dword [ebp - 0x468]
add edx, 1
push edx
call fcn.00416a09
add esp, 4
mov dword [ebp - 0x46c], eax
mov eax, dword [ebp - 0x46c]
mov dword [ebp - 0x424], eax
mov ecx, dword [0x52c374]
mov edx, dword [ecx + 0x10]
push edx
push str.GlobalCYMULATE_HIDER__s
mov eax, dword [ebp - 0x424]
push eax
call fcn.00407840
add esp, 0xc
call fcn.0040f850
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 0
je 0x40f111
mov dword [ebp - 0x4a0], 0xc
mov ecx, dword [ebp - 0x428]
mov dword [ebp - 0x49c], ecx
mov dword [ebp - 0x498], 0
mov edx, dword [ebp - 0x424]
push edx
push str.Log:CreateMutexA_:__s_n
mov eax, dword [0x52c378]
push eax
call fcn.00406ae0
add esp, 0xc
mov ecx, dword [ebp - 0x424]
push ecx
push 1
lea edx, [ebp - 0x4a0]
push edx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x454], eax
mov eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 0x454], 0
je 0x40f377
push 0x104
push 0
lea ecx, [ebp - 0x108]
push ecx
call fcn.004194e0
add esp, 0xc
push str.Log:Save_64_bit_hider_from_resources_to_disk_and_Copy_EDR_resources_into_it.._n
mov edx, dword [0x52c378]
push edx
call fcn.00406ae0
add esp, 8
lea eax, [ebp - 0x108]
push eax
call fcn.00410660
add esp, 4
test eax, eax
jne 0x40f19b
lea ecx, [ebp - 0x108]
push ecx
push str.Log:Failed_building__s__exiting__n
mov edx, dword [0x52c378]
push edx
call fcn.00406ae0
add esp, 0xc
push 0x43b76c
mov eax, dword [0x52c378]
push eax
call fcn.00406ae0
add esp, 8
mov ecx, dword [0x52c378]
call fcn.00406490
xor eax, eax
jmp 0x40f83a
push 0
lea ecx, [ebp - 0x108]
push ecx
mov ecx, dword [0x52c374]
call fcn.00407ea0
movzx edx, al
test edx, edx
je 0x40f368
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x43b778
lea ecx, [ebp - 0x20c]
push ecx
call fcn.00422308
add esp, 8
mov dword [ebp - 0x42c], eax
cmp dword [ebp - 0x42c], 0
je 0x40f21e
mov edx, dword [ebp - 0x42c]
push edx
lea eax, [ebp - 0x30c]
push eax
call fcn.00422210
add esp, 8
push 0x43b77c
push 0
call fcn.00422308
add esp, 8
mov dword [ebp - 0x42c], eax
jmp 0x40f1e8
lea ecx, [ebp - 0x30c]
push ecx
mov edx, dword [ebp - 0x424]
push edx
push str._s__s
call fcn.004017d0
add esp, 0xc
mov dword [ebp - 0x470], eax
mov eax, dword [ebp - 0x470]
push eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.00410950
add esp, 8
mov dword [ebp - 0x420], eax
cmp dword [ebp - 0x420], 0xffffffff
jne 0x40f290
push str.Log:Failed_to_start_x64Hider._n
mov edx, dword [0x52c378]
push edx
call fcn.00406ae0
add esp, 8
push 0x43b7a8
mov eax, dword [0x52c378]
push eax
call fcn.00406ae0
add esp, 8
jmp 0x40f368
mov ecx, dword [ebp - 0x420]
push ecx
lea edx, [ebp - 0x108]
push edx
push str.Log:_s_Executed_____lu__n
mov eax, dword [0x52c378]
push eax
call fcn.00406ae0
add esp, 0x10
mov ecx, dword [ebp - 0x420]
push ecx
push 0
push 0x101000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x44c], eax
cmp dword [ebp - 0x44c], 0
je 0x40f368
mov edx, 1
test edx, edx
je 0x40f368
push 0x7d0
mov eax, dword [ebp - 0x44c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x450], eax
cmp dword [ebp - 0x450], 0xffffffff
jne 0x40f33d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x420]
push ecx
push str.Log:Failed_while_waiting_for_X64_process___lu___Error___lu_n
mov edx, dword [0x52c378]
push edx
call fcn.00406ae0
add esp, 0x10
push 0x43b810
mov eax, dword [0x52c378]
push eax
call fcn.00406ae0
add esp, 8
jmp 0x40f368
cmp dword [ebp - 0x450], 0
jne 0x40f363
mov ecx, dword [ebp - 0x420]
push ecx
push str.Log:X64_process___lu__finished._n
mov edx, dword [0x52c378]
push edx
call fcn.00406ae0
add esp, 0xc
jmp 0x40f368
jmp 0x40f2d8
mov eax, dword [ebp - 0x454]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40f3a5
mov ecx, dword [ebp - 0x424]
push ecx
push str.Log:Failed_to_create_mutex.___s__n
mov edx, dword [0x52c378]
push edx
call fcn.00406ae0
add esp, 0xc
push 0x43b864
mov eax, dword [0x52c378]
push eax
call fcn.00406ae0
add esp, 8
xor eax, eax
jmp 0x40f83a
mov dword [ebp - 0x458], 0
lea ecx, [ebp - 0x458]
push ecx
lea edx, [ebp - 0x4b0]
push edx
lea eax, [ebp - 0x4b4]
push eax
push 0x43b870
mov ecx, dword [0x52c374]
call fcn.00407dd0
movzx ecx, al
test ecx, ecx
jne 0x40f40b
push 0x43b890
mov edx, dword [0x52c378]
push edx
call fcn.00406ae0
add esp, 8
push 0x43b918
call fcn.00401740
add esp, 4
mov dword [ebp - 0x418], eax
jmp 0x40f425
mov eax, dword [ebp - 0x458]
push eax
push 0x43b97c
call fcn.00401740
add esp, 8
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x45c], 0
lea ecx, [ebp - 0x45c]
push ecx
lea edx, [ebp - 0x4a4]
push edx
lea eax, [ebp - 0x4b8]
push eax
push 0x43b884
mov ecx, dword [0x52c374]
call fcn.00407dd0
movzx ecx, al
test ecx, ecx
jne 0x40f496
push 0x43b984
mov edx, dword [0x52c378]
push edx
call fcn.00406ae0
add esp, 8
push 0x43b9b0
mov eax, dword [0x52c378]
push eax
call fcn.00406ae0
add esp, 8
mov ecx, dword [0x52c378]
call fcn.00406490
xor eax, eax
jmp 0x40f83a
mov ecx, dword [ebp - 0x45c]
push ecx
push 0x43b9bc
call fcn.00401740
add esp, 8
mov dword [ebp - 0x438], eax
mov edx, dword [ebp - 0x418]
push edx
push 0x43b9c4
mov eax, dword [0x52c378]
push eax
call fcn.00406ae0
add esp, 0xc
mov ecx, dword [ebp - 0x438]
push ecx
push 0x43b9e4
mov edx, dword [0x52c378]
push edx
call fcn.00406ae0
add esp, 0xc
push 0x104
call fcn.00416a09
add esp, 4
mov dword [ebp - 0x474], eax
mov eax, dword [ebp - 0x474]
mov dword [ebp - 0x41c], eax
push 0x104
push 0
mov ecx, dword [ebp - 0x41c]
push ecx
call fcn.004194e0
add esp, 0xc
mov edx, dword [ebp - 0x41c]
push edx
call fcn.00410750
add esp, 4
test eax, eax
je 0x40f78b
mov eax, dword [ebp - 0x438]
push eax
mov ecx, dword [ebp - 0x418]
push ecx
mov edx, dword [ebp - 0x41c]
push edx
call fcn.004138d0
add esp, 0xc
test eax, eax
je 0x40f743
push 0
push 0
mov eax, dword [ebp - 0x418]
push eax
push 0
push 1
push 0x43b9fc
mov ecx, dword [0x52c378]
call fcn.00406db0
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0
push 0
push 1
push 0x43ba0c
mov ecx, dword [0x52c378]
call fcn.00406db0
push 0
push 0
push 0
push 0x412700
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x52c388], eax
mov byte [ebp - 0x411], 0
push 0x43ba34
mov ecx, dword [0x52c378]
push ecx
call fcn.00406ae0
add esp, 8
call fcn.0040f8a0
mov byte [ebp - 0x411], al
movzx edx, byte [ebp - 0x411]
push edx
push 0x43ba5c
mov eax, dword [0x52c378]
push eax
call fcn.00406ae0
add esp, 0xc
movzx ecx, byte [ebp - 0x411]
test ecx, ecx
je 0x40f72e
push 0
mov edx, dword [ebp - 0x41c]
push edx
call fcn.00410950
add esp, 8
mov dword [ebp - 0x434], eax
cmp dword [ebp - 0x434], 0xffffffff
je 0x40f6e6
mov eax, dword [ebp - 0x434]
push eax
mov ecx, dword [ebp - 0x41c]
push ecx
push 0x43ba8c
call fcn.004017d0
add esp, 0xc
mov dword [ebp - 0x430], eax
push 0
push 0
mov edx, dword [ebp - 0x430]
push edx
push 0
push 1
push 0x43ba98
mov ecx, dword [0x52c378]
call fcn.00406c80
mov eax, dword [ebp - 0x430]
mov dword [ebp - 0x478], eax
push 1
mov ecx, dword [ebp - 0x478]
push ecx
call fcn.004169fb
add esp, 8
mov dword [ebp - 0x430], 0
push 0
push 0
mov edx, dword [ebp - 0x434]
push edx
push 0x4104a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x52c384], eax
push 0x43baa8
mov eax, dword [0x52c378]
push eax
call fcn.00406ae0
add esp, 8
push 0xffffffffffffffff
mov ecx, dword [0x52c388]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x43bad0
mov edx, dword [0x52c378]
push edx
call fcn.00406ae0
add esp, 8
jmp 0x40f72c
push 0x43baec
mov eax, dword [0x52c378]
push eax
call fcn.00406ae0
add esp, 8
push 0
push 0
mov ecx, dword [ebp - 0x41c]
push ecx
push 0
push 0
push 0x43bb08
mov ecx, dword [0x52c378]
call fcn.00406c80
push 0x43bb18
mov edx, dword [0x52c378]
push edx
call fcn.00406ae0
add esp, 8
jmp 0x40f741
push 0x43bb24
mov eax, dword [0x52c378]
push eax
call fcn.00406ae0
add esp, 8
jmp 0x40f789
push 0
push 0
mov ecx, dword [ebp - 0x418]
push ecx
push 0
push 0
push 0x43bb54
mov ecx, dword [0x52c378]
call fcn.00406db0
push 0x43bb64
mov edx, dword [0x52c378]
push edx
call fcn.00406ae0
add esp, 8
push 0x43bb9c
mov eax, dword [0x52c378]
push eax
call fcn.00406ae0
add esp, 8
jmp 0x40f7d1
push 0
push 0
mov ecx, dword [ebp - 0x418]
push ecx
push 0
push 0
push 0x43bba8
mov ecx, dword [0x52c378]
call fcn.00406db0
push 0x43bbb8
mov edx, dword [0x52c378]
push edx
call fcn.00406ae0
add esp, 8
push 0x43bbe8
mov eax, dword [0x52c378]
push eax
call fcn.00406ae0
add esp, 8
mov ecx, dword [ebp - 0x418]
mov dword [ebp - 0x47c], ecx
push 2
mov edx, dword [ebp - 0x47c]
push edx
call fcn.004169fb
add esp, 8
mov eax, dword [ebp - 0x438]
mov dword [ebp - 0x480], eax
push 2
mov ecx, dword [ebp - 0x480]
push ecx
call fcn.004169fb
add esp, 8
mov edx, dword [ebp - 0x41c]
mov dword [ebp - 0x484], edx
push 1
mov eax, dword [ebp - 0x484]
push eax
call fcn.004169fb
add esp, 8
call fcn.004105a0
mov ecx, dword [0x52c378]
call fcn.00406490
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416e65
mov esp, ebp
pop ebp
ret 0x10