Function at 0x4d53c6
Capabilities:
Accept command line arguments
Check for trap flag exception
Check mutex on windows
Create process on windows
Packed with generic packer
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x503780
push 0x4e9358
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffff8c4
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x24], 1
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [sym.imp.USER32.dll_LoadStringA]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [sym.imp.USER32.dll_LoadStringW]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
push 0x4d435c
call fcn.004e9232
add esp, 4
mov eax, dword [0x4ff388]
xor eax, dword [0x4ff320]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str._X::DA_08X
lea ecx, [ebp - 0x128]
push ecx
call fcn.004e91e0
add esp, 0x10
lea edx, [ebp - 0x128]
push edx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x4d5478
mov byte [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
and eax, 0xff
test eax, eax
je 0x4d561f
mov ecx, dword [0x4ff394]
xor ecx, dword [str.FG3_f]
xor ecx, dword [0x4ff334]
and ecx, 0x20
test ecx, ecx
je 0x4d561f
mov edx, dword [0x4ff32c]
xor edx, dword [0x4ff38c]
xor edx, dword [0x4ff388]
push edx
push str.RN_08X
lea eax, [ebp - 0x128]
push eax
call fcn.004e91e0
add esp, 0xc
lea ecx, [ebp - 0x128]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je 0x4d561f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4d561f
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 0x4d5532
cmp dword [ebp - 0x130], 0x80
jne 0x4d5615
mov eax, dword [0x4ff32c]
xor eax, dword [0x4ff38c]
xor eax, dword [0x4ff388]
push eax
push str._08X
lea ecx, [ebp - 0x128]
push ecx
call fcn.004e91e0
add esp, 0xc
mov dword [ebp - 0x138], 0
jmp 0x4d5573
mov edx, dword [ebp - 0x138]
add edx, 1
mov dword [ebp - 0x138], edx
cmp dword [ebp - 0x138], 0x12c
jge 0x4d55ac
lea eax, [ebp - 0x128]
push eax
push str.MainClass
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
je 0x4d55a2
jmp 0x4d55ac
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4d5564
cmp dword [ebp - 0x134], 0
je 0x4d5608
mov ecx, dword [0x4ff32c]
xor ecx, dword [0x4ff38c]
xor ecx, dword [0x4ff388]
mov dword [ebp - 0x144], ecx
mov edx, dword [0x505560]
push edx
call fcn.004e8f60
add esp, 4
add eax, 1
mov dword [ebp - 0x140], eax
mov eax, dword [0x505560]
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 0x4d5b8a
push 1
call fcn.004d5b9b
add esp, 4
mov ecx, dword [ebp - 0x24]
and ecx, 0xff
test ecx, ecx
je 0x4d5808
mov edx, dword [0x4ff394]
xor edx, dword [str.FG3_f]
xor edx, dword [0x4ff334]
and edx, 0x40
test edx, edx
jne 0x4d5808
push 0x200
lea eax, [ebp - 0x344]
push eax
push str._PAD64
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x4d5808
push 0xc8
push 0x23
lea ecx, [ebp - 0x344]
push ecx
call fcn.004e8ce0
add esp, 0xc
mov byte [ebp - 0x27c], 0
mov dword [ebp - 0x448], 1
jmp 0x4d56ae
mov edx, dword [ebp - 0x448]
add edx, 1
mov dword [ebp - 0x448], edx
cmp dword [ebp - 0x448], 0x40
jg 0x4d56e8
mov eax, dword [ebp - 0x448]
push eax
push str._PAD_d
lea ecx, [ebp - 0x444]
push ecx
call fcn.004e91e0
add esp, 0xc
lea edx, [ebp - 0x344]
push edx
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x4d569f
mov ecx, dword [0x4ff394]
xor ecx, dword [str.FG3_f]
xor ecx, dword [0x4ff334]
and ecx, 0x10
test ecx, ecx
jne 0x4d5808
lea edx, [ebp - 0x5a0]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov al, byte [0x50554c]
mov byte [ebp - 0x6a4], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x6a3]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov cl, byte [0x50554c]
mov byte [ebp - 0x55c], cl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x55b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp dword [0x505558], 1
jne 0x4d5783
cmp dword [ebp - 0x594], 0
jne 0x4d5783
lea edx, [ebp - 0x6a4]
push edx
call fcn.004d74cf
add esp, 4
and eax, 0xff
test eax, eax
je 0x4d5783
lea eax, [ebp - 0x6a4]
mov dword [ebp - 0x594], eax
push 0x104
lea ecx, [ebp - 0x55c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4d57a2
xor eax, eax
jmp 0x4d5b8a
lea edx, [ebp - 0x458]
push edx
lea eax, [ebp - 0x5a0]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [ebp - 0x55c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4d57fe
mov dword [0x505794], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._Location_XEB__error_code__d_
push 0x505798
call fcn.004e91e0
add esp, 0xc
xor eax, eax
jmp 0x4d5b8a
mov eax, 1
jmp 0x4d5b8a
mov edx, dword [0x4ff394]
xor edx, dword [str.FG3_f]
xor edx, dword [0x4ff334]
and edx, 0x10
test edx, edx
je 0x4d5b01
mov eax, dword [0x4ff388]
xor eax, dword [0x4ff320]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str._X::DA_08X
lea ecx, [ebp - 0x128]
push ecx
call fcn.004e91e0
add esp, 0x10
lea edx, [ebp - 0x128]
push edx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x4d5aff
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov byte [ebp - 0x6a8], 0
push str.Kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x6ac], eax
cmp dword [ebp - 0x6ac], 0
je 0x4d58ca
push str.IsDebuggerPresent
mov eax, dword [ebp - 0x6ac]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x744], eax
cmp dword [ebp - 0x744], 0
je 0x4d58ca
call dword [ebp - 0x744]
test eax, eax
je 0x4d58ca
mov byte [ebp - 0x6a8], 1
mov dword [ebp - 0x740], 0x94
lea ecx, [ebp - 0x740]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x730], 2
je 0x4d5957
mov byte [ebp - 0x748], 0
mov dword [ebp - 4], 0
pushf
pop eax
or eax, 0x100
push eax
popf
nop
mov dword [ebp - 4], 0xffffffff
jmp 0x4d5940
mov edx, dword [ebp - 0x748]
and edx, 0xff
test edx, edx
jne 0x4d5957
mov byte [0x505a44], 1
cmp dword [ebp - 0x730], 2
jne 0x4d59c1
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 0x4d5983
add ebp, ebx
and ch, bl
jmp 0x4d59a4
xor ebx, ebx
je 0x4d5987
jmp 0x4d5996
mov ecx, 0x34f9c987
nop
stc
je 0x4d599a
jmp 0x4d59ca
xor eax, eax
je 0x4d598c
mov eax, 0x4840c987
test eax, eax
jne 0x4d5980
jmp 0x92b3f709
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 0x4d59d8
jmp 0x4d5a49
jo 0x4d59ca
jl 0x4d59c8
jmp 0x4d59cc
je 0x4d59c5
jmp 0x4d59c5
mov eax, dword fs:[0x20]
or eax, eax
jne 0x4d59d8
jmp 0x4d5a49
pushal
xor eax, eax
jne 0x4d59df
jmp 0x4d59f4
jmp 0x4d5a14
xor eax, eax
jne 0x4d59fc
jp 0x4d59f2
jo 0x4d59f6
jmp 0x4d59f7
jb 0x4d59fb
jns 0x4d59e0
call dword [0x74097900]
invalid
jns 0x4d59fd
je 0x4d59e6
jmp 0x4d597f
xchg ebx, ebx
jp 0x4d59eb
mov al, byte [0x5c66133]
adc byte [edi + 0x50], 0
xor esp, dword [ecx - 0x3a]
add eax, 0x505780
popal
mov byte [0x505780], 1
push eax
not eax
bswap eax
pop eax
jae 0x4d5a0d
add dword [eax - 9], edx
ror byte [edi], 1
enter 0x7358, 0
pushfd
pushal
jmp 0x4d5a3c
sub edx, edx
jo 0x4d5a22
jmp 0x4d5a33
xor ecx, ecx
je 0x4d5a1a
jmp 0x4d5a2c
stc
xor ecx, 3
je 0x4d59b2
jmp 0x4d5a29
jmp 0x4d5a37
jae 0x4d5a25
sbb bl, bl
sbb bl, bl
xor ebx, ebx
jmp 0x4d5a1c
jmp 0x4d5a16
sbb al, 0xdb
jmp 0x4d5a3f
jmp 0x4d5a10
popal
popfd
bswap eax
not ecx
bswap eax
not ecx
mov eax, dword [ebp - 0x6a8]
and eax, 0xff
test eax, eax
je 0x4d5a86
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str._X:DAF
lea ecx, [ebp - 0x128]
push ecx
call fcn.004e91e0
add esp, 0xc
lea edx, [ebp - 0x128]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
jmp 0x4d5aff
mov eax, dword [0x4ff368]
xor eax, dword [str.FG3_f]
xor eax, dword [0x4ff334]
and eax, 2
test eax, eax
je 0x4d5aa3
call fcn.004d3caf
xor ecx, ecx
cmp dword [0x505558], 0
sete cl
push ecx
call fcn.004d821c
add esp, 4
and eax, 0xff
test eax, eax
jne 0x4d5aeb
mov dword [0x505794], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._Error_code__d_
push 0x505798
call fcn.004e91e0
add esp, 0xc
xor eax, eax
jmp 0x4d5b8a
push 0
call fcn.004d5b9b
add esp, 4
mov eax, 1
jmp 0x4d5b8a
jmp 0x4d5b1f
mov edx, dword [0x4ff368]
xor edx, dword [str.FG3_f]
xor edx, dword [0x4ff334]
and edx, 2
test edx, edx
je 0x4d5b1f
call fcn.004d3caf
call fcn.004d438b
mov dword [ebp - 0x1c], eax
push 0
call fcn.004d5b9b
add esp, 4
push 0
call fcn.004e9232
add esp, 4
cmp dword [ebp - 0x1c], 1
jne 0x4d5b52
push 0x505558
call dword [0x50557c]
add esp, 4
mov dword [ebp - 0x1c], eax
push 0x4d435c
call fcn.004e9232
add esp, 4
cmp dword [0x505578], 0
je 0x4d5b6e
call dword [0x505578]
cmp dword [0x50578c], 0
je 0x4d5b87
push 0
push 0
mov eax, dword [0x505788]
push eax
call dword [0x50578c]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret