Function at 0x24320
Capabilities:
Attach user process memory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x28c70
push 0x28930
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x50], esi
xor eax, eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
xor ebx, ebx
mov eax, dword [ebp + 8]
push eax
call fcn.00024190
mov edi, eax
cmp edi, esi
jne 0x2438e
mov eax, 0xc0000001
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x29a7c]
cmp eax, esi
jne 0x243b1
call fcn.0001c0a0
mov eax, dword [0x29a7c]
cmp eax, esi
jne 0x243b1
mov dword [ebp - 0x1c], 0xc0000001
jmp 0x2454c
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp + 8]
push edx
call eax
mov dword [ebp - 0x1c], eax
cmp eax, esi
jl 0x2454c
mov eax, dword [0x29ab0]
cmp eax, esi
jne 0x243e9
call fcn.0001c0a0
mov eax, dword [0x29ab0]
cmp eax, esi
jne 0x243e9
mov dword [ebp - 0x1c], 0xc0000001
jmp 0x2454c
lea ecx, [ebp - 0x28]
push ecx
push edi
call eax
mov dword [ebp - 0x1c], eax
cmp eax, esi
jl 0x2454c
lea edx, [ebp - 0x20]
push edx
push esi
push esi
push 0x1fffff
push esi
push 0x200
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov dword [ebp - 0x1c], eax
cmp eax, esi
jl 0x2454c
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0001b060
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp edi, esi
jne 0x2445c
push 0x11ba4
lea edx, [ebp - 0x38]
push edx
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x38]
push eax
lea edi, [ebp - 0x2c]
mov eax, dword [ebp + 8]
call fcn.000208c0
mov edi, dword [ebp - 0x2c]
cmp edi, esi
je 0x2454c
mov dword [ebp + 8], esi
mov dword [ebp - 0x2c], 0x1000
push 0x1000
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp + 8]
push edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.0001c100
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x34], ebx
cmp eax, esi
jl 0x2454c
cmp ebx, esi
je 0x24580
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov dword [ebp - 4], esi
push 0x1000
push esi
push ebx
call sub.ntoskrnl.exe_memset
add esp, 0xc
push 0x12148
mov esi, edi
call fcn.0001afa0
mov dword [ebx], eax
lea edi, [ebx + 0x210]
mov ecx, 0x7d
mov esi, 0x24180
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebx + 8]
mov edx, 0x104
call fcn.00023000
cmp dword [ebx], 0
jne 0x244f2
mov dword [ebp - 0x1c], 0xc0000001
mov dword [ebp - 4], 0xffffffff
jmp 0x2451e
lea edx, [ebp - 0x50]
push edx
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
cmp dword [ebp - 0x1c], 0
jl 0x2454a
lea eax, [ebp + 0xc]
push eax
push ebx
lea ecx, [ebx + 0x210]
push ecx
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0x24]
push eax
call fcn.00024c70
mov dword [ebp - 0x1c], eax
xor esi, esi
cmp ebx, esi
je 0x24580
mov dword [ebp + 0xc], ebx
mov dword [ebp + 8], esi
mov edi, dword [ebp - 0x20]
mov eax, dword [0x29a14]
cmp eax, esi
jne 0x24570
call fcn.0001c0a0
mov eax, dword [0x29a14]
cmp eax, esi
je 0x24580
push 0x8000
lea ecx, [ebp + 8]
push ecx
lea edx, [ebp + 0xc]
push edx
push edi
call eax
mov eax, dword [ebp - 0x20]
cmp eax, esi
je 0x2458e
push eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov ecx, dword [ebp - 0x24]
cmp ecx, esi
je 0x2459b
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov ecx, dword [ebp - 0x28]
cmp ecx, esi
je 0x245a8
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8