Function at 0x140004a00
Capabilities:
Check mutex on windows

Disassembly:
push rbp
lea rbp, [rsp - 0x3f0]
sub rsp, 0x4f0
mov rax, qword [0x1400d6780]
xor rax, rsp
mov qword [rbp + 0x3e0], rax
lea r8, str.KeyWebHookMutex
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140004a69
mov r9d, reloc.WS2_32.dll_recv
lea r8, str.KeyWebHook_Error
lea rdx, str.Another_instance_is_already_running.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov eax, 1
jmp 0x140004dbc
mov qword [rsp + 0x500], rbx
mov qword [rsp + 0x508], rdi
call qword [sym.imp.KERNEL32.dll_FreeConsole]
xorps xmm0, xmm0
lea rax, [0x1400026b0]
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x370], xmm0
xor edi, edi
movdqa xmmword [rbp + 0x380], xmm1
xor ecx, ecx
mov qword [rbp + 0x358], rax
mov qword [rbp + 0x350], rdi
mov qword [rbp + 0x360], rdi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp + 0x368], rax
lea rcx, [rbp + 0x350]
lea rax, str.KeyWebHookClass
mov qword [rbp + 0x390], rax
call qword [sym.imp.USER32.dll_RegisterClassW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdx, qword [rbp + 0x390]
lea r8, str.KeyWebHook
mov qword [rsp + 0x58], rdi
xor r9d, r9d
mov qword [rsp + 0x50], rax
xor ecx, ecx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], 0x80000000
mov dword [rsp + 0x20], 0x80000000
call qword [sym.imp.USER32.dll_CreateWindowExW]
xor edx, edx
lea rcx, [rbp - 0x80]
mov r8d, 0x3d0
mov rbx, rax
call fcn.1400a8170
lea rdx, [0x1400d99b0]
lea rcx, [rbp - 0x80]
lea r8d, [rdi + 7]
nop dword [rax]
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rdx - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rdx - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rdx - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rdx - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rdx - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rdx - 0x20], xmm0
movups xmmword [rdx - 0x10], xmm1
sub r8, 1
jne 0x140004b50
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rdx], xmm0
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rdx + 0x10], xmm1
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rdx + 0x20], xmm0
movups xmm0, xmmword [rcx + 0x40]
xor ecx, ecx
movups xmmword [rdx + 0x30], xmm1
movups xmmword [rdx + 0x40], xmm0
mov edx, 0x7f00
mov dword [0x1400d99b0], 0x3d0
mov qword [0x1400d99b8], rbx
mov dword [0x1400d99c0], 1
mov dword [0x1400d99c4], 7
call qword [sym.imp.USER32.dll_LoadIconW]
lea r8, str.KeyWebHook
mov dword [0x1400d99c8], 0x401
mov edx, 0x80
mov qword [0x1400d99d0], rax
lea rcx, [0x1400d99d8]
call fcn.140086178
lea rdx, [0x1400d99b0]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
lea rcx, [rsp + 0x60]
call fcn.140002d20
lea rcx, [0x1400d9d88]
mov rbx, rax
cmp rcx, rax
je 0x140004c7c
call fcn.140008500
mov rcx, qword [rbx]
mov qword [0x1400d9d88], rcx
mov rcx, qword [rbx + 8]
mov qword [0x1400d9d90], rcx
mov rcx, qword [rbx + 0x10]
mov qword [0x1400d9d98], rcx
mov qword [rbx], rdi
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], rdi
lea rcx, [rsp + 0x60]
call fcn.140008500
mov ecx, 3
call fcn.14001b8a0
mov ecx, 8
call fcn.14007b0a8
lea rcx, [0x140005ab0]
mov r9, rax
lea r8, [0x1400195c0]
xor edx, edx
mov qword [rax], rcx
lea rcx, [rbp + 0x3a8]
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov dword [rsp + 0x20], edi
call fcn.140086090
mov rbx, qword [rsp + 0x500]
mov qword [rbp + 0x3a0], rax
test rax, rax
je 0x140004dda
lea rcx, [0x140004e10]
call fcn.14007b30c
xor r9d, r9d
lea rcx, [rbp + 0x3b0]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
je 0x140004d43
nop dword [rax]
nop dword [rax + rax]
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp + 0x3b0]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rbp + 0x3b0]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jne 0x140004d10
mov eax, 1
xchg byte [0x1400d9d80], al
cmp dword [rbp + 0x3a8], edi
je 0x140004deb
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [rbp + 0x3a8], eax
je 0x140004df6
movaps xmm0, xmmword [rbp + 0x3a0]
lea rcx, [rsp + 0x60]
xor edx, edx
movdqa xmmword [rsp + 0x60], xmm0
call fcn.14007a99c
test eax, eax
jne 0x140004e01
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x3a0], xmm0
call fcn.14001b840
lea rdx, [0x1400d99b0]
mov ecx, 2
call qword [sym.imp.SHELL32.dll_Shell_NotifyIconW]
cmp dword [rbp + 0x3a8], edi
jne 0x140004dd4
mov rdi, qword [rsp + 0x508]
xor eax, eax
mov rcx, qword [rbp + 0x3e0]
xor rcx, rsp
call fcn.14007b080
add rsp, 0x4f0
pop rbp
ret
call fcn.1400874dc
int3
mov ecx, 6
mov dword [rbp + 0x3a8], edi
call fcn.140079a78
int3
mov ecx, 1
call fcn.140079a78
int3
mov ecx, 5
call fcn.140079a78
int3
mov ecx, 2
call fcn.140079a78
int3