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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51684a
mov eax, dword fs:[0]
push eax
sub esp, 0x7f8
mov eax, dword [0x53d2e0]
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.004de340
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 0x4e2820
call fcn.005058e8
add esp, 4
mov eax, dword [0x53c4c8]
xor eax, dword [0x53c510]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str._X::DA_08X
lea ecx, [ebp - 0x124]
push ecx
call fcn.00505863
add esp, 0x10
lea edx, [ebp - 0x124]
push edx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x4e3b79
mov byte [ebp - 0xd], 0
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x4e3d1a
mov ecx, dword [0x53c500]
xor ecx, dword [0x53c4c0]
xor ecx, dword [0x53c518]
and ecx, 0x20
je 0x4e3d1a
mov edx, dword [0x53c4f8]
xor edx, dword [0x53c4e8]
xor edx, dword [0x53c4c8]
push edx
push str.RN_08X
lea eax, [ebp - 0x124]
push eax
call fcn.00505863
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 0x4e3d1a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4e3d1a
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 0x4e3c2d
cmp dword [ebp - 0x130], 0x80
jne 0x4e3d10
mov eax, dword [0x53c4f8]
xor eax, dword [0x53c4e8]
xor eax, dword [0x53c4c8]
push eax
push str._08X
lea ecx, [ebp - 0x124]
push ecx
call fcn.00505863
add esp, 0xc
mov dword [ebp - 0x138], 0
jmp 0x4e3c6e
mov edx, dword [ebp - 0x138]
add edx, 1
mov dword [ebp - 0x138], edx
cmp dword [ebp - 0x138], 0x12c
jge 0x4e3ca7
lea eax, [ebp - 0x124]
push eax
push str.MainClass
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
je 0x4e3c9d
jmp 0x4e3ca7
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4e3c5f
cmp dword [ebp - 0x134], 0
je 0x4e3d03
mov ecx, dword [0x53c4f8]
xor ecx, dword [0x53c4e8]
xor ecx, dword [0x53c4c8]
mov dword [ebp - 0x144], ecx
mov edx, dword [0x54c060]
push edx
call fcn.00504d90
add esp, 4
add eax, 1
mov dword [ebp - 0x140], eax
mov eax, dword [0x54c060]
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 0x4e4377
push 1
call fcn.004e4390
add esp, 4
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x4e4086
mov edx, dword [0x53c500]
xor edx, dword [0x53c4c0]
xor edx, dword [0x53c518]
and edx, 0x40
jne 0x4e4086
push 0x200
lea eax, [ebp - 0x344]
push eax
push str._PAD64
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x4e4086
push 0xc8
push 0x23
lea ecx, [ebp - 0x344]
push ecx
call fcn.00502940
add esp, 0xc
mov byte [ebp - 0x27c], 0
mov dword [ebp - 0x448], 1
jmp 0x4e3da2
mov edx, dword [ebp - 0x448]
add edx, 1
mov dword [ebp - 0x448], edx
cmp dword [ebp - 0x448], 0x40
jg 0x4e3ddc
mov eax, dword [ebp - 0x448]
push eax
push str._PAD_d
lea ecx, [ebp - 0x444]
push ecx
call fcn.00505863
add esp, 0xc
lea edx, [ebp - 0x344]
push edx
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x4e3d93
mov ecx, dword [0x53c500]
xor ecx, dword [0x53c4c0]
xor ecx, dword [0x53c518]
and ecx, 0x10
jne 0x4e4086
lea edx, [ebp - 0x624]
push edx
call fcn.004f5040
add esp, 4
mov dword [ebp - 4], 0
lea eax, [ebp - 0x708]
push eax
call fcn.004eb890
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.004f2660
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x708]
call fcn.004de890
cmp dword [0x54c058], 1
jne 0x4e3e88
cmp dword [ebp - 0x618], 0
jne 0x4e3e88
lea ecx, [ebp - 0x4ac]
call fcn.004f37d0
movzx eax, al
test eax, eax
jne 0x4e3e88
lea ecx, [ebp - 0x4ac]
call fcn.004f36d0
mov dword [ebp - 0x618], eax
push 0
lea ecx, [ebp - 0x644]
push ecx
call fcn.004f4660
add esp, 8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x644]
call fcn.004e4830
movzx edx, al
test edx, edx
je 0x4e3ef4
mov dword [ebp - 0x70c], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x644]
call fcn.004de890
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ac]
call fcn.004de270
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x624]
call fcn.004e4690
mov eax, dword [ebp - 0x70c]
jmp 0x4e4377
lea eax, [ebp - 0x78c]
push eax
call fcn.004f5210
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.004e4610
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x644]
call fcn.004e4810
push eax
lea ecx, [ebp - 0x7ec]
call fcn.004e4610
mov byte [ebp - 4], 7
lea eax, [ebp - 0x4bc]
push eax
lea ecx, [ebp - 0x624]
push ecx
push 0x54c718
push 0x54c718
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x770]
push edx
lea eax, [ebp - 0x7ec]
push eax
call fcn.004f49c0
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.004de270
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x770]
call fcn.004de270
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x78c]
call fcn.004e4750
movzx ecx, byte [ebp - 0x70d]
test ecx, ecx
je 0x4e402f
mov dword [0x54c298], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._Location_XEB__error_code__d_
push 0x54c2a0
call fcn.00505863
add esp, 0xc
mov dword [ebp - 0x7f0], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x644]
call fcn.004de890
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ac]
call fcn.004de270
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x624]
call fcn.004e4690
mov eax, dword [ebp - 0x7f0]
jmp 0x4e4377
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.004de890
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ac]
call fcn.004de270
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x624]
call fcn.004e4690
mov eax, dword [ebp - 0x7f4]
jmp 0x4e4377
mov eax, dword [0x53c500]
xor eax, dword [0x53c4c0]
xor eax, dword [0x53c518]
and eax, 0x10
je 0x4e42e4
mov ecx, dword [0x53c4c8]
xor ecx, dword [0x53c510]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str._X::DA_08X
lea edx, [ebp - 0x124]
push edx
call fcn.00505863
add esp, 0x10
lea eax, [ebp - 0x124]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x4e42e2
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov byte [ebp - 0x645], 0
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x64c], eax
cmp dword [ebp - 0x64c], 0
je 0x4e4146
push 0x53efb4
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 0x4e4146
call dword [ebp - 0x6e8]
test eax, eax
je 0x4e4146
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 0x4e41c7
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 0x4e4189
add ebp, ebx
and ch, bl
jmp 0x4e41aa
xor ebx, ebx
je 0x4e418d
jmp 0x4e419c
mov ecx, 0x34f9c987
nop
stc
je 0x4e41a0
jmp 0x4e41d0
xor eax, eax
je 0x4e4192
mov eax, 0x4840c987
test eax, eax
jne 0x4e4186
jmp 0x92b4df0f
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 0x4e41de
jmp 0x4e424f
jo 0x4e41d0
jl 0x4e41ce
jmp 0x4e41d2
je 0x4e41cb
jmp 0x4e41cb
mov eax, dword fs:[0x20]
or eax, eax
jne 0x4e41de
jmp 0x4e424f
pushal
xor eax, eax
jne 0x4e41e5
jmp 0x4e41fa
jmp 0x4e421a
xor eax, eax
jne 0x4e4202
jp 0x4e41f8
jo 0x4e41fc
jmp 0x4e41fd
jb 0x4e4201
jns 0x4e41e6
call dword [0x74097900]
invalid
jns 0x4e4203
je 0x4e41ec
jmp 0x4e4185
xchg ebx, ebx
jp 0x4e41f1
mov al, byte [0x5c66133]
test al, al
push esp
add byte [ecx], al
xor esp, dword [ecx - 0x3a]
add eax, 0x54c084
add dword [eax - 9], edx
ror byte [edi], 1
enter 0x7358, 0
popal
mov byte [0x54c084], 1
push eax
not eax
bswap eax
pop eax
jae 0x4e4213
pushfd
pushal
jmp 0x4e4242
sub edx, edx
jo 0x4e4228
jmp 0x4e4239
xor ecx, ecx
je 0x4e4220
jmp 0x4e4232
stc
xor ecx, 3
je 0x4e41b8
jmp 0x4e422f
jmp 0x4e423d
jae 0x4e422b
sbb bl, bl
sbb bl, bl
xor ebx, ebx
jmp 0x4e4222
jmp 0x4e421c
sbb al, 0xdb
jmp 0x4e4245
jmp 0x4e4216
popal
popfd
bswap eax
not ecx
bswap eax
not ecx
movzx eax, byte [ebp - 0x645]
test eax, eax
je 0x4e4288
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str._X:DAF
lea ecx, [ebp - 0x124]
push ecx
call fcn.00505863
add esp, 0xc
lea edx, [ebp - 0x124]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
jmp 0x4e42e2
cmp dword [0x54c058], 0
sete al
push eax
call fcn.004effa0
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x4e42ce
mov dword [0x54c298], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._Error_code__d_
push 0x54c2a0
call fcn.00505863
add esp, 0xc
xor eax, eax
jmp 0x4e4377
push 0
call fcn.004e4390
add esp, 4
mov eax, 1
jmp 0x4e4377
jmp 0x4e4300
mov edx, dword [0x53c504]
xor edx, dword [0x53c4c0]
xor edx, dword [0x53c518]
and edx, 2
je 0x4e4300
call fcn.004dd390
call fcn.004e2850
mov dword [ebp - 0x128], eax
push 0
call fcn.004e4390
add esp, 4
push 0
call fcn.005058e8
add esp, 4
cmp dword [ebp - 0x128], 1
jne 0x4e433c
push 0x54c058
call dword [0x54c080]
add esp, 4
mov dword [ebp - 0x128], eax
push 0x4e2820
call fcn.005058e8
add esp, 4
cmp dword [0x54c07c], 0
je 0x4e4358
call dword [0x54c07c]
cmp dword [0x54c290], 0
je 0x4e4371
push 0
push 0
mov eax, dword [0x54c28c]
push eax
call dword [0x54c290]
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.00503095
mov esp, ebp
pop ebp
ret