Function at 0x486ae0
Capabilities:
Log keystrokes via polling
Spoof parent pid

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xf4
mov eax, dword [0x5ac004]
xor eax, esp
mov dword [esp + 0xf0], eax
push ebx
push esi
mov esi, edx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x28], 0
push edi
mov edi, 0xc0000001
test esi, esi
je 0x4871a8
cmp dword [esi], 0
je 0x4871a8
push esi
call sym.ProcessHacker.exe_PhExpandEnvironmentStrings
mov ecx, eax
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x486b95
mov ebx, dword [esi]
test ebx, ebx
jne 0x486b57
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov ecx, eax
mov dword [esp + 0x10], ecx
jmp 0x486b95
push dword [0x5b1d70]
mov esi, dword [esi + 4]
lea eax, [ebx + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov ecx, eax
xor edx, edx
mov dword [esp + 0x10], ecx
lea eax, [ecx + 8]
mov dword [ecx], ebx
mov dword [ecx + 4], eax
mov word [eax + ebx], dx
test esi, esi
je 0x486b95
push ebx
push esi
push dword [ecx + 4]
call fcn.00521a30
mov ecx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x28]
push eax
push ecx
call sym.ProcessHacker.exe_PhParseCommandLineFuzzy
mov ebx, dword [esp + 0x14]
or eax, 0xffffffff
test ebx, ebx
je 0x486bba
cmp dword [ebx], 0
jne 0x486c28
mov eax, dword ds:[esp + 0x20]
test eax, eax
jne 0x486bcd
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov esi, eax
jmp 0x486c08
push dword [0x5b1d70]
add eax, 0xa
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov ecx, dword [esp + 0x20]
mov esi, eax
lea eax, [esi + 8]
xor edx, edx
mov dword [esi + 4], eax
mov dword [esi], ecx
mov word [eax + ecx], dx
mov eax, dword [esp + 0x24]
test eax, eax
je 0x486c08
push ecx
push eax
push dword [esi + 4]
call fcn.00521a30
add esp, 0xc
mov eax, ebx
mov ebx, esi
test eax, eax
je 0x486c25
lea ecx, [eax - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x486c25
mov edi, edi
call fcn.004b3960
or eax, 0xffffffff
test ebx, ebx
je 0x4871a8
cmp dword [ebx], 0
je 0x487196
mov eax, dword ds:[esp + 0x30]
test eax, eax
je 0x486c82
push dword [0x5b1d70]
add eax, 0xa
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov ecx, dword [esp + 0x30]
mov esi, eax
lea eax, [esi + 8]
mov dword [esp + 0x2c], esi
xor edx, edx
mov dword [esi + 4], eax
mov dword [esi], ecx
mov word [eax + ecx], dx
mov eax, dword [esp + 0x34]
test eax, eax
je 0x486c84
push ecx
push eax
push dword [esi + 4]
call fcn.00521a30
add esp, 0xc
jmp 0x486c84
xor esi, esi
mov ecx, dword [ebx + 4]
lea edx, [esp + 0xb8]
call fcn.004ca2c0
test eax, eax
js 0x486ca9
mov eax, dword [esp + 0xd8]
shr eax, 4
and al, 1
jne 0x487149
push dword [ebx + 4]
call sym.ProcessHacker.exe_PhDoesFileExistsWin32
test al, al
je 0x487149
mov eax, dword [esp + 0x1c]
push 0
push 0
push 0xf0
push dword [eax + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
je 0x487130
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x486cfc
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x487130
push 0x48
lea eax, [esp + 0x74]
mov dword [esp + 0x70], 0xffffffff
push 0
push eax
mov dword [esp + 0x6c], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x3c], 0
call fcn.0051fd40
add esp, 0xc
mov dword [esp + 0x70], 0x48
mov eax, 1
mov dword [esp + 0x9c], 1
xor cl, cl
mov word [esp + 0xa0], ax
call fcn.00486660
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_GetShellWindow]
test eax, eax
jne 0x486d95
mov edx, dword [esp + 0x10]
call fcn.00486800
test al, al
je 0x48708c
xor edi, edi
jmp 0x48708c
lea ecx, ds:[esp + 0x6c]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x6c]
cmp eax, 0xffffffff
je 0x48708c
push eax
push ecx
lea eax, [esp + 0x50]
push eax
call sym.ProcessHacker.exe_PhGetOwnTokenAttributes
add esp, 4
lea ecx, [esp + 0x64]
mov edx, 0x80
test byte [eax + 4], 1
mov eax, 0x21080
cmovne edx, eax
call fcn.004c3180
mov edi, eax
test edi, edi
js 0x48708c
lea eax, [esp + 0x68]
push eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
test eax, eax
jne 0x486e29
lea ecx, [ecx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x486e29
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x48708c
movzx edi, di
or edi, 0xc0070000
jmp 0x48708c
push dword [esp + 0x68]
push 4
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
lea ecx, [esp + 0x68]
mov dword [esp + 0xb4], eax
push ecx
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
test eax, eax
je 0x486e0b
push 0
push 0
push 4
lea eax, [esp + 0x6c]
push eax
push 0x20000
push 0
push dword [esp + 0xcc]
call dword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
je 0x486e0b
lea eax, ds:[esp + 0x38]
push eax
call sym.ProcessHacker.exe_PhGetOwnTokenAttributes
test byte [eax + 4], 1
je 0x486e9b
lea eax, [esp + 0x14]
push eax
push 0x15
push dword [esp + 0x68]
call sym.ProcessHacker.exe_PhGetObjectSecurity
lea eax, [esp + 0x5c]
push eax
push ecx
lea eax, [esp + 0x40]
push eax
call sym.ProcessHacker.exe_PhGetOwnTokenAttributes
mov ecx, dword ds:[esp + 0x68]
add esp, 4
mov edx, dword [eax + 4]
and edx, 1
shl edx, 0x11
or edx, 8
call fcn.004c3420
test eax, eax
js 0x486f2c
lea eax, [esp + 0x38]
push eax
call sym.ProcessHacker.exe_PhGetOwnTokenAttributes
test byte [eax + 4], 1
je 0x486eed
lea eax, [esp + 0x18]
push eax
push 0x15
push dword [esp + 0x64]
call sym.ProcessHacker.exe_PhGetObjectSecurity
call fcn.004f4c20
test eax, eax
je 0x486f22
push 0
push dword [esp + 0x60]
lea eax, [esp + 0x6c]
push eax
call fcn.004f4c20
mov esi, eax
mov ecx, eax
call dword [0x5404bc]
call esi
xor ecx, ecx
mov edx, 2
test eax, eax
cmovne ecx, edx
mov dword [esp + 0x30], ecx
push dword [esp + 0x5c]
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x486f39
mov ecx, dword [eax + 4]
jmp 0x486f3b
xor ecx, ecx
mov esi, dword ds:[esp + 0x2c]
test esi, esi
je 0x486f49
mov eax, dword [esi + 4]
jmp 0x486f4b
xor eax, eax
push 0
lea edx, [esp + 0x10]
push edx
mov edx, dword [esp + 0x38]
push 0
push 0
or edx, 0x194
push edx
lea edx, [esp + 0x84]
push edx
push ecx
push dword [esp + 0x80]
push eax
push dword [ebx + 4]
call sym.ProcessHacker.exe_PhCreateProcessWin32Ex
mov edi, eax
test edi, edi
js 0x487053
lea eax, [esp + 0x38]
push eax
call sym.ProcessHacker.exe_PhGetOwnTokenAttributes
test byte ds:[eax + 4], 1
mov eax, dword [esp + 0xc]
je 0x487019
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x486fbc
push ecx
push 0x15
push eax
call dword [sym.imp.ntdll.dll_NtSetSecurityObject]
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x18], 0
je 0x487019
lea ecx, [esp + 0x5c]
push ecx
push 0xc0000
push eax
call dword [sym.imp.ntdll.dll_NtOpenProcessToken]
cmp eax, 0xc0000022
jne 0x486ffb
cmp byte [0x5b18bb], 0
je 0x487019
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x5c]
push eax
mov edx, 0xc0000
call fcn.004cbfa0
test eax, eax
js 0x487019
push dword [esp + 0x18]
push 0x15
push dword [esp + 0x64]
call dword [sym.imp.ntdll.dll_NtSetSecurityObject]
push dword [esp + 0x5c]
call dword [sym.imp.ntdll.dll_NtClose]
push 0
push 0x18
lea eax, [esp + 0xec]
push eax
push 0
push dword [esp + 0x1c]
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x48703d
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_AllowSetForegroundWindow]
push dword [esp + 0xc]
call dword [sym.imp.ntdll.dll_NtResumeProcess]
push dword [esp + 0xc]
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x48708c
mov eax, edi
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x48708c
cmp di, 0x2e4
jne 0x48708c
test esi, esi
je 0x487077
mov eax, dword [esi + 4]
jmp 0x487079
xor eax, eax
mov edx, dword [ebx + 4]
push 1
push eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
call fcn.00486700
mov edi, eax
cmp dword [esp + 0x64], 0
je 0x4870b5
call fcn.004f4d60
test eax, eax
je 0x4870b5
push dword [esp + 0x64]
call fcn.004f4d60
mov esi, eax
mov ecx, eax
call dword [0x5404bc]
call esi
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4870cc
push eax
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4870e6
push eax
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x48710d
push eax
call dword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
push dword [esp + 0xb4]
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [esp + 0x60]
test eax, eax
je 0x48711c
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x487161
push eax
call sym.ProcessHacker.exe_PhDereferenceObject
jmp 0x487161
test esi, esi
je 0x48713f
mov eax, dword [esi + 4]
mov edx, dword [ebx + 4]
push 1
push eax
jmp 0x487154
mov edx, dword [ebx + 4]
xor eax, eax
push 1
push eax
jmp 0x487154
mov edx, dword [esp + 0x10]
push 0
push 0
mov edx, dword [edx + 4]
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
call fcn.00486700
mov edi, eax
push ebx
call sym.ProcessHacker.exe_PhDereferenceObject
test esi, esi
je 0x487171
push esi
call sym.ProcessHacker.exe_PhDereferenceObject
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4871a8
push eax
call sym.ProcessHacker.exe_PhDereferenceObject
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf0]
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret
lea ecx, ds:[ebx - 8]
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4871a8
call fcn.004b3960
mov ecx, dword [esp + 0xfc]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret