Function at 0x140011930
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 [0x14012a588]
xor sil, sil
movzx r14d, r9b
movzx r13d, r8w
movzx edi, dl
mov rax, rcx
mov r12d, 1
test rbx, rbx
je 0x140011a66
movabs r15, 0xffffffff003c2c17
nop dword [rax + rax]
cmp dword [rbx], r12d
jne 0x140011a59
movzx edx, byte [rbx + 0x5c]
test dl, dl
je 0x1400119cb
mov r8, qword [rax + 0x10]
dec dl
lea rax, [r8 + r15]
cmp rax, 0x66
ja 0x1400119bb
mov ecx, 0xffc3d44d
sub ecx, r8d
jmp 0x1400119c0
mov ecx, reloc.WSOCK32.dll_WSAAsyncSelect
movzx eax, dl
cmp ecx, eax
jle 0x140011a52
test r14b, r14b
je 0x140011a46
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x140011a2d
cmp qword [rax + 0x3a0], 0
je 0x140011a2d
movzx r8d, dil
movzx eax, r13w
movzx edx, byte [r8 + rbx + 0x74]
movzx ecx, byte [rax + rbx + 0x174]
or cl, dl
test cl, 0x20
jne 0x140011a0b
cmp byte [rbx + 0x62], 0
je 0x140011a2d
test dl, 0x40
jne 0x140011a2d
mov rcx, qword [0x140129a10]
movzx eax, r13w
mov edx, 0x41e
shl eax, 0x10
movsxd r9, eax
or r9, r8
mov r8, rbx
call qword [sym.imp.USER32.dll_PostMessageW]
movzx eax, r13w
test byte [rax + rbx + 0x174], 0x80
jne 0x140011a84
movzx eax, dil
test byte [rax + rbx + 0x74], 0x80
jne 0x140011a74
cmp byte [rbx + 0x5f], 0
movzx esi, sil
cmovne esi, r12d
mov rax, qword [rbp + 0x130]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x140011990
test r14b, r14b
je 0x140011a97
movzx eax, r12b
jmp 0x140011f7c
movzx eax, dil
and byte [rax + rbx + 0x74], 0x7f
xor al, al
jmp 0x140011f7c
movzx eax, r13w
and byte [rax + rbx + 0x174], 0x7f
xor al, al
jmp 0x140011f7c
movzx eax, byte [0x140129a0d]
movzx r13d, r12b
test al, 0xcf
je 0x140011ab6
test sil, sil
jne 0x140011ab6
test al, 0xc
je 0x140011ab3
test al, 3
jne 0x140011ab6
xor r13b, r13b
call qword [sym.imp.USER32.dll_GetForegroundWindow]
xor ebx, ebx
mov r15, rax
mov esi, ebx
test rax, rax
je 0x140011aff
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 esi, eax
call qword [sym.imp.USER32.dll_GetGUIThreadInfo]
test eax, eax
je 0x140011aff
mov rcx, qword [rbp + 0x70]
test rcx, rcx
je 0x140011aff
xor edx, edx
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
mov ecx, esi
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
cmp qword [0x14012c338], r15
mov qword [rsp + 0x50], rax
je 0x140011b54
lea rdx, [rbp + 0xb0]
mov r8d, 0x1c
mov rcx, r15
mov qword [0x14012c338], r15
call qword [sym.imp.USER32.dll_GetClassNameW]
lea rdx, str.ApplicationFrameWindow
lea rcx, [rbp + 0xb0]
call fcn.1400d568c
test eax, eax
sete sil
mov byte [0x14012c334], sil
jmp 0x140011b5b
movzx esi, byte [0x14012c334]
xor eax, eax
lea rcx, [rsp + 0x60]
lea rdx, [0x140129a60]
mov r8d, 0x100
mov word [rsp + 0x40], bx
mov dword [rsp + 0x42], eax
call fcn.1400d6960
movzx r14d, byte [0x14012c32c]
test r14b, r14b
je 0x140011c35
test sil, sil
je 0x140011c35
cmp dil, 0xe7
je 0x140011c35
movzx eax, byte [0x14012c332]
neg al
movzx eax, byte [0x14012c333]
sbb dl, dl
and dl, 0x20
neg al
sbb cl, cl
and cl, 9
or dl, cl
lea rcx, [rsp + 0x60]
call fcn.1400222c0
movzx edx, word [0x14012c330]
movzx ecx, r14b
mov r14, qword [rsp + 0x50]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
test eax, eax
jle 0x140011c2d
movzx edx, word [0x14012c330]
movzx ecx, byte [0x14012c32c]
mov qword [rsp + 0x30], r14
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 [0x14012c32c], bl
jmp 0x140011c3a
mov r14, qword [rsp + 0x50]
movzx edx, byte [0x140129a0d]
lea rcx, [rsp + 0x60]
call fcn.1400222c0
mov ecx, reloc.OLEAUT32.dll_SafeArrayLock
call qword [sym.imp.USER32.dll_GetKeyState]
test r12b, al
je 0x140011c62
or byte [rsp + 0x74], r12b
jmp 0x140011c67
and byte [rsp + 0x74], 0xfe
mov rsi, qword [rbp + 0x130]
cmp dil, 0xe7
jne 0x140011c82
movzx eax, word [rsi + 4]
mov word [rsp + 0x40], ax
jmp 0x140011d0b
test r13b, r13b
je 0x140011ce7
cmp dword [0x140129bbc], ebx
mov edx, dword [rsi + 4]
mov eax, ebx
setne al
mov qword [rsp + 0x30], r14
lea r9, [rsp + 0x40]
mov dword [rsp + 0x28], eax
lea r8, [rsp + 0x60]
movzx ecx, dil
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
test byte [0x140129a0d], 3
mov r12d, eax
jne 0x140011cea
cmp word [rsp + 0x40], 0xd
mov eax, 0xa
jne 0x140011cd8
mov word [rsp + 0x40], ax
cmp word [rsp + 0x42], 0xd
jne 0x140011cea
mov word [rsp + 0x42], ax
jmp 0x140011cea
mov r12d, ebx
cmp dil, 8
jne 0x140011d0b
test r12d, r12d
je 0x140011d0b
cmp byte [0x14012c334], bl
je 0x140011d08
mov r12d, ebx
mov byte [0x14012c32c], bl
jmp 0x140011d0b
dec r12d
movzx r13d, word [rbp + 0x140]
lea r9, [rsp + 0x40]
movzx edx, dil
mov rcx, rsi
movzx r8d, r13w
mov dword [rsp + 0x20], r12d
call fcn.140012430
test al, al
je 0x140011a90
cmp byte [0x14012c32c], bl
je 0x140011d47
test r12d, r12d
jle 0x140011d47
mov sil, 1
jmp 0x140011d4a
xor sil, sil
test r12d, r12d
jns 0x140011dc0
movzx eax, byte [0x140129a0d]
mov byte [0x14012c32c], dil
mov word [0x14012c330], r13w
test al, 0x30
setne byte [0x14012c332]
test al, 3
je 0x140011d7d
mov byte [0x14012c333], 1
test al, 0xc
jne 0x140011d83
mov byte [0x14012c333], bl
mov rax, qword [rbp + 0x130]
cmp dword [0x140129bbc], ebx
mov qword [rsp + 0x30], r14
mov edx, dword [rax + 4]
setne bl
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
movzx ecx, dil
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
jmp 0x140011f7a
cmp dword [0x14012a630], ebx
je 0x140011e7a
cmp byte [rbp + 0x150], bl
jne 0x140011e7a
cmp dil, 8
je 0x140011e01
cmp dil, 0x20
jbe 0x140011e28
cmp dil, 0x28
ja 0x140011e28
cmp dword [0x14012834c], ebx
je 0x140011e28
mov word [0x140128610], bx
mov dword [0x14012834c], ebx
jmp 0x140011e28
cmp byte [0x140129a0d], bl
jne 0x140011e28
mov eax, dword [0x14012834c]
test eax, eax
je 0x140011e28
dec eax
lea rcx, [0x140128610]
mov dword [0x14012834c], eax
cdqe
mov word [rcx + rax*2], bx
mov r13, qword [rbp + 0x130]
test r12d, r12d
jle 0x140011e81
mov rax, qword [rbp + 0x168]
lea rdx, [rsp + 0x40]
mov r9, r15
mov qword [rsp + 0x30], rax
mov rax, qword [rbp + 0x160]
mov r8d, r12d
mov qword [rsp + 0x28], rax
mov rax, qword [rbp + 0x158]
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.140011fa0
test al, al
jne 0x140011e81
mov byte [0x14012c32c], bl
jmp 0x140011f7c
mov r13, qword [rbp + 0x130]
test sil, sil
je 0x140011f7a
cmp dword [0x140129bbc], ebx
mov edx, dword [r13 + 4]
mov eax, ebx
setne al
mov qword [rsp + 0x30], r14
movzx esi, dil
mov dword [rsp + 0x28], eax
lea r9, [rsp + 0x48]
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 0x140011ef8
cmp dword [0x140129bbc], ebx
mov edx, ebx
mov qword [rsp + 0x30], r14
setne dl
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x60]
mov dword [rsp + 0x28], edx
mov edx, dword [r13 + 4]
mov ecx, esi
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
cmp edi, r12d
jne 0x140011f09
movzx eax, word [rsp + 0x48]
cmp word [rsp + 0x40], ax
je 0x140011f7a
lea rcx, [rsp + 0x60]
xor edx, edx
mov r8d, 0x100
call fcn.1400dd1c0
movzx r11d, byte [0x14012c332]
movzx eax, byte [0x14012c333]
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.1400222c0
movzx edx, word [0x14012c330]
movzx ecx, byte [0x14012c32c]
mov qword [rsp + 0x30], r14
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x60]
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov byte [0x14012c32c], 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