Function at 0x1400a50e0
Capabilities:
Capture webcam image
Log keystrokes via polling

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
lea rbp, [rsp - 0x78]
sub rsp, 0x178
mov qword [rbp - 0x78], 0xfffffffffffffffe
mov rax, qword [0x140136e20]
xor rax, rsp
mov qword [rbp + 0x68], rax
mov rdi, r9
mov r12d, r8d
mov r13, rdx
mov rsi, rcx
mov rbx, qword [rbp + 0xd0]
mov eax, r8d
sub eax, 0x4e
je 0x1400a5160
sub eax, 0xc8
je 0x1400a5149
cmp eax, 9
jne 0x1400a5166
mov r9, rbx
mov r8, rdi
mov edx, 0x11f
mov rcx, qword [rcx + 0x68]
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x1400a5166
mov r9, rbx
mov r8, rdi
mov edx, 0x116
mov rcx, qword [rcx + 0x68]
call qword [sym.imp.USER32.dll_SendMessageW]
jmp 0x1400a5166
cmp dword [rbx + 0x10], 0xfffffffb
je 0x1400a517c
mov r9, rbx
mov r8, rdi
mov edx, r12d
mov rcx, r13
call fcn.140001a50
jmp 0x1400a540c
mov rax, qword [rbx]
mov rcx, qword [rcx + 0x3f0]
cmp rax, rcx
jne 0x1400a51b6
mov r8, qword [rbx + 0x18]
cmp r8, 0xffffffffffffffff
je 0x1400a53ff
xor r9d, r9d
mov edx, 0x419
call qword [sym.imp.USER32.dll_SendMessageW]
mov edx, eax
mov rcx, rsi
call fcn.1400c3f20
jmp 0x1400a5407
mov rcx, qword [rsi + 0x3f8]
cmp rax, rcx
jne 0x1400a5386
mov r8, qword [rbx + 0x18]
cmp r8, 0xffffffffffffffff
je 0x1400a53ff
xor r9d, r9d
mov edx, 0x419
call qword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x1400a5407
movsxd r8, eax
lea r9, [rbp + 0x48]
mov edx, 0x417
mov rcx, qword [rsi + 0x3f8]
call qword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x1400a5407
xor r12d, r12d
mov qword [rsp + 0x48], r12
mov rcx, qword [rbp + 0x58]
test rcx, rcx
je 0x1400a5407
lea rdx, [rsp + 0x48]
call fcn.140094590
test eax, eax
js 0x1400a5407
lea r13, [rbx + 0x28]
mov rdx, r13
mov rcx, qword [rsi + 0x3f8]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov qword [rsp + 0x60], r12
lea ecx, [r12 + 0x18]
call fcn.14004b164
mov rdi, rax
test rax, rax
je 0x1400a5354
mov qword [rsp + 0x58], rax
mov qword [rax], rax
mov qword [rax + 8], rax
lea rdx, [rsp + 0x58]
lea rcx, [rbp + 0x30]
call fcn.14000b2c0
mov r9, rax
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsi + 0x3f8]
lea rcx, [rbp - 0x30]
call fcn.1400e6550
nop
mov dword [rsp + 0x44], 3
mov rbx, qword [rsi + 0x70]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x58]
call fcn.14000a680
mov qword [rbp - 0x70], rbx
mov byte [rbp - 0x40], r12b
mov dword [rbp - 0x68], r12d
lea ecx, [r12 + 0x10]
call qword [sym.imp.USER32.dll_GetKeyState]
movzx r11d, ax
and r11d, 0x80
cmp qword [rbp - 0x18], r12
je 0x1400a52ff
mov dword [rsp + 0x30], r11d
mov dword [rsp + 0x28], r12d
lea rax, [rsp + 0x44]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x70]
mov r8, r13
lea rdx, [rsi + 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400e6ad0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
nop
lea rcx, [rbp - 0x58]
call fcn.14000a6f0
mov rcx, qword [rbp - 0x58]
call fcn.14004b088
nop
lea rcx, [rbp - 0x30]
call fcn.1400e6480
nop
mov rcx, qword [rdi]
mov qword [rdi], rdi
mov qword [rdi + 8], rdi
cmp rcx, rdi
je 0x1400a5347
mov rbx, qword [rcx]
call fcn.14004b088
mov rcx, rbx
cmp rbx, rdi
jne 0x1400a5337
mov rcx, rdi
call fcn.14004b088
jmp 0x1400a5407
mov qword [rsp + 0x50], r12
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x70]
call fcn.14004b2d4
lea r11, vtable.std::bad_alloc.0
mov qword [rsp + 0x70], r11
lea rdx, [0x140132320]
lea rcx, [rsp + 0x70]
call fcn.14004d894
int3
mov rcx, qword [rsi + 0x400]
cmp rax, rcx
jne 0x1400a53ff
mov r8, qword [rbx + 0x18]
cmp r8, 0xffffffffffffffff
je 0x1400a53f5
xor r9d, r9d
mov edx, 0x419
call qword [sym.imp.USER32.dll_SendMessageW]
mov dword [rsi + 0xf270], eax
mov rcx, qword [rsi + 0x400]
call qword [sym.imp.USER32.dll_SetFocus]
call qword [sym.imp.USER32.dll_GetMessagePos]
movsx r8d, ax
shr eax, 0x10
movsx r9d, ax
xor r12d, r12d
mov qword [rsp + 0x30], r12
mov rax, qword [rsi + 0x78]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r12d
xor edx, edx
mov rcx, qword [rsi + 0x1320]
call qword [sym.imp.USER32.dll_TrackPopupMenu]
jmp 0x1400a5407
mov rcx, rsi
call fcn.1400e0e20
jmp 0x1400a5407
mov rcx, rsi
call fcn.1400c3f90
mov eax, 1
mov rcx, qword [rbp + 0x68]
xor rcx, rsp
call fcn.14004ae00
add rsp, 0x178
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret