Function at 0xa25a40
Capabilities:
Check for peb beingdebugged flag
Check mutex on windows
Get number of processors
Query environment variable
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xab9b5a
mov eax, dword fs:[0]
push eax
sub esp, 0x7fc
mov eax, dword [0xad9f24]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x115], 1
call fcn.00a66190
call fcn.00a23b60
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x11c], eax
mov ecx, dword [ebp - 0x11c]
add ecx, 1
mov dword [ebp - 0x11c], ecx
mov edx, dword [sym.imp.USER32.dll_LoadStringA]
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp - 0x11c]
add eax, 1
mov dword [ebp - 0x11c], eax
mov ecx, dword [sym.imp.USER32.dll_LoadStringW]
mov dword [ebp - 0x11c], ecx
mov edx, dword [ebp - 0x11c]
add edx, 1
mov dword [ebp - 0x11c], edx
push 0xa24660
call fcn.00a79ede
add esp, 4
mov eax, dword [0xaf43d0]
mov ecx, dword [0xaf43d0]
mov edx, dword [eax + 0x14]
xor edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0xadd1c8
push 0x104
lea eax, [ebp - 0x224]
push eax
call fcn.00a78e64
add esp, 0x14
lea ecx, [ebp - 0x224]
push ecx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0xa25b2a
mov byte [ebp - 0x115], 0
movzx edx, byte [ebp - 0x115]
test edx, edx
je 0xa25cf9
mov eax, dword [0xaf43d0]
mov ecx, dword [0xaf43d0]
mov edx, dword [eax + 0xc]
xor edx, dword [ecx + 0x84]
mov eax, dword [0xaf43d0]
xor edx, dword [eax + 0x4c]
and edx, 0x20
je 0xa25cf9
mov ecx, dword [0xaf43d0]
mov edx, dword [0xaf43d0]
mov eax, dword [ecx]
xor eax, dword [edx + 0x7c]
mov ecx, dword [0xaf43d0]
xor eax, dword [ecx + 0x14]
push eax
push 0xadd1c0
push 0x104
lea edx, [ebp - 0x224]
push edx
call fcn.00a78e64
add esp, 0x10
lea eax, [ebp - 0x224]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x22c], eax
cmp dword [ebp - 0x22c], 0
je 0xa25cf9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0xa25cf9
push 0x7530
mov ecx, dword [ebp - 0x22c]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 0x230], eax
cmp dword [ebp - 0x230], 0
je 0xa25bf8
cmp dword [ebp - 0x230], 0x80
jne 0xa25cef
mov edx, dword [0xaf43d0]
mov eax, dword [0xaf43d0]
mov ecx, dword [edx]
xor ecx, dword [eax + 0x7c]
mov edx, dword [0xaf43d0]
xor ecx, dword [edx + 0x14]
push ecx
push 0xadd1b8
push 0x104
lea eax, [ebp - 0x224]
push eax
call fcn.00a78e64
add esp, 0x10
mov dword [ebp - 0x238], 0
jmp 0xa25c46
mov ecx, dword [ebp - 0x238]
add ecx, 1
mov dword [ebp - 0x238], ecx
cmp dword [ebp - 0x238], 0x12c
jge 0xa25c7f
lea edx, [ebp - 0x224]
push edx
push 0xadd1ac
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
je 0xa25c75
jmp 0xa25c7f
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0xa25c37
cmp dword [ebp - 0x234], 0
je 0xa25ce2
mov eax, dword [0xaf43d0]
mov ecx, dword [0xaf43d0]
mov edx, dword [eax]
xor edx, dword [ecx + 0x7c]
mov eax, dword [0xaf43d0]
xor edx, dword [eax + 0x14]
mov dword [ebp - 0x244], edx
mov ecx, dword [0xaf4148]
push ecx
call fcn.00a74f40
add esp, 4
add eax, 1
mov dword [ebp - 0x240], eax
mov edx, dword [0xaf4148]
mov dword [ebp - 0x23c], edx
lea eax, [ebp - 0x244]
push eax
push 0
push 0x4a
mov ecx, dword [ebp - 0x234]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, 1
jmp 0xa262ec
push 1
call fcn.00a26310
add esp, 4
movzx eax, byte [ebp - 0x115]
test eax, eax
je 0xa26082
mov ecx, dword [0xaf43d0]
mov edx, dword [0xaf43d0]
mov eax, dword [ecx + 0xc]
xor eax, dword [edx + 0x84]
mov ecx, dword [0xaf43d0]
xor eax, dword [ecx + 0x4c]
and eax, 0x40
jne 0xa26082
push 0x200
lea edx, [ebp - 0x444]
push edx
push 0xadd1a4
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0xa26082
push 0xc8
push 0x23
lea eax, [ebp - 0x444]
push eax
call fcn.00a75ec0
add esp, 0xc
mov byte [ebp - 0x37c], 0
mov dword [ebp - 0x548], 1
jmp 0xa25d90
mov ecx, dword [ebp - 0x548]
add ecx, 1
mov dword [ebp - 0x548], ecx
cmp dword [ebp - 0x548], 0x40
jg 0xa25dcf
mov edx, dword [ebp - 0x548]
push edx
push 0xadd19c
push 0x100
lea eax, [ebp - 0x544]
push eax
call fcn.00a78e64
add esp, 0x10
lea ecx, [ebp - 0x444]
push ecx
lea edx, [ebp - 0x544]
push edx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0xa25d81
mov eax, dword [0xaf43d0]
mov ecx, dword [0xaf43d0]
mov edx, dword [eax + 0xc]
xor edx, dword [ecx + 0x84]
mov eax, dword [0xaf43d0]
xor edx, dword [eax + 0x4c]
and edx, 0x10
jne 0xa26082
lea ecx, [ebp - 0x724]
push ecx
call fcn.00a59af0
add esp, 4
mov dword [ebp - 4], 0
lea edx, [ebp - 0x30]
push edx
call fcn.00a0bde0
add esp, 4
mov dword [ebp - 0x7fc], eax
mov eax, dword [ebp - 0x7fc]
mov dword [ebp - 0x800], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x800]
push ecx
lea ecx, [ebp - 0x5ac]
call fcn.00a538f0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.00a10230
cmp dword [0xaf4140], 1
jne 0xa25e7f
cmp dword [ebp - 0x718], 0
jne 0xa25e7f
lea ecx, [ebp - 0x5ac]
call fcn.00a545f0
movzx edx, al
test edx, edx
jne 0xa25e7f
lea ecx, [ebp - 0x5ac]
call fcn.00a54190
mov dword [ebp - 0x718], eax
push 0
lea eax, [ebp - 0x744]
push eax
call fcn.00a593c0
add esp, 8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x744]
call fcn.00a102c0
movzx ecx, al
test ecx, ecx
je 0xa25eeb
mov dword [ebp - 0x7ec], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x744]
call fcn.00a10230
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5ac]
call fcn.00a0c5d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x724]
call fcn.00a0fdb0
mov eax, dword [ebp - 0x7ec]
jmp 0xa262ec
lea edx, [ebp - 0xb0]
push edx
call fcn.00a59d20
add esp, 4
mov dword [ebp - 0x804], eax
mov eax, dword [ebp - 0x804]
mov dword [ebp - 0x808], eax
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x808]
push ecx
lea ecx, [ebp - 0x94]
call fcn.00a0c550
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x744]
call fcn.00a10280
push eax
lea ecx, [ebp - 0x114]
call fcn.00a0c550
mov byte [ebp - 4], 7
lea edx, [ebp - 0x5bc]
push edx
lea eax, [ebp - 0x724]
push eax
push 0xaf4f30
push 0xaf4f30
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x94]
push ecx
lea edx, [ebp - 0x114]
push edx
call fcn.00a59620
add esp, 0x28
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x7ed], al
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x114]
call fcn.00a0c5d0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x94]
call fcn.00a0c5d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xb0]
call fcn.00a1ced0
movzx eax, byte [ebp - 0x7ed]
test eax, eax
je 0xa2602b
mov dword [0xaf4290], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xadd17c
push 0x100
push 0xaf4298
call fcn.00a78e64
add esp, 0x10
mov dword [ebp - 0x7f4], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x744]
call fcn.00a10230
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5ac]
call fcn.00a0c5d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x724]
call fcn.00a0fdb0
mov eax, dword [ebp - 0x7f4]
jmp 0xa262ec
push 0x2710
mov ecx, dword [ebp - 0x5bc]
push ecx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov dword [ebp - 0x7f8], 1
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x744]
call fcn.00a10230
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5ac]
call fcn.00a0c5d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x724]
call fcn.00a0fdb0
mov eax, dword [ebp - 0x7f8]
jmp 0xa262ec
mov edx, dword [0xaf43d0]
mov eax, dword [0xaf43d0]
mov ecx, dword [edx + 0xc]
xor ecx, dword [eax + 0x84]
mov edx, dword [0xaf43d0]
xor ecx, dword [edx + 0x4c]
and ecx, 0x10
je 0xa2623f
mov eax, dword [0xaf43d0]
mov ecx, dword [0xaf43d0]
mov edx, dword [eax + 0x14]
xor edx, dword [ecx + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0xadd1c8
push 0x104
lea eax, [ebp - 0x224]
push eax
call fcn.00a78e64
add esp, 0x14
lea ecx, [ebp - 0x224]
push ecx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0xa2623d
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov byte [ebp - 0x745], 0
push 0xadc8b8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x74c], eax
cmp dword [ebp - 0x74c], 0
je 0xa26158
push 0xadd168
mov edx, dword [ebp - 0x74c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x7e8], eax
cmp dword [ebp - 0x7e8], 0
je 0xa26158
call dword [ebp - 0x7e8]
test eax, eax
je 0xa26158
mov byte [ebp - 0x745], 1
mov dword [ebp - 0x7e4], 0x94
lea eax, [ebp - 0x7e4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x7d4], 2
jne 0xa2618a
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
or al, al
jne 0xa26196
jmp 0xa2619d
mov eax, dword fs:[0x20]
or eax, eax
jne 0xa26196
jmp 0xa2619d
mov byte [0xaf4174], 1
movzx ecx, byte [ebp - 0x745]
test ecx, ecx
je 0xa261db
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0xadd160
push 0x104
lea edx, [ebp - 0x224]
push edx
call fcn.00a78e64
add esp, 0x10
lea eax, [ebp - 0x224]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
jmp 0xa2623d
cmp dword [0xaf4140], 0
sete cl
movzx edx, cl
push edx
call fcn.00a0f1b0
add esp, 4
movzx eax, al
test eax, eax
jne 0xa26229
mov dword [0xaf4290], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xadd150
push 0x100
push 0xaf4298
call fcn.00a78e64
add esp, 0x10
xor eax, eax
jmp 0xa262ec
push 0
call fcn.00a26310
add esp, 4
mov eax, 1
jmp 0xa262ec
jmp 0xa26274
push 0
push 0xadc8c4
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov ecx, dword [0xaf43d0]
mov edx, dword [0xaf43d0]
mov eax, dword [ecx + 0x50]
xor eax, dword [edx + 0x84]
mov ecx, dword [0xaf43d0]
xor eax, dword [ecx + 0x4c]
and eax, 2
je 0xa26274
call fcn.00a4abd0
call fcn.00a24690
mov dword [ebp - 0x228], eax
push 0
call fcn.00a26310
add esp, 4
push 0
call fcn.00a79ede
add esp, 4
cmp dword [ebp - 0x228], 1
jne 0xa262b0
push 0xaf4140
call dword [0xaf4170]
add esp, 4
mov dword [ebp - 0x228], eax
push 0xa24660
call fcn.00a79ede
add esp, 4
cmp dword [0xaf416c], 0
je 0xa262cc
call dword [0xaf416c]
cmp dword [0xaf4288], 0
je 0xa262e6
push 0
push 0
mov edx, dword [0xaf4284]
push edx
call dword [0xaf4288]
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00a74f2e
mov esp, ebp
pop ebp
ret