Function at 0x1400118c0
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x10], rbx
mov word [rsp + 0x18], r8w
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov rbx, qword [0x14012b630]
xor dil, dil
movzx r13d, r9b
movzx r12d, r8w
movzx esi, dl
mov rax, rcx
mov r14d, 1
test rbx, rbx
je 0x1400119f6
movabs r15, 0xffffffff003c2c17
nop dword [rax + rax]
cmp dword [rbx], r14d
jne 0x1400119e9
movzx edx, byte [rbx + 0x5c]
test dl, dl
je 0x14001195b
mov r8, qword [rax + 0x10]
dec dl
lea rax, [r8 + r15]
cmp rax, 0x66
ja 0x14001194b
mov ecx, 0xffc3d44d
sub ecx, r8d
jmp 0x140011950
mov ecx, reloc.WSOCK32.dll_WSAAsyncSelect
movzx eax, dl
cmp ecx, eax
jle 0x1400119e2
test r13b, r13b
je 0x1400119d6
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x1400119bd
cmp qword [rax + 0x3a0], 0
je 0x1400119bd
movzx r8d, sil
movzx eax, r12w
movzx edx, byte [r8 + rbx + 0x74]
movzx ecx, byte [rax + rbx + 0x174]
or cl, dl
test cl, 0x20
jne 0x14001199b
cmp byte [rbx + 0x62], 0
je 0x1400119bd
test dl, 0x40
jne 0x1400119bd
mov rcx, qword [0x14012aab8]
movzx eax, r12w
mov edx, 0x41e
shl eax, 0x10
movsxd r9, eax
or r9, r8
mov r8, rbx
call qword [sym.imp.USER32.dll_PostMessageW]
movzx eax, r12w
test byte [rax + rbx + 0x174], 0x80
jne 0x140011a14
movzx eax, sil
test byte [rax + rbx + 0x74], 0x80
jne 0x140011a04
cmp byte [rbx + 0x5f], 0
movzx edi, dil
cmovne edi, r14d
mov rax, qword [rbp + 0x130]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x140011920
test r13b, r13b
je 0x140011a27
movzx eax, r14b
jmp 0x140011f33
movzx eax, sil
and byte [rax + rbx + 0x74], 0x7f
xor al, al
jmp 0x140011f33
movzx eax, r12w
and byte [rax + rbx + 0x174], 0x7f
xor al, al
jmp 0x140011f33
movzx eax, byte [0x14012aab1]
movzx r13d, r14b
test al, 0xcf
je 0x140011a46
test dil, dil
jne 0x140011a46
test al, 0xc
je 0x140011a43
test al, 3
jne 0x140011a46
xor r13b, r13b
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor ebx, ebx
mov r15, rax
mov edi, ebx
test rax, rax
je 0x140011a8f
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
lea rdx, [rbp + 0x60]
mov dword [rbp + 0x60], 0x48
mov ecx, eax
mov edi, eax
call qword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x140011a8f
mov rcx, qword [rbp + 0x70]
test rcx, rcx
je 0x140011a8f
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov edi, eax
mov ecx, edi
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
cmp qword [0x14012d3e8], r15
mov qword [rsp + 0x48], rax
je 0x140011ae4
lea rdx, [rbp + 0xb0]
mov r8d, 0x1c
mov rcx, r15
mov qword [0x14012d3e8], r15
call qword [sym.imp.USER32.dll_GetClassNameW]
lea rdx, str.ApplicationFrameWindow
lea rcx, [rbp + 0xb0]
call fcn.1400d6a7c
test eax, eax
sete dil
mov byte [0x14012d3e4], dil
jmp 0x140011aeb
movzx edi, byte [0x14012d3e4]
xor eax, eax
lea rcx, [rsp + 0x60]
lea rdx, [0x14012ab00]
mov r8d, 0x100
mov word [rsp + 0x40], bx
mov dword [rsp + 0x42], eax
call fcn.1400d7a30
movzx r12d, byte [0x14012d3dc]
test r12b, r12b
je 0x140011bc5
test dil, dil
je 0x140011bc5
cmp sil, 0xe7
je 0x140011bc5
movzx eax, byte [0x14012d3e2]
neg al
movzx eax, byte [0x14012d3e3]
sbb dl, dl
and dl, 0x20
neg al
sbb cl, cl
and cl, 9
or dl, cl
lea rcx, [rsp + 0x60]
call fcn.1400224b0
mov rdi, qword [rsp + 0x48]
movzx edx, word [0x14012d3e0]
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
movzx ecx, r12b
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
test eax, eax
jle 0x140011bbd
movzx edx, word [0x14012d3e0]
movzx ecx, byte [0x14012d3dc]
mov qword [rsp + 0x30], rdi
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov byte [0x14012d3dc], bl
jmp 0x140011bca
mov rdi, qword [rsp + 0x48]
movzx edx, byte [0x14012aab1]
lea rcx, [rsp + 0x60]
call fcn.1400224b0
mov ecx, reloc.OLEAUT32.dll_SafeArrayLock
call qword [sym.imp.USER32.dll_GetKeyState]
test r14b, al
je 0x140011bf2
or byte [rsp + 0x74], r14b
jmp 0x140011bf7
and byte [rsp + 0x74], 0xfe
mov r12d, 0xa
cmp sil, 0xe7
jne 0x140011c18
mov rdi, qword [rbp + 0x130]
movzx eax, word [rdi + 4]
mov word [rsp + 0x40], ax
jmp 0x140011cac
test r13b, r13b
je 0x140011c81
cmp dword [0x14012ac64], ebx
mov qword [rsp + 0x30], rdi
mov rdi, qword [rbp + 0x130]
mov edx, dword [rdi + 4]
mov eax, ebx
setne al
mov dword [rsp + 0x28], eax
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
movzx ecx, sil
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
test byte [0x14012aab1], 3
mov r14d, eax
jne 0x140011c8b
cmp word [rsp + 0x40], 0xd
jne 0x140011c71
mov word [rsp + 0x40], r12w
cmp word [rsp + 0x42], 0xd
jne 0x140011c8b
mov word [rsp + 0x42], r12w
jmp 0x140011c8b
mov rdi, qword [rbp + 0x130]
mov r14d, ebx
cmp sil, 8
jne 0x140011cac
test r14d, r14d
je 0x140011cac
cmp byte [0x14012d3e4], bl
je 0x140011ca9
mov r14d, ebx
mov byte [0x14012d3dc], bl
jmp 0x140011cac
dec r14d
movzx r13d, word [rbp + 0x140]
lea r9, [rsp + 0x40]
movzx edx, sil
mov rcx, rdi
movzx r8d, r13w
mov dword [rsp + 0x20], r14d
call fcn.1400123e0
test al, al
je 0x140011a20
cmp byte [0x14012d3dc], bl
je 0x140011ce8
test r14d, r14d
jle 0x140011ce8
mov dil, 1
jmp 0x140011ceb
xor dil, dil
test r14d, r14d
jns 0x140011d66
movzx eax, byte [0x14012aab1]
mov byte [0x14012d3dc], sil
mov word [0x14012d3e0], r13w
test al, 0x30
setne byte [0x14012d3e2]
test al, 3
je 0x140011d1e
mov byte [0x14012d3e3], 1
test al, 0xc
jne 0x140011d24
mov byte [0x14012d3e3], bl
mov rax, qword [rsp + 0x48]
cmp dword [0x14012ac64], ebx
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x130]
setne bl
mov edx, dword [rax + 4]
lea r8, [rsp + 0x60]
movzx ecx, sil
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
jmp 0x140011f31
cmp dword [0x14012b6dc], ebx
je 0x140011e20
cmp byte [rbp + 0x150], bl
jne 0x140011e20
cmp sil, 8
je 0x140011da7
cmp sil, 0x20
jbe 0x140011dce
cmp sil, 0x28
ja 0x140011dce
cmp dword [0x1401293ec], ebx
je 0x140011dce
mov word [0x1401296b0], bx
mov dword [0x1401293ec], ebx
jmp 0x140011dce
cmp byte [0x14012aab1], bl
jne 0x140011dce
mov eax, dword [0x1401293ec]
test eax, eax
je 0x140011dce
dec eax
lea rcx, [0x1401296b0]
mov dword [0x1401293ec], eax
cdqe
mov word [rcx + rax*2], bx
test r14d, r14d
jle 0x140011e20
mov rax, qword [rbp + 0x168]
mov r9, r15
mov r15, qword [rbp + 0x130]
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x160]
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x158]
mov r8d, r14d
mov rcx, r15
mov qword [rsp + 0x20], rax
call fcn.140011f50
test al, al
jne 0x140011e27
mov byte [0x14012d3dc], bl
jmp 0x140011f33
mov r15, qword [rbp + 0x130]
test dil, dil
je 0x140011f31
cmp dword [0x14012ac64], ebx
mov r13, qword [rsp + 0x48]
mov edx, dword [r15 + 4]
mov eax, ebx
setne al
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], eax
movzx esi, sil
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x60]
mov ecx, esi
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov edi, eax
test eax, eax
jns 0x140011ea3
cmp dword [0x14012ac64], ebx
mov edx, ebx
mov qword [rsp + 0x30], r13
setne dl
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x60]
mov dword [rsp + 0x28], edx
mov edx, dword [r15 + 4]
mov ecx, esi
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
cmp edi, r14d
jne 0x140011ec0
mov eax, dword [rsp + 0x50]
cmp ax, 0xd
je 0x140011eb6
movzx r12d, ax
movzx eax, word [rsp + 0x40]
cmp eax, r12d
je 0x140011f31
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x100
call fcn.1400ddb90
movzx r11d, byte [0x14012d3e2]
movzx eax, byte [0x14012d3e3]
neg r11b
sbb dl, dl
and dl, 0x20
neg al
sbb cl, cl
and cl, 9
or dl, cl
lea rcx, [rsp + 0x60]
call fcn.1400224b0
movzx edx, word [0x14012d3e0]
movzx ecx, byte [0x14012d3dc]
mov qword [rsp + 0x30], r13
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x60]
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov byte [0x14012d3dc], bl
mov al, 1
mov rbx, qword [rsp + 0x238]
add rsp, 0x1f0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret