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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db5fd
mov eax, dword fs:[0]
push eax
sub esp, 0x7f8
mov eax, dword [0x5028a0]
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.004a30b0
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 0x45f550
call fcn.004b247e
add esp, 4
mov eax, dword [0x518694]
mov ecx, dword [0x518694]
mov edx, dword [eax + 0x2c]
xor edx, dword [ecx + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x504ee8
push 0x104
lea eax, [ebp - 0x124]
push eax
call fcn.004b1eec
add esp, 0x14
lea ecx, [ebp - 0x124]
push ecx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x460a04
mov byte [ebp - 0xd], 0
movzx edx, byte [ebp - 0xd]
test edx, edx
je 0x460bdc
mov eax, dword [0x518694]
mov ecx, dword [0x518694]
mov edx, dword [eax + 0x6c]
xor edx, dword [ecx + 0x10]
mov eax, dword [0x518694]
xor edx, dword [eax + 0x88]
and edx, 0x20
je 0x460bdc
mov ecx, dword [0x518694]
mov edx, dword [0x518694]
mov eax, dword [ecx + 0x54]
xor eax, dword [edx + 0x84]
mov ecx, dword [0x518694]
xor eax, dword [ecx + 0x2c]
push eax
push 0x504ee0
push 0x104
lea edx, [ebp - 0x124]
push edx
call fcn.004b1eec
add esp, 0x10
lea eax, [ebp - 0x124]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je 0x460bdc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x460bdc
push 0x7530
mov ecx, dword [ebp - 0x12c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x130], eax
cmp dword [ebp - 0x130], 0
je 0x460ad3
cmp dword [ebp - 0x130], 0x80
jne 0x460bd2
mov edx, dword [0x518694]
mov eax, dword [0x518694]
mov ecx, dword [edx + 0x54]
xor ecx, dword [eax + 0x84]
mov edx, dword [0x518694]
xor ecx, dword [edx + 0x2c]
push ecx
push 0x504ed8
push 0x104
lea eax, [ebp - 0x124]
push eax
call fcn.004b1eec
add esp, 0x10
mov dword [ebp - 0x138], 0
jmp 0x460b25
mov ecx, dword [ebp - 0x138]
add ecx, 1
mov dword [ebp - 0x138], ecx
cmp dword [ebp - 0x138], 0x12c
jge 0x460b5e
lea edx, [ebp - 0x124]
push edx
push 0x504ecc
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
je 0x460b54
jmp 0x460b5e
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x460b16
cmp dword [ebp - 0x134], 0
je 0x460bc5
mov eax, dword [0x518694]
mov ecx, dword [0x518694]
mov edx, dword [eax + 0x54]
xor edx, dword [ecx + 0x84]
mov eax, dword [0x518694]
xor edx, dword [eax + 0x2c]
mov dword [ebp - 0x144], edx
mov ecx, dword [0x518438]
push ecx
call fcn.004ad390
add esp, 4
add eax, 1
mov dword [ebp - 0x140], eax
mov edx, dword [0x518438]
mov dword [ebp - 0x13c], edx
lea eax, [ebp - 0x144]
push eax
push 0
push 0x4a
mov ecx, dword [ebp - 0x134]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [ebp - 0x12c]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 1
jmp 0x461284
push 1
call fcn.004612a0
add esp, 4
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x460f68
mov ecx, dword [0x518694]
mov edx, dword [0x518694]
mov eax, dword [ecx + 0x6c]
xor eax, dword [edx + 0x10]
mov ecx, dword [0x518694]
xor eax, dword [ecx + 0x88]
and eax, 0x40
jne 0x460f68
push 0x200
lea edx, [ebp - 0x344]
push edx
push 0x504ec4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x460f68
push 0xc8
push 0x23
lea eax, [ebp - 0x344]
push eax
call fcn.004ae5c0
add esp, 0xc
mov byte [ebp - 0x27c], 0
mov dword [ebp - 0x448], 1
jmp 0x460c70
mov ecx, dword [ebp - 0x448]
add ecx, 1
mov dword [ebp - 0x448], ecx
cmp dword [ebp - 0x448], 0x40
jg 0x460caf
mov edx, dword [ebp - 0x448]
push edx
push 0x504ebc
push 0x100
lea eax, [ebp - 0x444]
push eax
call fcn.004b1eec
add esp, 0x10
lea ecx, [ebp - 0x344]
push ecx
lea edx, [ebp - 0x444]
push edx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x460c61
mov eax, dword [0x518694]
mov ecx, dword [0x518694]
mov edx, dword [eax + 0x6c]
xor edx, dword [ecx + 0x10]
mov eax, dword [0x518694]
xor edx, dword [eax + 0x88]
and edx, 0x10
jne 0x460f68
lea ecx, [ebp - 0x624]
push ecx
call fcn.0048dfe0
add esp, 4
mov dword [ebp - 4], 0
lea edx, [ebp - 0x708]
push edx
call fcn.00447cb0
add esp, 4
mov dword [ebp - 0x7f8], eax
mov eax, dword [ebp - 0x7f8]
mov dword [ebp - 0x7fc], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x7fc]
push ecx
lea ecx, [ebp - 0x4ac]
call fcn.00488170
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x708]
call fcn.0044e200
cmp dword [0x518430], 1
jne 0x460d65
cmp dword [ebp - 0x618], 0
jne 0x460d65
lea ecx, [ebp - 0x4ac]
call fcn.00488e30
movzx edx, al
test edx, edx
jne 0x460d65
lea ecx, [ebp - 0x4ac]
call fcn.004889d0
mov dword [ebp - 0x618], eax
push 0
lea eax, [ebp - 0x644]
push eax
call fcn.0048d8c0
add esp, 8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x644]
call fcn.0044e290
movzx ecx, al
test ecx, ecx
je 0x460dd1
mov dword [ebp - 0x70c], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x644]
call fcn.0044e200
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ac]
call fcn.00448650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x624]
call fcn.0044dc90
mov eax, dword [ebp - 0x70c]
jmp 0x461284
lea edx, [ebp - 0x78c]
push edx
call fcn.0048e200
add esp, 4
mov dword [ebp - 0x800], eax
mov eax, dword [ebp - 0x800]
mov dword [ebp - 0x804], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x804]
push ecx
lea ecx, [ebp - 0x770]
call fcn.004485d0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x644]
call fcn.0044e250
push eax
lea ecx, [ebp - 0x7ec]
call fcn.004485d0
mov byte [ebp - 4], 7
lea edx, [ebp - 0x4bc]
push edx
lea eax, [ebp - 0x624]
push eax
push 0x519400
push 0x519400
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x770]
push ecx
lea edx, [ebp - 0x7ec]
push edx
call fcn.0048dae0
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.00448650
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x770]
call fcn.00448650
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x78c]
call fcn.00458f90
movzx eax, byte [ebp - 0x70d]
test eax, eax
je 0x460f11
mov dword [0x518570], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x504e9c
push 0x100
push 0x518578
call fcn.004b1eec
add esp, 0x10
mov dword [ebp - 0x7f0], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x644]
call fcn.0044e200
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ac]
call fcn.00448650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x624]
call fcn.0044dc90
mov eax, dword [ebp - 0x7f0]
jmp 0x461284
push 0x2710
mov ecx, dword [ebp - 0x4bc]
push ecx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov dword [ebp - 0x7f4], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x644]
call fcn.0044e200
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ac]
call fcn.00448650
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x624]
call fcn.0044dc90
mov eax, dword [ebp - 0x7f4]
jmp 0x461284
mov edx, dword [0x518694]
mov eax, dword [0x518694]
mov ecx, dword [edx + 0x6c]
xor ecx, dword [eax + 0x10]
mov edx, dword [0x518694]
xor ecx, dword [edx + 0x88]
and ecx, 0x10
je 0x4611e6
mov eax, dword [0x518694]
mov ecx, dword [0x518694]
mov edx, dword [eax + 0x2c]
xor edx, dword [ecx + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x504ee8
push 0x104
lea eax, [ebp - 0x124]
push eax
call fcn.004b1eec
add esp, 0x14
lea ecx, [ebp - 0x124]
push ecx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x4611e4
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov byte [ebp - 0x645], 0
push 0x50490c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x64c], eax
cmp dword [ebp - 0x64c], 0
je 0x46103e
push 0x504e88
mov edx, dword [ebp - 0x64c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x6e8], eax
cmp dword [ebp - 0x6e8], 0
je 0x46103e
call dword [ebp - 0x6e8]
test eax, eax
je 0x46103e
mov byte [ebp - 0x645], 1
mov dword [ebp - 0x6e4], 0x94
lea eax, [ebp - 0x6e4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x6d4], 2
jne 0x4610bf
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 0x461081
add ebp, ebx
and ch, bl
jmp 0x4610a2
xor ebx, ebx
je 0x461085
jmp 0x461094
mov ecx, 0x34f9c987
nop
stc
je 0x461098
jmp 0x4610c8
xor eax, eax
je 0x46108a
mov eax, 0x4840c987
test eax, eax
jne 0x46107e
jmp 0x92acae07
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 0x4610d6
jmp 0x461147
jo 0x4610c8
jl 0x4610c6
jmp 0x4610ca
je 0x4610c3
jmp 0x4610c3
mov eax, dword fs:[0x20]
or eax, eax
jne 0x4610d6
jmp 0x461147
pushal
xor eax, eax
jne 0x4610dd
jmp 0x4610f2
jmp 0x461112
xor eax, eax
jne 0x4610fa
jp 0x4610f0
jo 0x4610f4
jmp 0x4610f5
jb 0x4610f9
jns 0x4610de
call dword [0x74097900]
invalid
jns 0x4610fb
je 0x4610e4
jmp 0x46107d
xchg ebx, ebx
jp 0x4610e9
mov al, byte [0x5c66133]
pop esp
test byte [ecx], dl
xor esp, dword [ecx - 0x3a]
add eax, 0x51845c
popal
mov byte [0x51845c], 1
push eax
not eax
bswap eax
pop eax
jae 0x46110b
add dword [eax - 9], edx
ror byte [edi], 1
enter 0x7358, 0
pushfd
pushal
jmp 0x46113a
sub edx, edx
jo 0x461120
jmp 0x461131
xor ecx, ecx
je 0x461118
jmp 0x46112a
stc
xor ecx, 3
je 0x4610b0
jmp 0x461127
jmp 0x461135
jae 0x461123
sbb bl, bl
sbb bl, bl
xor ebx, ebx
jmp 0x46111a
jmp 0x461114
sbb al, 0xdb
jmp 0x46113d
jmp 0x46110e
popal
popfd
bswap eax
not ecx
bswap eax
not ecx
movzx ecx, byte [ebp - 0x645]
test ecx, ecx
je 0x461185
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x504e80
push 0x104
lea edx, [ebp - 0x124]
push edx
call fcn.004b1eec
add esp, 0x10
lea eax, [ebp - 0x124]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
jmp 0x4611e4
cmp dword [0x518430], 0
sete cl
push ecx
call fcn.0044cae0
add esp, 4
movzx edx, al
test edx, edx
jne 0x4611d0
mov dword [0x518570], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x504e70
push 0x100
push 0x518578
call fcn.004b1eec
add esp, 0x10
xor eax, eax
jmp 0x461284
push 0
call fcn.004612a0
add esp, 4
mov eax, 1
jmp 0x461284
jmp 0x46120c
mov eax, dword [0x518694]
mov ecx, dword [0x518694]
mov edx, dword [eax + 0x24]
xor edx, dword [ecx + 0x10]
mov eax, dword [0x518694]
xor edx, dword [eax + 0x88]
and edx, 2
je 0x46120c
call fcn.00480ad0
call fcn.0045f580
mov dword [ebp - 0x128], eax
push 0
call fcn.004612a0
add esp, 4
push 0
call fcn.004b247e
add esp, 4
cmp dword [ebp - 0x128], 1
jne 0x461248
push 0x518430
call dword [0x518458]
add esp, 4
mov dword [ebp - 0x128], eax
push 0x45f550
call fcn.004b247e
add esp, 4
cmp dword [0x518454], 0
je 0x461264
call dword [0x518454]
cmp dword [0x518568], 0
je 0x46127e
push 0
push 0
mov ecx, dword [0x518564]
push ecx
call dword [0x518568]
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.004ad9c2
mov esp, ebp
pop ebp
ret