Function at 0x7ddfc3bf
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get disk information
Get ntdll base address
Get process heap force flags

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x7de403ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
and dword [ebp - 0x438], 0
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
push edi
mov word [ebp - 0x430], ax
lea edi, [ebp - 0x42e]
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov word [ebp - 0x420], ax
lea edi, [ebp - 0x41e]
stosd dword es:[edi], eax
mov dword [ebp - 0x434], ebx
mov dword [ebp - 0x424], ecx
mov byte [ebp - 0x415], 0
stosw word es:[edi], ax
test ebx, ebx
je 0x7ddfc755
test ecx, ecx
je 0x7ddfc755
push 0x104
lea eax, [ebp - 0x414]
push eax
push ebx
call sym.KERNEL32.dll_GetVolumeNameForVolumeMountPointW
test eax, eax
jne 0x7ddfc89e
call fcn.7dd711c7
cmp eax, 0xce
je 0x7ddfc89e
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeStringEx]
push ebx
lea eax, [ebp - 0x430]
push eax
call esi
test eax, eax
jge 0x7ddfc474
push eax
call sym.KERNEL32.dll_BaseSetLastNTError
jmp 0x7ddfc75d
push dword [ebp - 0x424]
lea eax, [ebp - 0x420]
push eax
call esi
test eax, eax
jl 0x7ddfc469
cmp word [ebp - 0x430], 0
je 0x7ddfc755
mov di, word [ebp - 0x420]
test di, di
je 0x7ddfc755
movzx eax, word [ebp - 0x430]
mov ecx, dword [ebp - 0x42c]
push 0x5c
shr eax, 1
pop esi
cmp word [ecx + eax*2 - 2], si
jne 0x7ddfc894
mov eax, dword [ebp - 0x41c]
movzx ecx, di
shr ecx, 1
cmp word [eax + ecx*2 - 2], si
jne 0x7ddfc894
cmp di, 0x60
je 0x7ddfc4f2
cmp di, 0x62
jne 0x7ddfc755
cmp word [eax + 0x60], si
jne 0x7ddfc755
cmp word [eax], si
jne 0x7ddfc755
movzx edx, word [eax + 2]
cmp dx, 0x3f
je 0x7ddfc50e
cmp dx, si
jne 0x7ddfc755
cmp word [eax + 4], 0x3f
jne 0x7ddfc755
cmp word [eax + 6], si
jne 0x7ddfc755
cmp word [eax + 8], 0x56
jne 0x7ddfc755
cmp word [eax + 0xa], 0x6f
jne 0x7ddfc755
cmp word [eax + 0xc], 0x6c
jne 0x7ddfc755
cmp word [eax + 0xe], 0x75
jne 0x7ddfc755
cmp word [eax + 0x10], 0x6d
jne 0x7ddfc755
cmp word [eax + 0x12], 0x65
jne 0x7ddfc755
cmp word [eax + 0x14], 0x7b
jne 0x7ddfc755
push 0x2d
pop ecx
cmp word [eax + 0x26], cx
jne 0x7ddfc755
cmp word [eax + 0x30], cx
jne 0x7ddfc755
cmp word [eax + 0x3a], cx
jne 0x7ddfc755
cmp word [eax + 0x44], cx
jne 0x7ddfc755
cmp word [eax + 0x5e], 0x7d
jne 0x7ddfc755
cmp di, 0x62
jne 0x7ddfc755
cmp dx, si
jne 0x7ddfc755
lea eax, [ebp - 0x415]
push eax
push dword [ebp - 0x424]
call fcn.7ddfbf71
test eax, eax
je 0x7ddfc75d
cmp byte [ebp - 0x415], 0
je 0x7ddfc755
cmp word [ebp - 0x430], 6
jne 0x7ddfc608
mov eax, dword [ebp - 0x42c]
cmp word [eax + 2], 0x3a
jne 0x7ddfc645
push dword [ebp - 0x424]
push ebx
call fcn.7ddfc229
jmp 0x7ddfc75f
cmp word [ebp - 0x430], 0xe
jne 0x7ddfc645
mov eax, dword [ebp - 0x42c]
cmp word [eax], si
jne 0x7ddfc645
cmp word [eax + 2], si
jne 0x7ddfc645
movzx ecx, word [eax + 4]
cmp cx, 0x2e
je 0x7ddfc633
cmp cx, 0x3f
jne 0x7ddfc645
cmp word [eax + 6], si
jne 0x7ddfc645
cmp word [eax + 0xa], 0x3a
jne 0x7ddfc645
add ebx, 8
jmp 0x7ddfc5f7
push ebx
call fcn.7dd74298
push 3
pop edi
cmp eax, edi
jne 0x7ddfc755
or ebx, 0xffffffff
push ebx
push 0x80
push edi
push 0
push edi
mov esi, 0xc0000000
push esi
push 0x7dd804d8
call sub.API_MS_Win_Core_File_L1_1_0.dll_CreateFileW
cmp eax, ebx
je 0x7ddfc75d
push eax
call sub.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle
push ebx
push 0x2200080
push edi
push 0
push edi
push esi
push dword [ebp - 0x434]
call sub.API_MS_Win_Core_File_L1_1_0.dll_CreateFileW
mov dword [ebp - 0x428], eax
cmp eax, ebx
je 0x7ddfc75d
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x434]
call fcn.7dd806fb
cmp eax, 1
jne 0x7ddfc779
lea eax, [ebp - 0x414]
test eax, eax
je 0x7ddfc6fa
lea eax, [ebp - 0x20c]
test eax, eax
je 0x7ddfc6fa
xor ebx, ebx
push ebx
push esi
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.7dd80575
cmp eax, ebx
jne 0x7ddfc706
xor ecx, ecx
mov word [ebp - 0x20c], cx
jmp 0x7ddfc706
push 0x57
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
xor eax, eax
xor ebx, ebx
cmp eax, 1
jne 0x7ddfc77b
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x7ddfc714
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.7de167fb
mov esi, eax
movzx eax, word [ebp - 0x420]
shr eax, 1
push eax
push dword [ebp - 0x41c]
call fcn.7de167fb
cmp esi, eax
je 0x7ddfc770
push dword [ebp - 0x428]
call sub.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle
push 0x57
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.7dd71442
leave
ret 8
push ebx
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
jmp 0x7ddfc77b
xor ebx, ebx
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
jne 0x7ddfc7b2
push dword [ebp - 0x428]
call sub.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle
push 8
jmp 0x7ddfc757
push edi
push ebx
push esi
call sub.ntdll.dll_memset
mov dword [esi], 0xa0000003
mov eax, dword [ebp - 0x420]
lea eax, [eax + eax + 0xc]
mov word [esi + 4], ax
xor eax, eax
mov word [esi + 6], ax
mov word [esi + 8], ax
mov ax, word [ebp - 0x420]
mov word [esi + 0xa], ax
movzx eax, word [ebp - 0x420]
push eax
push dword [ebp - 0x41c]
lea edi, [esi + 0x10]
push edi
call sub.ntdll.dll_memcpy
push 0x3f
pop eax
mov word [esi + 0x12], ax
mov ax, word [esi + 0xa]
add ax, 2
mov word [esi + 0xc], ax
mov ax, word [ebp - 0x420]
mov word [esi + 0xe], ax
movzx eax, word [ebp - 0x420]
push eax
movzx eax, word [esi + 0xa]
lea eax, [eax + edi + 2]
push edi
push eax
call sub.ntdll.dll_memcpy
add esp, 0x24
push ebx
lea eax, [ebp - 0x438]
push eax
movzx eax, word [esi + 4]
push ebx
push ebx
add eax, 8
push eax
push esi
push 0x900a4
push dword [ebp - 0x428]
call sub.API_MS_Win_Core_IO_L1_1_0.dll_DeviceIoControl
mov edi, eax
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 - 0x428]
call sub.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle
cmp edi, ebx
je 0x7ddfc88d
push 1
push dword [ebp - 0x424]
push dword [ebp - 0x434]
call fcn.7de160f9
mov eax, edi
jmp 0x7ddfc75f
push 0xc0000033
jmp 0x7ddfc46a
push 0x91
jmp 0x7ddfc757