Function at 0x7dd7ed7b
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 0x7dd9bdf5
mov ecx, dword [edi + 0x1c]
cmp word [ecx + 2], 0x3a
jne 0x7dd9bdf5
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.7dd741d1
movzx ecx, word [edi + 0x22]
shr ecx, 1
cmp eax, ecx
ja 0x7dd9e718
cmp eax, ebx
jbe 0x7dd964fa
add eax, eax
mov word [esi], ax
mov dword [ebp - 4], ebx
cmp dword [ebp - 8], ebx
jne 0x7dd9e724
xor esi, esi
cmp dword [ebp - 4], ebx
jl 0x7dd7f05c
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 0x7dd96516
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 0x7dd9e742
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 0x7dd9e74c
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 0x7dd964d3
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 0x7dd8da33
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 0x7dd9e757
mov byte [esi + 0x1a], 1
cmp dword [ebp - 4], ebx
jl 0x7dd8da33
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 0x7dd9e76a
cmp dword [ebp - 4], ebx
jl 0x7dd8da33
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 0x7dd96522
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 0x7dd96522
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 0x7dd96522
mov eax, dword [esi + 0x1c]
cmp dword [ebp - 0x20], eax
jne 0x7dd9e7a0
cmp dword [ebp - 4], ebx
jl 0x7dd96522
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 0x7dd7f5be
add eax, ecx
cmp eax, ecx
jbe 0x7dd7f043
dec eax
mov dl, byte [eax]
cmp dl, 0x20
ja 0x7dd7f043
cmp dl, 0xd
je 0x7dd7f043
cmp dl, 0xa
jne 0x7dd9e7b5
mov eax, dword [esi + 0x1c]
add eax, ecx
cmp eax, ecx
jbe 0x7dd7f056
cmp byte [eax - 1], 0xa
jne 0x7dd9e7bd
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 0x7dd7f5e0
add eax, 0xfffffffe
movzx edx, word [eax]
cmp dx, 0x20
ja 0x7dd7f5e0
cmp dx, 0xd
je 0x7dd7f5e0
cmp dx, 0xa
jne 0x7dd9e7ac
mov eax, dword [esi + 0x1c]
add eax, ecx
cmp eax, ecx
jbe 0x7dd7f056
cmp word [eax - 2], 0xa
je 0x7dd7f056
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 0x7dd7f056
cmp esi, ebx
je 0x7dd7f05c
cmp byte [esi + 0x1a], bl
jne 0x7dd9e772
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 0x7dd7f05c
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 0x7dd7eee0
mov dword [ebp - 4], 0xc0000001
jmp 0x7dd7edf7
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x7dd9be24
jmp 0x7dd7edf7
mov dword [ebp - 4], 0xc000003a
jmp 0x7dd7eee3
cmp byte [esi + 0x1a], bl
jne 0x7dd9e7d2
jmp 0x7dd9e7fb
cmp ax, bx
je 0x7dd9be17
push 0x7dd75b44
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 0x7dd7edba
mov eax, dword [0x7de403d4]
cmp eax, ebx
jne 0x7dd9e736
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
add eax, 0x34
push eax
push esi
call dword [sym.imp.ntdll.dll_RtlCopyUnicodeString]
push 0x7dd920c4
push esi
call dword [sym.imp.ntdll.dll_RtlAppendUnicodeToString]
cmp eax, ebx
mov dword [ebp - 4], eax
jl 0x7dd7edf7
lea eax, [edi + 0x10]
push eax
push esi
call dword [sym.imp.ntdll.dll_RtlAppendUnicodeStringToString]
mov dword [ebp - 4], eax
jmp 0x7dd7edf7
mov dword [ebp - 4], 0xc0000023
jmp 0x7dd7edf7
call sub.KERNELBASE.dll_KernelBaseGetGlobalData
add eax, 0x34
push eax
push esi
call dword [ebp - 8]
jmp 0x7dd7edf7
lea ecx, [edi + 0x10]
push ecx
push esi
call eax
jmp 0x7dd96506
mov eax, 0xc0000017
jmp 0x7dd7f05f
lea ecx, [esi + 8]
push ecx
call eax
jmp 0x7dd7ee9f
cmp eax, 0xc00000bb
jne 0x7dd7ef30
mov dword [ebp - 4], ebx
jmp 0x7dd7ef30
mov dword [ebp - 4], ebx
jmp 0x7dd7ef5c
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 0x7dd8da44
mov dword [ebp - 4], 0xc0000011
jmp 0x7dd7eff6
add dword [esi + 0x1c], 0xfffffffe
jmp 0x7dd7f5c0
dec dword [esi + 0x1c]
jmp 0x7dd7f029
mov byte [eax], 0xd
mov byte [eax + 1], 0xa
mov eax, dword [esi + 0x1c]
mov dword [esi + 0x2c], eax
add eax, 2
jmp 0x7dd7f60e
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 0x7dd8da47