Function at 0x12a84
Capabilities:
Attach user process memory
Find process by pid

Disassembly:
push 0xa0
push 0x1eb08
call fcn.000195f0
mov eax, dword [0x1f3a4]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x8c], ecx
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 0x2d], bl
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x34], ebx
mov esi, 0x12a6e
lea edi, [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp word [eax], 7
jae 0x12add
mov eax, 0xc000000d
jmp 0x12b19
mov ecx, dword [eax + 4]
mov cx, word [ecx + 8]
mov word [ebp - 0x24], cx
lea ecx, [ebp - 0x68]
push ecx
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push eax
call fcn.00012890
mov esi, eax
mov dword [ebp - 0x54], esi
mov dword [ebp - 4], ebx
cmp esi, ebx
jne 0x12b29
mov dword [ebp - 0x34], 0xc0000001
or dword [ebp - 4], 0xffffffff
call fcn.00012e01
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x1c]
call fcn.000195d3
call fcn.0001962b
ret 0xc
push 0x5a544157
movzx eax, word [esi]
add eax, 0xa
push eax
push ebx
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp - 0x4c], eax
cmp eax, ebx
jne 0x12b4c
mov dword [ebp - 0x34], 0xc000009a
jmp 0x12b0d
xor ecx, ecx
mov cx, word [esi]
inc ecx
inc ecx
mov word [eax + 2], cx
call fcn.00012818
mov ecx, eax
mov dword [ebp - 0x58], ecx
cmp ecx, ebx
je 0x12b43
lea eax, [ecx + 4]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x3c], ebx
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ecx]
jae 0x12b87
mov edx, dword [eax + 8]
cmp edx, dword [ebp - 0x68]
jne 0x12c66
mov al, byte [eax + 4]
mov byte [ebp - 0x2d], al
lea esi, [ecx + 4]
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x3c], ebx
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ecx]
jae 0x12b0d
mov al, byte [ebp - 0x2d]
cmp al, byte [esi + 4]
jne 0x12dee
mov dword [ebp - 0x64], ebx
xor eax, eax
lea edi, [ebp - 0x60]
stosd dword es:[edi], eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x84], ebx
lea edi, [ebp - 0x80]
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
mov dword [ebp - 0x84], 0x18
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x78], 0x240
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
mov eax, dword [esi]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], ebx
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x84]
push eax
push 0x1f0fff
lea eax, [ebp - 0x38]
push eax
mov edi, dword [sym.imp.ntoskrnl.exe_ZwOpenProcess]
call edi
mov dword [ebp - 0x34], eax
cmp eax, ebx
jl 0x12dee
mov dword [ebp - 0x84], 0x18
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x78], 0x240
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x70], ebx
call sub.ntoskrnl.exe_PsGetCurrentProcessId
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], ebx
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x84]
push eax
push 0x1f0fff
lea eax, [ebp - 0x44]
push eax
call edi
mov dword [ebp - 0x34], eax
cmp eax, ebx
jge 0x12c74
push dword [ebp - 0x38]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
jmp 0x12dee
inc dword [ebp - 0x3c]
add eax, 0x10
mov dword [ebp - 0x5c], eax
jmp 0x12b6e
push 2
push ebx
push ebx
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x44]
movzx eax, word [esi + 6]
push eax
push dword [ebp - 0x38]
call dword [sym.imp.ntoskrnl.exe_ZwDuplicateObject]
mov dword [ebp - 0x34], eax
cmp eax, ebx
jl 0x12dde
cmp dword [ebp - 0x48], ebx
je 0x12dde
push ebx
lea eax, [ebp - 0x40]
push eax
push ebx
mov eax, dword [sym.imp.ntoskrnl.exe_IoFileObjectType]
push dword [eax]
mov edi, 0x80000000
push edi
push dword [ebp - 0x48]
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov dword [ebp - 0x34], eax
cmp eax, ebx
jl 0x12dde
push dword [ebp - 0x40]
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
test al, al
je 0x12dc0
mov eax, dword [ebp - 0x40]
mov eax, dword [eax + 4]
cmp dword [eax + 0x2c], 7
jne 0x12dc0
mov eax, dword [ebp - 0x54]
movzx eax, word [eax]
add eax, 2
mov ecx, dword [ebp - 0x4c]
mov word [ecx + 2], ax
lea edx, [ebp - 0x94]
push edx
movzx eax, ax
add eax, 8
push eax
push ecx
push dword [ebp - 0x40]
call dword [sym.imp.ntoskrnl.exe_ObQueryNameString]
mov dword [ebp - 0x90], eax
cmp eax, ebx
jl 0x12dc0
push 1
push dword [ebp - 0x54]
push dword [ebp - 0x4c]
call dword [sym.imp.ntoskrnl.exe_RtlEqualUnicodeString]
test al, al
je 0x12dc0
cmp dword [ebp - 0x6c], ebx
je 0x12d50
push dword [ebp - 0x8c]
movzx eax, word [esi + 6]
push eax
push dword [esi]
call dword [ebp - 0x6c]
test al, al
jne 0x12dc9
jmp 0x12dc0
mov eax, dword [esi]
cmp eax, 4
je 0x12dae
cmp eax, 8
je 0x12dae
cmp eax, ebx
je 0x12dae
lea ecx, [ebp - 0x88]
push ecx
push eax
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
mov dword [ebp - 0x34], eax
cmp eax, ebx
jl 0x12dc0
lea eax, [ebp - 0xb0]
push eax
push dword [ebp - 0x88]
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
movzx eax, word [esi + 6]
push eax
call fcn.000129e8
movzx eax, word [esi + 6]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
jmp 0x12dc0
movzx eax, word [esi + 6]
or eax, edi
mov dword [ebp - 0x98], eax
push eax
call fcn.00012a32
mov ecx, dword [ebp - 0x40]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
push dword [ebp - 0x38]
mov edi, dword [sym.imp.ntoskrnl.exe_ZwClose]
call edi
push dword [ebp - 0x44]
call edi
push dword [ebp - 0x48]
jmp 0x12dec
mov edi, dword [sym.imp.ntoskrnl.exe_ZwClose]
push dword [ebp - 0x38]
call edi
push dword [ebp - 0x44]
call edi
inc dword [ebp - 0x3c]
add esi, 0x10
mov dword [ebp - 0x5c], esi
mov ecx, dword [ebp - 0x58]
jmp 0x12b90