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

Disassembly:
xor eax, eax
jmp 0x7dd8f8dc
push 0x60
push 0x7dd8fac8
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 0x7dd8fe03
cmp dword [ebp + 0x20], ebx
je 0x7dd8f84c
cmp dword [ebp + 0x24], ebx
je 0x7dd8fe03
cmp dword [ebp + 0x14], ebx
je 0x7dd8fe03
cmp dword [ebp + 0x10], ebx
je 0x7dd8fe03
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 0x7dd8fa68
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 0x7ddad07a
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 0x7ddad083
mov eax, dword [ebp + 0x24]
cmp eax, ebx
je 0x7dd8f103
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 0x7dd8fde7
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.7dd77b9f
mov dword [ebp - 0x20], eax
push 0xfffffffffffffffe
pop esi
cmp dword [ebp - 0x20], ebx
jne 0x7dd8fb08
cmp dword [ebp + 0x24], ebx
je 0x7dd8fa05
cmp dword [ebp - 0x28], 1
jne 0x7ddad08f
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 0x7ddad0a8
mov dword [ebp - 0x34], ebx
mov eax, dword [ebp + 8]
test al, 1
jne 0x7dd8fdf5
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.7dd77b9f
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp + 0x18]
ja 0x7ddad3af
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 0x7dd8fdd2
cmp dword [ebp - 0x20], ebx
jne 0x7dd8f9e5
cmp dword [ebp + 0x20], ebx
je 0x7dd8f9e5
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 0x7ddad3b7
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp + 0x20]
cmp ecx, ebx
je 0x7dd8fa05
mov edx, dword [ebp + 0x24]
cmp dword [edx], eax
jbe 0x7dd8fa05
cmp eax, ebx
jbe 0x7dd8fa05
add eax, ecx
cmp byte [eax - 1], bl
jne 0x7ddad3c6
cmp dword [ebp - 0x20], ebx
jne 0x7dd8fb1a
mov eax, dword [ebp + 0x24]
cmp eax, ebx
je 0x7dd8fa1a
mov ecx, dword [ebp - 0x24]
mov dword [eax], ecx
mov eax, dword [ebp + 0x1c]
cmp eax, ebx
je 0x7dd8fa26
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
cmp dword [ebp - 0x20], ebx
jne 0x7dd8fa68
cmp word [ebp - 0x68], 2
jb 0x7dd8fa3b
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 0x7ddad3cd
movzx eax, word [ebp - 0x70]
mov dword [esi], eax
cmp dword [ebp - 0x64], ebx
je 0x7dd8fa83
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 0x7dd8fa9e
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 0x7ddad3dc
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 0x7dd8fa05
jmp 0x7dd8f91b
cmp dword [ebp - 0x20], 0xea
jne 0x7dd8fa26
jmp 0x7dd8fa0e
cmp dword [ebp + 0x20], ebx
je 0x7dd8f9b4
mov dword [ebp - 0x20], 0xea
jmp 0x7dd8f9b4
cmp dword [ebp - 0x38], ebx
jne 0x7ddad0b7
jmp 0x7dd8f90f
cmp dword [ebp - 0x38], ebx
jne 0x7ddad24c
jmp 0x7dd8f98c
push 0x57
pop eax
jmp 0x7dd8fabd
mov word [ebp - 0x66], cx
jmp 0x7dd8f8ac
mov dword [ebp - 0x20], 8
jmp 0x7dd8fa68
cmp dword [ebp - 0x28], 2
je 0x7dd8f92e
cmp dword [ebp - 0x28], 7
je 0x7dd8f92e
jmp 0x7dd8fa05
mov dword [ebp - 0x20], 8
mov eax, dword [ebp - 0x3c]
jmp 0x7dd8f9e5
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 0x7ddad138
lea ecx, [ebp - 0x40]
push ecx
push edi
call eax
test eax, eax
jne 0x7ddad138
cmp dword [ebp - 0x40], 5
jb 0x7ddad0e7
cmp dword [ebp - 0x40], 0xa
jbe 0x7ddad138
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 0x7ddad083
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 0x7ddad18b
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 0x7ddad228
cmp eax, ebx
je 0x7ddad196
cmp eax, 0xea
jne 0x7ddad1ab
cmp dword [ebp - 0x24], 0x7fff0000
jbe 0x7ddad1ab
mov dword [ebp - 0x20], 0xd
jmp 0x7dd8fa68
cmp eax, ebx
jne 0x7ddad1eb
cmp dword [ebp - 0x28], 1
je 0x7ddad1c1
cmp dword [ebp - 0x28], 7
je 0x7ddad1c1
cmp dword [ebp - 0x28], 2
jne 0x7ddad1cb
cmp dword [ebp - 0x24], 2
jb 0x7ddad1cb
sub dword [ebp - 0x24], 2
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp + 0x18]
ja 0x7ddad1e4
push eax
push dword [ebp - 0x2c]
push dword [ebp + 0x20]
call sub.ntdll.dll_memcpy
add esp, 0xc
jmp 0x7ddad1eb
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 0x7dd8f912
cmp dword [ebp - 0x20], ebx
je 0x7ddad23a
cmp dword [ebp - 0x20], 0xea
jne 0x7dd8f912
cmp dword [ebp - 0x24], 0x7fff0000
ja 0x7ddad19f
jmp 0x7dd8f912
cmp byte [ebp - 0x19], bl
je 0x7ddad340
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 0x7ddad27e
mov dword [ebp - 0x20], 8
jmp 0x7dd8f98c
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 0x7ddad2ca
cmp eax, ebx
je 0x7ddad2d5
cmp eax, 0xea
jne 0x7ddad2e2
cmp dword [ebp - 0x24], 0x7fff0000
ja 0x7ddad19f
cmp eax, ebx
jne 0x7ddad322
cmp dword [ebp - 0x28], 1
je 0x7ddad2f8
cmp dword [ebp - 0x28], 7
je 0x7ddad2f8
cmp dword [ebp - 0x28], 2
jne 0x7ddad302
cmp dword [ebp - 0x24], 2
jb 0x7ddad302
sub dword [ebp - 0x24], 2
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp + 0x18]
ja 0x7ddad31b
push eax
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call sub.ntdll.dll_memcpy
add esp, 0xc
jmp 0x7ddad322
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 0x7dd8f98c
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 0x7ddad38b
cmp dword [ebp - 0x20], ebx
je 0x7ddad39d
cmp dword [ebp - 0x20], 0xea
jne 0x7dd8f98c
cmp dword [ebp - 0x24], 0x7fff0000
jbe 0x7dd8f98c
jmp 0x7ddad19f
mov eax, dword [ebp + 0x18]
jmp 0x7dd8f998
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [ebp - 0x20], eax
jmp 0x7dd8f9df
mov byte [eax], bl
jmp 0x7dd8fa05
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [ebp - 0x20], eax
jmp 0x7dd8fa68
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 0x7dd8faa7