Function at 0x7dd77e58
Capabilities:
Check for peb beingdebugged flag
Check os version

Disassembly:
cmp dword [ebp - 0x24], 1
je 0x7dd74387
cmp dword [ebp - 0x24], 2
je 0x7dd74387
cmp dword [ebp - 0x24], 7
jne 0x7dd77f3d
mov edx, dword [ebp - 0x1c]
cmp edx, 2
jbe 0x7dd77f3d
mov eax, edx
shr eax, 1
lea eax, [ecx + eax*2]
cmp word [eax - 2], 0
je 0x7dd77f3d
jmp 0x7ddad5c6
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
jmp 0x7dd77f66
test ebx, ebx
jne 0x7ddad425
jmp 0x7dd77f2c
push 0x57
pop eax
jmp 0x7dd77f86
cmp dword [ebp + 0x24], esi
jne 0x7dd77e89
jmp 0x7dd743c1
mov eax, dword [eax]
jmp 0x7dd77efc
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
jmp 0x7dd77f5b
push 0x34
push 0x7dd77f90
call fcn.7dd715c0
xor esi, esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x30], esi
call sym.KERNEL32.dll_RegKrnGetGlobalState
mov ebx, dword [eax + 0x48]
cmp dword [ebp + 0x18], esi
jne 0x7dd743c1
cmp dword [ebp + 0x20], esi
jne 0x7dd7460b
cmp dword [ebp + 0x14], esi
je 0x7dd743c1
mov edi, dword [ebp + 0x10]
cmp edi, esi
je 0x7dd743c1
mov esi, dword [ebp + 8]
call sym.KERNEL32.dll_RegKrnGetGlobalState
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp + 8]
push ecx
push esi
call dword [eax + 0xb0]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x7dd77f66
mov word [ebp - 0x44], ax
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
and ecx, 0x7fffffff
cmp ecx, 0x7fff
ja 0x7ddad41b
mov ax, word [eax]
add ax, ax
mov word [ebp - 0x42], ax
mov dword [ebp - 0x40], edi
and dword [ebp - 0x2c], 0
mov eax, dword [ebp + 0x24]
test eax, eax
jne 0x7dd74619
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 8]
test al, 1
jne 0x7dd743b4
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp + 0x20]
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x44]
push ecx
push dword [ebp + 0xc]
push eax
call fcn.7dd77baf
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x7dd77f3d
mov ecx, dword [ebp + 0x20]
test ecx, ecx
jne 0x7dd74371
cmp word [ebp - 0x44], 2
jb 0x7dd77f50
movzx eax, word [ebp - 0x44]
shr eax, 1
dec eax
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov eax, dword [ebp + 0x24]
test eax, eax
jne 0x7dd74620
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x7dd743aa
cmp dword [ebp - 0x28], 0
jne 0x7ddad5de
mov esi, dword [ebp - 0x30]
mov edi, dword [ebp - 0x34]
call sym.KERNEL32.dll_RegKrnGetGlobalState
push esi
push edi
call dword [eax + 0xa8]
mov eax, dword [ebp - 0x20]
call fcn.7dd71605
ret 0x20
mov eax, 0xfffe
jmp 0x7dd77ee4
and dword [ebp + 0x18], 0
push 0xfffffffffffffffe
pop esi
and eax, esi
mov edi, eax
call sym.KERNEL32.dll_RegKrnGetGlobalState
mov eax, dword [eax + 0x8c]
test eax, eax
je 0x7ddad556
lea ecx, [ebp + 0x18]
push ecx
push edi
call eax
test eax, eax
jne 0x7ddad556
cmp dword [ebp + 0x18], 5
jb 0x7ddad462
cmp dword [ebp + 0x18], 0xa
jbe 0x7ddad556
mov eax, dword fs:[0x18]
mov ecx, dword [ebp - 0x1c]
add ecx, 2
push ecx
push 0
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x7ddad490
mov dword [ebp - 0x20], 8
jmp 0x7dd77f66
and dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
and eax, esi
push eax
call ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], esi
jmp 0x7ddad4d6
test eax, eax
je 0x7ddad4e1
cmp eax, 0xea
jne 0x7ddad4f6
cmp dword [ebp - 0x1c], 0x7fff0000
jbe 0x7ddad4f6
mov dword [ebp - 0x20], 0xd
jmp 0x7dd77f66
test eax, eax
jne 0x7ddad536
cmp dword [ebp - 0x24], 1
je 0x7ddad50c
cmp dword [ebp - 0x24], 7
je 0x7ddad50c
cmp dword [ebp - 0x24], 2
jne 0x7ddad516
cmp dword [ebp - 0x1c], 2
jb 0x7ddad516
sub dword [ebp - 0x1c], 2
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x10]
ja 0x7ddad52f
push eax
push dword [ebp - 0x28]
push dword [ebp + 0x20]
call sub.ntdll.dll_memcpy
add esp, 0xc
jmp 0x7ddad536
mov dword [ebp - 0x20], 0xd
push dword [ebp - 0x28]
push 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
and dword [ebp - 0x28], 0
jmp 0x7dd77f2c
mov dword [ebp - 4], 1
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0x20]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x44]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
and eax, esi
push eax
call ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], esi
jmp 0x7ddad5a1
cmp dword [ebp - 0x20], 0
je 0x7ddad5b4
cmp dword [ebp - 0x20], 0xea
jne 0x7dd77f2c
cmp dword [ebp - 0x1c], 0x7fff0000
jbe 0x7dd77f2c
jmp 0x7ddad4ea
add edx, 2
mov ecx, dword [ebp + 0x24]
cmp edx, dword [ecx]
ja 0x7dd77f3d
xor ecx, ecx
mov word [eax], cx
jmp 0x7dd77f3d
push dword [ebp - 0x28]
push 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x7dd77f70