Function at 0x140042f20
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0x100
mov rax, qword [0x14012a210]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rbx, rdx
mov r15, rcx
call fcn.140004080
mov rcx, rax
test rax, rax
je 0x14004345e
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x29], rax
xorps xmm0, xmm0
movups xmmword [rbp - 1], xmm0
movups xmmword [rbp + 0xf], xmm0
movups xmmword [rbp + 0x1f], xmm0
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1400061c0
mov rdx, rax
lea rcx, [rbp - 1]
call fcn.140004310
nop
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 1]
call fcn.1400045c0
mov rdi, qword [rbp - 0x29]
test eax, eax
je 0x1400433f1
cmp dword [rdi - 8], 1
jle 0x140042fc3
mov edx, dword [rdi - 0x10]
lea rcx, [rbp - 0x29]
call fcn.140006a10
mov rdi, qword [rbp - 0x29]
mov r8, rdi
lea rdx, str.KbdMouseHandler::PerformAction._Got_command_s.
mov rcx, qword [0x140132990]
call fcn.140011f10
lea rdx, str.lockKbdM
mov rcx, rdi
call fcn.1400bc088
test eax, eax
jne 0x14004318f
lea rax, [r15 + 0x38]
xor esi, esi
cmp dword [rax], esi
jne 0x140043017
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], esi
mov r9, r15
lea r8, [0x140043470]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
cmp qword [r15 + 0x30], rsi
je 0x140043179
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x79], xmm0
movups xmmword [rbp - 0x69], xmm0
movups xmmword [rbp - 0x59], xmm0
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x79], rsi
mov qword [rbp - 0x71], rsi
lea ecx, [rax + 0x50]
call fcn.1400a5718
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbp - 0x79], rax
lea r14, vtable.FarCriticalSection.0
mov qword [rbp - 0x69], r14
lea rcx, [rbp - 0x61]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [rbp - 0x39], sil
lea rcx, [rbp - 0x21]
call qword [sym.imp.HID.DLL_HidD_GetHidGuid]
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x21]
call fcn.140034450
lea rcx, [rbp - 0x61]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 0x39], 1
mov rax, qword [rbp - 0x79]
mov rbx, qword [rax]
cmp rbx, rax
je 0x140043115
nop dword [rax]
lea rdx, [rbx + 0x20]
lea r8, [rbx + 0x40]
lea rcx, [rbp - 0x79]
call fcn.140033970
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x1400430ed
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1400430e8
cmp rbx, qword [rax + 0x10]
jne 0x1400430e8
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1400430d5
mov rbx, rax
jmp 0x14004310f
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x14004310f
nop dword [rax]
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x140043100
cmp rbx, qword [rbp - 0x79]
jne 0x1400430b0
lea rcx, [rbp - 0x61]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov byte [rbp - 0x39], 0
mov rbx, qword [rbp - 0x79]
mov r8, qword [rbx + 8]
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x79]
call fcn.140033fe0
mov qword [rbx + 8], rbx
mov qword [rbx], rbx
mov qword [rbx + 0x10], rbx
mov qword [rbp - 0x71], rsi
mov qword [rbp - 0x69], r14
lea rcx, [rbp - 0x61]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov r8, qword [rbp - 0x79]
mov r8, qword [r8 + 8]
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x79]
call fcn.140033fe0
mov edx, 0x50
mov rcx, qword [rbp - 0x79]
call fcn.1400a59a4
lea rcx, [r15 + 8]
mov r8d, 0x19
lea rdx, str._response_:_kbdMLocked_
jmp 0x1400433ec
lea rdx, str.unlockKbdM
mov rcx, rdi
call fcn.1400bc088
test eax, eax
jne 0x14004333f
mov ecx, dword [r15 + 0x38]
xor esi, esi
test ecx, ecx
je 0x1400431c3
xor r9d, r9d
xor r8d, r8d
lea edx, [rax + 0x12]
call qword [sym.imp.USER32.dll_PostThreadMessageW]
mov dword [r15 + 0x38], esi
cmp qword [r15 + 0x30], rsi
je 0x140043329
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x79], xmm0
movups xmmword [rbp - 0x69], xmm0
movups xmmword [rbp - 0x59], xmm0
movups xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x79], rsi
mov qword [rbp - 0x71], rsi
lea ecx, [rax + 0x50]
call fcn.1400a5718
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov word [rax + 0x18], 0x101
mov qword [rbp - 0x79], rax
lea r14, vtable.FarCriticalSection.0
mov qword [rbp - 0x69], r14
lea rcx, [rbp - 0x61]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [rbp - 0x39], sil
lea rcx, [rbp - 0x21]
call qword [sym.imp.HID.DLL_HidD_GetHidGuid]
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x21]
call fcn.140034450
lea rcx, [rbp - 0x61]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [rbp - 0x39], 0
mov rax, qword [rbp - 0x79]
mov rbx, qword [rax]
cmp rbx, rax
je 0x1400432c5
nop word [rax + rax]
lea rdx, [rbx + 0x20]
lea r8, [rbx + 0x40]
lea rcx, [rbp - 0x79]
call fcn.140033970
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x14004329d
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x140043298
cmp rbx, qword [rax + 0x10]
jne 0x140043298
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x140043285
mov rbx, rax
jmp 0x1400432bf
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x1400432bf
nop dword [rax]
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x1400432b0
cmp rbx, qword [rbp - 0x79]
jne 0x140043260
lea rcx, [rbp - 0x61]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
nop
mov byte [rbp - 0x39], 0
mov rbx, qword [rbp - 0x79]
mov r8, qword [rbx + 8]
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x79]
call fcn.140033fe0
mov qword [rbx + 8], rbx
mov qword [rbx], rbx
mov qword [rbx + 0x10], rbx
mov qword [rbp - 0x71], rsi
mov qword [rbp - 0x69], r14
lea rcx, [rbp - 0x61]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov r8, qword [rbp - 0x79]
mov r8, qword [r8 + 8]
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x79]
call fcn.140033fe0
mov edx, 0x50
mov rcx, qword [rbp - 0x79]
call fcn.1400a59a4
lea rcx, [r15 + 8]
mov r8d, 0x1b
lea rdx, str._response_:_kbdMUnlocked_
jmp 0x1400433ec
lea rdx, str.simulateCAD
mov rcx, rdi
call fcn.1400bc088
test eax, eax
jne 0x1400433f1
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
je 0x1400433b2
mov r8d, 0xf01ff
lea rdx, str.FIStudentSvc
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x1400433b2
lea r8, [rbp - 0x21]
mov edx, 0xc9
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400433c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
test rbx, rbx
je 0x1400433c9
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea rcx, [r15 + 8]
test r14d, r14d
jne 0x1400433df
lea r8d, [r14 + 0x21]
lea rdx, str._response_:_simulateCADSuccess_
jmp 0x1400433ec
mov r8d, 0x20
lea rdx, str._response_:_simulateCADFailed_
call fcn.140006590
lea r8, [r15 + 8]
cmp qword [r8 + 0x18], 0x10
jb 0x1400433ff
mov r8, qword [r8]
lea rdx, str.KbdMouseHandler::PerformAction._END_bRetVal_1_and_m_strResponseJSON__S.
mov rcx, qword [0x140132990]
call fcn.140011f10
nop
lea rcx, [rbp + 7]
call fcn.140063a70
nop
lea rdx, [rdi - 0x18]
mov eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140043439
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov al, 1
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400a5460
mov rbx, qword [rsp + 0x140]
add rsp, 0x100
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140003f50
int3