Function at 0xcbe150
Capabilities:
Check os version
Create thread
Resume thread
Set environment variable
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xd66c66
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0xd88f3c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x250
call fcn.00d246d1
add esp, 4
mov dword [ebp - 0x128], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x128], 0
je 0xcbe1b6
push 3
push 0
mov ecx, dword [ebp - 0x128]
call fcn.00cfb920
mov dword [ebp - 0x148], eax
jmp 0xcbe1c0
mov dword [ebp - 0x148], 0
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0x124], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x124]
mov dword [0xda31a8], ecx
push 0xd8b920
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x40], eax
push 0xd8b900
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0xcbe20f
push 1
push 0x100
call dword [ebp - 0x38]
mov dword [ebp - 0xfc], 0x94
lea eax, [ebp - 0xfc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xec], 2
jne 0xcbe238
mov byte [0xda31b1], 1
jmp 0xcbe254
cmp dword [ebp - 0xf8], 4
jne 0xcbe24f
cmp dword [ebp - 0xf4], 0x5a
jb 0xcbe24f
call fcn.00cbedc0
call fcn.00cbeea0
movzx ecx, byte [0xda31b1]
test ecx, ecx
jne 0xcbe265
cli
not esp
not esp
sti
mov edx, dword [0xda31fc]
mov eax, dword [0xda31fc]
mov ecx, dword [edx + 0x48]
xor ecx, dword [eax + 0x6c]
mov edx, dword [0xda31fc]
xor ecx, dword [edx + 0x64]
and ecx, 4
je 0xcbe28b
mov byte [0xda31ad], 1
mov eax, dword [0xda31fc]
mov ecx, dword [0xda31fc]
mov edx, dword [eax + 0x48]
xor edx, dword [ecx + 0x6c]
mov eax, dword [0xda31fc]
xor edx, dword [eax + 0x64]
and edx, 0x200
je 0xcbe2b3
mov byte [0xda31af], 1
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [0xda31fc]
mov edx, dword [0xda31fc]
mov ecx, dword [ecx + 0x70]
xor ecx, dword [edx + 0x6c]
mov edx, dword [0xda31fc]
xor ecx, dword [edx + 0x2c]
add eax, ecx
mov dword [0xda31bc], eax
mov eax, dword [0xda31fc]
mov ecx, dword [0xda31fc]
mov edx, dword [eax + 0x7c]
xor edx, dword [ecx + 0x40]
mov eax, dword [0xda31fc]
xor edx, dword [eax + 0x64]
add edx, 0xfff
shr edx, 0xc
mov dword [0xda31d0], edx
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x30], 0xffffffff
push 0
call fcn.00cc31f0
add esp, 4
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
mov ecx, dword [0xda31fc]
xor esi, dword [ecx + 0x2c]
push esi
lea ecx, [ebp - 0x118]
call fcn.00cbb640
lea ecx, [ebp - 0x118]
call fcn.00cbbac0
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x114], 0xc
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 1
push 0
push 0x1000
push 0
push 4
lea edx, [ebp - 0x114]
push edx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0xcbe392
xor al, al
jmp 0xcbe8fa
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x108], 0
push 2
push 1
push 0
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp - 0x104]
push ecx
mov edx, dword [ebp - 0x104]
push edx
mov eax, dword [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 0x1000
push 0
push 0
push 2
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0xda31cc], eax
movzx edx, byte [0xda324c]
test edx, edx
je 0xcbe408
lea ecx, [ebp - 0x118]
call fcn.00cbbac0
mov dword [ebp - 0x14c], eax
jmp 0xcbe411
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x14c], eax
mov ecx, dword [0xda31fc]
mov edx, dword [ebp - 0x14c]
xor edx, dword [ecx + 0x40]
mov eax, dword [0xda31fc]
xor edx, dword [eax + 0x54]
mov ecx, dword [0xda31fc]
xor edx, dword [ecx + 0x68]
mov eax, dword [0xda31fc]
xor edx, dword [eax + 4]
mov ecx, dword [0xda31fc]
xor edx, dword [ecx + 0x78]
mov eax, dword [0xda31cc]
mov dword [eax], edx
mov ecx, dword [0xda31cc]
mov edx, dword [ebp - 0x108]
mov dword [ecx + 4], edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [0xda31cc]
mov dword [ecx + 8], eax
mov edx, dword [0xda31cc]
mov dword [edx + 0x20], 0
mov eax, dword [0xda31cc]
add eax, 0xe00
mov dword [0xda31ec], eax
mov ecx, dword [0xda31ec]
mov byte [ecx], 0
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x12c], edx
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00cc0710
add esp, 8
mov dword [ebp - 0x150], eax
mov edx, dword [ebp - 0x150]
mov dword [ebp - 0x154], edx
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0x154]
call fcn.00ccbd90
push eax
push 0xd8b8fc
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00cb7420
xor ecx, ecx
mov eax, dword [0xda31d0]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00d178f2
add esp, 4
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x130]
mov dword [0xda31d8], eax
mov eax, dword [0xda31d0]
shl eax, 4
xor ecx, ecx
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00d178f2
add esp, 4
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x134]
mov dword [0xda31b8], eax
xor ecx, ecx
mov eax, dword [0xda31d0]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00d178f2
add esp, 4
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x138]
mov dword [0xda31dc], eax
xor ecx, ecx
mov eax, dword [0xda31d0]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00d178f2
add esp, 4
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x13c]
mov dword [0xda31e0], eax
push 0x1000
call fcn.00d178f2
add esp, 4
mov dword [ebp - 0x140], eax
mov ecx, dword [ebp - 0x140]
mov dword [0xda31e4], ecx
xor ecx, ecx
mov eax, dword [0xda31d0]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00d178f2
add esp, 4
mov dword [ebp - 0x144], eax
mov eax, dword [ebp - 0x144]
mov dword [0xda31b4], eax
mov ecx, dword [0xda31fc]
mov edx, dword [ecx + 0x54]
xor edx, dword [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x4c]
call fcn.00cbb640
mov dword [ebp - 0x11c], 0
jmp 0xcbe624
mov eax, dword [ebp - 0x11c]
add eax, 1
mov dword [ebp - 0x11c], eax
mov ecx, dword [0xda31d0]
shl ecx, 4
cmp dword [ebp - 0x11c], ecx
jge 0xcbe67b
lea ecx, [ebp - 0x4c]
call fcn.00cbbac0
mov edx, dword [0xda31fc]
xor eax, dword [edx + 0x40]
mov ecx, dword [0xda31fc]
xor eax, dword [ecx + 0x54]
mov edx, dword [0xda31fc]
xor eax, dword [edx + 0x68]
mov ecx, dword [0xda31fc]
xor eax, dword [ecx + 4]
mov edx, dword [0xda31fc]
xor eax, dword [edx + 0x78]
mov ecx, dword [ebp - 0x11c]
mov edx, dword [0xda31b8]
mov dword [edx + ecx*4], eax
jmp 0xcbe615
mov dword [ebp - 0x120], 0
jmp 0xcbe696
mov eax, dword [ebp - 0x120]
add eax, 1
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x120]
cmp ecx, dword [0xda31d0]
jge 0xcbe6f0
mov edx, dword [ebp - 0x120]
mov eax, dword [0xda31d8]
mov dword [eax + edx*4], 0xffffffff
mov ecx, dword [ebp - 0x120]
mov edx, dword [0xda31dc]
mov dword [edx + ecx*4], 0
mov eax, dword [ebp - 0x120]
mov ecx, dword [0xda31e0]
mov dword [ecx + eax*4], 0xffffffff
mov edx, dword [ebp - 0x120]
mov eax, dword [0xda31b4]
mov dword [eax + edx*4], 0
jmp 0xcbe687
mov ecx, dword [0xda31d0]
sar ecx, 1
add ecx, 1
mov dword [0xd879c8], ecx
movzx edx, byte [0xda31ae]
test edx, edx
jne 0xcbe721
cmp dword [0xd879c8], 6
jae 0xcbe71f
mov dword [0xd879c8], 6
jmp 0xcbe734
cmp dword [0xd879c8], 0x12
jae 0xcbe734
mov dword [0xd879c8], 0x12
push 0xd8b8f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x60], eax
push 0xd8b8dc
mov eax, dword [ebp - 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x48], eax
push 0xd8b8c8
mov ecx, dword [ebp - 0x60]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x50], eax
mov edx, dword [0xda31fc]
mov eax, dword [0xda31fc]
mov ecx, dword [edx + 0x38]
xor ecx, dword [eax + 0x6c]
mov edx, dword [0xda31fc]
xor ecx, dword [edx + 0x64]
and ecx, 2
je 0xcbe78a
call fcn.00cf9b50
movzx eax, byte [ebp + 8]
push eax
call fcn.00cbeaa0
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0xcbe7a5
xor al, al
jmp 0xcbe8fa
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x100], eax
mov edx, dword [ebp - 0x100]
mov eax, dword [ebp - 0x100]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x58], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, dword [ebp - 0x58]
add eax, dword [ecx + 0x28]
mov dword [ebp - 0x34], eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, dword [ebp - 0x58]
sub eax, dword [edx + 0x34]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x34]
push eax
push 1
mov ecx, dword [0xd879c0]
push ecx
call fcn.00cbe920
add esp, 0xc
mov edx, dword [ebp - 0x34]
push edx
mov eax, dword [0xd879c0]
push eax
call fcn.00cbea00
add esp, 8
mov ecx, dword [0xd879c0]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0xd879c0]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DebugActiveProcess]
mov dword [ebp - 0x54], eax
mov edx, dword [0xd879c0]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ecx, dword [ebp - 0x34]
push ecx
push 0
mov edx, dword [0xd879c0]
push edx
call fcn.00cbe920
add esp, 0xc
mov eax, dword [0xd879c0]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [0xd879c0]
mov eax, dword [edx + 0xc]
push eax
call fcn.00cbdea0
add esp, 8
mov dword [ebp - 0x3c], 0
lea ecx, [ebp - 0x3c]
push ecx
push 0
mov edx, dword [0xd879c0]
mov eax, dword [edx]
push eax
push 0xcbb220
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx ecx, byte [ebp + 8]
test ecx, ecx
je 0xcbe8aa
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 0xda317c
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea edx, [ebp - 0x4c]
push edx
mov eax, dword [ebp - 0x44]
push eax
call fcn.00cbbca0
add esp, 8
movzx ecx, al
test ecx, ecx
jne 0xcbe8d0
xor al, al
jmp 0xcbe8fa
mov edx, dword [0xda31cc]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [0xda31cc], 0
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x30], 0xffffffff
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00d24bce
mov esp, ebp
pop ebp
ret