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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 8], rcx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
mov rbx, qword [0x140134220]
xor dil, dil
movzx r15d, r8w
movzx r12d, r9b
movzx r14d, dl
mov rax, rcx
mov esi, 1
test rbx, rbx
je 0x140011e37
movabs r13, 0xffffffff003c2c17
nop dword [rax]
cmp dword [rbx], esi
jne 0x140011e2a
movzx r9d, byte [rbx + 0x5c]
test r9b, r9b
je 0x140011d9f
mov rax, qword [rax + 0x10]
dec r9b
mov r8d, 0xffc3d44d
mov ecx, reloc.WSOCK32.dll_WSAAsyncSelect
sub r8d, eax
lea rdx, [rax + r13]
movzx eax, r9b
cmp rdx, 0x66
cmovbe ecx, r8d
cmp ecx, eax
jle 0x140011e23
test r12b, r12b
je 0x140011e18
mov rax, qword [rbx + 0x10]
test rax, rax
je 0x140011df9
cmp qword [rax + 0x3a0], 0
je 0x140011df9
movzx edx, byte [r14 + rbx + 0x74]
movzx ecx, dl
or cl, byte [r15 + rbx + 0x174]
test cl, 0x20
jne 0x140011dd8
cmp byte [rbx + 0x62], 0
je 0x140011df9
test dl, 0x40
jne 0x140011df9
mov rcx, qword [0x140134240]
mov eax, r15d
shl eax, 0x10
mov r8, rbx
movsxd r9, eax
mov edx, 0x41e
or r9, r14
call qword [sym.imp.USER32.dll_PostMessageW]
movzx eax, byte [r15 + rbx + 0x174]
test al, al
js 0x140011f12
movzx eax, byte [r14 + rbx + 0x74]
test al, al
js 0x140011f04
cmp byte [rbx + 0x5f], 0
movzx edi, dil
cmovne edi, esi
mov rax, qword [rbp + 0x120]
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x140011d60
test r12b, r12b
jne 0x140012508
movzx eax, byte [0x1401343f4]
xor ebx, ebx
mov r12d, esi
test al, 0xcf
je 0x140011e65
test dil, dil
jne 0x140011e65
test al, 0xc
setne cl
test al, 3
setne al
test al, cl
cmove r12d, ebx
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov r13, rax
mov edi, ebx
test rax, rax
je 0x140011eac
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 0x140011eac
mov rcx, qword [rbp + 0x70]
test rcx, rcx
je 0x140011eac
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 [0x140137f88], r13
mov rdi, rax
mov qword [rsp + 0x50], rax
je 0x140011f23
mov r8d, 0x1c
mov qword [0x140137f88], r13
lea rdx, [rbp + 0xb0]
mov rcx, r13
call qword [sym.imp.USER32.dll_GetClassNameW]
lea rdx, str.ApplicationFrameWindow
lea rcx, [rbp + 0xb0]
call fcn.1400d0944
test eax, eax
sete r8b
mov byte [0x140137f81], r8b
jmp 0x140011f2b
and al, 0x7f
mov byte [r14 + rbx + 0x74], al
xor al, al
jmp 0x14001250a
and al, 0x7f
mov byte [r15 + rbx + 0x174], al
xor al, al
jmp 0x14001250a
movzx r8d, byte [0x140137f81]
xor eax, eax
lea rcx, [0x140135010]
mov dword [rsp + 0x44], eax
mov edx, 2
mov word [rsp + 0x48], ax
lea rax, [rsp + 0x60]
nop word [rax + rax]
lea rax, [rax + 0x80]
movups xmm0, xmmword [rcx]
movups xmm1, xmmword [rcx + 0x10]
lea rcx, [rcx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rcx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rcx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rcx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rcx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rcx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rcx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rdx, rsi
jne 0x140011f50
movzx r9d, byte [0x140137f80]
test r9b, r9b
je 0x1400120b5
test r8b, r8b
je 0x1400120b5
cmp r14b, 0xe7
je 0x1400120b5
movzx eax, byte [0x140137f7e]
neg al
mov qword [rsp + 0x30], rdi
movzx eax, byte [0x140137f7f]
sbb r8b, r8b
mov dword [rsp + 0x28], ebx
and r8b, 0x20
mov word [rbp - 0x45], bx
neg al
mov dword [rsp + 0x20], 2
sbb cl, cl
and cl, 9
or r8b, cl
movzx edx, r8b
movzx ecx, r8b
movzx eax, r8b
shl cl, 7
and al, 0xf0
mov byte [rbp + 2], cl
shl al, 3
and dl, 0xe0
mov byte [rbp], al
movzx eax, r8b
and al, 0xfe
shl dl, 2
shl al, 6
mov byte [rbp + 3], al
movzx eax, r8b
and al, 0xfc
mov byte [rbp + 1], dl
shl al, 5
and r8b, 0xf8
mov byte [rbp + 4], al
shl r8b, 4
neg dl
mov byte [rbp + 5], r8b
movzx edx, word [0x140137f7c]
sbb al, al
and al, 0x80
mov byte [rsp + 0x70], al
neg cl
mov ecx, r9d
lea r9, [rsp + 0x44]
sbb al, al
and al, 0x80
neg r8b
mov byte [rsp + 0x71], al
lea r8, [rsp + 0x60]
sbb al, al
and al, 0x80
mov byte [rsp + 0x72], al
call qword [sym.imp.USER32.dll_ToUnicodeEx]
test eax, eax
jle 0x1400120af
movzx edx, word [0x140137f7c]
lea r9, [rsp + 0x44]
movzx ecx, byte [0x140137f80]
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov byte [0x140137f80], bl
movzx ecx, byte [0x1401343f4]
movzx edx, cl
movzx r8d, cl
movzx r9d, cl
movzx r11d, cl
movzx r10d, cl
movzx eax, cl
and dl, 0xf0
and r8b, 0xe0
and r9b, 0xfe
shl dl, 3
and r11b, 0xfc
shl r8b, 2
and r10b, 0xf8
shl r9b, 6
and al, 0xc0
shl r11b, 5
movzx edi, cl
shl r10b, 4
add al, al
shl dil, 7
and cl, 0x80
mov byte [rbp], dl
mov byte [rbp + 1], r8b
mov byte [rbp + 2], dil
mov byte [rbp + 3], r9b
mov byte [rbp + 4], r11b
mov byte [rbp + 5], r10b
mov byte [rbp - 0x45], al
mov byte [rbp - 0x44], cl
test dl, dl
jne 0x140012130
test r8b, r8b
jne 0x140012130
xor al, al
jmp 0x140012132
mov al, 0x80
mov byte [rsp + 0x70], al
test dil, dil
jne 0x140012144
test r9b, r9b
jne 0x140012144
xor al, al
jmp 0x140012146
mov al, 0x80
mov byte [rsp + 0x71], al
test r11b, r11b
jne 0x140012158
test r10b, r10b
jne 0x140012158
xor al, al
jmp 0x14001215a
mov al, 0x80
mov ecx, reloc.OLEAUT32.dll_SafeArrayLock
mov byte [rsp + 0x72], al
call qword [sym.imp.USER32.dll_GetKeyState]
test sil, al
je 0x140012175
or byte [rsp + 0x74], sil
jmp 0x14001217a
and byte [rsp + 0x74], 0xfe
mov edi, 0xa
cmp r14b, 0xe7
jne 0x14001219c
mov r12, qword [rbp + 0x120]
movzx eax, word [r12 + 4]
mov word [rsp + 0x44], ax
jmp 0x140012228
test r12b, r12b
mov r12, qword [rbp + 0x120]
je 0x140012208
mov rdx, qword [rsp + 0x50]
lea r9, [rsp + 0x44]
cmp dword [0x1401341f0], ebx
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], rdx
mov eax, ebx
mov edx, dword [r12 + 4]
setne al
mov dword [rsp + 0x28], eax
mov ecx, r14d
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
test byte [0x1401343f4], 3
mov esi, eax
jne 0x14001220a
cmp word [rsp + 0x44], 0xd
jne 0x1400121f9
mov word [rsp + 0x44], di
cmp word [rsp + 0x46], 0xd
jne 0x14001220a
mov word [rsp + 0x46], di
jmp 0x14001220a
mov esi, ebx
cmp r14b, 8
jne 0x140012228
test esi, esi
je 0x140012228
cmp byte [0x140137f81], bl
je 0x140012226
mov esi, ebx
mov byte [0x140137f80], bl
jmp 0x140012228
dec esi
lea r9, [rsp + 0x44]
mov dword [rsp + 0x20], esi
movzx r8d, r15w
movzx edx, r14b
mov rcx, r12
call fcn.1400129f0
test al, al
je 0x140011f1c
cmp byte [0x140137f80], bl
je 0x14001229c
test esi, esi
jle 0x14001229c
mov byte [rsp + 0x40], 1
cmp dword [0x140135190], ebx
je 0x140012396
cmp byte [rbp + 0x140], bl
jne 0x140012396
lea eax, [r14 - 8]
cmp eax, 0x20
ja case.0x14001229a.9
lea rdx, [0x140000000]
cdqe
movzx eax, byte [rdx + rax + 0x12538]
mov ecx, dword [rdx + rax*4 + 0x1252c]
add rcx, rdx
jmp rcx
mov byte [rsp + 0x40], bl
test esi, esi
jns 0x14001225a
movzx eax, byte [0x1401343f4]
lea r9, [rsp + 0x44]
mov edx, dword [r12 + 4]
lea r8, [rsp + 0x60]
test al, 0x30
mov byte [0x140137f80], r14b
mov word [0x140137f7c], r15w
setne byte [0x140137f7e]
test al, 0xc
setne cl
test al, 3
setne al
and cl, al
mov rax, qword [rsp + 0x50]
cmp dword [0x1401341f0], ebx
mov qword [rsp + 0x30], rax
setne bl
mov byte [0x140137f7f], cl
mov dword [rsp + 0x28], ebx
mov ecx, r14d
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
jmp 0x140012508
cmp dword [0x140134418], ebx
je case.0x14001229a.9
mov word [0x140134420], bx
mov dword [0x140134418], ebx
jmp case.0x14001229a.9
cmp byte [0x1401343f4], bl
jne case.0x14001229a.9
mov eax, dword [0x140134418]
test eax, eax
je case.0x14001229a.9
dec eax
mov dword [0x140134418], eax
cdqe
mov word [rdx + rax*2 + 0x134420], bx
test esi, esi
jle 0x140012396
mov rax, qword [rbp + 0x158]
lea rdx, [rsp + 0x44]
mov qword [rsp + 0x30], rax
mov r9, r13
mov rax, qword [rbp + 0x150]
mov r8d, esi
mov qword [rsp + 0x28], rax
mov rcx, r12
mov rax, qword [rbp + 0x148]
mov qword [rsp + 0x20], rax
call fcn.140012560
test al, al
jne 0x140012396
mov byte [0x140137f80], bl
jmp 0x14001250a
cmp byte [rsp + 0x40], bl
je 0x140012508
cmp dword [0x1401341f0], ebx
lea r9, [rsp + 0x4c]
mov edx, dword [r12 + 4]
lea r8, [rsp + 0x60]
mov eax, ebx
mov r13d, r14d
mov r14, qword [rsp + 0x50]
setne al
mov qword [rsp + 0x30], r14
mov ecx, r13d
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov r15d, eax
test eax, eax
jns 0x140012417
cmp dword [0x1401341f0], ebx
lea r9, [rsp + 0x4c]
mov edx, ebx
mov qword [rsp + 0x30], r14
setne dl
lea r8, [rsp + 0x60]
mov dword [rsp + 0x28], edx
mov ecx, r13d
mov edx, dword [r12 + 4]
mov dword [rsp + 0x20], 2
call qword [sym.imp.USER32.dll_ToUnicodeEx]
cmp r15d, esi
jne 0x140012436
mov eax, dword [rsp + 0x4c]
cmp ax, 0xd
je 0x140012429
movzx edi, ax
movzx eax, word [rsp + 0x44]
cmp eax, edi
je 0x140012508
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x100
call fcn.1400cc200
movzx eax, byte [0x140137f7e]
lea r9, [rsp + 0x50]
neg al
mov qword [rsp + 0x30], r14
movzx eax, byte [0x140137f7f]
sbb r8b, r8b
mov dword [rsp + 0x28], ebx
and r8b, 0x20
mov word [rbp - 0x45], bx
neg al
mov dword [rsp + 0x20], 2
sbb cl, cl
and cl, 9
or r8b, cl
movzx edx, r8b
movzx ecx, r8b
movzx eax, r8b
shl cl, 7
and al, 0xf0
mov byte [rbp + 2], cl
shl al, 3
and dl, 0xe0
mov byte [rbp], al
movzx eax, r8b
and al, 0xfe
shl dl, 2
shl al, 6
mov byte [rbp + 3], al
movzx eax, r8b
and al, 0xfc
mov byte [rbp + 1], dl
shl al, 5
and r8b, 0xf8
mov byte [rbp + 4], al
shl r8b, 4
neg dl
mov byte [rbp + 5], r8b
movzx edx, word [0x140137f7c]
sbb al, al
and al, 0x80
mov byte [rsp + 0x70], al
neg cl
movzx ecx, byte [0x140137f80]
sbb al, al
and al, 0x80
neg r8b
mov byte [rsp + 0x71], al
lea r8, [rsp + 0x60]
sbb al, al
and al, 0x80
mov byte [rsp + 0x72], al
call qword [sym.imp.USER32.dll_ToUnicodeEx]
mov byte [0x140137f80], bl
mov al, 1
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret