Function at 0x14001ecb0
Capabilities:
Log keystrokes

Disassembly:
sub rsp, 0x28
lea rcx, [0x1401dc100]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, 0x8a0
call fcn.14002a9c8
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14001eceb
mov qword [rax + 0x880], 0
mov qword [rax + 0x888], 0
xor edx, edx
mov qword [0x1401dc938], rax
mov r8d, 0x8a0
mov rcx, rax
call fcn.140062330
mov rcx, qword [0x1401dc938]
add rcx, 0x3c
call fcn.140015320
mov rcx, qword [0x1401dc938]
lea rdx, [rcx + 0x444]
add rcx, 0x3c
call fcn.1400152e0
mov rax, qword [0x1401dc938]
mov dword [rax + 0x440], 1
mov rcx, qword [0x1401dc938]
add rcx, 0x880
call fcn.1400159e0
mov rcx, qword [0x1401dc938]
add rcx, 8
call fcn.14001e550
xor ecx, ecx
call fcn.1400206c0
mov ecx, 0xc
call fcn.140020740
xor edx, edx
lea ecx, [rdx + 8]
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
xor edx, edx
mov dword [0x1401dc0c0], eax
lea ecx, [rdx + 0x11]
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
xor edx, edx
mov dword [0x1401dc0c4], eax
lea ecx, [rdx + 0x10]
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
xor edx, edx
mov ecx, 0xa0
mov dword [0x1401dc0c8], eax
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
xor edx, edx
mov ecx, 0xa1
mov dword [0x1401dc0cc], eax
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
xor edx, edx
mov dword [0x1401dc0d0], eax
lea ecx, [rdx + 0x56]
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
xor edx, edx
mov dword [0x1401dc0d8], eax
lea ecx, [rdx + 0x2d]
call qword [sym.imp.USER32.dll_MapVirtualKeyA]
mov dword [0x1401dc0d4], eax
call fcn.1400e2290
mov rax, qword [0x1401dc938]
lea rcx, [0x1401debc8]
mov qword [0x1401dcae8], rax
lea rax, [0x140022ba0]
mov qword [0x1401dcae0], rax
call fcn.140026000
cmp byte [0x1401dc0e0], 0
je 0x14001ee40
mov r9d, 0x40
lea rdx, str.unikey_log.txt
lea rcx, [0x1401dec60]
lea r8d, [r9 - 0x3e]
add rsp, 0x28
jmp 0x140024610
add rsp, 0x28
ret
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov eax, r8d
mov r10, rdx
mov rbx, rcx
lea rsi, [rcx + 8]
cmp qword [rsi + 0x80], 0
je 0x14002467d
mov rax, qword [rcx]
add rax, 4
movsxd rax, dword [rax]
add rax, rbx
mov ecx, 4
xor r8d, r8d
cmp qword [rax + 0x48], r8
cmovne ecx, r8d
or ecx, dword [rax + 0x10]
and ecx, 0x15
or ecx, 2
mov dword [rax + 0x10], ecx
and ecx, dword [rax + 0x14]
je 0x140024724
test cl, 4
je 0x140024734
lea rbx, str.ios_base::badbit_set
jmp 0x140024749
or eax, 2
mov r8d, r9d
mov edx, eax
mov rcx, r10
call fcn.14002d998
test rax, rax
jne 0x140024697
mov rax, qword [rbx]
jmp 0x140024639
mov r8d, 1
mov rdx, rax
mov rcx, rsi
call fcn.140022100
mov rax, qword [rsi + 0x60]
mov rdi, qword [rax + 8]
mov qword [rsp + 0x28], rdi
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
nop
lea rcx, [rsp + 0x20]
call fcn.14001b9b0
mov rdx, rax
mov rcx, rsi
call fcn.1400221d0
nop
test rdi, rdi
je 0x1400246f6
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x10]
test rax, rax
je 0x1400246f6
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
mov rax, qword [rbx]
add rax, 4
test rsi, rsi
je 0x14002463d
movsxd rax, dword [rax]
mov ecx, 4
xor r8d, r8d
cmp qword [rax + rbx + 0x48], r8
cmovne ecx, r8d
mov dword [rax + rbx + 0x10], ecx
test dword [rax + rbx + 0x14], ecx
jne 0x14002477a
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
test cl, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.140024520
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.14001c8c0
lea rdx, [0x1401bb660]
lea rcx, [rsp + 0x30]
call fcn.1400611e4
int3
mov edx, 1
lea rcx, [rsp + 0x20]
call fcn.140024520
mov r8, rax
lea rdx, str.ios_base::badbit_set
lea rcx, [rsp + 0x30]
call fcn.14001c8c0
lea rdx, [0x1401bb660]
lea rcx, [rsp + 0x30]
call fcn.1400611e4
int3