Function at 0x1971e
Capabilities:
Attach user process memory
Enumerate pe sections
Find process by pid
Get file attributes
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x74
xor eax, eax
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x74], esi
lea edi, [ebp - 0x70]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [ebp - 0x2c], ax
lea edi, [ebp - 0x2a]
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov dword [ebp - 0x44], esi
lea edi, [ebp - 0x40]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
lea edi, [ebp - 0x20]
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x24], esi
stosd dword es:[edi], eax
lea edi, [ebp - 0x58]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x1c], esi
stosd dword es:[edi], eax
mov dword [ebp - 8], esi
cmp dword [0x33dbc], esi
jne 0x19789
mov ebx, 0xc0000001
jmp 0x199a8
cmp dword [0x340c4], esi
je 0x19798
xor ebx, ebx
jmp 0x199a8
call dword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
cmp dword [ebp + 8], eax
je 0x197d7
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov ebx, eax
cmp ebx, esi
jl 0x1997b
cmp dword [ebp - 0xc], esi
je 0x1997b
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov dword [ebp - 0x1c], 1
mov eax, dword [0x33dbc]
mov eax, dword [eax + 0x18]
mov dword [0x340c8], eax
push 0x57534454
shl eax, 2
push eax
push esi
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp + 8], eax
cmp eax, esi
jne 0x19805
mov ebx, 0xc000009a
jmp 0x1995d
mov ecx, dword [0x340c8]
shl ecx, 2
push ecx
push esi
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
mov edi, 0x291b0
push edi
call fcn.00011bc0
mov ecx, dword [ebp - 0x14]
cmp ecx, esi
je 0x19958
mov edx, dword [ebp - 0x18]
cmp edx, esi
je 0x19958
cmp eax, esi
jne 0x19958
mov eax, dword [0x33dbc]
mov dword [0x33b08], edx
mov dword [0x33b04], ecx
mov eax, dword [eax + 0x10]
cmp eax, ecx
jb 0x19958
add edx, ecx
cmp eax, edx
jae 0x19958
sub eax, ecx
mov dword [ebp - 0x10], eax
push edi
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x18
pop edi
push esi
push esi
push 0x60
push 1
push 1
push 0x80
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
push esi
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x44]
push eax
push 0x80000000
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x38], 0x200
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
call dword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov ebx, eax
cmp ebx, esi
jl 0x1995d
push 5
push edi
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwQueryInformationFile]
mov ebx, eax
cmp ebx, esi
jl 0x1995d
push 0x62665356
push dword [ebp - 0x54]
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov edi, eax
mov dword [ebp - 8], edi
cmp edi, esi
je 0x197fb
push dword [ebp - 0x54]
push esi
push edi
call sub.ntoskrnl.exe_memset
add esp, 0xc
push esi
push esi
push dword [ebp - 0x54]
lea eax, [ebp - 0x24]
push edi
push eax
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwReadFile]
mov eax, dword [edi + 0x3c]
lea edx, [eax + edi]
movzx ecx, word [edx + 6]
xor eax, eax
cmp ecx, esi
jbe 0x19958
lea ecx, [edx + 0x104]
mov edi, dword [ecx]
cmp dword [ebp - 0x10], edi
jb 0x1994c
mov ebx, dword [ecx - 4]
add ebx, edi
cmp dword [ebp - 0x10], ebx
jb 0x199b1
movzx edi, word [edx + 6]
inc eax
add ecx, 0x28
cmp eax, edi
jb 0x1993b
mov ebx, 0xc0000001
cmp dword [ebp + 8], esi
je 0x1996c
push esi
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp dword [ebp - 8], esi
je 0x1997b
push esi
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
cmp dword [ebp - 4], esi
je 0x1998c
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov dword [ebp - 4], esi
cmp dword [ebp - 0x1c], esi
je 0x1999b
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov ecx, dword [ebp - 0xc]
cmp ecx, esi
je 0x199a8
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4
mov ebx, dword [ebp - 8]
imul eax, eax, 0x28
lea ecx, [eax + edx + 0xf8]
mov edi, dword [ecx + 0x14]
mov eax, edi
sub eax, dword [ecx + 0xc]
add edi, ebx
add eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
cmp eax, edi
jb 0x19958
mov edi, dword [ecx + 0x10]
add edi, dword [ecx + 0x14]
add edi, ebx
mov ebx, edi
mov edi, dword [0x340c8]
lea ecx, [eax + edi*4]
cmp ecx, ebx
ja 0x19958
mov ecx, dword [ebp - 0x14]
sub ecx, dword [edx + 0x34]
xor edx, edx
cmp edi, esi
jbe 0x19a0f
mov edi, dword [eax]
mov ebx, dword [ebp + 8]
add edi, ecx
mov dword [ebx + edx*4], edi
add eax, 4
inc edx
cmp edx, dword [0x340c8]
jb 0x199f9
mov eax, dword [ebp + 8]
mov dword [0x340c4], eax
xor ebx, ebx
jmp 0x1996c