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

Disassembly:
xor eax, eax
jmp 0x7dd8f8b4
push 0x60
push 0x7dd8faa0
call fcn.7dd715c0
xor eax, eax
mov word [ebp - 0x68], ax
lea edi, [ebp - 0x66]
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor ebx, ebx
mov dword [ebp - 0x30], ebx
mov byte [ebp - 0x19], bl
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x48], ebx
call sym.KERNEL32.dll_RegKrnGetGlobalState
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x38], eax
cmp dword [ebp + 0x18], ebx
jne 0x7dd8fddb
cmp dword [ebp + 0x20], ebx
je 0x7dd8f824
cmp dword [ebp + 0x24], ebx
je 0x7dd8fddb
cmp dword [ebp + 0x14], ebx
je 0x7dd8fddb
cmp dword [ebp + 0x10], ebx
je 0x7dd8fddb
mov esi, dword [ebp + 8]
call sym.KERNEL32.dll_RegKrnGetGlobalState
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp + 8]
push ecx
push esi
call dword [eax + 0xb0]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x7dd8fa40
xor eax, eax
mov word [ebp - 0x68], ax
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
lea edx, [ecx + ecx + 2]
mov ecx, 0xfffe
cmp edx, ecx
ja 0x7ddad09e
mov ax, word [eax]
inc ax
add ax, ax
mov word [ebp - 0x66], ax
mov eax, dword fs:[0x18]
movzx ecx, word [ebp - 0x66]
push ecx
push ebx
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x64], eax
cmp eax, ebx
je 0x7ddad0a7
mov eax, dword [ebp + 0x24]
cmp eax, ebx
je 0x7dd8f0dd
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x34], ebx
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 8]
test al, 1
jne 0x7dd8fdbf
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push dword [ebp + 0x20]
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x68]
push ecx
push dword [ebp + 0xc]
push eax
call fcn.7dd77baf
mov dword [ebp - 0x20], eax
push 0xfffffffffffffffe
pop esi
cmp dword [ebp - 0x20], ebx
jne 0x7dd8fae0
cmp dword [ebp + 0x24], ebx
je 0x7dd8f9dd
cmp dword [ebp - 0x28], 1
jne 0x7ddad0b3
mov eax, dword [ebp - 0x24]
mov dword [ebp + 0x18], eax
mov eax, dword [ebp + 0x24]
mov eax, dword [eax]
mov dword [ebp - 0x60], eax
mov eax, dword fs:[0x18]
push dword [ebp - 0x24]
push ebx
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
mov edi, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
call edi
mov dword [ebp - 0x30], eax
cmp eax, ebx
je 0x7ddad0cc
mov dword [ebp - 0x34], ebx
mov eax, dword [ebp + 8]
test al, 1
jne 0x7dd8fdcd
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x68]
push ecx
push dword [ebp + 0xc]
push eax
call fcn.7dd77baf
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp + 0x18]
ja 0x7ddad3d3
push eax
push dword [ebp - 0x30]
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeToMultiByteSize]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp + 0x24]
cmp eax, dword [ecx]
ja 0x7dd8fdaa
cmp dword [ebp - 0x20], ebx
jne 0x7dd8f9bd
cmp dword [ebp + 0x20], ebx
je 0x7dd8f9bd
mov dword [ebp - 0x44], ebx
push dword [ebp + 0x18]
push dword [ebp - 0x30]
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x60]
push dword [ebp + 0x20]
call dword [sym.imp.ntdll.dll_RtlUnicodeToMultiByteN]
cmp eax, ebx
jl 0x7ddad3db
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0x20]
cmp ecx, ebx
je 0x7dd8f9dd
mov edx, dword [ebp + 0x24]
cmp dword [edx], eax
jbe 0x7dd8f9dd
cmp eax, ebx
jbe 0x7dd8f9dd
add eax, ecx
cmp byte [eax - 1], bl
jne 0x7ddad3ea
cmp dword [ebp - 0x20], ebx
jne 0x7dd8faf2
mov eax, dword [ebp + 0x24]
cmp eax, ebx
je 0x7dd8f9f2
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x7dd8f9fe
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
cmp dword [ebp - 0x20], ebx
jne 0x7dd8fa40
cmp word [ebp - 0x68], 2
jb 0x7dd8fa13
mov eax, 0xfffe
add word [ebp - 0x68], ax
mov esi, dword [ebp + 0x14]
mov ax, word [esi]
mov word [ebp - 0x6e], ax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x6c], eax
push ebx
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.ntdll.dll_RtlUnicodeStringToAnsiString]
cmp eax, ebx
jl 0x7ddad3f1
movzx eax, word [ebp - 0x70]
mov dword [esi], eax
cmp dword [ebp - 0x64], ebx
je 0x7dd8fa5b
push dword [ebp - 0x64]
push ebx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0x30], ebx
je 0x7dd8fa76
push dword [ebp - 0x30]
push ebx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0x2c], ebx
jne 0x7ddad400
mov esi, dword [ebp - 0x48]
mov edi, dword [ebp - 0x4c]
call sym.KERNEL32.dll_RegKrnGetGlobalState
push esi
push edi
call dword [eax + 0xa8]
mov eax, dword [ebp - 0x20]
call fcn.7dd71605
ret 0x20
cmp dword [ebp - 0x20], 0xea
jne 0x7dd8f9dd
jmp 0x7dd8f8f3
cmp dword [ebp - 0x20], 0xea
jne 0x7dd8f9fe
jmp 0x7dd8f9e6
cmp dword [ebp + 0x20], ebx
je 0x7dd8f98c
mov dword [ebp - 0x20], 0xea
jmp 0x7dd8f98c
cmp dword [ebp - 0x38], ebx
jne 0x7ddad0db
jmp 0x7dd8f8e7
cmp dword [ebp - 0x38], ebx
jne 0x7ddad270
jmp 0x7dd8f964
push 0x57
pop eax
jmp 0x7dd8fa95
mov word [ebp - 0x66], cx
jmp 0x7dd8f884
mov dword [ebp - 0x20], 8
jmp 0x7dd8fa40
cmp dword [ebp - 0x28], 2
je 0x7dd8f906
cmp dword [ebp - 0x28], 7
je 0x7dd8f906
jmp 0x7dd8f9dd
mov dword [ebp - 0x20], 8
mov eax, dword [ebp - 0x3c]
jmp 0x7dd8f9bd
mov dword [ebp - 0x40], ebx
push 0xfffffffffffffffe
pop esi
and eax, esi
mov edi, eax
call sym.KERNEL32.dll_RegKrnGetGlobalState
mov eax, dword [eax + 0x8c]
cmp eax, ebx
je 0x7ddad15c
lea ecx, [ebp - 0x40]
push ecx
push edi
call eax
test eax, eax
jne 0x7ddad15c
cmp dword [ebp - 0x40], 5
jb 0x7ddad10b
cmp dword [ebp - 0x40], 0xa
jbe 0x7ddad15c
mov byte [ebp - 0x19], 1
mov eax, dword fs:[0x18]
mov ecx, dword [ebp - 0x24]
add ecx, 2
push ecx
push ebx
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov dword [ebp - 0x2c], eax
cmp eax, ebx
je 0x7ddad0a7
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
and eax, esi
push eax
call dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], esi
jmp 0x7ddad1af
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], 1
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
and eax, esi
push eax
call dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], esi
jmp 0x7ddad24c
cmp eax, ebx
je 0x7ddad1ba
cmp eax, 0xea
jne 0x7ddad1cf
cmp dword [ebp - 0x24], 0x7fff0000
jbe 0x7ddad1cf
mov dword [ebp - 0x20], 0xd
jmp 0x7dd8fa40
cmp eax, ebx
jne 0x7ddad20f
cmp dword [ebp - 0x28], 1
je 0x7ddad1e5
cmp dword [ebp - 0x28], 7
je 0x7ddad1e5
cmp dword [ebp - 0x28], 2
jne 0x7ddad1ef
cmp dword [ebp - 0x24], 2
jb 0x7ddad1ef
sub dword [ebp - 0x24], 2
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp + 0x18]
ja 0x7ddad208
push eax
push dword [ebp - 0x2c]
push dword [ebp + 0x20]
call sub.ntdll.dll_memcpy
add esp, 0xc
jmp 0x7ddad20f
mov dword [ebp - 0x20], 0xd
mov eax, dword fs:[0x18]
push dword [ebp - 0x2c]
push ebx
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov dword [ebp - 0x2c], ebx
jmp 0x7dd8f8ea
cmp dword [ebp - 0x20], ebx
je 0x7ddad25e
cmp dword [ebp - 0x20], 0xea
jne 0x7dd8f8ea
cmp dword [ebp - 0x24], 0x7fff0000
ja 0x7ddad1c3
jmp 0x7dd8f8ea
cmp byte [ebp - 0x19], bl
je 0x7ddad364
mov eax, dword fs:[0x18]
mov ecx, dword [ebp - 0x24]
add ecx, 2
push ecx
push ebx
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call edi
mov dword [ebp - 0x2c], eax
cmp eax, ebx
jne 0x7ddad2a2
mov dword [ebp - 0x20], 8
jmp 0x7dd8f964
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
and eax, esi
push eax
call dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], esi
jmp 0x7ddad2ee
cmp eax, ebx
je 0x7ddad2f9
cmp eax, 0xea
jne 0x7ddad306
cmp dword [ebp - 0x24], 0x7fff0000
ja 0x7ddad1c3
cmp eax, ebx
jne 0x7ddad346
cmp dword [ebp - 0x28], 1
je 0x7ddad31c
cmp dword [ebp - 0x28], 7
je 0x7ddad31c
cmp dword [ebp - 0x28], 2
jne 0x7ddad326
cmp dword [ebp - 0x24], 2
jb 0x7ddad326
sub dword [ebp - 0x24], 2
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp + 0x18]
ja 0x7ddad33f
push eax
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call sub.ntdll.dll_memcpy
add esp, 0xc
jmp 0x7ddad346
mov dword [ebp - 0x20], 0xd
push dword [ebp - 0x2c]
push ebx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov dword [ebp - 0x2c], ebx
jmp 0x7dd8f964
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x34]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x68]
push ecx
push dword [ebp + 0xc]
and eax, esi
push eax
call dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], esi
jmp 0x7ddad3af
cmp dword [ebp - 0x20], ebx
je 0x7ddad3c1
cmp dword [ebp - 0x20], 0xea
jne 0x7dd8f964
cmp dword [ebp - 0x24], 0x7fff0000
jbe 0x7dd8f964
jmp 0x7ddad1c3
mov eax, dword [ebp + 0x18]
jmp 0x7dd8f970
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [ebp - 0x20], eax
jmp 0x7dd8f9b7
mov byte [eax], bl
jmp 0x7dd8f9dd
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [ebp - 0x20], eax
jmp 0x7dd8fa40
push dword [ebp - 0x2c]
push ebx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x7dd8fa7f