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

Disassembly:
cmp dword [ebp - 0x24], 1
je 0x7dd74377
cmp dword [ebp - 0x24], 2
je 0x7dd74377
cmp dword [ebp - 0x24], 7
jne 0x7dd77f2d
mov edx, dword [ebp - 0x1c]
cmp edx, 2
jbe 0x7dd77f2d
mov eax, edx
shr eax, 1
lea eax, [ecx + eax*2]
cmp word [eax - 2], 0
je 0x7dd77f2d
jmp 0x7ddad5a2
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
jmp 0x7dd77f56
test ebx, ebx
jne 0x7ddad401
jmp 0x7dd77f1c
push 0x57
pop eax
jmp 0x7dd77f76
cmp dword [ebp + 0x24], esi
jne 0x7dd77e79
jmp 0x7dd743b1
mov eax, dword [eax]
jmp 0x7dd77eec
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
jmp 0x7dd77f4b
push 0x34
push 0x7dd77f80
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 0x7dd743b1
cmp dword [ebp + 0x20], esi
jne 0x7dd745fb
cmp dword [ebp + 0x14], esi
je 0x7dd743b1
mov edi, dword [ebp + 0x10]
cmp edi, esi
je 0x7dd743b1
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 0x7dd77f56
mov word [ebp - 0x44], ax
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
and ecx, 0x7fffffff
cmp ecx, 0x7fff
ja 0x7ddad3f7
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 0x7dd74609
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 8]
test al, 1
jne 0x7dd743a4
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.7dd77b9f
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x7dd77f2d
mov ecx, dword [ebp + 0x20]
test ecx, ecx
jne 0x7dd74361
cmp word [ebp - 0x44], 2
jb 0x7dd77f40
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 0x7dd74610
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x7dd7439a
cmp dword [ebp - 0x28], 0
jne 0x7ddad5ba
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 0x7dd77ed4
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 0x7ddad532
lea ecx, [ebp + 0x18]
push ecx
push edi
call eax
test eax, eax
jne 0x7ddad532
cmp dword [ebp + 0x18], 5
jb 0x7ddad43e
cmp dword [ebp + 0x18], 0xa
jbe 0x7ddad532
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 0x7ddad46c
mov dword [ebp - 0x20], 8
jmp 0x7dd77f56
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 0x7ddad4b2
test eax, eax
je 0x7ddad4bd
cmp eax, 0xea
jne 0x7ddad4d2
cmp dword [ebp - 0x1c], 0x7fff0000
jbe 0x7ddad4d2
mov dword [ebp - 0x20], 0xd
jmp 0x7dd77f56
test eax, eax
jne 0x7ddad512
cmp dword [ebp - 0x24], 1
je 0x7ddad4e8
cmp dword [ebp - 0x24], 7
je 0x7ddad4e8
cmp dword [ebp - 0x24], 2
jne 0x7ddad4f2
cmp dword [ebp - 0x1c], 2
jb 0x7ddad4f2
sub dword [ebp - 0x1c], 2
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp + 0x10]
ja 0x7ddad50b
push eax
push dword [ebp - 0x28]
push dword [ebp + 0x20]
call sub.ntdll.dll_memcpy
add esp, 0xc
jmp 0x7ddad512
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 0x7dd77f1c
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 0x7ddad57d
cmp dword [ebp - 0x20], 0
je 0x7ddad590
cmp dword [ebp - 0x20], 0xea
jne 0x7dd77f1c
cmp dword [ebp - 0x1c], 0x7fff0000
jbe 0x7dd77f1c
jmp 0x7ddad4c6
add edx, 2
mov ecx, dword [ebp + 0x24]
cmp edx, dword [ecx]
ja 0x7dd77f2d
xor ecx, ecx
mov word [eax], cx
jmp 0x7dd77f2d
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 0x7dd77f60