Function at 0x140039438
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xd0]
sub rsp, 0x1d0
mov rax, qword [0x1401e7e78]
xor rax, rsp
mov qword [rbp + 0xc0], rax
mov ebx, edx
mov r14, rcx
mov dword [rsp + 0x30], edx
xor r15d, r15d
mov edi, r15d
mov rax, qword [rcx + 0xe8]
mov r12d, 0x1800
and r12w, word [rax + 0x4028]
mov esi, r15d
lea rcx, [rsp + 0x38]
call fcn.140114b80
nop
xor r8d, r8d
lea rdx, [rsp + 0x38]
mov rcx, qword [r14 + 0xe8]
call fcn.140014004
test eax, eax
js 0x1400394bf
mov rcx, qword [rsp + 0x40]
call fcn.14011bab8
mov rsi, rax
test rsi, rsi
jne 0x1400394dc
mov rax, qword [r14 + 0xe8]
mov ecx, 0xe3ff
and word [rax + 0x4028], cx
jmp 0x1400397da
mov rcx, rsi
call fcn.1400aa650
mov r15d, eax
mov rcx, qword [r14 + 0xe8]
mov eax, 0x1400
test word [rcx + 0x4028], ax
setne dl
mov byte [rsp + 0x20], 0
mov r9d, 1
lea r8, [rsp + 0x70]
mov rcx, rsi
call fcn.1400b09a4
xor ecx, ecx
test al, al
je 0x1400397da
lea eax, [rcx + 1]
mov word [rsp + 0x58], ax
mov dword [rsp + 0x68], 0x128
mov word [rsp + 0x62], cx
mov r8, qword [r14 + 0xe8]
mov eax, 0x400
test word [r8 + 0x4028], ax
je 0x1400395ef
lea ecx, [r15 - 0xd]
movsx edx, word [rsp + 0x30]
cmp edx, ecx
jl 0x140039576
movsx ecx, word [r8 + 0x4032]
lea edx, [r15 - 0xc]
cmp edx, ecx
cmovl dx, cx
mov word [rsp + 0x30], dx
mov ebx, dword [rsp + 0x30]
movzx eax, word [rsp + 0x32]
mov word [r8 + 0x4034], ax
mov rcx, qword [r14 + 0xe8]
cmp dx, word [rcx + 0x4032]
jge 0x1400395b7
mov eax, 0x25
mov word [rsp + 0x62], ax
movsx edi, word [rcx + 0x4032]
movsx eax, dx
mov word [rcx + 0x4032], dx
lea rdx, str.CtrlLeft
jmp 0x1400395df
jle 0x140039689
mov eax, 0x27
mov word [rsp + 0x62], ax
movsx eax, word [rcx + 0x4032]
movsx edi, dx
mov word [rcx + 0x4032], dx
lea rdx, str.CtrlRight
sub edi, eax
lea rcx, [rbp - 0x80]
call fcn.14000128c
jmp 0x140039689
movzx eax, word [rsp + 0x30]
mov word [r8 + 0x4032], ax
mov rdx, qword [r14 + 0xe8]
movsx ecx, word [rsp + 0x32]
mov r15d, 0x1800
cmp cx, word [rdx + 0x4034]
jge 0x140039641
mov eax, 0x26
mov word [rsp + 0x62], ax
movsx edi, word [rdx + 0x4034]
sub edi, ecx
mov word [rdx + 0x4034], cx
lea rax, str.CtrlShiftUp
lea rdx, str.CtrlUp
jmp 0x14003966d
jle 0x14003967e
mov eax, 0x28
mov word [rsp + 0x62], ax
movsx eax, word [rdx + 0x4034]
mov edi, ecx
sub edi, eax
mov word [rdx + 0x4034], cx
lea rax, str.CtrlShiftDown
lea rdx, str.CtrlDown
cmp r12w, r15w
cmovne rdx, rax
lea rcx, [rbp - 0x80]
call fcn.14000128c
cmp r12w, r15w
je 0x140039689
or dword [rsp + 0x68], 0x10
movzx ecx, word [rsp + 0x62]
xor r15d, r15d
test cx, cx
je 0x1400397da
mov rax, qword [0x14021c740]
cmp byte [rax + 0x11077], 2
jne 0x14003978c
lea r12d, [r15 + 1]
mov dl, r12b
mov rcx, rsi
call fcn.1400c3124
test al, al
je 0x1400397da
mov rax, qword [r14 + 0xe8]
mov dword [rax + 0x4032], ebx
lea eax, [r15 + 0x40]
mov word [rbp - 0x40], ax
mov rcx, rsi
call fcn.1400b2360
test al, al
je 0x14003970e
lea edx, [r15 + 0x7f]
lea rcx, [rbp - 0x3e]
cmp edi, r12d
jle 0x1400396fc
lea r8, str.for_RCounter__i_1__1_do_Keys___s___end
jmp 0x140039723
lea r9, [rbp - 0x80]
lea r8, str.Keys___s__
call fcn.14012091c
jmp 0x14003977b
cmp edi, r12d
jle 0x140039736
lea r8, str._Rep___i___s__End
mov edx, 0x7f
lea rcx, [rbp - 0x3e]
lea rax, [rbp - 0x80]
mov r9d, edi
mov qword [rsp + 0x20], rax
call fcn.14012091c
jmp 0x14003977b
mov ecx, 0x7f
lea rdx, [rbp - 0x3e]
lea r8, [rbp - 0x80]
lea rax, [rbp - 0x3e]
sub r8, rax
lea rax, [rcx + 0x7fffff7f]
test rax, rax
je 0x14003976c
movzx eax, word [r8 + rdx]
test ax, ax
je 0x14003976c
mov word [rdx], ax
add rdx, 2
sub rcx, r12
jne 0x14003974a
lea rax, [rdx - 2]
test rcx, rcx
cmovne rax, rdx
mov word [rax], r15w
xor r8d, r8d
lea rdx, [rbp - 0x40]
mov rcx, rsi
call fcn.1400b740c
jmp 0x1400397da
xor edx, edx
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov word [rsp + 0x64], ax
mov word [rsp + 0x60], di
mov ebx, 1
mov dword [rsp + 0x5c], ebx
xor r8d, r8d
lea rdx, [rsp + 0x58]
mov rcx, rsi
call fcn.1400b6a14
mov dword [rsp + 0x5c], r15d
mov word [rsp + 0x60], bx
mov dword [rsp + 0x68], pe_nt_image_headers64
xor r8d, r8d
lea rdx, [rsp + 0x58]
mov rcx, rsi
call fcn.1400b6a14
nop
lea rcx, [rsp + 0x38]
call fcn.140114c28
mov rcx, qword [rbp + 0xc0]
xor rcx, rsp
call fcn.140139b10
mov rbx, qword [rsp + 0x220]
add rsp, 0x1d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret