Function at 0x7ddfc187
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 0x7ddfc51d
test ecx, ecx
je 0x7ddfc51d
push 0x104
lea eax, [ebp - 0x414]
push eax
push ebx
call sym.KERNEL32.dll_GetVolumeNameForVolumeMountPointW
test eax, eax
jne 0x7ddfc666
call fcn.7dd711c7
cmp eax, 0xce
je 0x7ddfc666
mov esi, dword [sym.imp.ntdll.dll_RtlInitUnicodeStringEx]
push ebx
lea eax, [ebp - 0x430]
push eax
call esi
test eax, eax
jge 0x7ddfc23c
push eax
call sym.KERNEL32.dll_BaseSetLastNTError
jmp 0x7ddfc525
push dword [ebp - 0x424]
lea eax, [ebp - 0x420]
push eax
call esi
test eax, eax
jl 0x7ddfc231
cmp word [ebp - 0x430], 0
je 0x7ddfc51d
mov di, word [ebp - 0x420]
test di, di
je 0x7ddfc51d
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 0x7ddfc65c
mov eax, dword [ebp - 0x41c]
movzx ecx, di
shr ecx, 1
cmp word [eax + ecx*2 - 2], si
jne 0x7ddfc65c
cmp di, 0x60
je 0x7ddfc2ba
cmp di, 0x62
jne 0x7ddfc51d
cmp word [eax + 0x60], si
jne 0x7ddfc51d
cmp word [eax], si
jne 0x7ddfc51d
movzx edx, word [eax + 2]
cmp dx, 0x3f
je 0x7ddfc2d6
cmp dx, si
jne 0x7ddfc51d
cmp word [eax + 4], 0x3f
jne 0x7ddfc51d
cmp word [eax + 6], si
jne 0x7ddfc51d
cmp word [eax + 8], 0x56
jne 0x7ddfc51d
cmp word [eax + 0xa], 0x6f
jne 0x7ddfc51d
cmp word [eax + 0xc], 0x6c
jne 0x7ddfc51d
cmp word [eax + 0xe], 0x75
jne 0x7ddfc51d
cmp word [eax + 0x10], 0x6d
jne 0x7ddfc51d
cmp word [eax + 0x12], 0x65
jne 0x7ddfc51d
cmp word [eax + 0x14], 0x7b
jne 0x7ddfc51d
push 0x2d
pop ecx
cmp word [eax + 0x26], cx
jne 0x7ddfc51d
cmp word [eax + 0x30], cx
jne 0x7ddfc51d
cmp word [eax + 0x3a], cx
jne 0x7ddfc51d
cmp word [eax + 0x44], cx
jne 0x7ddfc51d
cmp word [eax + 0x5e], 0x7d
jne 0x7ddfc51d
cmp di, 0x62
jne 0x7ddfc51d
cmp dx, si
jne 0x7ddfc51d
lea eax, [ebp - 0x415]
push eax
push dword [ebp - 0x424]
call fcn.7ddfbd39
test eax, eax
je 0x7ddfc525
cmp byte [ebp - 0x415], 0
je 0x7ddfc51d
cmp word [ebp - 0x430], 6
jne 0x7ddfc3d0
mov eax, dword [ebp - 0x42c]
cmp word [eax + 2], 0x3a
jne 0x7ddfc40d
push dword [ebp - 0x424]
push ebx
call fcn.7ddfbff1
jmp 0x7ddfc527
cmp word [ebp - 0x430], 0xe
jne 0x7ddfc40d
mov eax, dword [ebp - 0x42c]
cmp word [eax], si
jne 0x7ddfc40d
cmp word [eax + 2], si
jne 0x7ddfc40d
movzx ecx, word [eax + 4]
cmp cx, 0x2e
je 0x7ddfc3fb
cmp cx, 0x3f
jne 0x7ddfc40d
cmp word [eax + 6], si
jne 0x7ddfc40d
cmp word [eax + 0xa], 0x3a
jne 0x7ddfc40d
add ebx, 8
jmp 0x7ddfc3bf
push ebx
call fcn.7dd74288
push 3
pop edi
cmp eax, edi
jne 0x7ddfc51d
or ebx, 0xffffffff
push ebx
push 0x80
push edi
push 0
push edi
mov esi, 0xc0000000
push esi
push 0x7dd80508
call sub.API_MS_Win_Core_File_L1_1_0.dll_CreateFileW
cmp eax, ebx
je 0x7ddfc525
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 0x7ddfc525
mov esi, 0x104
push esi
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x434]
call fcn.7dd8072b
cmp eax, 1
jne 0x7ddfc541
lea eax, [ebp - 0x414]
test eax, eax
je 0x7ddfc4c2
lea eax, [ebp - 0x20c]
test eax, eax
je 0x7ddfc4c2
xor ebx, ebx
push ebx
push esi
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.7dd805a5
cmp eax, ebx
jne 0x7ddfc4ce
xor ecx, ecx
mov word [ebp - 0x20c], cx
jmp 0x7ddfc4ce
push 0x57
call dword [sym.imp.ntdll.dll_RtlSetLastWin32Error]
xor eax, eax
xor ebx, ebx
cmp eax, 1
jne 0x7ddfc543
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x7ddfc4dc
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.7de1659b
mov esi, eax
movzx eax, word [ebp - 0x420]
shr eax, 1
push eax
push dword [ebp - 0x41c]
call fcn.7de1659b
cmp esi, eax
je 0x7ddfc538
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 0x7ddfc543
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 0x7ddfc57a
push dword [ebp - 0x428]
call sub.API_MS_Win_Core_Handle_L1_1_0.dll_CloseHandle
push 8
jmp 0x7ddfc51f
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 0x7ddfc655
push 1
push dword [ebp - 0x424]
push dword [ebp - 0x434]
call fcn.7de15e99
mov eax, edi
jmp 0x7ddfc527
push 0xc0000033
jmp 0x7ddfc232
push 0x91
jmp 0x7ddfc51f