Function at 0xa84b80
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 0xb00b6d
mov eax, dword fs:[0]
push eax
sub esp, 0x7f8
mov eax, dword [0xb288a0]
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.00ac8370
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 0xa83790
call fcn.00ad785e
add esp, 4
mov eax, dword [0xb3ead4]
mov ecx, dword [0xb3ead4]
mov edx, dword [eax + 0x54]
xor edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0xb2af2c
push 0x104
lea eax, [ebp - 0x124]
push eax
call fcn.00ad72c8
add esp, 0x14
lea ecx, [ebp - 0x124]
push ecx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0xa84c44
mov byte [ebp - 0xd], 0
movzx edx, byte [ebp - 0xd]
test edx, edx
je 0xa84e19
mov eax, dword [0xb3ead4]
mov ecx, dword [0xb3ead4]
mov edx, dword [eax + 0x7c]
xor edx, dword [ecx + 0x30]
mov eax, dword [0xb3ead4]
xor edx, dword [eax + 0x24]
and edx, 0x20
je 0xa84e19
mov ecx, dword [0xb3ead4]
mov edx, dword [0xb3ead4]
mov eax, dword [ecx + 0x44]
xor eax, dword [edx + 0x94]
mov ecx, dword [0xb3ead4]
xor eax, dword [ecx + 0x54]
push eax
push 0xb2af24
push 0x104
lea edx, [ebp - 0x124]
push edx
call fcn.00ad72c8
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 0xa84e19
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0xa84e19
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 0xa84d10
cmp dword [ebp - 0x130], 0x80
jne 0xa84e0f
mov edx, dword [0xb3ead4]
mov eax, dword [0xb3ead4]
mov ecx, dword [edx + 0x44]
xor ecx, dword [eax + 0x94]
mov edx, dword [0xb3ead4]
xor ecx, dword [edx + 0x54]
push ecx
push 0xb2af1c
push 0x104
lea eax, [ebp - 0x124]
push eax
call fcn.00ad72c8
add esp, 0x10
mov dword [ebp - 0x138], 0
jmp 0xa84d62
mov ecx, dword [ebp - 0x138]
add ecx, 1
mov dword [ebp - 0x138], ecx
cmp dword [ebp - 0x138], 0x12c
jge 0xa84d9b
lea edx, [ebp - 0x124]
push edx
push 0xb2af10
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0
je 0xa84d91
jmp 0xa84d9b
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0xa84d53
cmp dword [ebp - 0x134], 0
je 0xa84e02
mov eax, dword [0xb3ead4]
mov ecx, dword [0xb3ead4]
mov edx, dword [eax + 0x44]
xor edx, dword [ecx + 0x94]
mov eax, dword [0xb3ead4]
xor edx, dword [eax + 0x54]
mov dword [ebp - 0x144], edx
mov ecx, dword [0xb3e878]
push ecx
call fcn.00ad2770
add esp, 4
add eax, 1
mov dword [ebp - 0x140], eax
mov edx, dword [0xb3e878]
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 0xa853fe
push 1
call fcn.00a85420
add esp, 4
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0xa8519f
mov ecx, dword [0xb3ead4]
mov edx, dword [0xb3ead4]
mov eax, dword [ecx + 0x7c]
xor eax, dword [edx + 0x30]
mov ecx, dword [0xb3ead4]
xor eax, dword [ecx + 0x24]
and eax, 0x40
jne 0xa8519f
push 0x200
lea edx, [ebp - 0x344]
push edx
push 0xb2af08
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0xa8519f
push 0xc8
push 0x23
lea eax, [ebp - 0x344]
push eax
call fcn.00ad39a0
add esp, 0xc
mov byte [ebp - 0x27c], 0
mov dword [ebp - 0x448], 1
jmp 0xa84eaa
mov ecx, dword [ebp - 0x448]
add ecx, 1
mov dword [ebp - 0x448], ecx
cmp dword [ebp - 0x448], 0x40
jg 0xa84ee9
mov edx, dword [ebp - 0x448]
push edx
push 0xb2af00
push 0x100
lea eax, [ebp - 0x444]
push eax
call fcn.00ad72c8
add esp, 0x10
lea ecx, [ebp - 0x344]
push ecx
lea edx, [ebp - 0x444]
push edx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0xa84e9b
mov eax, dword [0xb3ead4]
mov ecx, dword [0xb3ead4]
mov edx, dword [eax + 0x7c]
xor edx, dword [ecx + 0x30]
mov eax, dword [0xb3ead4]
xor edx, dword [eax + 0x24]
and edx, 0x10
jne 0xa8519f
lea ecx, [ebp - 0x624]
push ecx
call fcn.00aaea70
add esp, 4
mov dword [ebp - 4], 0
lea edx, [ebp - 0x708]
push edx
call fcn.00a6e2e0
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.00aa8af0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x708]
call fcn.00a66870
cmp dword [0xb3e870], 1
jne 0xa84f9c
cmp dword [ebp - 0x618], 0
jne 0xa84f9c
lea ecx, [ebp - 0x4ac]
call fcn.00aa97b0
movzx edx, al
test edx, edx
jne 0xa84f9c
lea ecx, [ebp - 0x4ac]
call fcn.00aa9350
mov dword [ebp - 0x618], eax
push 0
lea eax, [ebp - 0x644]
push eax
call fcn.00aae350
add esp, 8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x644]
call fcn.00a72720
movzx ecx, al
test ecx, ecx
je 0xa85008
mov dword [ebp - 0x70c], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x644]
call fcn.00a66870
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ac]
call fcn.00a666c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x624]
call fcn.00a72220
mov eax, dword [ebp - 0x70c]
jmp 0xa853fe
lea edx, [ebp - 0x78c]
push edx
call fcn.00aaec90
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.00a6ea40
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x644]
call fcn.00a726e0
push eax
lea ecx, [ebp - 0x7ec]
call fcn.00a6ea40
mov byte [ebp - 4], 7
lea edx, [ebp - 0x4bc]
push edx
lea eax, [ebp - 0x624]
push eax
push 0xb3f630
push 0xb3f630
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x770]
push ecx
lea edx, [ebp - 0x7ec]
push edx
call fcn.00aae570
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.00a666c0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x770]
call fcn.00a666c0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x78c]
call fcn.00a7e980
movzx eax, byte [ebp - 0x70d]
test eax, eax
je 0xa85148
mov dword [0xb3e9b0], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xb2aee0
push 0x100
push 0xb3e9b8
call fcn.00ad72c8
add esp, 0x10
mov dword [ebp - 0x7f0], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x644]
call fcn.00a66870
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ac]
call fcn.00a666c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x624]
call fcn.00a72220
mov eax, dword [ebp - 0x7f0]
jmp 0xa853fe
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.00a66870
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4ac]
call fcn.00a666c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x624]
call fcn.00a72220
mov eax, dword [ebp - 0x7f4]
jmp 0xa853fe
mov edx, dword [0xb3ead4]
mov eax, dword [0xb3ead4]
mov ecx, dword [edx + 0x7c]
xor ecx, dword [eax + 0x30]
mov edx, dword [0xb3ead4]
xor ecx, dword [edx + 0x24]
and ecx, 0x10
je 0xa85356
mov eax, dword [0xb3ead4]
mov ecx, dword [0xb3ead4]
mov edx, dword [eax + 0x54]
xor edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0xb2af2c
push 0x104
lea eax, [ebp - 0x124]
push eax
call fcn.00ad72c8
add esp, 0x14
lea ecx, [ebp - 0x124]
push ecx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0xa85354
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov byte [ebp - 0x645], 0
push 0xb2a8f4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x64c], eax
cmp dword [ebp - 0x64c], 0
je 0xa85272
push 0xb2aecc
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 0xa85272
call dword [ebp - 0x6e8]
test eax, eax
je 0xa85272
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 0xa852a4
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
or al, al
jne 0xa852b0
jmp 0xa852b7
mov eax, dword fs:[0x20]
or eax, eax
jne 0xa852b0
jmp 0xa852b7
mov byte [0xb3e89c], 1
movzx ecx, byte [ebp - 0x645]
test ecx, ecx
je 0xa852f5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0xb2aec4
push 0x104
lea edx, [ebp - 0x124]
push edx
call fcn.00ad72c8
add esp, 0x10
lea eax, [ebp - 0x124]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
jmp 0xa85354
cmp dword [0xb3e870], 0
sete cl
push ecx
call fcn.00a716b0
add esp, 4
movzx edx, al
test edx, edx
jne 0xa85340
mov dword [0xb3e9b0], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xb2aeb4
push 0x100
push 0xb3e9b8
call fcn.00ad72c8
add esp, 0x10
xor eax, eax
jmp 0xa853fe
push 0
call fcn.00a85420
add esp, 4
mov eax, 1
jmp 0xa853fe
jmp 0xa85386
push 0
push 0xb2a900
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov eax, dword [0xb3ead4]
mov ecx, dword [0xb3ead4]
mov edx, dword [eax + 4]
xor edx, dword [ecx + 0x30]
mov eax, dword [0xb3ead4]
xor edx, dword [eax + 0x24]
and edx, 2
je 0xa85386
call fcn.00aa6b50
call fcn.00a837c0
mov dword [ebp - 0x128], eax
push 0
call fcn.00a85420
add esp, 4
push 0
call fcn.00ad785e
add esp, 4
cmp dword [ebp - 0x128], 1
jne 0xa853c2
push 0xb3e870
call dword [0xb3e898]
add esp, 4
mov dword [ebp - 0x128], eax
push 0xa83790
call fcn.00ad785e
add esp, 4
cmp dword [0xb3e894], 0
je 0xa853de
call dword [0xb3e894]
cmp dword [0xb3e9a8], 0
je 0xa853f8
push 0
push 0
mov ecx, dword [0xb3e9a4]
push ecx
call dword [0xb3e9a8]
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.00ad2da2
mov esp, ebp
pop ebp
ret