Function at 0x4d4e97
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 0x512810
push 0x4e90a0
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 0x4d3e1c
call fcn.004e8f7c
add esp, 4
mov eax, dword [0x50e37c]
xor eax, dword [0x50e3c8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str._X::DA_08X
lea ecx, [ebp - 0x128]
push ecx
call fcn.004e8f2a
add esp, 0x10
lea edx, [ebp - 0x128]
push edx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x4d4f49
mov byte [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
and eax, 0xff
test eax, eax
je 0x4d50f0
mov ecx, dword [0x50e39c]
xor ecx, dword [0x50e390]
xor ecx, dword [0x50e384]
and ecx, 0x20
test ecx, ecx
je 0x4d50f0
mov edx, dword [0x50e3a4]
xor edx, dword [0x50e378]
xor edx, dword [0x50e37c]
push edx
push str.RN_08X
lea eax, [ebp - 0x128]
push eax
call fcn.004e8f2a
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 0x4d50f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4d50f0
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 0x4d5003
cmp dword [ebp - 0x130], 0x80
jne 0x4d50e6
mov eax, dword [0x50e3a4]
xor eax, dword [0x50e378]
xor eax, dword [0x50e37c]
push eax
push str._08X
lea ecx, [ebp - 0x128]
push ecx
call fcn.004e8f2a
add esp, 0xc
mov dword [ebp - 0x138], 0
jmp 0x4d5044
mov edx, dword [ebp - 0x138]
add edx, 1
mov dword [ebp - 0x138], edx
cmp dword [ebp - 0x138], 0x12c
jge 0x4d507d
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 0x4d5073
jmp 0x4d507d
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4d5035
cmp dword [ebp - 0x134], 0
je 0x4d50d9
mov ecx, dword [0x50e3a4]
xor ecx, dword [0x50e378]
xor ecx, dword [0x50e37c]
mov dword [ebp - 0x144], ecx
mov edx, dword [0x514a38]
push edx
call fcn.004e8c50
add esp, 4
add eax, 1
mov dword [ebp - 0x140], eax
mov eax, dword [0x514a38]
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 0x4d5650
push 1
call fcn.004d5661
add esp, 4
mov ecx, dword [ebp - 0x24]
and ecx, 0xff
test ecx, ecx
je 0x4d52eb
mov edx, dword [0x50e39c]
xor edx, dword [0x50e390]
xor edx, dword [0x50e384]
and edx, 0x40
test edx, edx
jne 0x4d52eb
push 0x200
lea eax, [ebp - 0x344]
push eax
push str._PAD64
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x4d52eb
push 0xc8
push 0x23
lea ecx, [ebp - 0x344]
push ecx
call fcn.004e8940
add esp, 0xc
mov byte [ebp - 0x27c], 0
mov dword [ebp - 0x448], 1
jmp 0x4d517f
mov edx, dword [ebp - 0x448]
add edx, 1
mov dword [ebp - 0x448], edx
cmp dword [ebp - 0x448], 0x40
jg 0x4d51b9
mov eax, dword [ebp - 0x448]
push eax
push str._PAD_d
lea ecx, [ebp - 0x444]
push ecx
call fcn.004e8f2a
add esp, 0xc
lea edx, [ebp - 0x344]
push edx
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x4d5170
mov ecx, dword [0x50e39c]
xor ecx, dword [0x50e390]
xor ecx, dword [0x50e384]
and ecx, 0x10
test ecx, ecx
jne 0x4d52eb
lea edx, [ebp - 0x5a0]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov al, byte [0x514a20]
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 [0x514a20]
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 [0x514a30], 1
jne 0x4d5254
cmp dword [ebp - 0x594], 0
jne 0x4d5254
lea edx, [ebp - 0x6a4]
push edx
call fcn.004d6ae0
add esp, 4
and eax, 0xff
test eax, eax
je 0x4d5254
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 0x4d5273
xor eax, eax
jmp 0x4d5650
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 0x4d52cf
mov dword [0x514c6c], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._Location_XEB__error_code__d_
push 0x514c70
call fcn.004e8f2a
add esp, 0xc
xor eax, eax
jmp 0x4d5650
push 0x2710
mov edx, dword [ebp - 0x458]
push edx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, 1
jmp 0x4d5650
mov eax, dword [0x50e39c]
xor eax, dword [0x50e390]
xor eax, dword [0x50e384]
and eax, 0x10
test eax, eax
je 0x4d55c7
mov ecx, dword [0x50e37c]
xor ecx, dword [0x50e3c8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str._X::DA_08X
lea edx, [ebp - 0x128]
push edx
call fcn.004e8f2a
add esp, 0x10
lea eax, [ebp - 0x128]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x4d55c5
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 0x4d53ad
push str.IsDebuggerPresent
mov ecx, dword [ebp - 0x6ac]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x744], eax
cmp dword [ebp - 0x744], 0
je 0x4d53ad
call dword [ebp - 0x744]
test eax, eax
je 0x4d53ad
mov byte [ebp - 0x6a8], 1
mov dword [ebp - 0x740], 0x94
lea edx, [ebp - 0x740]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x730], 2
je 0x4d5439
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 0x4d5423
mov eax, dword [ebp - 0x748]
and eax, 0xff
test eax, eax
jne 0x4d5439
mov byte [0x514f20], 1
cmp dword [ebp - 0x730], 2
jne 0x4d54a3
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 0x4d5465
add ebp, ebx
and ch, bl
jmp 0x4d5486
xor ebx, ebx
je 0x4d5469
jmp 0x4d5478
mov ecx, 0x34f9c987
nop
stc
je 0x4d547c
jmp 0x4d54ac
xor eax, eax
je 0x4d546e
mov eax, 0x4840c987
test eax, eax
jne 0x4d5462
jmp 0x92b3f1eb
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 0x4d54ba
jmp 0x4d552b
jo 0x4d54ac
jl 0x4d54aa
jmp 0x4d54ae
je 0x4d54a7
jmp 0x4d54a7
mov eax, dword fs:[0x20]
or eax, eax
jne 0x4d54ba
jmp 0x4d552b
pushal
xor eax, eax
jne 0x4d54c1
jmp 0x4d54d6
jmp 0x4d54f6
xor eax, eax
jne 0x4d54de
jp 0x4d54d4
jo 0x4d54d8
jmp 0x4d54d9
jb 0x4d54dd
jns 0x4d54c2
call dword [0x74097900]
invalid
jns 0x4d54df
je 0x4d54c8
jmp 0x4d5461
xchg ebx, ebx
jp 0x4d54cd
mov al, byte [0x5c66133]
pop eax
dec esp
push ecx
add byte [ecx], al
xor esp, dword [ecx - 0x3a]
add eax, 0x514c58
add dword [eax - 9], edx
ror byte [edi], 1
enter 0x7358, 0
popal
mov byte [0x514c58], 1
push eax
not eax
bswap eax
pop eax
jae 0x4d54ef
pushfd
pushal
jmp 0x4d551e
sub edx, edx
jo 0x4d5504
jmp 0x4d5515
xor ecx, ecx
je 0x4d54fc
jmp 0x4d550e
stc
xor ecx, 3
je 0x4d5494
jmp 0x4d550b
jmp 0x4d5519
jae 0x4d5507
sbb bl, bl
sbb bl, bl
xor ebx, ebx
jmp 0x4d54fe
jmp 0x4d54f8
sbb al, 0xdb
jmp 0x4d5521
jmp 0x4d54f2
popal
popfd
bswap eax
not ecx
bswap eax
not ecx
mov ecx, dword [ebp - 0x6a8]
and ecx, 0xff
test ecx, ecx
je 0x4d5569
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str._X:DAF
lea edx, [ebp - 0x128]
push edx
call fcn.004e8f2a
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
jmp 0x4d55c5
xor ecx, ecx
cmp dword [0x514a30], 0
sete cl
push ecx
call fcn.004d7cd8
add esp, 4
and eax, 0xff
test eax, eax
jne 0x4d55b1
mov dword [0x514c6c], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._Error_code__d_
push 0x514c70
call fcn.004e8f2a
add esp, 0xc
xor eax, eax
jmp 0x4d5650
push 0
call fcn.004d5661
add esp, 4
mov eax, 1
jmp 0x4d5650
jmp 0x4d55e5
mov edx, dword [0x50e3cc]
xor edx, dword [0x50e390]
xor edx, dword [0x50e384]
and edx, 2
test edx, edx
je 0x4d55e5
call fcn.004d32d2
call fcn.004d3e4b
mov dword [ebp - 0x1c], eax
push 0
call fcn.004d5661
add esp, 4
push 0
call fcn.004e8f7c
add esp, 4
cmp dword [ebp - 0x1c], 1
jne 0x4d5618
push 0x514a30
call dword [0x514a54]
add esp, 4
mov dword [ebp - 0x1c], eax
push 0x4d3e1c
call fcn.004e8f7c
add esp, 4
cmp dword [0x514a50], 0
je 0x4d5634
call dword [0x514a50]
cmp dword [0x514c64], 0
je 0x4d564d
push 0
push 0
mov eax, dword [0x514c60]
push eax
call dword [0x514c64]
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