Function at 0x4ad950
Capabilities:
Create process on windows
Log keystrokes via polling

Disassembly:
sub esp, 0x10
mov eax, dword [0x547570]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x18], ecx
push 0x11
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x4ad9b8
mov eax, str.runas
test eax, eax
je 0x4ad989
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
jmp 0x4ad98b
xor esi, esi
push esi
lea ecx, [esp + 0x18]
call fcn.00405660
test eax, eax
je 0x4ad9b8
mov ecx, dword [esp + 0x14]
inc esi
push esi
push str.runas
push ecx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x14]
push 0xffffffffffffffff
call fcn.00405bb0
mov edi, dword [esp + 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push ecx
mov ecx, dword [edi - 0xc]
lea eax, [edi - 0xc]
test ecx, ecx
mov esi, esp
mov dword [esp + 0x20], eax
jl 0x4ad9da
push eax
mov dword [esi], edi
call ebx
jmp 0x4ad9fa
mov edx, dword [0x547570]
test edi, edi
mov dword [esi], edx
jne 0x4ad9ea
xor eax, eax
jmp 0x4ad9f1
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
mov ecx, esi
call fcn.00405870
lea eax, [esp + 0x28]
push eax
call fcn.004ba610
mov ecx, dword [esp + 0x18]
mov esi, eax
add esp, 8
mov eax, dword [esi]
cmp ecx, eax
je 0x4ada53
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4ada27
mov edx, dword [0x547574]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4ada2e
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4ada3e
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00405870
jmp 0x4ada53
lea ecx, [esp + 0x10]
call fcn.004124c0
mov esi, dword [esi]
mov dword [esp + 0x10], esi
add esi, 0xfffffff4
push esi
call ebx
mov eax, dword [esp + 0x24]
mov ecx, dword [0x547574]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4ada84
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x4ada84
mov eax, dword [esp + 0x24]
add eax, 0xfffffff4
push eax
call fcn.00532222
add esp, 4
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x4adb20
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x24]
push ecx
lea ecx, [edx + 0x1d0]
call fcn.00511000
mov ecx, dword [esp + 0x10]
mov esi, eax
mov eax, dword [esi]
cmp ecx, eax
je 0x4adaf5
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4adac9
mov edx, dword [0x547574]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4adad0
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4adae0
push eax
mov eax, dword [eax - 8]
push eax
lea ecx, [esp + 0x18]
call fcn.00405870
jmp 0x4adaf5
lea ecx, [esp + 0x10]
call fcn.004124c0
mov esi, dword [esi]
mov dword [esp + 0x10], esi
add esi, 0xfffffff4
push esi
call ebx
mov eax, dword [esp + 0x24]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4adb20
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x4adb20
mov edx, dword [esp + 0x24]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 1
push eax
mov eax, dword [edx + 4]
push 0
push edi
push ecx
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esp + 0x14]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4adb68
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x4adb68
mov edx, dword [esp + 0x14]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x10]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4adb93
add eax, 0xfffffff4
push eax
call ebp
test eax, eax
jg 0x4adb93
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [0x547574]
add edi, 0xfffffff4
cmp edi, eax
je 0x4adbb3
mov esi, dword [esp + 0x1c]
push esi
call ebp
test eax, eax
jg 0x4adbb3
push esi
call fcn.00532222
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 4