Function at 0x409580
Capabilities:
Log keystrokes via application hook
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44b02d
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x46500c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0xab8]
mov eax, dword [eax + 0x44]
mov eax, dword [eax]
test eax, eax
je 0x4095c0
push eax
call dword [sym.imp.USER32.dll_SetFocus]
lea ecx, [ebp - 0x40]
call fcn.004024c0
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], vtable.CWConstString.0
mov dword [ebp - 0x34], 0x457940
mov dword [ebp - 4], 1
mov edi, 0x456184
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x145c]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0x44]
cmp dword [eax], 0
je 0x409654
mov eax, dword [ecx]
call dword [eax + 0x28]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x409654
mov ebx, dword [ebp - 0x34]
test ebx, ebx
jne 0x40961a
cmp dword [ebp - 0x1c], 0
mov ebx, edi
cmovne ebx, dword [ebp - 0x24]
cmp dword [ebp - 0x10], 0
je 0x409641
mov eax, dword [0x467f30]
mov ecx, 0x467f30
call dword [eax]
mov ecx, dword [ebp - 0x10]
movzx ecx, cx
push ecx
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov ecx, eax
mov eax, dword [ebp - 0x14]
jmp 0x409643
xor ecx, ecx
push ecx
push ebx
push ecx
mov ecx, dword [eax + 4]
lea edx, [eax + 0x74]
call fcn.00431340
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004019f0
lea ecx, [ebp - 0x40]
call fcn.004024c0
mov dword [ebp - 4], 4
mov dword [ebp - 0x40], vtable.CWConstString.0
mov dword [ebp - 0x34], 0x4579e4
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x4096ac
cmp dword [ebp - 0x1c], eax
jne 0x4096a9
mov ecx, dword [esi + 0x1478]
mov eax, 0x456184
mov ebx, dword [esi + 0x1480]
mov dword [ebp - 0x10], ecx
jmp 0x4096bf
mov eax, dword [ebp - 0x24]
mov ecx, dword [esi + 0x1478]
mov ebx, dword [esi + 0x1480]
mov dword [ebp - 0x10], ecx
test eax, eax
je 0x4096f5
cmp word [eax], 0
je 0x4096f5
test ebx, ebx
js 0x4096f5
push 0x4594d0
push eax
call fcn.0043cd26
add esp, 8
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4096f5
push eax
push ebx
push 1
push dword [ebp - 0x10]
call fcn.0043b433
push dword [ebp - 0x14]
call fcn.0043acff
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004019f0
lea ecx, [ebp - 0x40]
call fcn.004024c0
mov dword [ebp - 4], 7
mov dword [ebp - 0x40], vtable.CWConstString.0
mov dword [ebp - 0x34], str.Regsvr32_C:WindowsSysWOW64TSPlug.dll__s
mov dword [ebp - 4], 8
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x409739
cmp dword [ebp - 0x1c], 0
mov eax, edi
cmovne eax, dword [ebp - 0x24]
push ecx
mov ecx, eax
call fcn.00421f00
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004019f0
lea ecx, [ebp - 0x6c]
call fcn.004024c0
mov dword [ebp - 4], 0xa
mov dword [ebp - 0x6c], vtable.CWConstString.0
mov dword [ebp - 0x60], str.C:WindowsSysWOW64TSPlug.dll
mov dword [ebp - 4], 0xb
lea ecx, [ebp - 0x40]
call fcn.004024c0
mov byte [ebp - 4], 0xc
mov dword [ebp - 0x40], vtable.CWConstString.0
mov dword [ebp - 0x34], str.ts.tssoft
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x60]
test ecx, ecx
jne 0x4097a6
cmp dword [ebp - 0x48], 0
mov ecx, edi
cmovne ecx, dword [ebp - 0x50]
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x4097b7
cmp dword [ebp - 0x1c], 0
mov eax, edi
cmovne eax, dword [ebp - 0x24]
push ecx
lea ebx, [esi + 0x1488]
push eax
mov ecx, ebx
call fcn.0041f8d0
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x40]
call fcn.004019f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.004019f0
lea ecx, [ebp - 0x6c]
call fcn.004024c0
mov dword [ebp - 4], 0x10
mov dword [ebp - 0x6c], vtable.CWConstString.0
mov dword [ebp - 0x60], 0x457ad8
mov dword [ebp - 4], 0x11
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x409819
cmp dword [ebp - 0x48], 0
mov eax, edi
cmovne eax, dword [ebp - 0x50]
push 1
push str.CSnn
push 3
push eax
push 2
push ebx
call fcn.00421030
add esp, 0x18
mov ebx, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.004019f0
cmp dword [ebp - 0x14], 0
je 0x40984d
test ebx, ebx
jne 0x40990f
lea ecx, [ebp - 0x40]
call fcn.004024c0
mov dword [ebp - 4], 0x13
mov dword [ebp - 0x40], vtable.CWConstString.0
mov dword [ebp - 0x34], 0x457af0
mov dword [ebp - 4], 0x14
lea ecx, [ebp - 0x6c]
call fcn.004024c0
mov byte [ebp - 4], 0x15
mov dword [ebp - 0x6c], vtable.CWConstString.0
mov dword [ebp - 0x60], 0x457afc
mov byte [ebp - 4], 0x16
call dword [sym.imp.USER32.dll_GetFocus]
mov edx, dword [ebp - 0x34]
mov ebx, eax
test edx, edx
jne 0x4098a8
cmp dword [ebp - 0x1c], 0
mov edx, edi
cmovne edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x60]
test ecx, ecx
jne 0x4098b9
cmp dword [ebp - 0x48], 0
mov ecx, edi
cmovne ecx, dword [ebp - 0x50]
mov eax, dword [esi + 0xc]
push 0
push edx
push ecx
mov eax, dword [eax + 0x44]
push dword [eax]
call dword [sym.imp.USER32.dll_MessageBoxW]
test ebx, ebx
je 0x4098e1
push ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4098e1
push ebx
call dword [sym.imp.USER32.dll_SetFocus]
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x6c]
call fcn.004019f0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.004019f0
mov eax, dword [esi + 0xc]
mov eax, dword [eax + 0x44]
mov eax, dword [eax]
test eax, eax
je 0x40990f
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
lea ecx, [ebp - 0x6c]
call fcn.004024c0
mov dword [ebp - 4], 0x19
mov dword [ebp - 0x6c], vtable.CWConstString.0
mov dword [ebp - 0x60], str.KeyPress
mov dword [ebp - 4], 0x1a
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x409943
cmp dword [ebp - 0x48], eax
cmovne edi, dword [ebp - 0x50]
mov eax, edi
push dword [esi + 0x1500]
push str.CSnn
push 3
push eax
lea eax, [esi + 0x1488]
push 2
push eax
call fcn.00421030
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x6c]
call fcn.004019f0
lea eax, [esi + 0x149c]
mov esi, dword [eax + 0xc]
add esi, 8
cmp dword [esi + 0x14], 0
jne 0x4099a7
push 0
push 0
push 0x428090
push 0xd
mov dword [0x467f20], esi
mov dword [esi + 0xc], eax
mov dword [esi + 4], 0x412130
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [esi + 0x14], eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8