Function at 0x6b1a50
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 0x746f4a
mov eax, dword fs:[0]
push eax
sub esp, 0x7fc
mov eax, dword [0x765f4c]
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.006f3580
call fcn.006afb70
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 0x6b0670
call fcn.007072ce
add esp, 4
mov eax, dword [0x780538]
mov ecx, dword [0x780538]
mov edx, dword [eax + 0x1c]
xor edx, dword [ecx + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x769220
push 0x104
lea eax, [ebp - 0x224]
push eax
call fcn.00706254
add esp, 0x14
lea ecx, [ebp - 0x224]
push ecx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x6b1b3a
mov byte [ebp - 0x115], 0
movzx edx, byte [ebp - 0x115]
test edx, edx
je 0x6b1d08
mov eax, dword [0x780538]
mov ecx, dword [0x780538]
mov edx, dword [eax + 0x58]
xor edx, dword [ecx]
mov eax, dword [0x780538]
xor edx, dword [eax + 0x6c]
and edx, 0x20
je 0x6b1d08
mov ecx, dword [0x780538]
mov edx, dword [0x780538]
mov eax, dword [ecx + 0x40]
xor eax, dword [edx + 0xc]
mov ecx, dword [0x780538]
xor eax, dword [ecx + 0x1c]
push eax
push 0x769218
push 0x104
lea edx, [ebp - 0x224]
push edx
call fcn.00706254
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 0x6b1d08
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x6b1d08
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 0x6b1c05
cmp dword [ebp - 0x230], 0x80
jne 0x6b1cfe
mov edx, dword [0x780538]
mov eax, dword [0x780538]
mov ecx, dword [edx + 0x40]
xor ecx, dword [eax + 0xc]
mov edx, dword [0x780538]
xor ecx, dword [edx + 0x1c]
push ecx
push 0x769210
push 0x104
lea eax, [ebp - 0x224]
push eax
call fcn.00706254
add esp, 0x10
mov dword [ebp - 0x238], 0
jmp 0x6b1c54
mov ecx, dword [ebp - 0x238]
add ecx, 1
mov dword [ebp - 0x238], ecx
cmp dword [ebp - 0x238], 0x12c
jge 0x6b1c8d
lea edx, [ebp - 0x224]
push edx
push 0x769204
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
je 0x6b1c83
jmp 0x6b1c8d
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x6b1c45
cmp dword [ebp - 0x234], 0
je 0x6b1cf1
mov eax, dword [0x780538]
mov ecx, dword [0x780538]
mov edx, dword [eax + 0x40]
xor edx, dword [ecx + 0xc]
mov eax, dword [0x780538]
xor edx, dword [eax + 0x1c]
mov dword [ebp - 0x244], edx
mov ecx, dword [0x7802b0]
push ecx
call fcn.00702330
add esp, 4
add eax, 1
mov dword [ebp - 0x240], eax
mov edx, dword [0x7802b0]
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 0x6b22eb
push 1
call fcn.006b2310
add esp, 4
movzx eax, byte [ebp - 0x115]
test eax, eax
je 0x6b2089
mov ecx, dword [0x780538]
mov edx, dword [0x780538]
mov eax, dword [ecx + 0x58]
xor eax, dword [edx]
mov ecx, dword [0x780538]
xor eax, dword [ecx + 0x6c]
and eax, 0x40
jne 0x6b2089
push 0x200
lea edx, [ebp - 0x444]
push edx
push 0x7691fc
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x6b2089
push 0xc8
push 0x23
lea eax, [ebp - 0x444]
push eax
call fcn.007032b0
add esp, 0xc
mov byte [ebp - 0x37c], 0
mov dword [ebp - 0x548], 1
jmp 0x6b1d9b
mov ecx, dword [ebp - 0x548]
add ecx, 1
mov dword [ebp - 0x548], ecx
cmp dword [ebp - 0x548], 0x40
jg 0x6b1dda
mov edx, dword [ebp - 0x548]
push edx
push 0x7691f4
push 0x100
lea eax, [ebp - 0x544]
push eax
call fcn.00706254
add esp, 0x10
lea ecx, [ebp - 0x444]
push ecx
lea edx, [ebp - 0x544]
push edx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
jmp 0x6b1d8c
mov eax, dword [0x780538]
mov ecx, dword [0x780538]
mov edx, dword [eax + 0x58]
xor edx, dword [ecx]
mov eax, dword [0x780538]
xor edx, dword [eax + 0x6c]
and edx, 0x10
jne 0x6b2089
lea ecx, [ebp - 0x724]
push ecx
call fcn.006e6ee0
add esp, 4
mov dword [ebp - 4], 0
lea edx, [ebp - 0x30]
push edx
call fcn.00697de0
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.006e0ce0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x30]
call fcn.0069c240
cmp dword [0x7802a8], 1
jne 0x6b1e86
cmp dword [ebp - 0x718], 0
jne 0x6b1e86
lea ecx, [ebp - 0x5ac]
call fcn.006e19e0
movzx edx, al
test edx, edx
jne 0x6b1e86
lea ecx, [ebp - 0x5ac]
call fcn.006e1580
mov dword [ebp - 0x718], eax
push 0
lea eax, [ebp - 0x744]
push eax
call fcn.006e67b0
add esp, 8
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x744]
call fcn.0069c2d0
movzx ecx, al
test ecx, ecx
je 0x6b1ef2
mov dword [ebp - 0x7ec], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x744]
call fcn.0069c240
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5ac]
call fcn.006985d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x724]
call fcn.0069bdc0
mov eax, dword [ebp - 0x7ec]
jmp 0x6b22eb
lea edx, [ebp - 0xb0]
push edx
call fcn.006e7110
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.00698550
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x744]
call fcn.0069c290
push eax
lea ecx, [ebp - 0x114]
call fcn.00698550
mov byte [ebp - 4], 7
lea edx, [ebp - 0x5bc]
push edx
lea eax, [ebp - 0x724]
push eax
push 0x781098
push 0x781098
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x94]
push ecx
lea edx, [ebp - 0x114]
push edx
call fcn.006e6a10
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.006985d0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x94]
call fcn.006985d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xb0]
call fcn.006a8ee0
movzx eax, byte [ebp - 0x7ed]
test eax, eax
je 0x6b2032
mov dword [0x7803f8], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x7691d4
push 0x100
push 0x780400
call fcn.00706254
add esp, 0x10
mov dword [ebp - 0x7f4], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x744]
call fcn.0069c240
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5ac]
call fcn.006985d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x724]
call fcn.0069bdc0
mov eax, dword [ebp - 0x7f4]
jmp 0x6b22eb
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.0069c240
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5ac]
call fcn.006985d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x724]
call fcn.0069bdc0
mov eax, dword [ebp - 0x7f8]
jmp 0x6b22eb
mov edx, dword [0x780538]
mov eax, dword [0x780538]
mov ecx, dword [edx + 0x58]
xor ecx, dword [eax]
mov edx, dword [0x780538]
xor ecx, dword [edx + 0x6c]
and ecx, 0x10
je 0x6b2242
mov eax, dword [0x780538]
mov ecx, dword [0x780538]
mov edx, dword [eax + 0x1c]
xor edx, dword [ecx + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x769220
push 0x104
lea eax, [ebp - 0x224]
push eax
call fcn.00706254
add esp, 0x14
lea ecx, [ebp - 0x224]
push ecx
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x6b2240
push 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov byte [ebp - 0x745], 0
push 0x768910
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x74c], eax
cmp dword [ebp - 0x74c], 0
je 0x6b215b
push 0x7691c0
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 0x6b215b
call dword [ebp - 0x7e8]
test eax, eax
je 0x6b215b
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 0x6b218d
mov eax, dword fs:[0x30]
movzx eax, byte [eax + 2]
or al, al
jne 0x6b2199
jmp 0x6b21a0
mov eax, dword fs:[0x20]
or eax, eax
jne 0x6b2199
jmp 0x6b21a0
mov byte [0x7802dc], 1
movzx ecx, byte [ebp - 0x745]
test ecx, ecx
je 0x6b21de
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0x7691b8
push 0x104
lea edx, [ebp - 0x224]
push edx
call fcn.00706254
add esp, 0x10
lea eax, [ebp - 0x224]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
jmp 0x6b2240
cmp dword [0x7802a8], 0
sete cl
movzx edx, cl
push edx
call fcn.0069b1c0
add esp, 4
movzx eax, al
test eax, eax
jne 0x6b222c
mov dword [0x7803f8], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x7691a8
push 0x100
push 0x780400
call fcn.00706254
add esp, 0x10
xor eax, eax
jmp 0x6b22eb
push 0
call fcn.006b2310
add esp, 4
mov eax, 1
jmp 0x6b22eb
jmp 0x6b2273
push 0
push 0x76891c
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov ecx, dword [0x780538]
mov edx, dword [0x780538]
mov eax, dword [ecx + 0x7c]
xor eax, dword [edx]
mov ecx, dword [0x780538]
xor eax, dword [ecx + 0x6c]
and eax, 2
je 0x6b2273
call fcn.006d6bc0
call fcn.006b06a0
mov dword [ebp - 0x228], eax
push 0
call fcn.006b2310
add esp, 4
push 0
call fcn.007072ce
add esp, 4
cmp dword [ebp - 0x228], 1
jne 0x6b22af
push 0x7802a8
call dword [0x7802d8]
add esp, 4
mov dword [ebp - 0x228], eax
push 0x6b0670
call fcn.007072ce
add esp, 4
cmp dword [0x7802d4], 0
je 0x6b22cb
call dword [0x7802d4]
cmp dword [0x7803f0], 0
je 0x6b22e5
push 0
push 0
mov edx, dword [0x7803ec]
push edx
call dword [0x7803f0]
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.0070231e
mov esp, ebp
pop ebp
ret