Function at 0x409328
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
push ebx
push esi
push edi
push dword [ebp + 8]
mov edi, dword [ebp + 0xc]
call fcn.004059f3
push 0xc
push 0x401b58
push dword [ebp + 8]
call fcn.00405573
test al, al
je 0x409c16
push 0x1b7740
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
push 0xc
pop eax
call fcn.00405512
test al, al
je 0x409c16
lea eax, [ebp - 0x3c]
push eax
push 4
pop edx
mov eax, edx
mov ecx, 0x401b68
call fcn.004044d4
test eax, eax
jne 0x409c16
xor ebx, ebx
lea eax, [ebp - 0x34]
mov byte [ebp - 0x35], bl
mov byte [ebp - 0x31], bl
call fcn.00404170
movzx si, al
lea eax, [ebp - 0x38]
shl si, 8
call fcn.00404170
movzx ax, al
or ax, si
movzx eax, ax
add eax, 0xfffffcfd
mov ecx, 0x300
cmp ax, cx
ja 0x409c16
mov ecx, dword [edi]
xor esi, esi
lea eax, [ebp - 0x24]
inc esi
push eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x24], ebx
call dword [edi + 4]
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov edx, eax
shr edx, 0x10
and ecx, 0xff0000
or ecx, edx
mov edx, eax
and edx, 0xff00
shl eax, 0x10
or edx, eax
push 4
lea eax, [ebp - 0x18]
shr ecx, 8
shl edx, 8
push eax
push dword [ebp + 8]
or ecx, edx
mov dword [ebp - 0x18], ecx
call fcn.00405573
test al, al
jne 0x40941f
or dword [ebp - 0x14], 0xffffffff
mov eax, dword [ebp - 0x14]
sub eax, ebx
je 0x409c0b
dec eax
jne 0x409c16
push 0x1b7740
lea eax, [ebp - 5]
push eax
push dword [ebp + 8]
mov eax, esi
call fcn.00405512
test al, al
je 0x409c16
cmp byte [ebp - 5], bl
mov ecx, dword [edi]
setne dl
call dword [edi + 8]
test al, al
je 0x409c16
mov ecx, dword [edi]
lea eax, [ebp - 0x80]
push eax
lea edx, [ebp - 0x24]
mov dword [ebp - 0x24], ebx
call dword [edi + 0xc]
mov ecx, eax
cmp ecx, ebx
je 0x409c16
push dword [ebp + 0x10]
lea eax, [ebp - 0x80]
call fcn.004090f1
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x409c16
mov ecx, dword [ebp - 0x24]
call fcn.004044ae
mov esi, eax
mov eax, dword [ebp - 0xc]
mov cx, word [eax + 4]
movzx dx, byte [eax + 5]
shl cx, 8
or cx, dx
mov word [ebp - 0x74], cx
mov cx, word [eax + 6]
movzx ax, byte [eax + 7]
shl cx, 8
or cx, ax
mov word [ebp - 0x72], cx
mov eax, esi
and eax, 0xff0000
mov ecx, esi
shr ecx, 0x10
or eax, ecx
mov ecx, esi
shl ecx, 0x10
mov edx, esi
and edx, 0xff00
shr eax, 8
or ecx, edx
shl ecx, 8
or eax, ecx
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0xc]
push 0x10
add eax, 0x20
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00403e04
rol word [ebp - 0x6c], 8
rol word [ebp - 0x6a], 8
rol word [ebp - 0x68], 8
push 0x18
lea eax, [ebp - 0x74]
push eax
push dword [ebp + 8]
call fcn.00405573
test al, al
je 0x409c01
cmp esi, ebx
jbe 0x40953a
push esi
push dword [ebp - 0x24]
push dword [ebp + 8]
call fcn.00405573
test al, al
je 0x409c01
mov eax, 0xffff
mov edx, 0xff
push edx
mov ecx, eax
mov word [ebp - 0x29], ax
push ebx
lea eax, [ebp - 0x284]
push eax
mov byte [ebp - 0x2c], bl
mov word [ebp - 0x2b], cx
call fcn.00403e7b
push edx
push ebx
lea eax, [ebp - 0x184]
push eax
call fcn.00403e7b
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x10], 0
jbe 0x409630
push 0
push 0x12c
lea eax, [ebp + 8]
push eax
xor eax, eax
call fcn.004058d2
cmp eax, 0xffffffff
jne 0x409630
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x274c
jne 0x409bef
mov ecx, dword [edi]
call dword [edi + 0x10]
mov ebx, dword [ebp - 0x10]
and dword [ebp + 0x10], 0
test ebx, ebx
jbe 0x409573
and dword [ebp - 0x18], 0
imul ebx, ebx, 9
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
lea esi, [eax + ecx]
cmp word [esi + 5], 0
jbe 0x40961c
cmp word [esi + 7], 0
jbe 0x40961c
mov eax, dword [ebp - 0xc]
push esi
push dword [ebp + 8]
call fcn.00408d32
cmp eax, 0xffffffff
je 0x409bef
test eax, eax
je 0x409bef
cmp eax, 1
jne 0x40961c
mov eax, dword [ebp + 0x10]
inc eax
cmp eax, dword [ebp - 0x10]
jne 0x409614
dec dword [ebp - 0x10]
sub ebx, 9
mov eax, ebx
lea esi, [ebp - 0x14]
call fcn.00403d5b
jmp 0x40961c
push 9
push esi
call fcn.00403e69
inc dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
add dword [ebp - 0x18], 9
cmp eax, dword [ebp - 0x10]
jb 0x4095c0
jmp 0x409573
push 0x1b7740
lea eax, [ebp - 5]
push eax
push dword [ebp + 8]
xor eax, eax
inc eax
call fcn.00405512
test al, al
je 0x409bef
movzx eax, byte [ebp - 5]
sub eax, 0
je 0x409b68
dec eax
dec eax
je 0x409a18
dec eax
je 0x409986
dec eax
je 0x40983c
dec eax
je 0x40971b
dec eax
jne 0x409bef
push 0x1b7740
lea eax, [ebp - 0x78]
push eax
push dword [ebp + 8]
push 3
pop eax
call fcn.00405512
test al, al
je 0x409bef
push 0x1b7740
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 8]
push 4
pop eax
call fcn.00405512
test al, al
je 0x409bef
mov ecx, dword [ebp - 0x40]
mov eax, ecx
and eax, 0xff0000
mov edx, ecx
shr edx, 0x10
or eax, edx
mov edx, ecx
shl edx, 0x10
and ecx, 0xff00
or edx, ecx
shr eax, 8
shl edx, 8
or eax, edx
mov dword [ebp - 0x40], eax
inc eax
call fcn.00403db0
mov esi, eax
test esi, esi
je 0x409be8
mov eax, dword [ebp - 0x40]
push 0x1b7740
push esi
push dword [ebp + 8]
call fcn.00405512
test al, al
je 0x409bef
mov edx, dword [ebp - 0x40]
mov ecx, dword [edi]
push esi
call dword [edi + 0x1c]
push esi
call fcn.00403dc8
jmp 0x409573
push 0x1b7740
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 8]
push 5
pop eax
call fcn.00405512
test al, al
je 0x409bef
rol word [ebp - 0x1f], 8
rol word [ebp - 0x1d], 8
and dword [ebp + 0x10], 0
push 0x17
mov esi, 0x8000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
mov ax, word [ebp - 0x2b]
setne dl
cmp word [ebp - 0x1f], ax
jne 0x40976b
mov ax, word [ebp - 0x29]
cmp word [ebp - 0x1d], ax
je 0x409770
mov esi, 0x8001
mov cl, byte [ebp - 0x2c]
mov al, byte [ebp - 0x20]
mov bl, cl
and al, 1
and bl, 1
cmp al, bl
je 0x4097a4
test al, al
je 0x409794
xor eax, eax
test dl, dl
sete al
dec eax
and eax, 6
inc eax
inc eax
jmp 0x4097a2
xor eax, eax
test dl, dl
sete al
dec eax
and eax, 0xc
add eax, 4
or esi, eax
mov al, byte [ebp - 0x20]
mov bl, cl
and al, 4
and bl, 4
cmp al, bl
je 0x4097d6
test al, al
je 0x4097c6
xor eax, eax
test dl, dl
sete al
dec eax
and eax, 0xfffffffa
add eax, 8
jmp 0x4097d4
xor eax, eax
test dl, dl
sete al
dec eax
and eax, 0xfffffff4
add eax, 0x10
or esi, eax
mov al, byte [ebp - 0x20]
and al, 2
and cl, 2
cmp al, cl
je 0x4097f2
xor ecx, ecx
test al, al
sete cl
dec ecx
and ecx, 0xffffffe0
add ecx, 0x40
or esi, ecx
test byte [ebp - 0x20], 8
je 0x409805
or esi, 0x800
mov dword [ebp + 0x10], 0x78
test byte [ebp - 0x20], 0x10
je 0x409818
or esi, 0x800
mov dword [ebp + 0x10], 0xffffff88
push 5
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00403e04
push dword [ebp + 0x10]
mov ecx, dword [edi]
push dword [ebp - 0x1d]
mov edx, esi
push dword [ebp - 0x1f]
call dword [edi + 0x18]
jmp 0x409573
push 0x1b7740
lea eax, [ebp - 0x48]
push eax
push dword [ebp + 8]
push 7
pop eax
call fcn.00405512
test al, al
je 0x409bef
mov ecx, dword [ebp - 0x45]
mov eax, ecx
mov edx, ecx
shr edx, 0x10
and eax, 0xff0000
or eax, edx
mov edx, ecx
and ecx, 0xff00
shl edx, 0x10
or edx, ecx
shl edx, 8
shr eax, 8
or eax, edx
cmp byte [ebp - 0x48], 0
mov dword [ebp - 0x45], eax
setne dl
xor ecx, ecx
xor bl, bl
test dl, dl
setne cl
mov byte [ebp - 0x48], dl
dec ecx
and ecx, 0xc0000000
mov dword [ebp - 0x18], ecx
xor cl, cl
movzx esi, cl
cmp dword [esi*8 + 0x401788], eax
je 0x4098b5
inc cl
cmp cl, 0x32
jb 0x4098a0
jmp 0x4098d1
movzx ecx, cl
shl ecx, 3
cmp byte [ecx + 0x40178d], 0
mov bl, byte [ecx + 0x40178c]
je 0x4098d1
or dword [ebp - 0x18], 0x1000000
mov byte [ebp + 0x13], 0
movzx ecx, byte [ebp + 0x13]
imul ecx, ecx, 0xc
cmp eax, dword [ecx + 0x401764]
jb 0x4098ec
cmp eax, dword [ecx + 0x401768]
jbe 0x4098f7
inc byte [ebp + 0x13]
cmp byte [ebp + 0x13], 3
jb 0x4098d5
jmp 0x40990d
movzx ecx, byte [ebp + 0x13]
imul ecx, ecx, 0xc
mov bl, byte [ecx + 0x40176c]
sub bl, byte [ecx + 0x401764]
add bl, byte [ebp - 0x45]
test bl, bl
jne 0x409945
cmp eax, 0x20
jb 0x40991b
cmp eax, 0x7e
jbe 0x40992a
lea ecx, [eax - 0xa0]
cmp ecx, 0x5f
ja 0x409573
lea eax, [ebp + eax - 0x184]
cmp byte [eax], dl
je 0x409573
push 1
push dword [ebp - 0x18]
mov byte [eax], dl
mov dl, byte [ebp - 0x45]
jmp 0x40997c
movzx ecx, bl
lea eax, [ebp + ecx - 0x284]
cmp byte [eax], dl
je 0x409573
push 0
push ecx
mov byte [eax], dl
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
movzx eax, ax
test ax, ax
je 0x409573
movzx eax, ax
shl eax, 0x10
or eax, dword [ebp - 0x18]
push 0
push eax
mov dl, bl
mov ecx, dword [edi]
call dword [edi + 0x14]
jmp 0x409573
push 0x1b7740
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 8]
push 9
pop eax
call fcn.00405512
test al, al
je 0x409bef
rol word [ebp - 0x37], 8
rol word [ebp - 0x35], 8
rol word [ebp - 0x33], 8
rol word [ebp - 0x31], 8
cmp byte [ebp - 0x38], 0
setne al
xor ecx, ecx
xor ebx, ebx
mov byte [ebp - 0x38], al
cmp dword [ebp - 0x10], ecx
jbe 0x4099e3
mov eax, dword [ebp - 0x14]
add eax, 7
cmp word [eax - 2], cx
jne 0x4099da
cmp word [eax], cx
je 0x4099e3
inc ebx
add eax, 9
cmp ebx, dword [ebp - 0x10]
jb 0x4099cf
cmp ebx, dword [ebp - 0x10]
jne 0x409a01
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
imul eax, eax, 9
lea esi, [ebp - 0x14]
call fcn.00403d5b
test al, al
je 0x409bef
imul ebx, ebx, 9
add ebx, dword [ebp - 0x14]
push 9
lea eax, [ebp - 0x38]
push eax
push ebx
call fcn.00403e04
jmp 0x409573
push 0x1b7740
push 1
push dword [ebp + 8]
call fcn.00405544
test al, al
je 0x409bef
push 0x1b7740
lea eax, [ebp - 0x4c]
push eax
push dword [ebp + 8]
push 2
pop eax
call fcn.00405512
test al, al
je 0x409bef
mov ecx, dword [ebp - 0xc]
mov ax, word [ebp - 0x4c]
and dword [ecx + 0x4c], 0
rol ax, 8
movzx eax, ax
mov word [ecx + 0x48], ax
test ax, ax
jbe 0x409b01
movzx ebx, ax
mov esi, ecx
shl ebx, 2
add esi, 0x44
mov eax, ebx
call fcn.00403d5b
test al, al
je 0x409bef
push 0x1b7740
push dword [esi]
mov eax, ebx
push dword [ebp + 8]
call fcn.00405512
test al, al
je 0x409bef
mov ebx, dword [ebp - 0xc]
and dword [ebp + 0x10], 0
xor eax, eax
cmp ax, word [ebx + 0x48]
jae 0x409b03
mov eax, dword [esi]
movzx edx, word [ebp + 0x10]
shl edx, 2
lea ecx, [edx + eax]
mov eax, dword [ecx]
mov edi, eax
mov ebx, eax
shl edi, 0x10
and ebx, 0xff00
or edi, ebx
movzx ebx, byte [ecx + 3]
shl edi, 8
shr eax, 8
and eax, 0xff00
or edi, ebx
or edi, eax
mov dword [ecx], edi
mov eax, dword [esi]
push 5
pop ecx
cmp dword [edx + eax], ecx
jne 0x409aee
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x4c], ecx
inc dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov dx, word [ebp + 0x10]
cmp dx, word [ecx + 0x48]
jb 0x409aae
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov eax, dword [ebx + 0x4c]
mov ecx, 0xff00
mov edx, eax
shl edx, 0x10
mov esi, eax
and esi, ecx
or edx, esi
mov esi, eax
shr esi, 8
and esi, ecx
movzx ecx, byte [ebx + 0x4f]
shl edx, 8
or edx, esi
or edx, ecx
mov dword [ebx + 0x50], edx
cmp eax, 5
jne 0x409b57
cmp dword [ebx + 0x1c], 0
jne 0x409573
mov eax, 0x400
call fcn.00403db0
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x1c], eax
test eax, eax
jne 0x409573
jmp 0x409bef
push dword [ebx + 0x1c]
call fcn.00403dc8
and dword [ebx + 0x1c], 0
jmp 0x409573
push 0x1b7740
push 3
push dword [ebp + 8]
call fcn.00405544
test al, al
je 0x409bef
push 0x1b7740
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 8]
push 0x10
pop eax
call fcn.00405512
test al, al
je 0x409bef
cmp byte [ebp - 0x5c], 0x20
je 0x409ba5
cmp byte [ebp - 0x5c], 0x10
je 0x409ba5
cmp byte [ebp - 0x5c], 8
jne 0x409bef
cmp byte [ebp - 0x59], 0
je 0x409bef
rol word [ebp - 0x58], 8
rol word [ebp - 0x56], 8
rol word [ebp - 0x54], 8
cmp byte [ebp - 0x5a], 0
push 0x10
setne al
mov byte [ebp - 0x5a], al
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0xc]
lea ecx, [eax + 0x31]
push ecx
mov byte [ebp - 0x59], 1
call fcn.00403e04
mov cl, byte [ebp - 0x5c]
shr cl, 3
mov byte [eax + 0x41], cl
jmp 0x409573
push 0
call fcn.00403dc8
mov esi, dword [ebp - 0xc]
call fcn.0040928c
push dword [ebp - 0x14]
call fcn.00403dc8
jmp 0x409c16
mov esi, dword [ebp - 0xc]
call fcn.0040928c
jmp 0x409c16
push dword [ebp - 0x24]
push dword [ebp + 8]
call fcn.004092c2
pop edi
pop esi
pop ebx
leave
ret 0xc