Function at 0x48ab40
Capabilities:
Check processdebugport
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x62d040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [edx + 0x48]
push ebx
mov ebx, ecx
mov dword [ebp - 0x104], edx
push esi
push edi
mov dword [ebp - 0x18], ebx
cmp dword [ebx + 0x10], 0
mov dword [ebx + 0x14], eax
mov eax, dword [edx + 0x50]
mov dword [ebx + 0x1c], eax
mov eax, dword [edx + 0x20]
mov ecx, dword [edx + 0x24]
mov dword [ebx + 0x28], eax
mov dword [ebx + 0x2c], ecx
je 0x48ab9c
movzx eax, word [edx + 0x38]
mov ecx, eax
test ax, ax
jne 0x48ab91
call sym.SystemInformer.exe_PhReferenceEmptyString
jmp 0x48abb7
mov eax, dword [edx + 0x3c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
jmp 0x48abaa
mov dword [ebp - 0xc], str.System_Idle_Process
mov dword [ebp - 0x10], 0x26
push 0
push 0
lea eax, [ebp - 0x10]
push eax
call sym.SystemInformer.exe_PhCreateString3
mov ecx, ebx
mov edx, 0x18
mov dword [edx + ecx], eax
mov ecx, dword [ebx + 0x10]
test ecx, ecx
jle 0x48abda
push 0xa
lea eax, [ebx + 0x94]
push eax
push ecx
call fcn.00583bea
add esp, 0xc
mov eax, dword ds:[ebx + 0x10]
test eax, eax
jle 0x48ac11
push eax
push 0x400
lea esi, [ebx + 0x30]
push esi
call sym.SystemInformer.exe_PhOpenProcess
test eax, eax
js 0x48abfe
or dword [ebx + 0x7c], 0x80
cmp dword [esi], 0
jne 0x48ac11
push dword [ebx + 0x10]
push 0x1000
push esi
call sym.SystemInformer.exe_PhOpenProcess
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x48ad29
push 0
push 0x20
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x20
push ecx
push 0
push eax
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x48ac6e
mov ecx, dword [ebp - 0x20]
mov edx, ecx
and edx, 1
mov eax, ecx
shl edx, 3
and eax, 0x40
or edx, eax
mov eax, ecx
shl edx, 2
and eax, 2
or edx, eax
and ecx, 0x180
mov eax, dword [ebx + 0x7c]
add edx, edx
or edx, ecx
and eax, 0xfffe1dff
shl edx, 7
or edx, eax
mov dword [ebx + 0x7c], edx
cmp dword [0x6355f0], 2
lea edi, [ebx + 0x20]
mov esi, dword [ebx + 0x30]
jl 0x48ac97
push ecx
push 8
push edi
mov edx, 0xf
mov ecx, esi
call fcn.00524260
test eax, eax
js 0x48ad29
jmp 0x48ad08
push 0
push 8
lea eax, [ebp - 0x10]
push eax
push 0x5c
push esi
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
mov ecx, eax
cmp ecx, 0xc0000003
jne 0x48acde
push 0
push 0x60
lea eax, [ebp - 0xa0]
push eax
push 0x40
push esi
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
mov edx, dword [ebp - 0x78]
xor ecx, ecx
mov esi, dword [ebp - 0x74]
cmp eax, 0x80000005
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], esi
cmovne ecx, eax
jmp 0x48ace4
mov esi, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
test ecx, ecx
js 0x48ad29
mov ecx, dword [0x7ffe02c4]
xor eax, eax
shl ecx, 0x10
or eax, edx
or ecx, esi
mov dword [ebp - 0xb0], edx
mov dword [ebp - 0xac], esi
mov dword [edi], eax
mov dword [edi + 4], ecx
push 0x10
lea eax, [ebx + 0xcc]
lfence
push eax
push dword [ebx + 0x20]
mov dword [ebx + 0xc8], 0x780030
call fcn.00583bea
add esp, 0xc
mov eax, dword [ebx + 0x10]
cmp eax, 4
je 0x48adae
test eax, eax
jle 0x48adc8
lea ecx, [ebp - 0xa4]
push ecx
push eax
call sym.SystemInformer.exe_PhGetProcessImageFileNameByProcessId
test eax, eax
js 0x48ad53
mov eax, dword [ebp - 0xa4]
mov dword [ebx + 0x38], eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x48ad74
lea ecx, [ebp - 0xa4]
push ecx
push eax
call sym.SystemInformer.exe_PhGetProcessImageFileNameWin32
test eax, eax
js 0x48ad74
mov eax, dword [ebp - 0xa4]
mov dword [ebx + 0x34], eax
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x48adc8
mov ecx, dword ds:[ebx + 0x34]
test ecx, ecx
je 0x48ad89
cmp dword [ecx], 0
jne 0x48adc8
push eax
call sym.SystemInformer.exe_PhGetFileName
mov ecx, dword [ebx + 0x34]
mov dword [ebx + 0x34], eax
test ecx, ecx
je 0x48adc8
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x48adc8
call fcn.004fbfa0
jmp 0x48adc8
call sym.SystemInformer.exe_PhGetKernelFileName2
test eax, eax
je 0x48adc8
push eax
mov dword [ebx + 0x38], eax
call sym.SystemInformer.exe_PhGetFileName
mov dword [ebx + 0x34], eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x48af5b
cmp dword [0x6355f0], 3
lea ecx, [ebp - 0xa4]
push ecx
jl 0x48adf1
mov edx, 8
mov ecx, eax
call fcn.00523b00
jmp 0x48ae0b
push 8
push eax
call dword [sym.imp.ntdll.dll_NtOpenProcessToken]
lea ebx, [ebx]
cmp eax, 0xc0000022
je 0x48af5b
test eax, eax
js 0x48af5b
lea eax, [ebp - 8]
push eax
push 0x4c
lea eax, [ebp - 0x100]
push eax
push 1
push dword [ebp - 0xa4]
call dword [sym.imp.ntdll.dll_NtQueryInformationToken]
test eax, eax
js 0x48ae76
mov ebx, dword [ebp - 0x100]
movzx eax, byte [ebx + 1]
lea edi, [eax*4 + 8]
push edi
push 4
push dword [0x6337d4]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push edi
mov esi, eax
push ebx
push esi
call fcn.005831c0
mov ebx, dword [ebp - 0x18]
add esp, 0xc
mov ecx, dword [ebp - 0x100]
mov dword [ebx + 0x58], esi
call fcn.0048a2f0
mov dword [ebx + 0x2d4], eax
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
push 0x12
push dword [ebp - 0xa4]
call dword [sym.imp.ntdll.dll_NtQueryInformationToken]
test eax, eax
js 0x48ae98
mov eax, dword [ebp - 0x1c]
mov dword [ebx + 0x5c], eax
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
push 0x14
push dword [ebp - 0xa4]
call dword [sym.imp.ntdll.dll_NtQueryInformationToken]
test eax, eax
js 0x48aec9
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x7c]
neg ecx
sbb ecx, ecx
and eax, 0xfffffff7
and ecx, 8
or ecx, eax
mov dword [ebx + 0x7c], ecx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0xa4]
call sym.SystemInformer.exe_PhGetTokenIntegrityLevel
lea esp, [esp]
test eax, eax
js 0x48aef0
mov eax, dword [ebp - 0x18]
mov dword [ebx + 0x60], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x64], eax
lea eax, [ebp - 0x18]
push eax
push 4
lea eax, [ebp - 8]
push eax
push 0x1a
push dword [ebp - 0xa4]
call dword [sym.imp.ntdll.dll_NtQueryInformationToken]
test eax, eax
js 0x48af2c
cmp dword [ebp - 8], 0
mov edx, 0x20000
setne al
xor ecx, ecx
test al, al
mov eax, dword [ebx + 0x7c]
cmovne ecx, edx
and eax, 0xfffdffff
or ecx, eax
mov dword [ebx + 0x7c], ecx
cmp dword [0x62dbb0], 0x3e
jb 0x48af4f
test dword [ebx + 0x7c], 0x10000
je 0x48af4f
mov ecx, dword [ebp - 0xa4]
call fcn.00514a80
mov dword [ebx + 0x2d0], eax
push dword [ebp - 0xa4]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword ds:[ebx + 0x10]
test eax, eax
je 0x48af69
cmp eax, 4
jne 0x48afda
cmp dword [ebx + 0x58], 0
jne 0x48af9c
push 0xc
push 4
push dword [0x6337d4]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword [0x5d5b24]
mov dword [eax], ecx
mov ecx, dword [0x5d5b28]
mov dword [eax + 4], ecx
mov ecx, dword [0x5d5b2c]
mov dword [eax + 8], ecx
mov dword [ebx + 0x58], eax
cmp dword [ebx + 0x2d4], 0
jne 0x48afda
mov eax, dword [0x6343d0]
test eax, eax
je 0x48afd2
lea ecx, [ebp - 0xb0]
mov dword [ebp - 0xb0], 0x5d5b24
push ecx
push eax
call sym.SystemInformer.exe_PhFindEntryHashtable
test eax, eax
je 0x48afd2
mov eax, dword [eax + 4]
lock inc dword [eax - 4]
jmp 0x48afd4
xor eax, eax
mov dword [ebx + 0x2d4], eax
push dword [ebx + 0x34]
push dword [ebx + 0x10]
call sym.SystemInformer.exe__PhGetProcessKnownTypeEx_8
mov dword [ebx + 0x310], eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x48b036
cmp dword [0x62dbb0], 0x3f
jb 0x48b01b
push 0
push 1
lea ecx, [ebp - 0x11]
push ecx
push 0x3d
push eax
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x48b03d
mov al, byte [ebp - 0x11]
mov byte [ebx + 0x314], al
jmp 0x48b03d
test dword [ebx + 0x7c], 0x2000
je 0x48b03d
mov al, byte [ebx + 0x314]
and al, 0xfa
or al, 2
mov byte [ebx + 0x314], al
jmp 0x48b03d
mov byte [ebx + 0x314], 0xff
cmp dword [0x62dbb0], 0x3f
jb 0x48b0f3
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x48b0f3
test dword [0x6333d8], 0x80000
nop
je 0x48b0f3
push 0
push 8
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 7
push ecx
push 0x34
push eax
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
mov edi, edi
test eax, eax
js 0x48b09c
mov al, byte [ebp - 0xc]
and al, 1
movzx ecx, al
mov eax, dword [ebx + 0x7c]
shl ecx, 0x12
and eax, 0xfffbffff
or ecx, eax
mov dword [ebx + 0x7c], ecx
cmp dword [0x62dbb0], 0x72
jb 0x48b0f3
push 0
push 8
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 7
push eax
push 0x34
push dword [ebx + 0x30]
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
nop
test eax, eax
js 0x48b0f3
mov edx, dword [ebp - 0xc]
mov ecx, edx
shr ecx, 3
movzx ecx, cl
shl ecx, 0x14
xor ecx, dword [ebx + 0x7c]
shr edx, 4
and ecx, 0x100000
xor ecx, dword [ebx + 0x7c]
movzx eax, dl
shl eax, 0x15
xor eax, ecx
and eax, 0x200000
xor eax, ecx
mov dword [ebx + 0x7c], eax
cmp dword [0x62dbb0], 0x6d
jb 0x48b173
test dword [0x6333d8], 0x100000
je 0x48b173
cmp dword [ebx + 0x10], 4
jne 0x48b138
push 0
push 4
lea eax, [ebp - 8]
push eax
push 0xdd
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
test eax, eax
js 0x48b173
mov ecx, dword [ebp - 8]
and ecx, 0x100
shl ecx, 0xb
jmp 0x48b166
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x48b173
push 0
push 8
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0xf
push ecx
push 0x34
push eax
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x48b173
mov al, byte [ebp - 0xc]
and al, 1
movzx ecx, al
shl ecx, 0x13
mov eax, dword [ebx + 0x7c]
and eax, 0xfff7ffff
or ecx, eax
mov dword [ebx + 0x7c], ecx
cmp dword [0x62dbb0], 0x71
jb 0x48b1c8
mov ecx, dword ds:[ebx + 0x30]
test ecx, ecx
je 0x48b1c8
test dword [ebx + 0x7c], 0x8000
je 0x48b1c8
cmp dword [0x6355f0], 3
jl 0x48b1c8
push ecx
push 4
lea eax, [ebp - 8]
mov edx, 0xd
push eax
call fcn.00524260
test eax, eax
js 0x48b1c8
mov ecx, dword ds:[ebp - 8]
lea eax, [ebx + 0xae]
push 0xa
push eax
push ecx
mov dword [ebx + 0x32c], ecx
call fcn.00583bea
add esp, 0xc
mov eax, dword [ebp - 0x104]
cmp dword [eax + 4], 0
jne 0x48b1ed
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x48b1ed
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov dword [ebx + 0x30], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret