Function at 0x51c060
Capabilities:
Get file attributes
Get number of processors
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
mov eax, dword [0x62d040]
xor eax, esp
mov dword [esp + 0x60], eax
mov eax, dword [ebp + 0xc]
lea edx, [esp + 8]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, eax
push edi
sub esp, 8
mov dword [esp + 0x14], eax
call fcn.005191a0
test eax, eax
jns 0x51c0ab
lfence
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret 0xc
push 0
push 0x64
push 1
push 7
push 0x80
push 0
push 0x110081
push esi
lea eax, [esp + 0x30]
push eax
call sym.SystemInformer.exe_PhCreateFileWin32Ex
mov esi, eax
lfence
test esi, esi
jns 0x51c10b
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x51c0f0
mov eax, dword fs:[0x18]
push ecx
push 0
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret 0xc
movzx esi, word ds:[esp + 0x14]
add esi, 0x12
push esi
push 4
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push esi
mov ebx, eax
push 0
push ebx
mov dword [esp + 0x30], ebx
call fcn.00580ff0
add esp, 0xc
mov dword [ebx + 4], 0
cmp byte [ebp + 0x10], 0
sete cl
mov byte [ebx], cl
movzx eax, word [esp + 0x14]
mov dword [ebx + 8], eax
movzx eax, word [esp + 0x14]
push eax
push dword [esp + 0x1c]
lea eax, [ebx + 0xc]
push eax
call fcn.00581150
mov eax, dword [esp + 0x24]
add esp, 0xc
test eax, eax
je 0x51c196
push eax
mov eax, dword fs:[0x18]
push 0
mov eax, dword [eax + 0x30]
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
push 0xa
push esi
push ebx
mov ebx, dword [esp + 0x1c]
lea eax, [esp + 0x28]
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov edi, eax
cmp edi, 0xc00000d4
jne 0x51c31e
push 5
push 0x18
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x34]
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov edi, eax
test edi, edi
js 0x51c31e
mov ecx, dword [esp + 0x5c]
mov eax, 5
cmp byte [ebp + 0x10], 0
mov edx, dword [esp + 0x58]
push 0
push 0x64
mov dword [esp + 0x3c], ecx
mov ecx, 2
cmovne eax, ecx
mov dword [esp + 0x38], edx
push eax
push 1
push 0x80
lea eax, [esp + 0x44]
push eax
push 0x120116
lfence
push dword [esp + 0x28]
lea eax, [esp + 0x2c]
push eax
call sym.SystemInformer.exe_PhCreateFileWin32Ex
mov edi, eax
test edi, edi
js 0x51c31e
push 4
push 0x1000
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0x2000
push eax
push 0
lea eax, [esp + 0x20]
mov dword [esp + 0x20], 0
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
test eax, eax
js 0x51c319
mov edi, dword [esp + 0x10]
test edi, edi
je 0x51c319
push 0
push 0
push 0x2000
push edi
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0
push ebx
call dword [sym.imp.ntdll.dll_NtReadFile]
mov ecx, dword [esp + 0xc]
mov esi, eax
mov dword [esp + 0xc], ecx
test esi, esi
js 0x51c2f0
lfence
mov eax, dword [esp + 0x20]
test eax, eax
je 0x51c2f0
push 0
push 0
push eax
push edi
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0
push ecx
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov esi, eax
test esi, esi
js 0x51c2f0
cmp dword [esp + 0x20], 0
je 0x51c2f0
push 0
push 0
push 0x2000
push edi
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0
push ebx
lfence
call dword [sym.imp.ntdll.dll_NtReadFile]
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
jns 0x51c297
push edi
call sym.SystemInformer.exe_PhFreePage
xor edi, edi
cmp esi, 0xc0000011
cmovne edi, esi
mov esi, dword [esp + 0xc]
test edi, edi
je 0x51c310
mov ecx, esi
call fcn.00514ec0
push esi
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x51c31e
mov edi, 0xc0000017
push ebx
call dword [sym.imp.ntdll.dll_NtClose]
push dword [esp + 0x24]
push 0
push dword [0x633f94]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, dword [esp + 0x6c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0057ee0f
mov esp, ebp
pop ebp
ret 0xc