Function at 0x95360
Capabilities:
Attach user process memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x9ca20
push 0x9b56a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov esi, ecx
mov dword [ebp - 0x30], 0
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x20], ecx
push 0x494c
call fcn.00049640
mov dword [ebp - 0x48], eax
push 0x48d1
call fcn.00049640
mov dword [ebp - 0x38], eax
test eax, eax
je 0x956a5
push 0x877
call fcn.00049640
push eax
push 0x240
push 1
mov edi, dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
call edi
mov ebx, eax
mov dword [ebp - 0x50], ebx
test ebx, ebx
je 0x956a5
push 0x877
call fcn.00049640
push eax
push 0x1000
push 1
call edi
mov edi, eax
mov dword [ebp - 0x3c], edi
test edi, edi
je 0x95693
push 0
mov eax, dword [ebp - 0x20]
call fcn.00063350
cmp al, 1
jne 0x95681
call dword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
cmp eax, dword [ebp - 0x20]
setne byte [ebp - 0x19]
lea edi, [esi + 4]
mov edx, dword [esi]
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], edi
mov eax, dword [ebp - 0x40]
cmp dword [ebp - 0x28], eax
jae 0x9567e
cmp dword [ebp + 0x10], 0
jbe 0x9567e
xor al, al
mov cx, word [edi]
mov edx, dword [ebp + 8]
cmp cx, word [edx]
jne 0x95458
mov al, 1
cmp al, 1
jne 0x95673
push 0x240
push 0
push ebx
call sub.ntoskrnl.exe_memset
add esp, 0xc
cmp byte [ebp - 0x19], 1
jne 0x954b8
mov esi, dword [ebp - 0x20]
mov edx, esi
call fcn.0008a7b0
mov byte [ebp - 0x1a], al
push 0x19
call fcn.00088910
mov byte [ebp - 0x24], al
push 0xe
call fcn.00088910
mov byte [ebp - 0x44], al
lea eax, [ebp - 0x68]
push eax
push esi
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov ecx, dword [ebp - 0x44]
push ecx
push 0xe
call fcn.00088aa0
mov edx, dword [ebp - 0x24]
push edx
push 0x19
call fcn.00088aa0
movzx eax, word [edi + 6]
mov dword [ebx + 0x234], eax
mov ecx, dword [edi + 8]
mov dword [ebx + 0x238], ecx
movzx edx, byte [edi + 4]
mov dword [ebx + 0x230], edx
lea esi, [ecx - 0x18]
push esi
mov edi, dword [sym.imp.ntoskrnl.exe_MmIsAddressValid]
call edi
cmp al, 1
jne 0x954f9
lea eax, [esi + 0x17]
push eax
call edi
cmp al, 1
jne 0x954f9
mov ecx, dword [esi]
mov dword [ebx + 0x23c], ecx
jmp 0x95503
mov dword [ebx + 0x23c], 0
xor cl, cl
push 0x36
call fcn.00049640
test eax, eax
je 0x9551b
mov edx, dword [ebp - 0x20]
cmp dword [eax + edx], 0
je 0x9551b
mov cl, 1
cmp cl, 1
jne 0x955d8
mov ecx, dword [ebx + 0x234]
mov dword [ebp - 0x34], ecx
mov eax, 0x1db0
mov edx, dword [sym.imp.ntoskrnl.exe_NtBuildNumber]
cmp ax, word [edx]
ja 0x95557
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x95557
mov eax, dword [eax]
mov edx, dword [ebp + 8]
cmp eax, dword [edx + 4]
jne 0x95557
or ecx, 0x80000000
mov dword [ebp - 0x34], ecx
push 0
push 0x1000
mov edi, dword [ebp - 0x3c]
push edi
push 2
push ecx
call dword [ebp - 0x38]
test eax, eax
js 0x95594
movzx esi, word [edi]
shr esi, 1
je 0x95594
cmp esi, 0x13
jbe 0x9557d
mov esi, 0x13
lea eax, [esi + esi]
push eax
mov ecx, dword [edi + 4]
push ecx
push ebx
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
xor edx, edx
mov word [ebx + esi*2], dx
push 0
push 0x1000
push edi
push 1
mov eax, dword [ebp - 0x34]
push eax
call dword [ebp - 0x38]
test eax, eax
js 0x955d8
movzx esi, word [edi]
shr esi, 1
je 0x955d8
cmp esi, 0x103
jbe 0x955bd
mov esi, 0x103
lea ecx, [esi + esi]
push ecx
mov edx, dword [edi + 4]
push edx
lea eax, [ebx + 0x28]
push eax
call sub.ntoskrnl.exe_memcpy
add esp, 0xc
xor ecx, ecx
mov word [ebx + esi*2 + 0x28], cx
cmp byte [ebp - 0x19], 1
jne 0x95620
push 0x19
call fcn.00088910
mov byte [ebp - 0x24], al
push 0xf
call fcn.00088910
mov byte [ebp - 0x4c], al
lea edx, [ebp - 0x68]
push edx
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov eax, dword [ebp - 0x4c]
push eax
push 0xf
call fcn.00088aa0
mov ecx, dword [ebp - 0x24]
push ecx
push 0x19
call fcn.00088aa0
cmp byte [ebp - 0x1a], 1
jne 0x95620
mov ecx, dword [ebp - 0x20]
call fcn.0008a870
mov dword [ebp - 4], 0
mov ecx, 0x90
mov esi, ebx
mov eax, dword [ebp + 0xc]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
add eax, 0x240
mov dword [ebp + 0xc], eax
mov eax, 1
sub dword [ebp + 0x10], eax
add dword [ebp - 0x30], eax
mov dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x2c]
inc dword [ebp - 0x28]
add edi, 0x10
jmp 0x95430
inc dword [ebp - 0x28]
add edi, 0x10
jmp 0x95430
mov edi, dword [ebp - 0x3c]
push 0x877
call fcn.00049640
push eax
push edi
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
push 0x877
call fcn.00049640
push eax
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc