Function at 0x7dd7ed4b
Capabilities:
Get file attributes
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov eax, dword [eax + 0x68]
mov edi, dword [ebp + 8]
mov dword [ebp - 8], eax
xor eax, eax
lea esi, [edi + 0x20]
mov word [esi], ax
movzx eax, word [edi + 0x18]
xor ebx, ebx
cmp ax, 2
jbe 0x7dd9bde5
mov ecx, dword [edi + 0x1c]
cmp word [ecx + 2], 0x3a
jne 0x7dd9bde5
lea eax, [ebp - 0xc]
push eax
movzx eax, word [edi + 0x22]
push dword [edi + 0x24]
shr eax, 1
push eax
push dword [edi + 0x1c]
call fcn.7dd741e1
movzx ecx, word [edi + 0x22]
shr ecx, 1
cmp eax, ecx
ja 0x7dd9e6e8
cmp eax, ebx
jbe 0x7dd964da
add eax, eax
mov word [esi], ax
mov dword [ebp - 4], ebx
cmp dword [ebp - 8], ebx
jne 0x7dd9e6f4
xor esi, esi
cmp dword [ebp - 4], ebx
jl 0x7dd7f02c
push ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2c]
push eax
push dword [edi + 0x24]
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
je 0x7dd964f6
lea eax, [ebp - 0x2c]
push eax
lea eax, [edi + 0x20]
push eax
call dword [sym.imp.ntdll.dll_RtlCopyUnicodeString]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
mov ecx, dword fs:[0x18]
mov eax, dword [eax + 0x2c]
movzx edx, word [edi + 0x22]
add eax, 0x80000
add edx, 0x78
push edx
or eax, 8
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 0x7dd9e712
lea eax, [esi + 0x78]
mov dword [esi + 0xc], eax
mov ax, word [edi + 0x22]
lea ecx, [edi + 0x20]
mov word [esi + 0xa], ax
lea eax, [esi + 8]
push ecx
push eax
call dword [sym.imp.ntdll.dll_RtlCopyUnicodeString]
mov eax, dword [edi + 8]
mov dword [esi + 0x10], eax
mov al, byte [edi + 4]
mov byte [esi + 0x18], al
mov eax, dword [0x7de403d0]
cmp eax, ebx
jne 0x7dd9e71c
lea eax, [esi + 8]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x44], 0x18
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], ebx
lea eax, [ebp - 0x24]
cmp byte [esi + 0x18], bl
jne 0x7dd964b3
push 0x60
push 7
push eax
lea eax, [ebp - 0x44]
push eax
push 0x80100000
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.ntdll.dll_NtOpenFile]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], ebx
jl 0x7dd8da0b
mov byte [esi + 0x1a], bl
or dword [ebp - 0x14], 0xffffffff
or dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
movzx eax, byte [esi + 0x18]
push eax
push ebx
push dword [0x7de402e8]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push ebx
push dword [esi + 0x14]
call dword [sym.imp.ntdll.dll_NtLockFile]
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x7dd9e727
mov byte [esi + 0x1a], 1
cmp dword [ebp - 4], ebx
jl 0x7dd8da0b
push 5
push 0x18
lea eax, [esi + 0x60]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0x14]
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov dword [ebp - 4], eax
cmp eax, 0x80000005
je 0x7dd9e73a
cmp dword [ebp - 4], ebx
jl 0x7dd8da0b
mov eax, dword [esi + 0x68]
xor ecx, ecx
cmp byte [esi + 0x19], bl
push 4
setne cl
mov dword [esi + 0x1c], eax
push 0x2000
lea edi, [esi + 0x20]
inc ecx
lea eax, [eax + ecx*4]
lea ecx, [esi + 0x28]
push ecx
push ebx
mov dword [esi + 0x24], eax
push edi
add eax, 0x100000
push 0xffffffffffffffff
mov dword [ecx], eax
call dword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x7dd96502
push 4
push 0x1000
lea eax, [esi + 0x24]
push eax
push ebx
push edi
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x7dd96502
push 0x7de402e8
push ebx
push dword [esi + 0x1c]
lea eax, [ebp - 0x24]
push dword [edi]
push eax
push ebx
push ebx
push ebx
push dword [esi + 0x14]
call dword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x7dd96502
mov eax, dword [esi + 0x1c]
cmp dword [ebp - 0x20], eax
jne 0x7dd9e770
cmp dword [ebp - 4], ebx
jl 0x7dd96502
or dword [ebp - 8], 0xffffffff
or dword [esi + 0x2c], 0xffffffff
lea ecx, [ebp - 8]
push ecx
push eax
push dword [edi]
mov dword [esi + 0x30], ebx
call dword [sym.imp.ntdll.dll_RtlIsTextUnicode]
mov ecx, dword [edi]
mov byte [esi + 0x19], al
cmp al, bl
mov eax, dword [esi + 0x1c]
jne 0x7dd7f58e
add eax, ecx
cmp eax, ecx
jbe 0x7dd7f013
dec eax
mov dl, byte [eax]
cmp dl, 0x20
ja 0x7dd7f013
cmp dl, 0xd
je 0x7dd7f013
cmp dl, 0xa
jne 0x7dd9e785
mov eax, dword [esi + 0x1c]
add eax, ecx
cmp eax, ecx
jbe 0x7dd7f026
cmp byte [eax - 1], 0xa
jne 0x7dd9e78d
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4
add eax, ecx
cmp eax, ecx
jbe 0x7dd7f5b0
add eax, 0xfffffffe
movzx edx, word [eax]
cmp dx, 0x20
ja 0x7dd7f5b0
cmp dx, 0xd
je 0x7dd7f5b0
cmp dx, 0xa
jne 0x7dd9e77c
mov eax, dword [esi + 0x1c]
add eax, ecx
cmp eax, ecx
jbe 0x7dd7f026
cmp word [eax - 2], 0xa
je 0x7dd7f026
push 0xd
pop ecx
mov word [eax], cx
push 0xa
pop ecx
mov word [eax + 2], cx
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x2c], eax
add eax, 4
mov dword [esi + 0x1c], eax
mov dword [esi + 0x30], eax
jmp 0x7dd7f026
cmp esi, ebx
je 0x7dd7f02c
cmp byte [esi + 0x1a], bl
jne 0x7dd9e742
push dword [esi + 0x14]
call dword [sym.imp.ntdll.dll_NtClose]
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]
jmp 0x7dd7f02c
push ebx
push ebx
push 0x60
push 3
push 7
push 0x80
push ebx
push eax
lea eax, [ebp - 0x44]
push eax
push 0xc0100000
lea eax, [esi + 0x14]
push eax
call dword [sym.imp.ntdll.dll_NtCreateFile]
jmp 0x7dd7eeb0
mov dword [ebp - 4], 0xc0000001
jmp 0x7dd7edc7
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x7dd9be14
jmp 0x7dd7edc7
mov dword [ebp - 4], 0xc000003a
jmp 0x7dd7eeb3
cmp byte [esi + 0x1a], bl
jne 0x7dd9e7a2
jmp 0x7dd9e7cb
cmp ax, bx
je 0x7dd9be07
push 0x7dd75b54
push dword [edi + 0x1c]
call sub.ntdll.dll_wcscspn
pop ecx
pop ecx
movzx ecx, word [edi + 0x18]
shr ecx, 1
cmp eax, ecx
jne 0x7dd7ed8a
mov eax, dword [0x7de403d4]
cmp eax, ebx
jne 0x7dd9e706
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
add eax, 0x34
push eax
push esi
call dword [sym.imp.ntdll.dll_RtlCopyUnicodeString]
push 0x7dd9209c
push esi
call dword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x7dd7edc7
lea eax, [edi + 0x10]
push eax
push esi
call dword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
mov dword [ebp - 4], eax
jmp 0x7dd7edc7
mov dword [ebp - 4], 0xc0000023
jmp 0x7dd7edc7
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
add eax, 0x34
push eax
push esi
call dword [ebp - 8]
jmp 0x7dd7edc7
lea ecx, [edi + 0x10]
push ecx
push esi
call eax
jmp 0x7dd964e6
mov eax, 0xc0000017
jmp 0x7dd7f02f
lea ecx, [esi + 8]
push ecx
call eax
jmp 0x7dd7ee6f
cmp eax, 0xc00000bb
jne 0x7dd7ef00
mov dword [ebp - 4], ebx
jmp 0x7dd7ef00
mov dword [ebp - 4], ebx
jmp 0x7dd7ef2c
push dword [0x7de402e8]
or dword [ebp - 0x14], 0xffffffff
or dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
push dword [esi + 0x14]
call dword [sym.imp.ntdll.dll_NtUnlockFile]
jmp 0x7dd8da1c
mov dword [ebp - 4], 0xc0000011
jmp 0x7dd7efc6
add dword [esi + 0x1c], 0xfffffffe
jmp 0x7dd7f590
dec dword [esi + 0x1c]
jmp 0x7dd7eff9
mov byte [eax], 0xd
mov byte [eax + 1], 0xa
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x2c], eax
add eax, 2
jmp 0x7dd7f5de
push dword [0x7de402e8]
or dword [ebp - 0x14], 0xffffffff
or dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
push dword [esi + 0x14]
call dword [sym.imp.ntdll.dll_NtUnlockFile]
push dword [esi + 0x14]
jmp 0x7dd8da1f