Function at 0x654d0
Capabilities:
Attach user process memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x9ccf0
push 0x9b56a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov ebx, ecx
mov byte [ebp - 0x1d], 0
cmp byte [ebp + 0xc], 0
jne 0x6550b
push 0x2b
call fcn.00049640
jmp 0x6550d
xor eax, eax
test eax, eax
je 0x65729
mov ecx, dword [ebp + 8]
lea esi, [eax + ecx]
push esi
call dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
cmp al, 1
jne 0x65729
mov esi, dword [esi]
mov dword [ebp - 0x28], esi
test esi, esi
je 0x65729
push 0x877
call fcn.00049640
push eax
push ebx
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov esi, eax
mov dword [ebp - 0x30], esi
test esi, esi
je 0x65729
mov ecx, dword [ebp + 0x10]
mov edi, dword [ecx]
test edi, edi
je 0x6557a
lea eax, [edi - 1]
imul eax, eax, 0x210
add eax, 0x214
push eax
push ecx
push esi
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
mov dword [esi], edi
push 0
mov edi, dword [ebp + 8]
mov eax, edi
call fcn.00063350
cmp al, 1
jne 0x656f7
mov edx, edi
call fcn.0008a7b0
mov byte [ebp - 0x1e], al
push 0x19
call fcn.00088910
mov byte [ebp - 0x22], al
push 0xe
call fcn.00088910
mov byte [ebp - 0x2c], al
lea edx, [ebp - 0x48]
push edx
push edi
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov eax, dword [ebp - 0x2c]
push eax
push 0xe
call fcn.00088aa0
mov ecx, dword [ebp - 0x22]
push ecx
push 0x19
call fcn.00088aa0
mov dword [ebp - 4], 0
cmp byte [ebp + 0xc], 0
jne 0x6563a
mov edx, dword [sym.imp.ntoskrnl.exe_MmUserProbeAddress]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x28]
cmp ecx, eax
jae 0x65695
lea edx, [ecx + 0x30]
cmp edx, eax
jae 0x65695
mov edi, dword [ecx + 0xc]
cmp edi, eax
jae 0x65695
lea ecx, [edi + 0x28]
cmp ecx, eax
jae 0x65695
push 0
push ebx
push esi
push 0
push 0
lea edx, [edi + 0xc]
push edx
call fcn.00065190
push 0
push ebx
push esi
push 0
push 8
lea eax, [edi + 0x14]
push eax
call fcn.00065190
push 0
push ebx
push esi
push 0
jmp 0x65686
mov ecx, dword [sym.imp.ntoskrnl.exe_MmUserProbeAddress]
mov eax, dword [ecx]
mov ecx, dword [ebp - 0x28]
cmp ecx, eax
jae 0x65695
lea edx, [ecx + 0x30]
cmp edx, eax
jae 0x65695
mov edi, dword [ecx + 0xc]
cmp edi, eax
jae 0x65695
lea ecx, [edi + 0x28]
cmp ecx, eax
jae 0x65695
push 0
push ebx
push esi
push 1
push 0
lea edx, [edi + 0xc]
push edx
call fcn.00065190
push 0
push ebx
push esi
push 1
push 8
lea eax, [edi + 0x14]
push eax
call fcn.00065190
push 0
push ebx
push esi
push 1
push 0x10
add edi, 0x1c
push edi
call fcn.00065190
mov byte [ebp - 0x1d], 1
mov dword [ebp - 4], 0xffffffff
jmp 0x656b5
push 0x19
call fcn.00088910
mov byte [ebp - 0x22], al
push 0xf
call fcn.00088910
mov byte [ebp + 0xc], al
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov edx, dword [ebp + 0xc]
push edx
push 0xf
call fcn.00088aa0
mov eax, dword [ebp - 0x22]
push eax
push 0x19
call fcn.00088aa0
cmp byte [ebp - 0x1e], 1
jne 0x656f7
mov ecx, dword [ebp + 8]
call fcn.0008a870
mov eax, dword [esi]
test eax, eax
je 0x65717
dec eax
imul eax, eax, 0x210
add eax, 0x214
push eax
push esi
mov ecx, dword [ebp + 0x10]
push ecx
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
push 0x877
call fcn.00049640
push eax
push esi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov al, byte [ebp - 0x1d]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc