Function at 0x4a1420
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 0xfffffffffffffffe
push 0x4e2f98
push 0x4b4fb0
mov eax, dword fs:[0]
push eax
add esp, 0xfffff8a4
mov eax, dword [0x4ded30]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x24], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x19], 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 0x4a03b0
call fcn.004b4f52
add esp, 4
mov eax, dword [0x4dd3d8]
xor eax, dword [0x4dd3b4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x4e0130
lea ecx, [ebp - 0x130]
push ecx
call fcn.004b4ecd
add esp, 0x10
lea edx, [ebp - 0x130]
push edx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x4a14e2
mov byte [ebp - 0x19], 0
movzx eax, byte [ebp - 0x19]
test eax, eax
je 0x4a1683
mov ecx, dword [0x4dd3fc]
xor ecx, dword [0x4dd380]
xor ecx, dword [0x4dd3dc]
and ecx, 0x20
je 0x4a1683
mov edx, dword [0x4dd3d0]
xor edx, dword [0x4dd3cc]
xor edx, dword [0x4dd3d8]
push edx
push 0x4e0128
lea eax, [ebp - 0x130]
push eax
call fcn.004b4ecd
add esp, 0xc
lea ecx, [ebp - 0x130]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 0
je 0x4a1683
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4a1683
push 0x7530
mov edx, dword [ebp - 0x138]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0
je 0x4a1596
cmp dword [ebp - 0x13c], 0x80
jne 0x4a1679
mov eax, dword [0x4dd3d0]
xor eax, dword [0x4dd3cc]
xor eax, dword [0x4dd3d8]
push eax
push 0x4e0120
lea ecx, [ebp - 0x130]
push ecx
call fcn.004b4ecd
add esp, 0xc
mov dword [ebp - 0x144], 0
jmp 0x4a15d7
mov edx, dword [ebp - 0x144]
add edx, 1
mov dword [ebp - 0x144], edx
cmp dword [ebp - 0x144], 0x12c
jge 0x4a1610
lea eax, [ebp - 0x130]
push eax
push 0x4e0114
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0
je 0x4a1606
jmp 0x4a1610
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4a15c8
cmp dword [ebp - 0x140], 0
je 0x4a166c
mov ecx, dword [0x4dd3d0]
xor ecx, dword [0x4dd3cc]
xor ecx, dword [0x4dd3d8]
mov dword [ebp - 0x150], ecx
mov edx, dword [0x4e3e90]
push edx
call fcn.004b49a0
add esp, 4
add eax, 1
mov dword [ebp - 0x14c], eax
mov eax, dword [0x4e3e90]
mov dword [ebp - 0x148], eax
lea ecx, [ebp - 0x150]
push ecx
push 0
push 0x4a
mov edx, dword [ebp - 0x140]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 1
jmp 0x4a1be1
push 1
call fcn.004a1c00
add esp, 4
movzx ecx, byte [ebp - 0x19]
test ecx, ecx
je 0x4a187d
mov edx, dword [0x4dd3fc]
xor edx, dword [0x4dd380]
xor edx, dword [0x4dd3dc]
and edx, 0x40
jne 0x4a187d
push 0x200
lea eax, [ebp - 0x350]
push eax
push 0x4e010c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x4a187d
push 0xc8
push 0x23
lea ecx, [ebp - 0x350]
push ecx
call fcn.004b2910
add esp, 0xc
mov byte [ebp - 0x288], 0
mov dword [ebp - 0x454], 1
jmp 0x4a170b
mov edx, dword [ebp - 0x454]
add edx, 1
mov dword [ebp - 0x454], edx
cmp dword [ebp - 0x454], 0x40
jg 0x4a1745
mov eax, dword [ebp - 0x454]
push eax
push 0x4e0104
lea ecx, [ebp - 0x450]
push ecx
call fcn.004b4ecd
add esp, 0xc
lea edx, [ebp - 0x350]
push edx
lea eax, [ebp - 0x450]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x4a16fc
mov ecx, dword [0x4dd3fc]
xor ecx, dword [0x4dd380]
xor ecx, dword [0x4dd3dc]
and ecx, 0x10
jne 0x4a187d
lea edx, [ebp - 0x5b8]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov al, byte [0x4dfe64]
mov byte [ebp - 0x560], al
push 0x103
push 0
lea ecx, [ebp - 0x55f]
push ecx
call fcn.004b2910
add esp, 0xc
mov dl, byte [0x4dfe64]
mov byte [ebp - 0x6c0], dl
push 0x103
push 0
lea eax, [ebp - 0x6bf]
push eax
call fcn.004b2910
add esp, 0xc
cmp dword [0x4e3e88], 1
jne 0x4a17e4
cmp dword [ebp - 0x5ac], 0
jne 0x4a17e4
lea ecx, [ebp - 0x560]
push ecx
call fcn.004a2db0
add esp, 4
movzx edx, al
test edx, edx
je 0x4a17e4
lea eax, [ebp - 0x560]
mov dword [ebp - 0x5ac], eax
push 0x104
lea ecx, [ebp - 0x6c0]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4a1803
xor eax, eax
jmp 0x4a1be1
lea edx, [ebp - 0x570]
push edx
lea eax, [ebp - 0x5b8]
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 - 0x6c0]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4a1861
mov dword [0x4e40c8], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4e00e4
push 0x4e40d0
call fcn.004b4ecd
add esp, 0xc
xor eax, eax
jmp 0x4a1be1
push 0x2710
mov edx, dword [ebp - 0x570]
push edx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, 1
jmp 0x4a1be1
mov eax, dword [0x4dd3fc]
xor eax, dword [0x4dd380]
xor eax, dword [0x4dd3dc]
and eax, 0x10
je 0x4a1b4e
mov ecx, dword [0x4dd3d8]
xor ecx, dword [0x4dd3b4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x4e0130
lea edx, [ebp - 0x130]
push edx
call fcn.004b4ecd
add esp, 0x10
lea eax, [ebp - 0x130]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x4a1b4c
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov byte [ebp - 0x6c1], 0
push 0x4e00d8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x6c8], eax
cmp dword [ebp - 0x6c8], 0
je 0x4a193d
push 0x4e00c4
mov ecx, dword [ebp - 0x6c8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x764], eax
cmp dword [ebp - 0x764], 0
je 0x4a193d
call dword [ebp - 0x764]
test eax, eax
je 0x4a193d
mov byte [ebp - 0x6c1], 1
mov dword [ebp - 0x760], 0x94
lea edx, [ebp - 0x760]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x750], 2
je 0x4a19c7
mov byte [ebp - 0x765], 0
mov dword [ebp - 4], 0
pushf
pop eax
or eax, 0x100
push eax
popf
nop
mov dword [ebp - 4], 0xfffffffe
jmp 0x4a19b5
movzx edx, byte [ebp - 0x765]
test edx, edx
jne 0x4a19c7
mov byte [0x4e43ec], 1
cmp dword [ebp - 0x750], 2
jne 0x4a1a31
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 0x4a19f3
add ebp, ebx
and ch, bl
jmp 0x4a1a14
xor ebx, ebx
je 0x4a19f7
jmp 0x4a1a06
mov ecx, 0x34f9c987
nop
stc
je 0x4a1a0a
jmp 0x4a1a3a
xor eax, eax
je 0x4a19fc
mov eax, 0x4840c987
test eax, eax
jne 0x4a19f0
jmp 0x92b0b779
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 0x4a1a48
jmp 0x4a1ab9
jo 0x4a1a3a
jl 0x4a1a38
jmp 0x4a1a3c
je 0x4a1a35
jmp 0x4a1a35
mov eax, dword fs:[0x20]
or eax, eax
jne 0x4a1a48
jmp 0x4a1ab9
pushal
xor eax, eax
jne 0x4a1a4f
jmp 0x4a1a64
jmp 0x4a1a84
xor eax, eax
jne 0x4a1a6c
jp 0x4a1a62
jo 0x4a1a66
jmp 0x4a1a67
jb 0x4a1a6b
jns 0x4a1a50
call dword [0x74097900]
invalid
jns 0x4a1a6d
je 0x4a1a56
jmp 0x4a19ef
xchg ebx, ebx
jp 0x4a1a5b
mov al, byte [0x5c66133]
mov ah, 0x3e
dec esi
add byte [ecx], al
xor esp, dword [ecx - 0x3a]
add eax, 0x4e3eb4
add dword [eax - 9], edx
ror byte [edi], 1
enter 0x7358, 0
popal
mov byte [0x4e3eb4], 1
push eax
not eax
bswap eax
pop eax
jae 0x4a1a7d
pushfd
pushal
jmp 0x4a1aac
sub edx, edx
jo 0x4a1a92
jmp 0x4a1aa3
xor ecx, ecx
je 0x4a1a8a
jmp 0x4a1a9c
stc
xor ecx, 3
je 0x4a1a22
jmp 0x4a1a99
jmp 0x4a1aa7
jae 0x4a1a95
sbb bl, bl
sbb bl, bl
xor ebx, ebx
jmp 0x4a1a8c
jmp 0x4a1a86
sbb al, 0xdb
jmp 0x4a1aaf
jmp 0x4a1a80
popal
popfd
bswap eax
not ecx
bswap eax
not ecx
movzx eax, byte [ebp - 0x6c1]
test eax, eax
je 0x4a1af2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x4e00bc
lea ecx, [ebp - 0x130]
push ecx
call fcn.004b4ecd
add esp, 0xc
lea edx, [ebp - 0x130]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
jmp 0x4a1b4c
cmp dword [0x4e3e88], 0
sete al
push eax
call fcn.004a3bd0
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x4a1b38
mov dword [0x4e40c8], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x4e00ac
push 0x4e40d0
call fcn.004b4ecd
add esp, 0xc
xor eax, eax
jmp 0x4a1be1
push 0
call fcn.004a1c00
add esp, 4
mov eax, 1
jmp 0x4a1be1
jmp 0x4a1b6a
mov edx, dword [0x4dd3d4]
xor edx, dword [0x4dd380]
xor edx, dword [0x4dd3dc]
and edx, 2
je 0x4a1b6a
call fcn.0049f560
call fcn.004a03e0
mov dword [ebp - 0x134], eax
push 0
call fcn.004a1c00
add esp, 4
push 0
call fcn.004b4f52
add esp, 4
cmp dword [ebp - 0x134], 1
jne 0x4a1ba6
push 0x4e3e88
call dword [0x4e3eb0]
add esp, 4
mov dword [ebp - 0x134], eax
push 0x4a03b0
call fcn.004b4f52
add esp, 4
cmp dword [0x4e3eac], 0
je 0x4a1bc2
call dword [0x4e3eac]
cmp dword [0x4e40c0], 0
je 0x4a1bdb
push 0
push 0
mov eax, dword [0x4e40bc]
push eax
call dword [0x4e40c0]
mov eax, dword [ebp - 0x134]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x24]
xor ecx, ebp
call fcn.004b3065
mov esp, ebp
pop ebp
ret