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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xf4
mov eax, dword [0x5c7004]
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 0x490e48
cmp dword [esi], 0
je 0x490e48
push esi
call sym.ProcessHacker.exe_PhExpandEnvironmentStrings
mov ecx, eax
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x490835
mov ebx, dword [esi]
test ebx, ebx
jne 0x4907f7
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov ecx, eax
mov dword [esp + 0x10], ecx
jmp 0x490835
push dword [0x5cd4f8]
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 0x490835
push ebx
push esi
push dword [ecx + 4]
call fcn.00537fe0
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 0x49085a
cmp dword [ebx], 0
jne 0x4908c8
mov eax, dword ds:[esp + 0x20]
test eax, eax
jne 0x49086d
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov esi, eax
jmp 0x4908a8
push dword [0x5cd4f8]
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 0x4908a8
push ecx
push eax
push dword [esi + 4]
call fcn.00537fe0
add esp, 0xc
mov eax, ebx
mov ebx, esi
test eax, eax
je 0x4908c5
lea ecx, [eax - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4908c5
mov edi, edi
call fcn.004c1f60
or eax, 0xffffffff
test ebx, ebx
je 0x490e48
cmp dword [ebx], 0
je 0x490e36
mov eax, dword ds:[esp + 0x30]
test eax, eax
je 0x490922
push dword [0x5cd4f8]
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 0x490924
push ecx
push eax
push dword [esi + 4]
call fcn.00537fe0
add esp, 0xc
jmp 0x490924
xor esi, esi
mov ecx, dword [ebx + 4]
lea edx, [esp + 0xb8]
call fcn.004dae40
test eax, eax
js 0x490949
mov eax, dword [esp + 0xd8]
shr eax, 4
and al, 1
jne 0x490de9
push dword [ebx + 4]
call sym.ProcessHacker.exe_PhDoesFileExistsWin32
test al, al
je 0x490de9
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 0x490dd0
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x49099c
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x490dd0
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.00536b00
add esp, 0xc
mov dword [esp + 0x70], 0x48
mov eax, 0xa
mov dword [esp + 0x9c], 1
xor cl, cl
mov word [esp + 0xa0], ax
call fcn.004902e0
mov dword [esp + 0x20], eax
call dword [sym.imp.USER32.dll_GetShellWindow]
test eax, eax
jne 0x490a35
mov edx, dword [esp + 0x10]
call fcn.00490480
test al, al
je 0x490d2c
xor edi, edi
jmp 0x490d2c
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 0x490d2c
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.004d3720
mov edi, eax
test edi, edi
js 0x490d2c
lea eax, [esp + 0x68]
push eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
test eax, eax
jne 0x490ac9
lea ecx, [ecx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x490ac9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x490d2c
movzx edi, di
or edi, 0xc0070000
jmp 0x490d2c
push dword [esp + 0x68]
push 4
push dword [0x5cd55c]
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 0x490aab
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 0x490aab
lea eax, ds:[esp + 0x38]
push eax
call sym.ProcessHacker.exe_PhGetOwnTokenAttributes
test byte [eax + 4], 1
je 0x490b3b
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.004d39c0
test eax, eax
js 0x490bcc
lea eax, [esp + 0x38]
push eax
call sym.ProcessHacker.exe_PhGetOwnTokenAttributes
test byte [eax + 4], 1
je 0x490b8d
lea eax, [esp + 0x18]
push eax
push 0x15
push dword [esp + 0x64]
call sym.ProcessHacker.exe_PhGetObjectSecurity
call fcn.004e0900
test eax, eax
je 0x490bc2
push 0
push dword [esp + 0x60]
lea eax, [esp + 0x6c]
push eax
call fcn.004e0900
mov esi, eax
mov ecx, eax
call dword [0x55890c]
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 0x490bd9
mov ecx, dword [eax + 4]
jmp 0x490bdb
xor ecx, ecx
mov esi, dword ds:[esp + 0x2c]
test esi, esi
je 0x490be9
mov eax, dword [esi + 4]
jmp 0x490beb
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 0x490cf3
lea eax, [esp + 0x38]
push eax
call sym.ProcessHacker.exe_PhGetOwnTokenAttributes
test byte ds:[eax + 4], 1
mov eax, dword [esp + 0xc]
je 0x490cb9
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x490c5c
push ecx
push 0x15
push eax
call dword [sym.imp.ntdll.dll_NtSetSecurityObject]
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x18], 0
je 0x490cb9
lea ecx, [esp + 0x5c]
push ecx
push 0xc0000
push eax
call dword [sym.imp.ntdll.dll_NtOpenProcessToken]
cmp eax, 0xc0000022
jne 0x490c9b
cmp byte [0x5cd02b], 0
je 0x490cb9
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x5c]
push eax
mov edx, 0xc0000
call fcn.004dd120
test eax, eax
js 0x490cb9
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 0x490cdd
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 0x490d2c
mov eax, edi
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x490d2c
cmp di, 0x2e4
jne 0x490d2c
test esi, esi
je 0x490d17
mov eax, dword [esi + 4]
jmp 0x490d19
xor eax, eax
mov edx, dword [ebx + 4]
push 1
push eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax]
call fcn.00490380
mov edi, eax
cmp dword [esp + 0x64], 0
je 0x490d55
call fcn.004e0a60
test eax, eax
je 0x490d55
push dword [esp + 0x64]
call fcn.004e0a60
mov esi, eax
mov ecx, eax
call dword [0x55890c]
call esi
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x490d6c
push eax
push 0
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x490d86
push eax
push 0
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x490dad
push eax
call dword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
push dword [esp + 0xb4]
push 0
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [esp + 0x60]
test eax, eax
je 0x490dbc
push eax
call dword [sym.imp.ntdll.dll_NtClose]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x490e01
push eax
call sym.ProcessHacker.exe_PhDereferenceObject
jmp 0x490e01
test esi, esi
je 0x490ddf
mov eax, dword [esi + 4]
mov edx, dword [ebx + 4]
push 1
push eax
jmp 0x490df4
mov edx, dword [ebx + 4]
xor eax, eax
push 1
push eax
jmp 0x490df4
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.00490380
mov edi, eax
push ebx
call sym.ProcessHacker.exe_PhDereferenceObject
test esi, esi
je 0x490e11
push esi
call sym.ProcessHacker.exe_PhDereferenceObject
mov eax, dword [esp + 0x10]
test eax, eax
je 0x490e48
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.00534c91
mov esp, ebp
pop ebp
ret
lea ecx, ds:[ebx - 8]
lock xadd dword [ecx + 4], eax
dec eax
jne 0x490e48
call fcn.004c1f60
mov ecx, dword [esp + 0xfc]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00534c91
mov esp, ebp
pop ebp
ret