Function at 0x7ddfb789
Capabilities:
Check for peb beingdebugged flag
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 8], ebx
cmp esi, 0xffffffff
je 0x7ddfbb2a
cmp esi, ebx
je 0x7ddfbb2a
cmp dword [ebp + 0xc], ebx
je 0x7ddfbb2a
cmp dword [ebp + 0x10], ebx
je 0x7ddfbb2a
cmp dword [ebp + 0x14], ebx
je 0x7ddfb7ee
xor eax, eax
lea edi, [ebp - 0x34]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0xc
pop eax
mov word [ebp - 0x16], ax
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x14], eax
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp + 0x14], ebx
mov dword [ebp - 0x34], 0xa0000003
push eax
jmp 0x7ddfb809
cmp dword [esi + 0x10], ebx
je 0x7ddfb807
mov eax, dword [ebp + 8]
add esi, 8
lea edi, [ebp - 0x44]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [eax + 0x10], ebx
mov esi, eax
jmp 0x7ddfb82a
push ebx
push ebx
push 1
push 0x21
push 0x10
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push ebx
push dword [esi]
call dword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
cmp eax, ebx
jl 0x7ddfb9dc
cmp dword [ebp - 0x3c], 0xa0000003
jne 0x7ddfb9f5
push 8
pop eax
mov word [ebp - 0x20], ax
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 8]
push eax
push ebx
push 1
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0x5c], 0x18
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0xc], 0x11
call dword [sym.imp.ntdll.dll_RtlAcquirePrivilege]
test eax, eax
jge 0x7ddfb882
mov dword [ebp - 8], ebx
push 0x206000
push 7
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x5c]
push eax
push 0x100000
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov esi, eax
cmp dword [ebp - 8], ebx
je 0x7ddfb8b0
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_RtlReleasePrivilege]
cmp esi, ebx
jl 0x7ddfb9fc
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x2c]
mov ecx, dword fs:[0x18]
mov edi, 0x4000
push edi
push eax
mov eax, dword [ecx + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
cmp esi, ebx
je 0x7ddfb9ff
push ebx
lea eax, [ebp - 0x10]
push eax
push edi
push esi
push ebx
push ebx
push 0x900a8
push dword [ebp - 4]
call sub.API_MS_Win_Core_IO_L1_1_0.dll_DeviceIoControl
test eax, eax
je 0x7ddfbb0c
cmp dword [esi], 0xa0000003
jne 0x7ddfbb0c
movzx eax, word [esi + 8]
mov di, word [esi + 0xa]
lea eax, [eax + esi + 0x10]
cmp di, 0x60
je 0x7ddfb935
cmp di, 0x62
jne 0x7ddfb9b8
cmp word [eax + 0x60], 0x5c
jne 0x7ddfb9b8
cmp word [eax], 0x5c
jne 0x7ddfb9b8
movzx edx, word [eax + 2]
cmp dx, 0x3f
je 0x7ddfb94b
cmp dx, 0x5c
jne 0x7ddfb9b8
cmp word [eax + 4], 0x3f
jne 0x7ddfb9b8
cmp word [eax + 6], 0x5c
jne 0x7ddfb9b8
cmp word [eax + 8], 0x56
jne 0x7ddfb9b8
cmp word [eax + 0xa], 0x6f
jne 0x7ddfb9b8
cmp word [eax + 0xc], 0x6c
jne 0x7ddfb9b8
cmp word [eax + 0xe], 0x75
jne 0x7ddfb9b8
cmp word [eax + 0x10], 0x6d
jne 0x7ddfb9b8
cmp word [eax + 0x12], 0x65
jne 0x7ddfb9b8
cmp word [eax + 0x14], 0x7b
jne 0x7ddfb9b8
push 0x2d
pop ecx
cmp word [eax + 0x26], cx
jne 0x7ddfb9b8
cmp word [eax + 0x30], cx
jne 0x7ddfb9b8
cmp word [eax + 0x3a], cx
jne 0x7ddfb9b8
cmp word [eax + 0x44], cx
jne 0x7ddfb9b8
cmp word [eax + 0x5e], 0x7d
jne 0x7ddfb9b8
cmp di, 0x62
jne 0x7ddfb9b8
cmp dx, 0x3f
je 0x7ddfba0e
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [ebp - 4]
call sub.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle
mov esi, dword [ebp + 8]
jmp 0x7ddfb7bf
cmp eax, 0xc000000f
jne 0x7ddfb9ea
push 0x80000006
jmp 0x7ddfb9eb
push eax
call sym.KERNEL32.dll_BaseSetLastNTError
jmp 0x7ddfbb32
push 0x12
jmp 0x7ddfbb2c
push esi
jmp 0x7ddfb9eb
push dword [ebp - 4]
call sub.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle
push 8
jmp 0x7ddfbb2c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edi, dword [sym.imp.ntdll.dll_RtlFreeHeap]
push esi
push ebx
push dword [eax + 0x18]
call edi
mov esi, dword [ebp + 0x10]
lea esi, [esi + esi + 2]
mov dword [ebp + 0x14], esi
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x2c]
mov ecx, dword fs:[0x18]
push esi
push eax
mov eax, dword [ecx + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
cmp esi, ebx
je 0x7ddfb9ff
push 9
push dword [ebp + 0x14]
lea eax, [ebp - 0x28]
push esi
push eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
cmp eax, ebx
mov dword [ebp + 0x14], eax
jge 0x7ddfbaa1
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push ebx
push dword [eax + 0x18]
call edi
push dword [ebp - 4]
call sub.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle
cmp dword [ebp + 0x14], 0x80000005
jne 0x7ddfba99
mov edi, dword [ebp + 8]
add edi, 8
lea esi, [ebp - 0x44]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push dword [ebp + 0x14]
jmp 0x7ddfb9eb
mov eax, dword [esi]
lea ecx, [eax - 2]
cmp ecx, eax
jbe 0x7ddfbac6
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push ebx
push dword [eax + 0x18]
call edi
push dword [ebp - 4]
call sub.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle
push 0x6f
jmp 0x7ddfbb2c
push ecx
lea eax, [esi + 6]
push eax
push dword [ebp + 0xc]
call sub.ntdll.dll_memcpy
mov ecx, dword [esi]
mov eax, dword [ebp + 0xc]
add esp, 0xc
push 0x5c
pop edx
shr ecx, 1
mov word [eax + ecx*2 - 2], dx
mov ecx, dword [esi]
shr ecx, 1
xor edx, edx
mov word [eax + ecx*2], dx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push ebx
push dword [eax + 0x18]
call edi
push dword [ebp - 4]
call sub.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle
xor eax, eax
inc eax
jmp 0x7ddfbb34
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push esi
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [ebp - 4]
call sub.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle
jmp 0x7ddfbb32
push 0x57
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x10