Function at 0x401340
Capabilities:
Check for time delay via gettickcount
Encrypt data using speck
Hide graphical window
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], 2
mov byte [esp + 0x1b], 0
lea ebx, [edi + 1]
jne 0x401375
cmp byte [0x4a0b80], 0
mov dword [ebp + 0xc], ebx
jne 0x401375
mov byte [0x4a0b80], bl
mov byte [esp + 0x1b], bl
cmp dword [0x4a2c14], edi
je 0x4013a9
cmp dword [0x4a2c04], edi
je 0x401397
mov eax, dword [0x4a2bfc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4a2c04], edi
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4a2c14], edi
mov dword [0x4a2bfc], edi
mov esi, dword [ebp + 8]
cmp esi, 0x8000012f
jne 0x4013c9
mov dword [ebp + 8], 0xa
mov esi, dword [ebp + 8]
mov byte [esp + 0x58], 1
mov dword [esp + 0x6c], edi
jmp 0x4013e7
cmp esi, 5
setle al
mov byte [esp + 0x58], al
test al, al
je 0x4013dd
mov dword [esp + 0x6c], edi
jmp 0x4013e7
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x6c], eax
cmp dword [0x4a24a0], edi
je 0x4013f4
call fcn.00402b90
mov byte [esp + 0x18], 0
cmp dword [0x4a30b0], edi
je 0x40140f
call fcn.00402a20
test al, al
je 0x40140f
mov byte [esp + 0x18], 1
cmp esi, edi
jle 0x40162d
cmp dword [ebp + 0xc], ebx
jne 0x40162d
add dword [0x4a0b90], ebx
cmp byte [0x4a0b7a], 0
mov byte [esp + 0x19], 1
jne 0x401451
mov ecx, dword [0x4a0a38]
push edi
push 0xa
push 9
push ecx
call dword [sym.imp.USER32.dll_SetTimer]
test eax, eax
setne dl
mov byte [0x4a0b7a], dl
mov byte [esp + 0x23], 0
mov byte [esp + 0x1a], 0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
cmp dword [ebp + 8], 0
mov ebx, eax
jle 0x401637
cmp byte [esp + 0x1a], 0
jne 0x401637
cmp byte [0x4a0b80], 0
jne 0x401644
call fcn.004030f0
neg eax
sbb eax, eax
and eax, 0xfffffcef
add eax, 0x311
push eax
push 0
push 0
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
cmp eax, 0xffffffff
je 0x40145b
call edi
mov ecx, eax
sub ecx, ebx
cmp ecx, 3
jbe 0x4014bf
mov dword [0x4a3100], eax
cmp dword [0x4a1344], 0
je 0x4014f9
mov edx, dword [esp + 0x34]
lea eax, [esp + 0x9c]
push eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x34]
push eax
push ecx
push edx
call int.00402c00
add esp, 0x18
test al, al
jne 0x40145b
cmp dword [0x4a2b64], 0
mov esi, dword [esp + 0x2c]
je 0x401b1d
mov eax, dword [esp + 0x28]
test eax, eax
je 0x401b1d
cmp eax, dword [0x4a0a38]
je 0x401b1d
cmp esi, 0x414
je 0x401b1d
cmp esi, 0x402
je 0x401b1d
cmp esi, 0x100
jne 0x401ab7
mov edi, dword [esp + 0x30]
cmp edi, 0x22
je 0x401567
cmp edi, 0x21
je 0x401567
cmp edi, 9
je 0x401567
cmp edi, 0x25
je 0x401567
cmp edi, 0x27
jne 0x4018ae
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, eax
test esi, esi
je 0x4018aa
call fcn.004685d0
test eax, eax
je 0x4018aa
mov edi, eax
call fcn.004012d0
mov ebx, eax
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x4018aa
cmp byte [ebx + 0x54], 0
je 0x4018aa
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea edi, [eax - 3]
cmp edi, dword [ebx + 0xc]
jb 0x4015d0
push esi
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x4015c7
push eax
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea edi, [eax - 3]
cmp edi, dword [ebx + 0xc]
jae 0x4018a2
mov ecx, dword [ebx + 0x14]
lea eax, [edi + edi*4]
lea esi, [ecx + eax*4]
mov dword [esp + 0x14], esi
test esi, esi
je 0x4018aa
mov al, byte [esi + 4]
cmp al, 0xf
je 0x4018aa
mov edi, dword [esp + 0x30]
xor ebx, ebx
cmp al, 0x13
jne 0x401993
mov ebx, esi
cmp edi, 0x25
je 0x40160e
cmp edi, 0x27
jne 0x401993
mov ecx, dword [esp + 0x10]
cmp edi, 0x27
push 0
sete dl
movzx eax, dl
push 0
push eax
push ecx
mov eax, esi
call fcn.0045b870
jmp 0x40145b
mov byte [esp + 0x19], 0
jmp 0x401451
cmp byte [0x4a0b80], 0
je 0x4017bf
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x4017bf
push 0
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4a2bbc]
jne 0x4017bf
cmp dword [0x4a0bbc], 0
je 0x4016a1
push 0x20
lea edx, [esp + 0xa4]
push edx
push esi
call dword [sym.imp.USER32.dll_GetClassNameA]
lea eax, [esp + 0xa0]
push str.32770
push eax
call 0x476dcc
add esp, 8
test eax, eax
sete al
test al, al
jne 0x4016f6
call dword [sym.imp.USER32.dll_GetFocus]
test eax, eax
je 0x4017bf
push 0x20
lea ecx, [esp + 0xa4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClassNameA]
lea edx, [esp + 0xa0]
push str.SysTreeView32
push edx
call 0x476cb6
add esp, 8
test eax, eax
je 0x4016f6
lea eax, [esp + 0xa0]
push str.SysListView32
push eax
call 0x476cb6
add esp, 8
test eax, eax
jne 0x4017bf
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
push 0
push 0x1ff
push 0
push 0
lea ecx, [esp + 0x38]
push ecx
call edi
test eax, eax
jne 0x40173b
push 1
call fcn.004030f0
neg eax
sbb eax, eax
and eax, 0xfffffcef
add eax, 0x311
push eax
push 0x20e
push 0
lea edx, [esp + 0x38]
push edx
call edi
jmp 0x40183a
mov esi, dword [esp + 0x38]
push 0
call fcn.004030f0
neg eax
sbb eax, eax
and eax, 0xfffffcef
add eax, 0x311
push eax
push 0x20e
push 0
lea eax, [esp + 0x38]
push eax
call edi
push 1
test eax, eax
jne 0x40177c
push 0x1ff
push eax
push eax
lea ecx, [esp + 0x38]
push ecx
call edi
jmp 0x40183a
mov edx, dword [esp + 0x3c]
sub edx, esi
test edx, edx
jle 0x40179b
push 0x1ff
push 0
push 0
lea eax, [esp + 0x38]
push eax
call edi
jmp 0x40183a
call fcn.004030f0
neg eax
sbb eax, eax
and eax, 0xfffffcef
add eax, 0x311
push eax
push 0x20e
push 0
lea ecx, [esp + 0x38]
push ecx
call edi
jmp 0x40183a
cmp dword [0x49d328], 0
je 0x401818
cmp dword [0x4a0bb0], 0
jne 0x401818
mov eax, dword [0x49d3c8]
cmp byte [eax + 0xc4], 0
jne 0x40180f
cmp byte [eax + 0xc6], 0
jne 0x40180f
cmp dword [eax + 0xb8], 0xffffffff
jle 0x40180f
call edi
mov edx, eax
mov eax, dword [0x49d3c8]
sub edx, dword [eax + 0xb4]
cmp edx, dword [eax + 0xb8]
jb 0x40180f
mov byte [eax + 0xc4], 1
movzx eax, byte [eax + 0xc4]
jmp 0x40181a
xor eax, eax
neg eax
sbb eax, eax
push 1
and eax, 0xfffffcef
add eax, 0x311
push eax
push 0
push 0
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
jne 0x4014bf
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ecx, eax
sub ecx, ebx
cmp ecx, 3
jbe 0x401858
mov dword [0x4a3100], eax
mov esi, dword [ebp + 8]
test esi, esi
jne 0x401877
cmp byte [esp + 0x23], 0
jne 0x401877
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [esp + 0x23], 1
jmp 0x40145b
call edi
cmp byte [esp + 0x58], 0
jne 0x40286f
mov edx, dword [esp + 0x6c]
sub edx, eax
add edx, esi
cmp edx, 5
jle 0x40286f
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40145b
mov dword [esp + 0x14], 0
mov edi, dword [esp + 0x30]
cmp edi, 0x1b
je 0x4018d7
cmp edi, 9
je 0x4018d7
cmp edi, 0x41
jne 0x401a4f
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x401a4b
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, eax
test esi, esi
je 0x401a4b
call fcn.004685d0
test eax, eax
je 0x401a4b
mov edi, eax
call fcn.004012d0
mov dword [esp + 0x10], eax
test eax, eax
je 0x401a4b
mov ebx, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push esi
call ebx
mov edx, dword [esp + 0x10]
lea edi, [eax - 3]
cmp edi, dword [edx + 0xc]
jb 0x40192d
push esi
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x40192d
push eax
call ebx
lea edi, [eax - 3]
mov eax, dword [esp + 0x10]
cmp edi, dword [eax + 0xc]
jae 0x401a43
mov edx, dword [eax + 0x14]
lea ecx, [edi + edi*4]
lea eax, [edx + ecx*4]
mov dword [esp + 0x14], eax
test eax, eax
je 0x401a4b
cmp byte [eax + 4], 0xc
jne 0x401a4b
mov edi, dword [esp + 0x30]
cmp edi, 0x1b
je 0x401a8f
cmp edi, 0x41
je 0x401a72
test byte [eax + 5], 0x80
je 0x401a4f
mov ecx, dword [eax]
push 0x490074
push 1
push 0xc2
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x40145b
cmp edi, 0x25
je 0x4018ae
cmp edi, 0x27
je 0x4018ae
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov edx, 0x8000
test dx, ax
je 0x4018aa
mov edi, dword [esp + 0x30]
cmp edi, 9
jne 0x4019e1
cmp byte [esi + 4], 0xc
jne 0x4019e1
mov eax, dword [esi]
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
test al, 4
jne 0x4018aa
mov edi, dword [esp + 0x30]
test ebx, ebx
jne 0x401a08
mov bl, byte [esi + 6]
mov ecx, dword [esp + 0x10]
call fcn.0045b600
mov ebx, eax
test ebx, ebx
jne 0x401a08
xor bl, bl
call fcn.0045b600
mov ebx, eax
test ebx, ebx
je 0x4018ae
cmp edi, 0x22
je 0x401a28
cmp edi, 9
jne 0x401a24
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x401a28
xor al, al
jmp 0x401a2d
mov eax, 1
mov edx, dword [esp + 0x10]
push 1
push 1
push eax
push edx
mov eax, ebx
call fcn.0045b870
jmp 0x40145b
mov dword [esp + 0x14], 0
mov edi, dword [esp + 0x30]
mov eax, dword [0x4a2b68]
test eax, eax
je 0x401ab7
cmp edi, 0xd
jne 0x401a9d
push 0
push 0
push 0x1116
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x40145b
test byte [eax + 5], 2
jne 0x401a4f
mov edx, dword [eax]
push 0xffffffffffffffff
push 0
push 0xb1
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x40145b
mov eax, dword [esp + 0x10]
call fcn.004582e0
jmp 0x40145b
cmp edi, 0x1b
jne 0x401ab7
push 0
push 1
push 0x1116
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x40145b
xor esi, esi
mov edi, 0x4a11b8
mov edi, edi
mov eax, dword [edi]
test eax, eax
je 0x401b0e
cmp dword [eax], 0
je 0x401b05
mov eax, dword [0x49d3c8]
mov byte [eax + 0xc0], 1
mov ecx, dword [esp + 0x2c]
mov dword [eax + 0xbc], ecx
mov eax, dword [edi]
mov ecx, dword [eax]
lea edx, [esp + 0x28]
push edx
push ecx
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x40218a
mov edx, dword [0x49d3c8]
mov byte [edx + 0xc0], al
inc esi
cmp dword [0x4a2b64], esi
je 0x401b19
add edi, 4
cmp edi, 0x4a1344
jl 0x401ac0
mov esi, dword [esp + 0x2c]
cmp esi, 0x312
ja 0x401c84
je 0x401cb5
cmp esi, 0x100
ja 0x401b9f
je 0x401b70
cmp esi, 0x12
je 0x401b5b
cmp esi, 0x4b
jne 0x4020f9
mov dword [0x4a0b70], 0
mov byte [esp + 0x1a], 1
jmp 0x40145b
push 0
push 0
push 6
mov ecx, 0x4a2c18
call 0x414960
jmp 0x40145b
mov ecx, dword [esp + 0x28]
cmp ecx, dword [0x4a0a3c]
jne 0x4020f9
cmp dword [esp + 0x30], 0x1b
jne 0x4020f9
mov edx, dword [0x4a0a38]
push 0
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40145b
cmp esi, 0x113
add byte [eax], al
jne 0x4020f9
cmp dword [esp + 0x34], 0
jne 0x4020f9
mov eax, dword [0x4a0a38]
cmp dword [esp + 0x28], eax
jne 0x4020f9
cmp dword [0x4a24a0], 0
je 0x401bd3
call fcn.00402b90
cmp dword [0x4a30b0], 0
je 0x401bea
call fcn.00402a20
test al, al
je 0x401bea
mov byte [esp + 0x18], 1
cmp dword [ebp + 0xc], 0
je 0x40145b
cmp dword [ebp + 8], 1
jl 0x40145b
mov ecx, dword [edx + edi*4 + 0x1b]
sbb al, 0x78
lcall 0x40c1, 0xaaa6035
test al, 8
pushal
xchg ecx, eax
or byte [eax], cl
jae 0x401ba3
je 0x401c16
push es
or byte [edi - 0x50], dh
cwde
or byte [ecx - 0x46f31700], ah
sbb al, byte [eax*2 - 0x6d876768]
outsb dx, byte [esi]
adc al, byte [ebx + 0x22]
add al, byte [edx]
dec esp
push eax
retf 0x68dd
imul esp, dword [edx], 0x5d438310
add byte [ebx + edi], al
test dword [esp + eax*4], ebx
loop 0x401cac
test eax, 0x18090d54
inc eax
sub al, 0x1e
and ah, byte [ebx]
inc esp
popal
mov word [edx + ebp], ss
jo 0x401ca4
invalid
mov byte [eax + esi - 0x7783f7fc], al
in al, dx
and dword [edx - 0x60], esp
push ecx
or esp, esp
jmp 0x31417d4d
add dword [ecx], esi
and byte [edx], bl
add dword [eax], eax
test dword [eax], esp
adc byte [ecx], al
inc esp
mov dword [eax - 0x78ffb15f], 0x6625cc5
inc edx
dec esp
or al, 0x8a
add al, ch
push esp
add ah, byte [ebx]
xor al, 0x91
invalid
add dl, byte [edx]
invalid
add ebp, dword [eax + 0x548010a]
xchg esi, eax
scasb al, byte es:[edi]
sub byte [eax - 0x6e8bf8e0], 0xf9
test byte fs:[esi + ecx*2 + 0x20], bl
or dword [edx - 0x6f7fef70], ebx
adc dword [ecx - 0x34], 0
or dl, byte [edx]
or byte gs:[edi + edi*4], al
nop
and eax, 0x2be4858b
rol dword [eax - 0x46], 1
mov ecx, eax
cdq
bound edx, qword [eax]
jo 0x4020d7
ror al, cl
nop
movsd dword es:[edi], dword [esi]
dec esi
ror byte [edx + 0x418e8028], 0xa
cmp al, 0x24
mov esp, eax
or al, byte [eax + 4]
movsd dword es:[edi], dword [esi]
xor byte [eax], cl
stosd dword es:[edi], eax
inc ecx
pushal
test dword [ecx], eax
rol byte [eax + 0xa029884], 0x9c
test dword [ebp - 0x64], 0x410a44c1
add ch, al
xchg ebx, ebp
invalid
or al, 0x4e
rol dword [eax + 0x30221220], 1
push ebp
cwde
inc eax
mov ah, 2
ror byte [ebx + 0x412c40f1], 0xce
or dword [ebx], 0x88590d0
or byte [eax + 0x4102a1a0], 4
sub al, 0x23
sbb al, 0xc8
xchg byte [eax + 1], ch
jb 0x402197
adc esi, edx
adc byte [eax + eax*8], bh
mov byte [ebx], bh
adc cl, byte [eax - 0x7dfbffdc]
invalid
popal
mov dl, 0x36
or byte [edx], bl
ror byte [edx + 0x12845328], 1
add byte [esi + ebx*8 + 0xf8e0e14], cl
cmp dword [eax], 0x20b708e9
or eax, dword [edx]
cmp byte [eax], al
adc byte [edx + edx*8 + 0x42], bl
sbb byte [esp + ebp], cl
cmp al, byte [esi + 0x4c]
aam 0x40
add dword [ebx], eax
add esi, dword [ecx + eax]
and al, byte [eax + 0x21c8cbc1]
int1
inc ebp
sub al, al
aam 0x1e
add al, 0
movsd dword es:[edi], dword [esi]
adc byte [eax - 0x775fbf35], al
dec edx
inc eax
add byte [edi], ch
mov cl, 0x40
les ecx, [edx]
and bh, byte [ecx]
or byte [edi + eax + 0x3e011c64], 0x11
enter 0x5100, 0x3c
and dword [eax - 0x71fb5cd4], 0x10bc9624
inc eax
add al, byte [ecx + 0x50881010]
or al, bl
inc eax
add eax, 0x2052746c
add byte [edx + eax*8], al
push eax
sub eax, 0xe233d200
pop ds
scasb al, byte es:[edi]
inc ebp
wait
or eax, 0x207a0a39
rcl dword [edx + 0x40400209], 0x16
dec esi
pushal
or eax, dword [ecx]
cmp byte [edx], ch
inc ecx
push esp
stosb byte es:[edi], al
add al, 0
iretd