Function at 0x18d32090
Capabilities:
Get file attributes
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x8c], 0x100000
mov dword [ebp - 4], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x90], 0
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x8c]
push eax
call fcn.18d33770
add esp, 4
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
jne 0x18d32118
xor eax, eax
jmp 0x18d32519
push 0
mov ecx, dword [ebp - 0x8c]
push ecx
mov edx, dword [ebp - 0x84]
push edx
push 0x10
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x18d3217b
mov eax, dword [ebp - 0x84]
push eax
call fcn.18d33970
add esp, 4
mov ecx, dword [ebp - 0x8c]
shl ecx, 1
mov dword [ebp - 0x8c], ecx
mov edx, dword [ebp - 0x8c]
push edx
call fcn.18d33770
add esp, 4
mov dword [ebp - 0x84], eax
cmp dword [ebp - 0x84], 0
jne 0x18d32179
xor eax, eax
jmp 0x18d32519
jmp 0x18d32118
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x68], 0
jmp 0x18d32196
mov ecx, dword [ebp - 0x68]
add ecx, 1
mov dword [ebp - 0x68], ecx
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x68]
cmp eax, dword [edx]
jae 0x18d324d7
mov ecx, dword [ebp - 0x68]
shl ecx, 4
mov edx, dword [ebp - 0x64]
movzx eax, word [edx + ecx + 4]
cmp eax, dword [ebp - 0x7c]
je 0x18d321b9
jmp 0x18d3218d
push 2
push 0
push 0
lea ecx, [ebp - 0x74]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
mov edx, dword [ebp - 0x68]
shl edx, 4
mov eax, dword [ebp - 0x64]
movzx ecx, word [eax + edx + 0xa]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x18d321e9
jmp 0x18d3218d
lea eax, [ebp - 0x70]
push eax
push 0x38
lea ecx, [ebp - 0x40]
push ecx
push 0
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.ntdll.dll_NtQueryObject]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
jge 0x18d3221d
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18d3218d
mov ecx, dword [ebp - 0x18]
add ecx, 2
cmp dword [ebp - 0x80], ecx
jae 0x18d3226e
cmp dword [ebp - 0x78], 0
je 0x18d3223a
mov edx, dword [ebp - 0x78]
push edx
call fcn.18d33970
add esp, 4
mov eax, dword [ebp - 0x18]
add eax, 2
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.18d33770
add esp, 4
mov dword [ebp - 0x78], eax
cmp dword [ebp - 0x78], 0
jne 0x18d3226e
mov dword [ebp - 0x80], 0
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18d3218d
cmp dword [ebp - 0x1c], 0
jne 0x18d3227b
mov dword [ebp - 0x1c], 0x20a
mov eax, dword [ebp - 0x1c]
add eax, 2
cmp dword [ebp - 8], eax
jae 0x18d322ea
cmp dword [ebp - 4], 0
je 0x18d32298
mov ecx, dword [ebp - 4]
push ecx
call fcn.18d33970
add esp, 4
cmp dword [ebp - 0x1c], 0
jne 0x18d322aa
mov dword [ebp - 0xa0], 0x208
jmp 0x18d322b6
mov edx, dword [ebp - 0x1c]
add edx, 2
mov dword [ebp - 0xa0], edx
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.18d33770
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x18d322ea
mov dword [ebp - 8], 0
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18d3218d
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp - 0x80]
push ecx
mov edx, dword [ebp - 0x78]
push edx
push 2
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.ntdll.dll_NtQueryObject]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
jl 0x18d324c2
mov ecx, str.File
test ecx, ecx
je 0x18d32385
mov dword [ebp - 0xa4], str.File
mov edx, dword [ebp - 0xa4]
add edx, 2
mov dword [ebp - 0xa8], edx
mov eax, dword [ebp - 0xa4]
mov cx, word [eax]
mov word [ebp - 0xaa], cx
add dword [ebp - 0xa4], 2
cmp word [ebp - 0xaa], 0
jne 0x18d32337
mov edx, dword [ebp - 0xa4]
sub edx, dword [ebp - 0xa8]
sar edx, 1
mov dword [ebp - 0xb0], edx
mov eax, dword [ebp - 0xb0]
shl eax, 1
mov word [ebp - 0x60], ax
movzx ecx, word [ebp - 0x60]
add ecx, 2
mov word [ebp - 0x5e], cx
jmp 0x18d32391
xor edx, edx
mov word [ebp - 0x60], dx
xor eax, eax
mov word [ebp - 0x5e], ax
mov dword [ebp - 0x5c], str.File
push 1
mov ecx, dword [ebp - 0x78]
push ecx
lea edx, [ebp - 0x60]
push edx
call dword [sym.imp.ntdll.dll_RtlEqualUnicodeString]
movzx eax, al
test eax, eax
je 0x18d324c2
push 5
push 0x18
lea ecx, [ebp - 0x58]
push ecx
lea edx, [ebp - 0x98]
push edx
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
jl 0x18d324c2
movzx ecx, byte [ebp - 0x43]
test ecx, ecx
jne 0x18d324c2
movzx edx, byte [ebp - 0x44]
test edx, edx
jne 0x18d324c2
push 9
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x98]
push edx
mov eax, dword [ebp - 0x74]
push eax
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov dword [ebp - 0x88], eax
cmp dword [ebp - 0x88], 0
jl 0x18d324c2
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
shr edx, 1
cmp edx, dword [ebp - 0x6c]
jb 0x18d324c2
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
shr ecx, 1
xor edx, edx
mov eax, dword [ebp - 4]
mov word [eax + ecx*2 + 4], dx
mov ecx, dword [ebp - 0x6c]
push ecx
mov edx, dword [ebp - 4]
add edx, 4
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.ntdll.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x18d324c2
push 0xc
call fcn.18d33770
add esp, 4
mov dword [ebp - 0x9c], eax
cmp dword [ebp - 0x9c], 0
je 0x18d324c2
mov ecx, dword [ebp - 0x9c]
mov edx, dword [ebp - 0x74]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x9c]
mov ecx, dword [ebp - 4]
mov dword [eax + 8], ecx
mov dword [ebp - 0x74], 0
mov edx, dword [ebp - 0x9c]
mov eax, dword [ebp - 0x90]
mov dword [edx], eax
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0x90], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp - 0x74], 0
je 0x18d324d2
mov edx, dword [ebp - 0x74]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18d3218d
cmp dword [ebp - 0x78], 0
je 0x18d324e9
mov eax, dword [ebp - 0x78]
push eax
call fcn.18d33970
add esp, 4
cmp dword [ebp - 4], 0
je 0x18d324fb
mov ecx, dword [ebp - 4]
push ecx
call fcn.18d33970
add esp, 4
cmp dword [ebp - 0x84], 0
je 0x18d32513
mov edx, dword [ebp - 0x84]
push edx
call fcn.18d33970
add esp, 4
mov eax, dword [ebp - 0x90]
mov esp, ebp
pop ebp
ret