Function at 0x5770eb
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 0x5b4e60
push 0x58af00
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 0x57604c
call fcn.0058addc
add esp, 4
mov eax, dword [0x5b03bc]
xor eax, dword [0x5b03d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str._X::DA_08X
lea ecx, [ebp - 0x128]
push ecx
call fcn.0058ad8a
add esp, 0x10
lea edx, [ebp - 0x128]
push edx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x57719d
mov byte [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
and eax, 0xff
test eax, eax
je 0x577344
mov ecx, dword [0x5b03fc]
xor ecx, dword [0x5b0378]
xor ecx, dword [0x5b03b8]
and ecx, 0x20
test ecx, ecx
je 0x577344
mov edx, dword [0x5b03e4]
xor edx, dword [0x5b038c]
xor edx, dword [0x5b03bc]
push edx
push str.RN_08X
lea eax, [ebp - 0x128]
push eax
call fcn.0058ad8a
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 0x577344
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x577344
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 0x577257
cmp dword [ebp - 0x130], 0x80
jne 0x57733a
mov eax, dword [0x5b03e4]
xor eax, dword [0x5b038c]
xor eax, dword [0x5b03bc]
push eax
push str._08X
lea ecx, [ebp - 0x128]
push ecx
call fcn.0058ad8a
add esp, 0xc
mov dword [ebp - 0x138], 0
jmp 0x577298
mov edx, dword [ebp - 0x138]
add edx, 1
mov dword [ebp - 0x138], edx
cmp dword [ebp - 0x138], 0x12c
jge 0x5772d1
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 0x5772c7
jmp 0x5772d1
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x577289
cmp dword [ebp - 0x134], 0
je 0x57732d
mov ecx, dword [0x5b03e4]
xor ecx, dword [0x5b038c]
xor ecx, dword [0x5b03bc]
mov dword [ebp - 0x144], ecx
mov edx, dword [0x5b7078]
push edx
call fcn.0058aab0
add esp, 4
add eax, 1
mov dword [ebp - 0x140], eax
mov eax, dword [0x5b7078]
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 0x5778a4
push 1
call fcn.005778b5
add esp, 4
mov ecx, dword [ebp - 0x24]
and ecx, 0xff
test ecx, ecx
je 0x57753f
mov edx, dword [0x5b03fc]
xor edx, dword [0x5b0378]
xor edx, dword [0x5b03b8]
and edx, 0x40
test edx, edx
jne 0x57753f
push 0x200
lea eax, [ebp - 0x344]
push eax
push str._PAD64
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x57753f
push 0xc8
push 0x23
lea ecx, [ebp - 0x344]
push ecx
call fcn.0058a7a0
add esp, 0xc
mov byte [ebp - 0x27c], 0
mov dword [ebp - 0x448], 1
jmp 0x5773d3
mov edx, dword [ebp - 0x448]
add edx, 1
mov dword [ebp - 0x448], edx
cmp dword [ebp - 0x448], 0x40
jg 0x57740d
mov eax, dword [ebp - 0x448]
push eax
push str._PAD_d
lea ecx, [ebp - 0x444]
push ecx
call fcn.0058ad8a
add esp, 0xc
lea edx, [ebp - 0x344]
push edx
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x5773c4
mov ecx, dword [0x5b03fc]
xor ecx, dword [0x5b0378]
xor ecx, dword [0x5b03b8]
and ecx, 0x10
test ecx, ecx
jne 0x57753f
lea edx, [ebp - 0x5a0]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov al, byte [0x5b7060]
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 [0x5b7060]
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 [0x5b7070], 1
jne 0x5774a8
cmp dword [ebp - 0x594], 0
jne 0x5774a8
lea edx, [ebp - 0x6a4]
push edx
call fcn.00578d50
add esp, 4
and eax, 0xff
test eax, eax
je 0x5774a8
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 0x5774c7
xor eax, eax
jmp 0x5778a4
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 0x577523
mov dword [0x5b72b0], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._Location_XEB__error_code__d_
push 0x5b72b4
call fcn.0058ad8a
add esp, 0xc
xor eax, eax
jmp 0x5778a4
push 0x2710
mov edx, dword [ebp - 0x458]
push edx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, 1
jmp 0x5778a4
mov eax, dword [0x5b03fc]
xor eax, dword [0x5b0378]
xor eax, dword [0x5b03b8]
and eax, 0x10
test eax, eax
je 0x57781b
mov ecx, dword [0x5b03bc]
xor ecx, dword [0x5b03d4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str._X::DA_08X
lea edx, [ebp - 0x128]
push edx
call fcn.0058ad8a
add esp, 0x10
lea eax, [ebp - 0x128]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x577819
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 0x577601
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 0x577601
call dword [ebp - 0x744]
test eax, eax
je 0x577601
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 0x57768d
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 0x577677
mov eax, dword [ebp - 0x748]
and eax, 0xff
test eax, eax
jne 0x57768d
mov byte [0x5b7590], 1
cmp dword [ebp - 0x730], 2
jne 0x5776f7
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 0x5776b9
add ebp, ebx
and ch, bl
jmp 0x5776da
xor ebx, ebx
je 0x5776bd
jmp 0x5776cc
mov ecx, 0x34f9c987
nop
stc
je 0x5776d0
jmp 0x577700
xor eax, eax
je 0x5776c2
mov eax, 0x4840c987
test eax, eax
jne 0x5776b6
jmp 0x92be143f
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 0x57770e
jmp 0x57777f
jo 0x577700
jl 0x5776fe
jmp 0x577702
je 0x5776fb
jmp 0x5776fb
mov eax, dword fs:[0x20]
or eax, eax
jne 0x57770e
jmp 0x57777f
pushal
xor eax, eax
jne 0x577715
jmp 0x57772a
jmp 0x57774a
xor eax, eax
jne 0x577732
jp 0x577728
jo 0x57772c
jmp 0x57772d
jb 0x577731
jns 0x577716
call dword [0x74097900]
invalid
jns 0x577733
je 0x57771c
jmp 0x5776b5
xchg ebx, ebx
jp 0x577721
mov al, byte [0x5c66133]
pushfd
jb 0x577794
xor esp, dword [ecx - 0x3a]
add eax, 0x5b729c
add dword [eax - 9], edx
ror byte [edi], 1
enter 0x7358, 0
popal
mov byte [0x5b729c], 1
add byte [ecx], al
push eax
not eax
bswap eax
pop eax
jae 0x577743
pushfd
pushal
jmp 0x577772
sub edx, edx
jo 0x577758
jmp 0x577769
xor ecx, ecx
je 0x577750
jmp 0x577762
stc
xor ecx, 3
je 0x5776e8
jmp 0x57775f
jmp 0x57776d
jae 0x57775b
sbb bl, bl
sbb bl, bl
xor ebx, ebx
jmp 0x577752
jmp 0x57774c
sbb al, 0xdb
jmp 0x577775
jmp 0x577746
popal
popfd
bswap eax
not ecx
bswap eax
not ecx
mov ecx, dword [ebp - 0x6a8]
and ecx, 0xff
test ecx, ecx
je 0x5777bd
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str._X:DAF
lea edx, [ebp - 0x128]
push edx
call fcn.0058ad8a
add byte [eax + 0x68], dl
sub al, 6
pop ebx
add byte [ebp - 0x1276b], cl
call dword [edx - 0x18]
jecxz 0x5777da
add dword [eax], eax
add esp, 0xc
lea eax, [ebp - 0x128]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
jmp 0x577819
xor ecx, ecx
cmp dword [0x5b7070], 0
sete cl
push ecx
call fcn.00579f5a
add esp, 4
and eax, 0xff
test eax, eax
jne 0x577805
sub al, bh
add eax, 0x5b72b0
push es
add byte [eax], al
add bh, bh
adc eax, sym.imp.KERNEL32.dll_GetLastError
mov dword [0x5b72b0], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._Error_code__d_
push 0x5b72b4
call fcn.0058ad8a
add esp, 0xc
xor eax, eax
jmp 0x5778a4
push 0
call fcn.005778b5
add esp, 4
mov eax, 1
jmp 0x5778a4
jmp 0x577839
mov edx, dword [0x5b03e0]
xor edx, dword [0x5b0378]
xor edx, dword [0x5b03b8]
and edx, 2
test edx, edx
je 0x577839
call fcn.00575522
call fcn.0057607b
mov dword [ebp - 0x1c], eax
push 0
call fcn.005778b5
add esp, 4
push 0
call fcn.0058addc
add esp, 4
cmp dword [ebp - 0x1c], 1
jne 0x57786c
push 0x5b7070
call dword [0x5b7098]
add esp, 4
mov dword [ebp - 0x1c], eax
push 0x57604c
call fcn.0058addc
add esp, 4
cmp dword [0x5b7094], 0
je 0x577888
call dword [0x5b7094]
cmp dword [0x5b72a8], 0
je 0x5778a1
push 0
push 0
mov eax, dword [0x5b72a4]
push eax
call dword [0x5b72a8]
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