Function at 0x140186d90
Capabilities:
Log keystrokes via input method manager

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x98]
sub rsp, 0x198
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x140479080]
xor rax, rsp
mov qword [rbp + 0x88], rax
mov r10, r9
mov rax, rdx
mov r14, rcx
mov qword [rsp + 0x20], rcx
mov rbx, qword [rbp + 0x108]
cmp qword [rcx + 8], 0
je 0x14018755d
cmp byte [rcx + 0x90], 0
jne 0x14018755d
cmp r8d, 0x10f
ja 0x14018734d
je 0x1401870ed
sub r8d, 0x102
je 0x140186e80
sub r8d, 0xb
je 0x140186e54
cmp r8d, 1
jne 0x14018755d
lea rax, [rcx + 0x98]
xor ebx, ebx
mov qword [rax + 0x10], rbx
cmp qword [rax + 0x18], 0x10
jb 0x140186e36
mov rax, qword [rax]
mov byte [rax], bl
add rcx, 0xb8
call fcn.14000ada0
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x30]
xor al, al
jmp 0x14018755f
lea rax, [rcx + 0x98]
xor ebx, ebx
mov qword [rax + 0x10], rbx
cmp qword [rax + 0x18], 0x10
jb 0x140186e6b
mov rax, qword [rax]
mov byte [rax], bl
add rcx, 0xb8
call fcn.14000ada0
xor al, al
jmp 0x14018755f
movsx eax, r10b
dec eax
cmp eax, 0x1c
ja case.default.0x140186eaa
cdqe
lea rdx, [0x140000000]
movzx eax, byte [rdx + rax + 0x187590]
mov ecx, dword [rdx + rax*4 + 0x187584]
add rcx, rdx
jmp rcx
movdqa xmm0, xmmword [0x1404107f0]
movdqu xmmword [rsp + 0x78], xmm0
mov byte [rsp + 0x68], 0
xor ebx, ebx
mov qword [rsp + 0x58], rbx
mov ecx, reloc.WS2_32.dll_ntohs
mov qword [rsp + 0x60], rcx
mov byte [rsp + 0x48], bl
lea r12, [r14 + 0x18]
mov rdi, r12
cmp qword [r12 + 0x18], 0x10
jb 0x140186ee7
mov rdi, qword [r12]
cmp byte [rdi], 0
je 0x140187007
mov r15, 0xffffffffffffffff
nop word [rax + rax]
mov r8, qword [rsp + 0x48]
test rbx, rbx
je 0x140186f47
lea rdx, [rsp + 0x48]
cmp rcx, 0x10
cmovae rdx, r8
mov r8, rbx
lea rcx, [rsp + 0x68]
call fcn.14000b980
xor r8d, r8d
lea rdx, [0x1402c797a]
lea rcx, [rsp + 0x48]
call fcn.14000b830
mov rcx, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x48]
movzx r9d, byte [rdi]
test r9b, r9b
jns 0x140186fbc
mov edx, r15d
mov eax, 0x80
movsx r9d, r9b
test r9b, r9b
jns 0x140186fbc
inc edx
sar eax, 1
test eax, r9d
jne 0x140186f61
test edx, edx
jle 0x140186fbc
mov esi, edx
movzx r9d, byte [rdi]
cmp rbx, rcx
jae 0x140186f9a
lea rax, [rbx + 1]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x48]
cmp rcx, 0x10
cmovae rax, r8
mov byte [rax + rbx], r9b
mov byte [rax + rbx + 1], 0
jmp 0x140186fa4
lea rcx, [rsp + 0x48]
call fcn.14001c700
inc rdi
sub rsi, 1
mov rcx, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
mov r8, qword [rsp + 0x48]
jne 0x140186f70
movzx r9d, byte [rdi]
cmp rbx, rcx
jae 0x140186fe6
lea rax, [rbx + 1]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x48]
cmp rcx, 0x10
cmovae rax, r8
mov byte [rax + rbx], r9b
mov byte [rax + rbx + 1], 0
jmp 0x140186ff0
lea rcx, [rsp + 0x48]
call fcn.14001c700
inc rdi
cmp byte [rdi], 0
je 0x140187007
mov rcx, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
jmp 0x140186f00
lea rax, [rsp + 0x68]
cmp r12, rax
je 0x14018702e
lea rdx, [rsp + 0x68]
cmp qword [rbp - 0x80], 0x10
cmovae rdx, qword [rsp + 0x68]
mov r8, qword [rsp + 0x78]
mov rcx, r12
call fcn.14000b830
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x30]
nop
lea rcx, [rsp + 0x48]
call fcn.14000b5d0
nop
lea rcx, [rsp + 0x68]
call fcn.14000b5d0
xor al, al
jmp 0x14018755f
mov rax, qword [r14 + 0x38]
test rax, rax
je 0x14018706c
lea rdx, [r14 + 0x18]
and rax, 0xfffffffffffffffe
lea rcx, [r14 + 0x40]
call qword [rax + reloc.WS2_32.dll_htonl]
mov rax, qword [r14 + 0x60]
test rax, rax
je 0x140187080
and rax, 0xfffffffffffffffe
lea rcx, [r14 + 0x68]
call qword [rax + reloc.WS2_32.dll_htonl]
mov byte [r14 + 0x90], 1
xor al, al
jmp 0x14018755f
cmp byte [r14 + 0x91], 0
jne 0x14018755d
lea rcx, [r14 + 0x18]
mov rdx, qword [rcx + 0x10]
mov r8, qword [rcx + 0x18]
cmp rdx, r8
jae 0x1401870d8
lea rax, [rdx + 1]
mov qword [rcx + 0x10], rax
cmp r8, 0x10
jb 0x1401870bf
mov rcx, qword [rcx]
mov byte [rcx + rdx], r10b
mov byte [rcx + rdx + 1], 0
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x30]
xor al, al
jmp 0x14018755f
call fcn.14001c700
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x30]
xor al, al
jmp 0x14018755f
mov rsi, qword [rbp + 0x100]
xor ebx, ebx
lea r12, [rbx - 1]
bt rsi, 0xb
jae 0x140187236
xor r9d, r9d
xor r8d, r8d
mov edx, 0x800
mov rcx, qword [rcx + 0x88]
call qword [sym.imp.IMM32.dll_ImmGetCompositionStringW]
mov r15d, eax
test eax, eax
je 0x140187236
lea ecx, [rax + 1]
movsxd rdi, ecx
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.1401879e0
nop
lea r8, [rdi + rdi]
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.14025e440
mov r9d, r15d
mov r8, qword [rsp + 0x20]
mov edx, 0x800
mov rcx, qword [r14 + 0x88]
call qword [sym.imp.IMM32.dll_ImmGetCompositionStringW]
movdqa xmm0, xmmword [0x1404107e0]
movdqu xmmword [rbp - 0x28], xmm0
mov word [rbp - 0x38], bx
mov rdx, qword [rsp + 0x20]
mov r8, r12
nop
inc r8
cmp word [rdx + r8*2], 0
jne 0x140187180
lea rcx, [rbp - 0x38]
call fcn.1400ae980
nop
lea rdx, [rbp - 0x38]
lea rcx, [rbp + 8]
call fcn.1400b1b00
nop
mov rdx, rax
cmp qword [rax + 0x18], 0x10
jb 0x1401871b0
mov rdx, qword [rax]
lea rcx, [r14 + 0x18]
mov r8, qword [rax + 0x10]
call fcn.14000b980
nop
lea rcx, [rbp + 8]
call fcn.14000b5d0
nop
lea rcx, [rbp - 0x38]
call fcn.1400ae780
lea rax, [r14 + 0x98]
mov qword [rax + 0x10], rbx
cmp qword [rax + 0x18], 0x10
jb 0x1401871e6
mov rax, qword [rax]
mov byte [rax], 0
lea rcx, [r14 + 0xb8]
call fcn.14000ada0
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x30]
nop
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x140187236
mov eax, r12d
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140187236
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
mov eax, r12d
lock xadd dword [rdi + 0xc], eax
cmp eax, 1
jne 0x140187236
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_recv]
nop
test sil, 8
je 0x140187346
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 8]
mov rcx, qword [r14 + 0x88]
call qword [sym.imp.IMM32.dll_ImmGetCompositionStringW]
mov esi, eax
test eax, eax
je 0x140187346
lea ecx, [rax + 1]
movsxd rdi, ecx
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.1401879e0
nop
lea r8, [rdi + rdi]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call fcn.14025e440
mov r9d, esi
mov r8, qword [rsp + 0x30]
mov edx, 8
mov rcx, qword [r14 + 0x88]
call qword [sym.imp.IMM32.dll_ImmGetCompositionStringW]
movdqa xmm0, xmmword [0x1404107e0]
movdqu xmmword [rbp - 8], xmm0
mov word [rbp - 0x18], bx
mov rdx, qword [rsp + 0x30]
mov r8, r12
nop dword [rax + rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x1401872c0
lea rcx, [rbp - 0x18]
call fcn.1400ae980
nop
lea rdx, [rbp - 0x18]
lea rcx, [rbp + 0x28]
call fcn.1400b1b00
nop
lea rcx, [r14 + 0x98]
mov rdx, rax
call fcn.140013210
nop
lea rcx, [rbp + 0x28]
call fcn.14000b5d0
nop
lea rcx, [rbp - 0x18]
call fcn.1400ae780
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x30]
nop
mov rbx, qword [rsp + 0x38]
test rbx, rbx
je 0x140187346
mov eax, r12d
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x140187346
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_htonl]
lock xadd dword [rbx + 0xc], r12d
cmp r12d, 1
jne 0x140187346
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WS2_32.dll_recv]
nop
xor al, al
jmp 0x14018755f
sub r8d, 0x281
je 0x140187537
cmp r8d, 1
jne 0x14018755d
sub r10, 3
je 0x1401873aa
sub r10, 1
je 0x140187397
sub r10, 1
je 0x1401873aa
cmp r10, 3
jne case.0x140186eaa.1
cmp byte [rcx + 0x91], 0
sete al
mov byte [rcx + 0x91], al
xor al, al
jmp 0x14018755f
add rcx, 0xb8
call fcn.14000ada0
xor al, al
jmp 0x14018755f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0x88]
call qword [sym.imp.IMM32.dll_ImmGetCandidateListW]
mov esi, eax
test eax, eax
je case.0x140186eaa.1
lea r13, [r14 + 0x98]
xor ebx, ebx
mov qword [r13 + 0x10], rbx
mov rax, r13
cmp qword [r13 + 0x18], 0x10
jb 0x1401873e4
mov rax, qword [r13]
mov byte [rax], bl
lea r15, [r14 + 0xb8]
mov rcx, r15
call fcn.14000ada0
mov rcx, rsi
call fcn.14023ed88
mov rdi, rax
mov r9d, esi
mov r8, rax
xor edx, edx
mov rcx, qword [r14 + 0x88]
call qword [sym.imp.IMM32.dll_ImmGetCandidateListW]
mov esi, ebx
cmp dword [rdi + 8], ebx
jbe 0x140187522
mov r14, 0xffffffffffffffff
nop word [rax + rax]
mov eax, esi
lea r12, [rdi + rax*4]
mov edx, dword [r12 + 0x18]
add rdx, rdi
mov qword [rbp - 0x68], rbx
mov qword [rbp - 0x60], 7
mov word [rbp - 0x78], bx
mov r8, r14
inc r8
cmp word [rdx + r8*2], 0
jne 0x140187451
lea rcx, [rbp - 0x78]
call fcn.1400ae980
nop
lea rdx, [rbp - 0x78]
lea rcx, [rbp + 0x48]
call fcn.1400b1b00
nop
mov rcx, qword [r15 + 8]
cmp qword [r15 + 0x10], rcx
je 0x14018748d
mov rdx, rax
call fcn.14000b200
add qword [r15 + 8], 0x20
jmp 0x14018749c
mov r8, rax
mov rdx, rcx
mov rcx, r15
call fcn.14010c270
nop
lea rcx, [rbp + 0x48]
call fcn.14000b5d0
nop
lea rcx, [rbp - 0x78]
call fcn.1400ae780
cmp esi, dword [rdi + 0xc]
jne 0x140187512
mov edx, dword [r12 + 0x18]
add rdx, rdi
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], 7
mov word [rbp - 0x58], bx
mov r8, r14
nop
inc r8
cmp word [rdx + r8*2], 0
jne 0x1401874d0
lea rcx, [rbp - 0x58]
call fcn.1400ae980
nop
lea rdx, [rbp - 0x58]
lea rcx, [rbp + 0x68]
call fcn.1400b1b00
nop
mov rdx, rax
mov rcx, r13
call fcn.140013210
nop
lea rcx, [rbp + 0x68]
call fcn.14000b5d0
nop
lea rcx, [rbp - 0x58]
call fcn.1400ae780
inc esi
cmp esi, dword [rdi + 8]
jb 0x140187430
mov r14, qword [rsp + 0x20]
mov rcx, rdi
call fcn.14023ed44
mov rax, qword [r14]
mov rcx, r14
call qword [rax + 0x30]
xor al, al
jmp 0x14018755f
mov r9, qword [rbp + 0x100]
and r9d, 0x3ffffff0
mov r8, r10
mov edx, 0x281
mov rcx, rax
call qword [sym.imp.USER32.dll_DefWindowProcA]
mov qword [rbx], rax
xor al, al
jmp 0x14018755f
mov al, 1
mov rcx, qword [rbp + 0x88]
xor rcx, rsp
call fcn.14023ed20
add rsp, 0x198
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret