Function at 0x536d1f
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 0x565220
push 0x53fd60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xfffff8c0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov byte [ebp - 0x28], 1
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
add ecx, 1
mov dword [ebp - 0x24], ecx
push 0x535e0c
call fcn.0053fc3b
add esp, 4
mov edx, dword [0x56226c]
xor edx, dword [0x56229c]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x5624ac
lea eax, [ebp - 0x12c]
push eax
call fcn.0053fb61
add esp, 0x10
lea ecx, [ebp - 0x12c]
push ecx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x536dae
mov byte [ebp - 0x28], 0
mov edx, dword [ebp - 0x28]
and edx, 0xff
test edx, edx
je 0x536f56
mov eax, dword [0x5622a0]
xor eax, dword [0x562274]
xor eax, dword [0x5622b4]
and eax, 0x20
test eax, eax
je 0x536f56
mov ecx, dword [0x56227c]
xor ecx, dword [0x5622cc]
xor ecx, dword [0x56226c]
push ecx
push str.RN_08X
lea edx, [ebp - 0x12c]
push edx
call fcn.0053fb61
add esp, 0xc
lea eax, [ebp - 0x12c]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
je 0x536f56
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x536f56
push 0x7530
mov ecx, dword [ebp - 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
je 0x536e68
cmp dword [ebp - 0x134], 0x80
jne 0x536f4c
mov edx, dword [0x56227c]
xor edx, dword [0x5622cc]
xor edx, dword [0x56226c]
push edx
push 0x5624c0
lea eax, [ebp - 0x12c]
push eax
call fcn.0053fb61
add esp, 0xc
mov dword [ebp - 0x13c], 0
jmp 0x536eaa
mov ecx, dword [ebp - 0x13c]
add ecx, 1
mov dword [ebp - 0x13c], ecx
cmp dword [ebp - 0x13c], 0x12c
jge 0x536ee3
lea edx, [ebp - 0x12c]
push edx
push str.MainClass
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 0
je 0x536ed9
jmp 0x536ee3
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x536e9b
cmp dword [ebp - 0x138], 0
je 0x536f3f
mov eax, dword [0x56227c]
xor eax, dword [0x5622cc]
xor eax, dword [0x56226c]
mov dword [ebp - 0x148], eax
mov ecx, dword [0x565720]
push ecx
call fcn.0053fbc0
add esp, 4
add eax, 1
mov dword [ebp - 0x144], eax
mov edx, dword [0x565720]
mov dword [ebp - 0x140], edx
lea eax, [ebp - 0x148]
push eax
push 0
push 0x4a
mov ecx, dword [ebp - 0x138]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [ebp - 0x130]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 1
jmp 0x537527
push 1
call fcn.00537538
add esp, 4
mov eax, dword [ebp - 0x28]
and eax, 0xff
test eax, eax
je 0x53713d
mov ecx, dword [0x5622a0]
xor ecx, dword [0x562274]
xor ecx, dword [0x5622b4]
and ecx, 0x40
test ecx, ecx
jne 0x53713d
push 0x200
lea edx, [ebp - 0x348]
push edx
push str._PAD64
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x53713d
push 0xc8
push 0x23
lea eax, [ebp - 0x348]
push eax
call fcn.0053f9d0
add esp, 0xc
mov byte [ebp - 0x280], 0
mov dword [ebp - 0x44c], 1
jmp 0x536fe4
mov ecx, dword [ebp - 0x44c]
add ecx, 1
mov dword [ebp - 0x44c], ecx
cmp dword [ebp - 0x44c], 0x40
jg 0x53701e
mov edx, dword [ebp - 0x44c]
push edx
push str._PAD_d
lea eax, [ebp - 0x448]
push eax
call fcn.0053fb61
add esp, 0xc
lea ecx, [ebp - 0x348]
push ecx
lea edx, [ebp - 0x448]
push edx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x536fd5
mov eax, dword [0x5622a0]
xor eax, dword [0x562274]
xor eax, dword [0x5622b4]
and eax, 0x10
test eax, eax
jne 0x53713d
lea ecx, [ebp - 0x5a4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dl, byte [0x565a5c]
mov byte [ebp - 0x6a8], dl
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x6a7]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov al, byte [0x565a60]
mov byte [ebp - 0x560], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x55f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
cmp dword [0x565718], 1
jne 0x5370b8
cmp dword [ebp - 0x598], 0
jne 0x5370b8
lea ecx, [ebp - 0x6a8]
push ecx
call fcn.00538c75
add esp, 4
and eax, 0xff
test eax, eax
je 0x5370b8
lea edx, [ebp - 0x6a8]
mov dword [ebp - 0x598], edx
push 0x104
lea eax, [ebp - 0x560]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5370d7
xor eax, eax
jmp 0x537527
lea ecx, [ebp - 0x45c]
push ecx
lea edx, [ebp - 0x5a4]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea eax, [ebp - 0x560]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x537133
mov dword [0x565950], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._Location_XEB__error_code__d_
push 0x565954
call fcn.0053fb61
add esp, 0xc
xor eax, eax
jmp 0x537527
mov eax, 1
jmp 0x537527
mov ecx, dword [0x5622a0]
xor ecx, dword [0x562274]
xor ecx, dword [0x5622b4]
and ecx, 0x10
test ecx, ecx
je 0x53740c
mov edx, dword [0x56226c]
xor edx, dword [0x56229c]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x562504
lea eax, [ebp - 0x12c]
push eax
call fcn.0053fb61
add esp, 0x10
lea ecx, [ebp - 0x12c]
push ecx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x53740c
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov byte [ebp - 0x6ac], 0
push 0x562510
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x6b0], eax
cmp dword [ebp - 0x6b0], 0
je 0x537200
push 0x56251c
mov edx, dword [ebp - 0x6b0]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x748], eax
cmp dword [ebp - 0x748], 0
je 0x537200
call dword [ebp - 0x748]
test eax, eax
je 0x537200
mov byte [ebp - 0x6ac], 1
mov dword [ebp - 0x744], 0x94
lea eax, [ebp - 0x744]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x734], 2
je 0x53728d
mov byte [ebp - 0x74c], 0
mov dword [ebp - 4], 0
pushf
pop eax
or eax, 0x100
push eax
popf
nop
mov dword [ebp - 4], 0xffffffff
jmp 0x537276
mov ecx, dword [ebp - 0x74c]
and ecx, 0xff
test ecx, ecx
jne 0x53728d
mov byte [0x565abc], 1
cmp dword [ebp - 0x734], 2
jne 0x5372d1
pushal
xor eax, eax
jne 0x53729d
jmp 0x5372b2
jmp 0x5372d2
xor eax, eax
jne 0x5372ba
jp 0x5372b0
jo 0x5372b4
jmp 0x5372b5
jb 0x5372b9
jns 0x53729e
call dword [0x74097900]
invalid
jns 0x5372bb
je 0x5372a4
jmp 0x53723d
xchg ebx, ebx
jp 0x5372a9
invalid
mov al, byte [0xa1646133]
xor byte [eax], al
add byte [eax], al
xor esp, dword [ecx + 0x64]
mov eax, dword [0x30]
popal
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
or al, al
jne 0x537311
jmp 0x537372
pushfd
pushal
jmp 0x537300
sub edx, edx
jo 0x5372e6
jmp 0x5372f7
xor ecx, ecx
je 0x5372de
jmp 0x5372f0
stc
xor ecx, 3
je 0x537276
add esi, dword [eax + edx*4 - 0x15]
add eax, 0x7410ebb9
out dx, eax
jmp 0x5372ed
jmp 0x5372fb
jae 0x5372e9
sbb bl, bl
sbb bl, bl
xor ebx, ebx
jmp 0x5372e0
jmp 0x5372da
sbb al, 0xdb
jmp 0x537303
jmp 0x5372d4
popal
popfd
mov eax, dword fs:[0x20]
or eax, eax
jne 0x537311
jmp 0x537372
pushal
xor eax, eax
jne 0x537318
jmp 0x53732d
jmp 0x53734d
xor eax, eax
jne 0x537335
jp 0x53732b
jo 0x53732f
jmp 0x537330
jb 0x537334
jns 0x537319
call dword [0x74097900]
invalid
jns 0x537336
je 0x53731f
jmp 0x5372b8
xchg ebx, ebx
jp 0x537324
mov al, byte [0x5c66133]
inc eax
pop ecx
push esi
add byte [ecx], al
xor esp, dword [ecx - 0x3a]
add eax, 0x565940
add dword [eax + 0x70d22beb], ebx
push cs
popal
mov byte [0x565940], 1
pushfd
pushal
jmp 0x53736d
sub edx, edx
jo 0x537353
jmp 0x537364
xor ecx, ecx
je 0x53734b
jmp 0x53735d
stc
xor ecx, 3
je 0x5372e3
jmp 0x53735a
jmp 0x537368
jae 0x537356
sbb bl, bl
sbb bl, bl
xor ebx, ebx
jmp 0x53734d
jmp 0x537347
sbb al, 0xdb
jmp 0x537370
jmp 0x537341
popal
popfd
mov edx, dword [ebp - 0x6ac]
and edx, 0xff
test edx, edx
je 0x5373b0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x562530
lea eax, [ebp - 0x12c]
push eax
call fcn.0053fb61
add esp, 0xc
lea ecx, [ebp - 0x12c]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
jmp 0x53740c
xor edx, edx
cmp dword [0x565718], 0
sete dl
push edx
call fcn.005391ab
add esp, 4
and eax, 0xff
test eax, eax
jne 0x5373f8
ret 0xe852
mov dword [0x565950], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._Error_code__d_
push 0x565954
call fcn.0053fb61
add esp, 0xc
xor eax, eax
jmp 0x537527
or al, 0x33
shr cl, 0x2f
add dword [eax], eax
add byte [edx], ch
push 0
call fcn.00537538
add esp, 4
mov eax, 1
jmp 0x537527
call fcn.00535e3b
mov dword [ebp - 0x1c], eax
pushal
xor eax, eax
jne 0x53741b
jmp 0x537430
jmp 0x537450
xor eax, eax
jne 0x537438
jp 0x53742e
jo 0x537432
jmp 0x537433
jb 0x537437
jns 0x53741c
call dword [0x74097900]
invalid
jns 0x537439
je 0x537422
jmp 0x5373bb
xchg ebx, ebx
jp 0x537427
mov al, byte [0x5ca16133]
xor esp, dword [ecx - 0x5f]
pop esp
popal
mov eax, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
and dword [esi], edx
push eax
call fcn.00535dd0
add esp, 4
mov byte [ebp - 0x20], al
pushfd
pushal
jmp 0x53747a
sub edx, edx
jo 0x537460
jmp 0x537471
xor ecx, ecx
je 0x537458
jmp 0x53746a
stc
xor ecx, 3
je 0x5373f0
jmp 0x537467
jmp 0x537475
jae 0x537463
sbb bl, bl
sbb bl, bl
xor ebx, ebx
jmp 0x53745a
jmp 0x537454
sbb al, 0xdb
jmp 0x53747d
jmp 0x53744e
popal
popfd
mov ecx, dword [ebp - 0x20]
and ecx, 0xff
test ecx, ecx
je 0x53749e
mov edx, dword [0x562258]
xor edx, 0x7c3
mov dword [0x562258], edx
pushal
xor eax, eax
jne 0x5374a5
jmp 0x5374ba
jmp 0x5374da
xor eax, eax
jne 0x5374c2
jp 0x5374b8
jo 0x5374bc
jmp 0x5374bd
jb 0x5374c1
jns 0x5374a6
call dword [0x74097900]
invalid
jns 0x5374c3
je 0x5374ac
jmp 0x537445
xchg ebx, ebx
jp 0x5374b1
mov al, byte [0x6a6133]
xor esp, dword [ecx + 0x6a]
add al, ch
insd dword es:[edi], dx
add byte [eax], al
add byte [ebx + 0x6a04c4], al
popal
push 0
call fcn.00537538
add esp, 4
push 0
call fcn.0053fc3b
add esp, 4
cmp dword [ebp - 0x1c], 1
in al, 1
jne 0x5374ef
push 0x565718
call dword [0x56573c]
add esp, 4
mov dword [ebp - 0x1c], eax
push 0x535e0c
call fcn.0053fc3b
add esp, 4
cmp dword [0x565738], 0
je 0x53750b
call dword [0x565738]
cmp dword [0x565948], 0
je 0x537524
push 0
push 0
mov eax, dword [0x565944]
push eax
call dword [0x565948]
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