Function at 0x4c17e0
Capabilities:
Check mutex on windows
Packed with generic packer
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f4b1c
mov eax, dword fs:[0]
push eax
sub esp, 0x7f8
mov eax, dword [0x51b2e0]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0xd], 1
call fcn.004bbd10
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [sym.imp.USER32.dll_LoadStringA]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [sym.imp.USER32.dll_LoadStringW]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
push 0x4c01b0
call fcn.004e3c34
add esp, 4
mov eax, dword [0x51a520]
xor eax, dword [0x51a4b8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x51d014
lea ecx, [ebp - 0x124]
push ecx
call fcn.004e3baf
add esp, 0x10
lea edx, [ebp - 0x124]
push edx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x4c1899
mov byte [ebp - 0xd], 0
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x4c1a3a
mov ecx, dword [0x51a4f0]
xor ecx, dword [0x51a524]
xor ecx, dword [0x51a4e0]
and ecx, 0x20
je 0x4c1a3a
mov edx, dword [0x51a4c0]
xor edx, dword [0x51a51c]
xor edx, dword [0x51a520]
push edx
push 0x51d00c
lea eax, [ebp - 0x124]
push eax
call fcn.004e3baf
add esp, 0xc
lea ecx, [ebp - 0x124]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je 0x4c1a3a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4c1a3a
push 0x7530
mov edx, dword [ebp - 0x12c]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
je 0x4c194d
cmp dword [ebp - 0x130], 0x80
jne 0x4c1a30
mov eax, dword [0x51a4c0]
xor eax, dword [0x51a51c]
xor eax, dword [0x51a520]
push eax
push 0x51d004
lea ecx, [ebp - 0x124]
push ecx
call fcn.004e3baf
add esp, 0xc
mov dword [ebp - 0x138], 0
jmp 0x4c198e
mov edx, dword [ebp - 0x138]
add edx, 1
mov dword [ebp - 0x138], edx
cmp dword [ebp - 0x138], 0x12c
jge 0x4c19c7
lea eax, [ebp - 0x124]
push eax
push 0x51cff8
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
je 0x4c19bd
jmp 0x4c19c7
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4c197f
cmp dword [ebp - 0x134], 0
je 0x4c1a23
mov ecx, dword [0x51a4c0]
xor ecx, dword [0x51a51c]
xor ecx, dword [0x51a520]
mov dword [ebp - 0x144], ecx
mov edx, dword [0x52a080]
push edx
call fcn.004e2fc0
add esp, 4
add eax, 1
mov dword [ebp - 0x140], eax
mov eax, dword [0x52a080]
mov dword [ebp - 0x13c], eax
lea ecx, [ebp - 0x144]
push ecx
push 0
push 0x4a
mov edx, dword [ebp - 0x134]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 1
jmp 0x4c2097
push 1
call fcn.004c20b0
add esp, 4
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x4c1da6
mov edx, dword [0x51a4f0]
xor edx, dword [0x51a524]
xor edx, dword [0x51a4e0]
and edx, 0x40
jne 0x4c1da6
push 0x200
lea eax, [ebp - 0x344]
push eax
push 0x51cff0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x4c1da6
push 0xc8
push 0x23
lea ecx, [ebp - 0x344]
push ecx
call fcn.004e0b70
add esp, 0xc
mov byte [ebp - 0x27c], 0
mov dword [ebp - 0x448], 1
jmp 0x4c1ac2
mov edx, dword [ebp - 0x448]
add edx, 1
mov dword [ebp - 0x448], edx
cmp dword [ebp - 0x448], 0x40
jg 0x4c1afc
mov eax, dword [ebp - 0x448]
push eax
push 0x51cfe8
lea ecx, [ebp - 0x444]
push ecx
call fcn.004e3baf
add esp, 0xc
lea edx, [ebp - 0x344]
push edx
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x4c1ab3
mov ecx, dword [0x51a4f0]
xor ecx, dword [0x51a524]
xor ecx, dword [0x51a4e0]
and ecx, 0x10
jne 0x4c1da6
lea edx, [ebp - 0x624]
push edx
call fcn.004d32a0
add esp, 4
mov dword [ebp - 4], 0
lea eax, [ebp - 0x708]
push eax
call fcn.004c9af0
add esp, 4
mov dword [ebp - 0x7f8], eax
mov ecx, dword [ebp - 0x7f8]
mov dword [ebp - 0x7fc], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x7fc]
push edx
lea ecx, [ebp - 0x4ac]
call fcn.004d0880
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x708]
call fcn.004bc260
cmp dword [0x52a078], 1
jne 0x4c1ba8
cmp dword [ebp - 0x618], 0
jne 0x4c1ba8
lea ecx, [ebp - 0x4ac]
call fcn.004d1a30
movzx eax, al
test eax, eax
jne 0x4c1ba8
lea ecx, [ebp - 0x4ac]
call fcn.004d1930
mov dword [ebp - 0x618], eax
push 0
lea ecx, [ebp - 0x644]
push ecx
call fcn.004d28c0
add esp, 8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x644]
call fcn.004c2660
movzx edx, al
test edx, edx
je 0x4c1c14
mov dword [ebp - 0x70c], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x644]
call fcn.004bc260
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ac]
call fcn.004bbc40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x624]
call fcn.004c23d0
mov eax, dword [ebp - 0x70c]
jmp 0x4c2097
lea eax, [ebp - 0x78c]
push eax
call fcn.004d3470
add esp, 4
mov dword [ebp - 0x800], eax
mov ecx, dword [ebp - 0x800]
mov dword [ebp - 0x804], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x804]
push edx
lea ecx, [ebp - 0x770]
call fcn.004c2350
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x644]
call fcn.004c2640
push eax
lea ecx, [ebp - 0x7ec]
call fcn.004c2350
mov byte [ebp - 4], 7
lea eax, [ebp - 0x4bc]
push eax
lea ecx, [ebp - 0x624]
push ecx
push 0x52a748
push 0x52a748
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x770]
push edx
lea eax, [ebp - 0x7ec]
push eax
call fcn.004d2c20
add esp, 0x28
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x70d], al
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x7ec]
call fcn.004bbc40
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x770]
call fcn.004bbc40
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x78c]
call fcn.004c2580
movzx ecx, byte [ebp - 0x70d]
test ecx, ecx
je 0x4c1d4f
mov dword [0x52a2b8], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x51cfc8
push 0x52a2c0
call fcn.004e3baf
add esp, 0xc
mov dword [ebp - 0x7f0], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x644]
call fcn.004bc260
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ac]
call fcn.004bbc40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x624]
call fcn.004c23d0
mov eax, dword [ebp - 0x7f0]
jmp 0x4c2097
push 0x2710
mov edx, dword [ebp - 0x4bc]
push edx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov dword [ebp - 0x7f4], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x644]
call fcn.004bc260
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ac]
call fcn.004bbc40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x624]
call fcn.004c23d0
mov eax, dword [ebp - 0x7f4]
jmp 0x4c2097
mov eax, dword [0x51a4f0]
xor eax, dword [0x51a524]
xor eax, dword [0x51a4e0]
and eax, 0x10
je 0x4c2004
mov ecx, dword [0x51a520]
xor ecx, dword [0x51a4b8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x51d014
lea edx, [ebp - 0x124]
push edx
call fcn.004e3baf
add esp, 0x10
lea eax, [ebp - 0x124]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x4c2002
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov byte [ebp - 0x645], 0
push 0x51cfbc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x64c], eax
cmp dword [ebp - 0x64c], 0
je 0x4c1e66
push 0x51cfa8
mov ecx, dword [ebp - 0x64c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x6e8], eax
cmp dword [ebp - 0x6e8], 0
je 0x4c1e66
call dword [ebp - 0x6e8]
test eax, eax
je 0x4c1e66
mov byte [ebp - 0x645], 1
mov dword [ebp - 0x6e4], 0x94
lea edx, [ebp - 0x6e4]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x6d4], 2
jne 0x4c1ee7
push ecx
bswap ecx
not ecx
push eax
not eax
mov eax, 0x6c65696d
xchg ecx, eax
mov ecx, 0xdeadc0de
xchg ecx, eax
not eax
pop eax
not ecx
pop ecx
pushfd
pushal
xor ebx, ebx
je 0x4c1ea9
add ebp, ebx
and ch, bl
jmp 0x4c1eca
xor ebx, ebx
je 0x4c1ead
jmp 0x4c1ebc
mov ecx, 0x34f9c987
nop
stc
je 0x4c1ec0
jmp 0x4c1ef0
xor eax, eax
je 0x4c1eb2
mov eax, 0x4840c987
test eax, eax
jne 0x4c1ea6
jmp 0x92b2bc2f
popal
popfd
xchg dx, ax
xchg dx, ax
mov eax, eax
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
or al, al
jne 0x4c1efe
jmp 0x4c1f6f
jo 0x4c1ef0
jl 0x4c1eee
jmp 0x4c1ef2
je 0x4c1eeb
jmp 0x4c1eeb
mov eax, dword fs:[0x20]
or eax, eax
jne 0x4c1efe
jmp 0x4c1f6f
pushal
xor eax, eax
jne 0x4c1f05
jmp 0x4c1f1a
jmp 0x4c1f3a
xor eax, eax
jne 0x4c1f22
jp 0x4c1f18
jo 0x4c1f1c
jmp 0x4c1f1d
jb 0x4c1f21
jns 0x4c1f06
call dword [0x74097900]
invalid
jns 0x4c1f23
je 0x4c1f0c
jmp 0x4c1ea5
xchg ebx, ebx
jp 0x4c1f11
mov al, byte [0x5c66133]
movsb byte es:[edi], byte [esi]
mov al, byte [0x50010052]
xor esp, dword [ecx - 0x3a]
add eax, 0x52a0a4
add dword [eax - 9], edx
ror byte [edi], 1
enter 0x7358, 0
popal
mov byte [0x52a0a4], 1
push eax
not eax
bswap eax
pop eax
jae 0x4c1f33
pushfd
pushal
jmp 0x4c1f62
sub edx, edx
jo 0x4c1f48
jmp 0x4c1f59
xor ecx, ecx
je 0x4c1f40
jmp 0x4c1f52
stc
xor ecx, 3
je 0x4c1ed8
jmp 0x4c1f4f
jmp 0x4c1f5d
jae 0x4c1f4b
sbb bl, bl
sbb bl, bl
xor ebx, ebx
jmp 0x4c1f42
jmp 0x4c1f3c
sbb al, 0xdb
jmp 0x4c1f65
jmp 0x4c1f36
popal
popfd
bswap eax
not ecx
bswap eax
not ecx
movzx eax, byte [ebp - 0x645]
test eax, eax
je 0x4c1fa8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x51cfa0
lea ecx, [ebp - 0x124]
push ecx
call fcn.004e3baf
add esp, 0xc
lea edx, [ebp - 0x124]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
jmp 0x4c2002
cmp dword [0x52a078], 0
sete al
push eax
call fcn.004ce200
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x4c1fee
mov dword [0x52a2b8], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x51cf90
push 0x52a2c0
call fcn.004e3baf
add esp, 0xc
xor eax, eax
jmp 0x4c2097
push 0
call fcn.004c20b0
add esp, 4
mov eax, 1
jmp 0x4c2097
jmp 0x4c2020
mov edx, dword [0x51a4e4]
xor edx, dword [0x51a524]
xor edx, dword [0x51a4e0]
and edx, 2
je 0x4c2020
call fcn.004bad60
call fcn.004c0560
mov dword [ebp - 0x128], eax
push 0
call fcn.004c20b0
add esp, 4
push 0
call fcn.004e3c34
add esp, 4
cmp dword [ebp - 0x128], 1
jne 0x4c205c
push 0x52a078
call dword [0x52a0a0]
add esp, 4
mov dword [ebp - 0x128], eax
push 0x4c01b0
call fcn.004e3c34
add esp, 4
cmp dword [0x52a09c], 0
je 0x4c2078
call dword [0x52a09c]
cmp dword [0x52a2b0], 0
je 0x4c2091
push 0
push 0
mov eax, dword [0x52a2ac]
push eax
call dword [0x52a2b0]
mov eax, dword [ebp - 0x128]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004e12c5
mov esp, ebp
pop ebp
ret