Function at 0x15f68
Capabilities:
Attach user process memory

Disassembly:
push 0x4c
push 0x3b838
call fcn.00034e04
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x3c], esi
call dword [sym.imp.ntoskrnl.exe_ExGetPreviousMode]
cmp dword [0x45f34], 1
je 0x160bb
cmp al, 1
jne 0x160bb
test dword [ebp + 0x14], 0x44
je 0x160bb
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_PsGetProcessId]
mov edi, eax
mov dword [ebp - 0x24], edi
push edi
call int.000286ac
test eax, eax
jne 0x15fea
call dword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
cmp eax, edi
je 0x160bb
push edi
call fcn.0002888a
cmp eax, 0xffffffff
jne 0x160bb
mov dword [ebp - 0x1c], 0xc0000022
jmp 0x163a5
and dword [ebp - 0x28], ebx
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0xc]
call fcn.000152cc
mov dword [ebp + 0x14], eax
cmp eax, 0xffffffff
jne 0x16025
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0xc]
push edi
call int.00028f0c
mov dword [ebp + 0x14], eax
test eax, eax
jl 0x160bb
add dword [ebp + 0x14], 4
mov eax, dword [ebp - 0x28]
test dword [ebp + 0x18], eax
je 0x160bb
and dword [ebp - 4], ebx
cmp dword [0x45d00], 0
jne 0x1604d
mov dword [ebp - 0x1c], 0xc0000001
mov dword [ebp - 4], 0xfffffffe
jmp 0x160c2
push edi
call fcn.00029184
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
jne 0x16065
mov dword [ebp - 0x1c], 0x80000011
jmp 0x16044
call dword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
cmp dword [ebp + 8], eax
je 0x16084
mov dword [ebp - 0x20], 1
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 8]
call dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
call dword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
push 7
pop ecx
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
push eax
push 0x1c
push esi
push eax
push dword [ebp + 0xc]
push 0xffffffffffffffff
call dword [0x45d00]
mov dword [ebp - 0x1c], eax
test eax, eax
jl 0x16044
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x44], eax
mov dword [ebp - 4], 0xfffffffe
test al, 0x44
je 0x160c2
mov dword [ebp - 0x1c], 0xc0000001
test esi, esi
je 0x160cf
push esi
push dword [ebp - 0x24]
call fcn.0002920a
cmp dword [ebp - 0x20], 1
jne 0x160df
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
cmp dword [ebp - 0x1c], 0
jge 0x1611d
cmp dword [ebp - 0x1c], 0xc0000022
je 0x16395
jmp 0x16391
push 0x6e6d6c5a
mov edi, 0x6a8
push edi
push 1
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov ebx, eax
xor esi, esi
cmp ebx, esi
jne 0x16140
mov dword [ebp - 0x1c], esi
jmp 0x16395
push edi
push esi
push ebx
call fcn.00034d7e
add esp, 0xc
push 1
push 0x20
push ebx
call dword [sym.imp.ntoskrnl.exe_RtlWalkFrameChain]
mov dword [ebp - 0x2c], eax
cmp eax, esi
je 0x16138
lea eax, [ebx + 0x4a0]
push eax
push dword [ebp - 0x24]
call fcn.000287c0
cmp dword [ebp - 0x20], 1
jne 0x16191
call dword [sym.imp.ntoskrnl.exe_PsGetCurrentProcessId]
mov dword [ebp - 0x30], eax
lea eax, [ebx + 0x298]
push 0x104
push eax
push dword [ebp - 0x30]
call fcn.0001a84e
jmp 0x161ae
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
lea edi, [ebx + 0x298]
mov ecx, 0x82
lea esi, [ebx + 0x4a0]
rep movsd dword es:[edi], dword [esi]
xor esi, esi
mov dword [ebp + 0xc], esi
cmp dword [ebp - 0x2c], esi
jbe 0x1624f
mov dword [ebp + 0xc], esi
mov edi, dword [ebx + esi*4]
test edi, edi
je 0x1624f
push edi
call fcn.00015284
test eax, eax
jne 0x161e4
cmp edi, dword [0x45f24]
jbe 0x161e4
cmp edi, dword [0x45f28]
jb 0x161f1
cmp eax, 0xffffffff
je 0x161f7
inc esi
cmp esi, dword [ebp - 0x2c]
jb 0x161bf
jmp 0x1624f
and dword [ebp + 0xc], 0
jmp 0x1624f
cmp dword [ebp - 0x20], 1
jne 0x16203
or dword [ebp + 0xc], 0xffffffff
jmp 0x1624f
push edi
push dword [ebp - 0x24]
call fcn.00028e9c
cmp eax, 0xffffffff
je 0x161fd
cmp eax, 4
je 0x16242
cmp eax, 1
je 0x16242
cmp eax, 2
je 0x16242
test eax, eax
je 0x16242
cmp eax, 5
je 0x16242
cmp eax, 9
je 0x16242
cmp eax, 0x11
je 0x16242
cmp eax, 0x12
je 0x16242
cmp eax, 0x13
je 0x16242
cmp eax, 8
jne 0x161fd
xor eax, eax
cmp dword [ebp + 0x14], 0x18
setne al
dec eax
mov dword [ebp + 0xc], eax
xor eax, eax
inc eax
mov dword [ebp + 0x18], eax
mov dword [ebp - 0x38], 0x204
cmp dword [ebp + 0x14], 4
jne 0x16270
mov dword [ebp - 0x38], 0x201
cmp dword [ebp - 0x20], eax
jne 0x1627d
jmp 0x16276
test byte [ebp - 0x28], 1
je 0x1627d
mov dword [ebp + 0x18], 2
cmp dword [ebp + 0xc], 0xffffffff
jne 0x16391
cmp dword [ebp - 0x20], eax
jne 0x1634c
mov eax, 0x208
mov word [ebx + 0x82], ax
push 1
lea eax, [ebx + 0x80]
push eax
push dword [ebx + esi*4]
call dword [sym.imp.ntoskrnl.exe_IoGetCurrentProcess]
push eax
call fcn.00012552
test eax, eax
je 0x162cb
lea edi, [ebx + 0x88]
mov ecx, 0x82
lea esi, [ebx + 0x298]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp + 0x14], 4
jne 0x162d8
mov dword [ebp + 0x18], 2
lea eax, [ebx + 0x88]
push eax
lea eax, [ebx + 0x298]
push eax
lea eax, [ebx + 0x4a0]
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x24]
push dword [ebp + 0x10]
push dword [ebp - 0x34]
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push dword [ebp - 0x38]
call fcn.000153cc
cmp dword [ebp + 0x14], 4
jne 0x16391
mov dword [ebp - 0x1c], 0xc0000005
jmp 0x16395
cmp dword [ebx + esi*4], 0
je 0x16395
mov eax, 0x208
mov word [ebx + 0x82], ax
push 1
lea eax, [ebx + 0x80]
push eax
push dword [ebx + esi*4]
push dword [ebp + 8]
call fcn.00012552
mov dword [ebp - 0x1c], eax
test eax, eax
jge 0x16353
and dword [ebp - 0x1c], 0
inc esi
cmp esi, dword [ebp - 0x2c]
jb 0x1631a
jmp 0x16395
lea esi, [ebx + 0x80]
call fcn.0001412c
test eax, eax
jne 0x16395
lea eax, [ebx + 0x88]
push eax
lea eax, [ebx + 0x298]
push eax
lea eax, [ebx + 0x4a0]
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x24]
push dword [ebp + 0x10]
push dword [ebp - 0x34]
push dword [ebp + 0x14]
push dword [ebp + 0x18]
push dword [ebp - 0x38]
call fcn.000153cc
and dword [ebp - 0x1c], 0
test ebx, ebx
je 0x163a5
push 0x6e6d6c5a
push ebx
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [ebp - 0x1c]
call fcn.00034e49
ret 0x14