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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x170]
sub rsp, 0x270
mov rax, qword [0x140237008]
xor rax, rsp
mov qword [rbp + 0x168], rax
xor esi, esi
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rsi
mov rbx, rdx
mov edi, 0xc0000001
mov r12d, esi
test rdx, rdx
je 0x1400bc5cb
cmp qword [rdx], rsi
je 0x1400bc5cb
mov rcx, rdx
call sym.ProcessHacker.exe_PhExpandEnvironmentStrings
mov r13, rax
test rax, rax
jne 0x1400bbdfa
mov r14, qword [rbx]
test r14, r14
jne 0x1400bbdbf
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov r13, rax
jmp 0x1400bbdfa
mov rdx, qword [0x1402418e8]
lea rcx, [r14 + 0x12]
mov rbx, qword [rbx + 8]
call sym.ProcessHacker.exe_PhCreateObject
mov r13, rax
mov qword [rax], r14
add rax, 0x10
mov qword [r13 + 8], rax
mov word [rax + r14], si
test rbx, rbx
je 0x1400bbdfa
mov rcx, qword [r13 + 8]
mov r8, r14
mov rdx, rbx
call fcn.140188690
lea r9, [rsp + 0x70]
mov rcx, r13
lea r8, [rbp - 0x60]
lea rdx, [rbp - 0x70]
call sym.ProcessHacker.exe_PhParseCommandLineFuzzy
mov r14, qword [rsp + 0x70]
mov r15d, 0xffffffff
test r14, r14
je 0x1400bbe25
nop
cmp qword [r14], rsi
jne 0x1400bbea0
mov rcx, qword [rbp - 0x70]
test rcx, rcx
jne 0x1400bbe38
call sym.ProcessHacker.exe_PhReferenceEmptyString
mov rbx, rax
jmp 0x1400bbe73
mov rdx, qword [0x1402418e8]
add rcx, 0x12
call sym.ProcessHacker.exe_PhCreateObject
mov rcx, qword [rbp - 0x70]
mov rbx, rax
mov rdx, qword [rbp - 0x68]
mov qword [rax], rcx
add rax, 0x10
mov qword [rbx + 8], rax
mov word [rax + rcx], si
test rdx, rdx
je 0x1400bbe73
mov r8, rcx
mov rcx, qword [rbx + 8]
call fcn.140188690
mov rcx, r14
mov qword [rsp + 0x70], rbx
mov r14, rbx
test rcx, rcx
je 0x1400bbea0
add rcx, 0xfffffffffffffff0
mov eax, r15d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400bbe9b
call fcn.1400fbcc0
mov r14, qword [rsp + 0x70]
test r14, r14
je 0x1400bc5cb
cmp qword [r14], rsi
je 0x1400bc5b5
mov rbx, qword [rbp - 0x60]
test rbx, rbx
je 0x1400bbef4
mov rdx, qword [0x1402418e8]
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov rdx, qword [rbp - 0x58]
mov r12, rax
mov qword [rax], rbx
add rax, 0x10
mov qword [r12 + 8], rax
mov word [rax + rbx], si
test rdx, rdx
je 0x1400bbef4
mov rcx, qword [r12 + 8]
mov r8, rbx
call fcn.140188690
mov rcx, qword ds:[r14 + 8]
lea rdx, [rbp + 0x110]
call fcn.14011ba80
test eax, eax
js 0x1400bbf1a
mov eax, dword [rbp + 0x130]
shr eax, 4
and al, 1
jne 0x1400bc55b
mov rcx, qword ds:[r14 + 8]
call sym.ProcessHacker.exe_PhDoesFileExistsWin32
test al, al
je 0x1400bc55b
mov rbx, qword [rsp + 0x68]
xor r9d, r9d
xor r8d, r8d
mov edx, 0xf0
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
je 0x1400bc542
mov ecx, 0x11
call qword [sym.imp.USER32.dll_GetKeyState]
nop dword [rax + rax]
test ax, ax
jns 0x1400bbf79
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x1400bc542
xorps xmm0, xmm0
mov dword [rbp + 0x78], 0xffffffff
mov eax, 0xa
mov qword [rbp + 0x80], rsi
movups xmmword [rbp + 0xa0], xmm0
mov rbx, rsi
xor ecx, ecx
movups xmmword [rbp + 0xd0], xmm0
mov dword [rbp + 0xa0], 0x70
movups xmmword [rbp + 0xe0], xmm0
mov dword [rbp + 0xdc], 1
mov word [rbp + 0xe0], ax
mov qword [rbp + 0x90], rsi
mov qword [rbp - 0x80], rsi
mov qword [rsp + 0x58], rbx
mov qword [rbp + 0x88], rsi
mov dword [rsp + 0x50], esi
movups xmmword [rbp + 0xb0], xmm0
movups xmmword [rbp + 0xc0], xmm0
movups xmmword [rbp + 0xf0], xmm0
movups xmmword [rbp + 0x100], xmm0
call fcn.1400bb7c0
mov qword [rbp - 0x78], rax
call qword [sym.imp.USER32.dll_GetShellWindow]
test rax, rax
jne 0x1400bc02f
mov rdx, r13
call fcn.1400bb9e0
nop dword [rax]
test al, al
je 0x1400bc476
mov edi, esi
jmp 0x1400bc476
lea rdx, [rbp + 0x78]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword ds:[rbp + 0x78]
cmp eax, 0xffffffff
je 0x1400bc476
lea rcx, [rbp - 8]
mov ebx, eax
call sym.ProcessHacker.exe_PhGetOwnTokenAttributes
mov edx, 0x80
lea rcx, [rbp + 0x80]
mov r8d, ebx
test byte [rax + 8], 1
mov eax, 0x21080
cmovne edx, eax
call fcn.140110fc0
mov edi, eax
test eax, eax
js 0x1400bc471
xor r8d, r8d
lea r9, [rbp + 0x90]
xor ecx, ecx
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
test eax, eax
jne 0x1400bc0c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
cmp eax, 0x7a
je 0x1400bc0c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x58]
mov edi, eax
test eax, eax
jle 0x1400bc476
movzx edi, ax
or edi, 0xc0070000
jmp 0x1400bc476
mov r8, qword ds:[rbp + 0x90]
mov edx, 4
mov rcx, qword [0x140241998]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xor r8d, r8d
lea r9, [rbp + 0x90]
mov rcx, rax
mov qword [rbp + 0x108], rax
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
test eax, eax
jne 0x1400bc12d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x58]
mov edi, eax
test eax, eax
jle 0x1400bc476
movzx edi, ax
or edi, 0xc0070000
jmp 0x1400bc476
mov rcx, qword [rbp + 0x108]
lea r9, [rbp + 0x80]
mov qword [rsp + 0x30], rsi
xor edx, edx
mov qword [rsp + 0x28], rsi
mov r8d, 0x20000
mov qword [rsp + 0x20], 8
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
nop dword [rax]
test eax, eax
jne 0x1400bc187
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x58]
mov edi, eax
test eax, eax
jle 0x1400bc476
movzx edi, ax
or edi, 0xc0070000
jmp 0x1400bc476
lea rcx, [rbp + 0x10]
call sym.ProcessHacker.exe_PhGetOwnTokenAttributes
test byte [rax + 8], 1
je 0x1400bc1ab
mov rcx, qword [rbp + 0x80]
lea r8, [rbp - 0x80]
mov edx, 0x15
call sym.ProcessHacker.exe_PhGetObjectSecurity
lea rcx, [rbp + 0x28]
call sym.ProcessHacker.exe_PhGetOwnTokenAttributes
mov rdi, qword [rbp + 0x80]
lea r8, [rbp + 0x70]
mov rcx, rdi
mov ebx, dword [rax + 8]
and ebx, 1
shl ebx, 0x11
or ebx, 8
cmp byte [0x140240e3f], sil
mov edx, ebx
jne 0x1400bc1f9
call qword [sym.imp.ntdll.dll_NtOpenProcessToken]
nop
cmp eax, 0xc0000022
jne 0x1400bc1fe
cmp byte [0x140240e3f], sil
je 0x1400bc266
lea r8, [rbp + 0x70]
mov edx, ebx
mov rcx, rdi
call fcn.14011f3a0
nop
test eax, eax
js 0x1400bc266
lea rcx, [rbp + 0x40]
call sym.ProcessHacker.exe_PhGetOwnTokenAttributes
test byte [rax + 8], 1
je 0x1400bc226
mov rcx, qword [rbp + 0x70]
lea r8, [rsp + 0x58]
mov edx, 0x15
call sym.ProcessHacker.exe_PhGetObjectSecurity
call fcn.140123480
test rax, rax
je 0x1400bc259
call fcn.140123480
mov rdx, qword [rbp + 0x70]
lea rcx, [rbp + 0x88]
xor r8d, r8d
call qword [case.0x1400f654f.0]
test eax, eax
mov ecx, esi
mov eax, 2
cmovne ecx, eax
mov dword [rsp + 0x50], ecx
mov rcx, qword ds:[rbp + 0x70]
call qword [sym.imp.ntdll.dll_NtClose]
mov rax, qword [rbp - 0x78]
test rax, rax
je 0x1400bc275
mov r9, qword [rax + 8]
jmp 0x1400bc278
mov r9, rsi
test r12, r12
je 0x1400bc284
mov rdx, qword [r12 + 8]
jmp 0x1400bc287
mov rdx, rsi
mov eax, dword [rsp + 0x50]
lea rcx, [rsp + 0x78]
mov r8, qword [rbp + 0x88]
or eax, 0x194
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rcx
mov rcx, qword [r14 + 8]
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0xa0]
mov qword [rsp + 0x20], rax
call sym.ProcessHacker.exe_PhCreateProcessWin32Ex
mov edi, eax
test eax, eax
js 0x1400bc43a
lea rcx, [rbp + 0x58]
call sym.ProcessHacker.exe_PhGetOwnTokenAttributes
test byte [rax + 8], 1
je 0x1400bc3f0
mov r8, qword [rbp - 0x80]
mov rbx, qword [rsp + 0x78]
test r8, r8
je 0x1400bc306
mov edx, 0x15
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtSetSecurityObject]
cmp qword [rsp + 0x58], rsi
je 0x1400bc3f0
lea r8, ds:[rbp + 0x70]
mov edx, 0xc0000
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtOpenProcessToken]
cmp eax, 0xc0000022
jne 0x1400bc3ce
cmp byte [0x140240e3f], sil
je 0x1400bc3f0
mov rcx, qword [0x140241b70]
lea rax, [rbp + 0x70]
mov qword [rbp - 0x40], rax
lea r8, [0x14011f940]
mov dword [rsp + 0x48], esi
mov eax, 2
mov dword [rsp + 0x68], eax
xor r9d, r9d
mov qword [rsp + 0x40], rsi
lea rax, [0x14011fb00]
mov qword [rbp - 0x20], rax
xor edx, edx
mov dword [rsp + 0x38], 4
lea rax, [rbp - 0x50]
mov qword [rbp - 0x18], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x30]
mov dword [rsp + 0x28], 0x9999200b
mov qword [rsp + 0x20], rax
mov qword [rbp - 0x50], rbx
mov dword [rbp - 0x48], 0xc0000
mov dword [rbp - 0x38], esi
mov dword [rbp - 0x10], 0xc0000001
call qword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtTestAlert]
mov eax, dword [rbp - 0x10]
test ebx, ebx
cmovs eax, ebx
test eax, eax
js 0x1400bc3f0
mov r8, qword [rsp + 0x58]
mov edx, 0x15
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.ntdll.dll_NtSetSecurityObject]
mov rcx, qword [rbp + 0x70]
call qword [sym.imp.ntdll.dll_NtClose]
mov rbx, qword [rsp + 0x78]
lea r8, [rbp + 0x138]
mov rcx, rbx
mov qword [rsp + 0x20], rsi
mov r9d, 0x30
xor edx, edx
call qword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x1400bc426
mov ecx, 0xffffffff
call qword [sym.imp.USER32.dll_AllowSetForegroundWindow]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtResumeProcess]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_NtClose]
jmp 0x1400bc471
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x1400bc471
cmp di, 0x2e4
jne 0x1400bc471
test r12, r12
je 0x1400bc458
mov rsi, qword [r12 + 8]
mov rcx, qword [rsp + 0x68]
mov r9b, 1
mov rdx, qword [r14 + 8]
mov r8, rsi
mov rcx, qword [rcx]
call fcn.1400bb8a0
mov edi, eax
mov rbx, qword [rsp + 0x58]
cmp qword ds:[rbp + 0x88], 0
je 0x1400bc49e
call fcn.140123600
test rax, rax
je 0x1400bc49e
call fcn.140123600
mov rcx, qword [rbp + 0x88]
call qword [case.0x1400f654f.0]
nop
test rbx, rbx
je 0x1400bc4b7
mov rcx, qword [0x140241998]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, qword ds:[rbp - 0x80]
test rax, rax
je 0x1400bc4d7
mov rcx, qword [0x140241998]
mov r8, rax
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword ds:[rbp + 0x108]
test rcx, rcx
je 0x1400bc506
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov r8, qword ds:[rbp + 0x108]
xor edx, edx
mov rcx, qword [0x140241998]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword [rbp + 0x80]
test rcx, rcx
je 0x1400bc518
call qword [sym.imp.ntdll.dll_NtClose]
mov rax, qword ds:[rbp - 0x78]
test rax, rax
je 0x1400bc574
lea rcx, [rax - 0x10]
mov eax, r15d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400bc53b
call fcn.1400fbcc0
mov r14, qword [rsp + 0x70]
jmp 0x1400bc574
test r12, r12
je 0x1400bc54c
mov rsi, qword [r12 + 8]
mov rdx, qword [r14 + 8]
mov r9b, 1
mov rcx, qword [rbx]
mov r8, rsi
jmp 0x1400bc56d
mov rcx, qword [rsp + 0x68]
xor r9d, r9d
mov rdx, qword [r13 + 8]
xor r8d, r8d
mov rcx, qword [rcx]
call fcn.1400bb8a0
mov edi, eax
lea rcx, [r14 - 0x10]
mov eax, r15d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400bc58a
call fcn.1400fbcc0
test r12, r12
je 0x1400bc5aa
lea rcx, ds:[r12 - 0x10]
mov eax, r15d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400bc5aa
call fcn.1400fbcc0
test r13, r13
je 0x1400bc5cb
lea rcx, [r13 - 0x10]
jmp 0x1400bc5b9
lea rcx, [r14 - 0x10]
lock xadd dword ds:[rcx + 8], r15d
cmp r15d, 1
jne 0x1400bc5cb
call fcn.1400fbcc0
mov eax, edi
mov rcx, qword [rbp + 0x168]
xor rcx, rsp
call fcn.1401848a0
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x270
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret