Function at 0x5913e0
Capabilities:
Check mutex on windows
Packed with generic packer
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bf87c
mov eax, dword fs:[0]
push eax
sub esp, 0x7f8
mov eax, dword [0x5e4310]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0xd], 1
call fcn.0058de90
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [sym.imp.USER32.dll_LoadStringA]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [sym.imp.USER32.dll_LoadStringW]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
push 0x58fda0
call fcn.005ae7b4
add esp, 4
mov eax, dword [0x5e3770]
xor eax, dword [0x5e37bc]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x5e62c4
lea ecx, [ebp - 0x124]
push ecx
call fcn.005ae72f
add esp, 0x10
lea edx, [ebp - 0x124]
push edx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x591499
mov byte [ebp - 0xd], 0
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x59163a
mov ecx, dword [0x5e378c]
xor ecx, dword [0x5e37b8]
xor ecx, dword [0x5e3788]
and ecx, 0x20
je 0x59163a
mov edx, dword [0x5e3748]
xor edx, dword [0x5e3750]
xor edx, dword [0x5e3770]
push edx
push 0x5e62bc
lea eax, [ebp - 0x124]
push eax
call fcn.005ae72f
add esp, 0xc
lea ecx, [ebp - 0x124]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je 0x59163a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x59163a
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 0x59154d
cmp dword [ebp - 0x130], 0x80
jne 0x591630
mov eax, dword [0x5e3748]
xor eax, dword [0x5e3750]
xor eax, dword [0x5e3770]
push eax
push 0x5e62b4
lea ecx, [ebp - 0x124]
push ecx
call fcn.005ae72f
add esp, 0xc
mov dword [ebp - 0x138], 0
jmp 0x59158e
mov edx, dword [ebp - 0x138]
add edx, 1
mov dword [ebp - 0x138], edx
cmp dword [ebp - 0x138], 0x12c
jge 0x5915c7
lea eax, [ebp - 0x124]
push eax
push 0x5e62a8
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
je 0x5915bd
jmp 0x5915c7
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x59157f
cmp dword [ebp - 0x134], 0
je 0x591623
mov ecx, dword [0x5e3748]
xor ecx, dword [0x5e3750]
xor ecx, dword [0x5e3770]
mov dword [ebp - 0x144], ecx
mov edx, dword [0x5f3050]
push edx
call fcn.005ad530
add esp, 4
add eax, 1
mov dword [ebp - 0x140], eax
mov eax, dword [0x5f3050]
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 0x591c97
push 1
call fcn.00591cb0
add esp, 4
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
je 0x5919a6
mov edx, dword [0x5e378c]
xor edx, dword [0x5e37b8]
xor edx, dword [0x5e3788]
and edx, 0x40
jne 0x5919a6
push 0x200
lea eax, [ebp - 0x344]
push eax
push 0x5e62a0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x5919a6
push 0xc8
push 0x23
lea ecx, [ebp - 0x344]
push ecx
call fcn.005aaf30
add esp, 0xc
mov byte [ebp - 0x27c], 0
mov dword [ebp - 0x448], 1
jmp 0x5916c2
mov edx, dword [ebp - 0x448]
add edx, 1
mov dword [ebp - 0x448], edx
cmp dword [ebp - 0x448], 0x40
jg 0x5916fc
mov eax, dword [ebp - 0x448]
push eax
push 0x5e6298
lea ecx, [ebp - 0x444]
push ecx
call fcn.005ae72f
add esp, 0xc
lea edx, [ebp - 0x344]
push edx
lea eax, [ebp - 0x444]
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x5916b3
mov ecx, dword [0x5e378c]
xor ecx, dword [0x5e37b8]
xor ecx, dword [0x5e3788]
and ecx, 0x10
jne 0x5919a6
lea edx, [ebp - 0x624]
push edx
call fcn.0059d680
add esp, 4
mov dword [ebp - 4], 0
lea eax, [ebp - 0x708]
push eax
call fcn.00593ed0
add esp, 4
mov dword [ebp - 0x7f8], eax
mov ecx, dword [ebp - 0x7f8]
mov dword [ebp - 0x7fc], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x7fc]
push edx
lea ecx, [ebp - 0x4ac]
call fcn.0059ac60
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x708]
call fcn.0058e3c0
cmp dword [0x5f3048], 1
jne 0x5917a8
cmp dword [ebp - 0x618], 0
jne 0x5917a8
lea ecx, [ebp - 0x4ac]
call fcn.0059be10
movzx eax, al
test eax, eax
jne 0x5917a8
lea ecx, [ebp - 0x4ac]
call fcn.0059bd10
mov dword [ebp - 0x618], eax
push 0
lea ecx, [ebp - 0x644]
push ecx
call fcn.0059cca0
add esp, 8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x644]
call fcn.005921d0
movzx edx, al
test edx, edx
je 0x591814
mov dword [ebp - 0x70c], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x644]
call fcn.0058e3c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ac]
call fcn.0058ddc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x624]
call fcn.00591fd0
mov eax, dword [ebp - 0x70c]
jmp 0x591c97
lea eax, [ebp - 0x78c]
push eax
call fcn.0059d850
add esp, 4
mov dword [ebp - 0x800], eax
mov ecx, dword [ebp - 0x800]
mov dword [ebp - 0x804], ecx
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x804]
push edx
lea ecx, [ebp - 0x770]
call fcn.00591f50
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x644]
call fcn.005921b0
push eax
lea ecx, [ebp - 0x7ec]
call fcn.00591f50
mov byte [ebp - 4], 7
lea eax, [ebp - 0x4bc]
push eax
lea ecx, [ebp - 0x624]
push ecx
push 0x5f37d8
push 0x5f37d8
push 0
push 0
push 0
push 0
lea edx, [ebp - 0x770]
push edx
lea eax, [ebp - 0x7ec]
push eax
call fcn.0059d000
add esp, 0x28
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x70d], al
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x7ec]
call fcn.0058ddc0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x770]
call fcn.0058ddc0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x78c]
call fcn.005920f0
movzx ecx, byte [ebp - 0x70d]
test ecx, ecx
je 0x59194f
mov dword [0x5f3288], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x5e6278
push 0x5f3290
call fcn.005ae72f
add esp, 0xc
mov dword [ebp - 0x7f0], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x644]
call fcn.0058e3c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ac]
call fcn.0058ddc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x624]
call fcn.00591fd0
mov eax, dword [ebp - 0x7f0]
jmp 0x591c97
push 0x2710
mov edx, dword [ebp - 0x4bc]
push edx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov dword [ebp - 0x7f4], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x644]
call fcn.0058e3c0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ac]
call fcn.0058ddc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x624]
call fcn.00591fd0
mov eax, dword [ebp - 0x7f4]
jmp 0x591c97
mov eax, dword [0x5e378c]
xor eax, dword [0x5e37b8]
xor eax, dword [0x5e3788]
and eax, 0x10
je 0x591c04
mov ecx, dword [0x5e3770]
xor ecx, dword [0x5e37bc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x5e62c4
lea edx, [ebp - 0x124]
push edx
call fcn.005ae72f
add esp, 0x10
lea eax, [ebp - 0x124]
push eax
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x591c02
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov byte [ebp - 0x645], 0
push 0x5e626c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x64c], eax
cmp dword [ebp - 0x64c], 0
je 0x591a66
push 0x5e6258
mov ecx, dword [ebp - 0x64c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x6e8], eax
cmp dword [ebp - 0x6e8], 0
je 0x591a66
call dword [ebp - 0x6e8]
test eax, eax
je 0x591a66
mov byte [ebp - 0x645], 1
mov dword [ebp - 0x6e4], 0x94
lea edx, [ebp - 0x6e4]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x6d4], 2
jne 0x591ae7
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 0x591aa9
add ebp, ebx
and ch, bl
jmp 0x591aca
xor ebx, ebx
je 0x591aad
jmp 0x591abc
mov ecx, 0x34f9c987
nop
stc
je 0x591ac0
jmp 0x591af0
xor eax, eax
je 0x591ab2
mov eax, 0x4840c987
test eax, eax
jne 0x591aa6
jmp 0x92bfb82f
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 0x591afe
jmp 0x591b6f
jo 0x591af0
jl 0x591aee
jmp 0x591af2
je 0x591aeb
jmp 0x591aeb
mov eax, dword fs:[0x20]
or eax, eax
jne 0x591afe
jmp 0x591b6f
pushal
xor eax, eax
jne 0x591b05
jmp 0x591b1a
jmp 0x591b3a
xor eax, eax
jne 0x591b22
jp 0x591b18
jo 0x591b1c
jmp 0x591b1d
jb 0x591b21
jns 0x591b06
call dword [0x74097900]
invalid
jns 0x591b23
je 0x591b0c
jmp 0x591aa5
xchg ebx, ebx
jp 0x591b11
mov al, byte [0x5c66133]
je 0x591b58
xor esp, dword [ecx - 0x3a]
add eax, 0x5f3074
add dword [eax - 9], edx
ror byte [edi], 1
enter 0x7358, 0
popal
mov byte [0x5f3074], 1
pop edi
add byte [ecx], al
push eax
not eax
bswap eax
pop eax
jae 0x591b33
pushfd
pushal
jmp 0x591b62
sub edx, edx
jo 0x591b48
jmp 0x591b59
xor ecx, ecx
je 0x591b40
jmp 0x591b52
stc
xor ecx, 3
je 0x591ad8
jmp 0x591b4f
jmp 0x591b5d
jae 0x591b4b
sbb bl, bl
sbb bl, bl
xor ebx, ebx
jmp 0x591b42
jmp 0xde44fd48
jmp 0x591b3c
sbb al, 0xdb
jmp 0x591b65
jmp 0x591b36
popal
popfd
bswap eax
not ecx
bswap eax
not ecx
movzx eax, byte [ebp - 0x645]
test eax, eax
je 0x591ba8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x5e6250
lea ecx, [ebp - 0x124]
push ecx
call fcn.005ae72f
add esp, 0xc
lea edx, [ebp - 0x124]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
jmp 0x591c02
cmp dword [0x5f3048], 0
sete al
push eax
call fcn.005985e0
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x591bee
mov dword [0x5f3288], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x5e6240
push 0x5f3290
call fcn.005ae72f
add esp, 0xc
xor eax, eax
jmp 0x591c97
push 0
call fcn.00591cb0
add esp, 4
mov eax, 1
jmp 0x591c97
jmp 0x591c20
mov edx, dword [0x5e37a0]
xor edx, dword [0x5e37b8]
xor edx, dword [0x5e3788]
and edx, 2
je 0x591c20
call fcn.0058ceb0
call fcn.00590160
mov dword [ebp - 0x128], eax
push 0
call fcn.00591cb0
add esp, 4
push 0
call fcn.005ae7b4
add esp, 4
cmp dword [ebp - 0x128], 1
jne 0x591c5c
push 0x5f3048
call dword [0x5f3070]
add esp, 4
mov dword [ebp - 0x128], eax
push 0x58fda0
call fcn.005ae7b4
add esp, 4
cmp dword [0x5f306c], 0
je 0x591c78
call dword [0x5f306c]
cmp dword [0x5f3280], 0
je 0x591c91
push 0
push 0
mov eax, dword [0x5f327c]
push eax
call dword [0x5f3280]
mov eax, dword [ebp - 0x128]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.005ab685
mov esp, ebp
pop ebp
ret