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

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov ebx, ecx
push ebp
push ecx
lea eax, [esp + 0x4c]
mov ecx, esp
push eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
call fcn.00405440
lea ecx, [esp + 0x18]
push ecx
call fcn.004e1d60
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x34]
push ebp
push edx
call fcn.005106b0
lea eax, [esp + 0x34]
lea ecx, [esp + 0x38]
neg eax
sbb eax, eax
lea edx, [esp + 0x24]
and eax, ecx
lea ecx, [esp + 0x20]
push edx
push ecx
mov eax, dword [eax]
lea ecx, [ebx + 0x2c]
push eax
call fcn.004d82d0
test al, al
je 0x4a7078
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], ebp
call fcn.00420df0
cmp esi, ebp
je 0x4a6af4
cmp word [esi], bp
jne 0x4a6af4
mov edx, dword [0x554ad4]
lea ecx, [esp + 0x14]
push edx
call fcn.00424ca0
jmp 0x4a6b0b
mov eax, dword [0x554ad4]
lea edx, [esp + 0x14]
push edx
push 0x542354
mov ecx, dword [eax]
push ebp
push esi
push eax
call dword [ecx + 0x14]
lea ecx, [esp + 0x28]
call fcn.00424c80
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
push eax
call fcn.0050fe10
mov dword [esp + 0x1c], ebp
call fcn.005186e0
mov edi, eax
mov eax, dword [esp + 0x54]
cmp eax, ebp
je 0x4a6b3a
mov edi, 1
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x30]
neg eax
sbb eax, eax
lea edx, [esp + 0x1c]
and eax, ecx
push edx
lea esi, [ebx + 0x20]
mov eax, dword [eax]
mov ecx, esi
push eax
mov eax, dword [esp + 0x1c]
push eax
call fcn.00508830
test al, al
je 0x4a6c5b
cmp edi, 1
jne 0x4a6bc4
mov edx, dword [esp + 0x1c]
push 0xffffffffffffffff
sub esp, 8
mov ecx, esp
push edx
call fcn.0050fe10
mov ecx, dword [ebx + 0xe4]
call fcn.004eec70
lea ecx, [esp + 0x2c]
call fcn.0050fe40
lea ecx, [esp + 0x14]
call fcn.0045f6e0
lea ecx, [esp + 0x34]
call fcn.0050fe40
mov eax, dword [esp + 0x10]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a6c28
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a6c28
jmp 0x4a6c18
mov eax, dword [esp + 0x1c]
push ebp
push 1
push ebp
sub esp, 8
mov ecx, esp
push eax
call fcn.0050fe10
mov ecx, ebx
call fcn.00498910
lea ecx, [esp + 0x2c]
call fcn.0050fe40
lea ecx, [esp + 0x14]
call fcn.0045f6e0
lea ecx, [esp + 0x34]
call fcn.0050fe40
mov eax, dword [esp + 0x10]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a6c28
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a6c28
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
lea ecx, [esp + 0x50]
call fcn.00405700
lea ecx, [esp + 0x4c]
call fcn.00405700
lea ecx, [esp + 0x48]
call fcn.00405700
lea ecx, [esp + 0x44]
call fcn.00405700
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x18
lea eax, [esp + 0x2c]
mov edx, dword [esp + 0x14]
neg eax
sbb eax, eax
lea ecx, [esp + 0x30]
and eax, ecx
mov ecx, esi
mov eax, dword [eax]
push eax
push edx
call fcn.005087f0
test al, al
je 0x4a6d4b
cmp edi, 1
jne 0x4a6d2b
push 0xffffffffffffffff
lea eax, [esp + 0x38]
sub esp, 8
mov ecx, esp
push eax
call fcn.004217d0
mov ecx, dword [ebx + 0xe4]
call fcn.004eec70
lea ecx, [esp + 0x2c]
call fcn.0050fe40
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4a6cc0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x14], ebp
lea ecx, [esp + 0x34]
call fcn.0050fe40
mov eax, dword [esp + 0x10]
mov ecx, dword [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4a6cf8
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a6cf8
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
lea ecx, [esp + 0x50]
call fcn.00405700
lea ecx, [esp + 0x4c]
call fcn.00405700
lea ecx, [esp + 0x48]
call fcn.00405700
lea ecx, [esp + 0x44]
call fcn.00405700
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x18
push ebp
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
push edx
call fcn.00405440
mov ecx, ebx
call fcn.0049b340
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
jmp 0x4a7064
push ebp
push ecx
lea eax, [esp + 0x50]
mov ecx, esp
push eax
call fcn.00405440
lea ecx, [esp + 0x30]
push ecx
call fcn.004e10e0
mov ecx, dword [esp + 0x54]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov esi, eax
add esp, 0xc
mov eax, dword [esi]
cmp ecx, eax
je 0x4a6db8
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4a6d8c
mov edx, dword [0x546564]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4a6d93
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4a6da3
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x50]
call fcn.00405870
jmp 0x4a6db8
lea ecx, [esp + 0x48]
call fcn.00412670
mov esi, dword [esi]
mov dword [esp + 0x48], esi
add esi, 0xfffffff4
push esi
call ebp
mov eax, dword [esp + 0x28]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a6deb
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4a6df1
mov edx, dword [esp + 0x28]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
jmp 0x4a6df1
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea eax, [esp + 0x48]
mov ecx, ebx
push eax
call fcn.0049efc0
lea ecx, [esp + 0x54]
push ecx
lea ecx, [ebx + 0x1d0]
call fcn.00510700
mov edx, dword [0x546560]
push 0x11
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x4a6e67
mov eax, str.runas
test eax, eax
je 0x4a6e38
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
jmp 0x4a6e3a
xor esi, esi
push esi
lea ecx, [esp + 0x1c]
call fcn.00405660
test eax, eax
je 0x4a6e67
mov ecx, dword [esp + 0x18]
inc esi
push esi
push str.runas
push ecx
call fcn.00405400
add esp, 0xc
lea ecx, [esp + 0x18]
push 0xffffffffffffffff
call fcn.00405bb0
mov edx, dword [esp + 0x4c]
mov eax, dword [edx - 8]
test eax, eax
je 0x4a6fee
mov eax, dword [ebx + 0xe4]
lea edx, [esp + 0x4c]
push eax
push ecx
mov ecx, esp
push edx
call fcn.00405440
lea eax, [esp + 0x30]
push eax
call fcn.004e10e0
mov ecx, dword [esp + 0x58]
mov esi, eax
add esp, 0xc
mov eax, dword [esi]
cmp ecx, eax
je 0x4a6ee3
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4a6eb7
mov edx, dword [0x546564]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4a6ebe
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4a6ece
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x54]
call fcn.00405870
jmp 0x4a6ee3
lea ecx, [esp + 0x4c]
call fcn.00412670
mov esi, dword [esi]
mov dword [esp + 0x4c], esi
add esi, 0xfffffff4
push esi
call ebp
mov eax, dword [esp + 0x28]
mov ecx, dword [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4a6f0e
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4a6f0e
mov eax, dword [esp + 0x28]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
push 0
push str._fdir_
lea ecx, [esp + 0x54]
call fcn.00405c70
test eax, eax
jl 0x4a6fee
mov eax, dword [esp + 0x44]
push ecx
mov esi, esp
mov ecx, dword [eax - 0xc]
test ecx, ecx
jl 0x4a6f42
mov dword [esi], eax
mov ecx, dword [esp + 0x48]
add ecx, 0xfffffff4
push ecx
call ebp
jmp 0x4a6f6a
mov edx, dword [0x546560]
mov dword [esi], edx
mov eax, dword [esp + 0x48]
test eax, eax
mov edi, eax
je 0x4a6f5b
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push eax
mov ecx, esi
call fcn.00405870
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea eax, [esp + 0x2c]
push eax
call fcn.004b9550
mov ecx, dword [esp + 0x5c]
mov esi, eax
add esp, 8
mov eax, dword [esi]
cmp ecx, eax
je 0x4a6fc3
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4a6f97
mov edx, dword [0x546564]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4a6f9e
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4a6fae
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x5c]
call fcn.00405870
jmp 0x4a6fc3
lea ecx, [esp + 0x54]
call fcn.00412670
mov eax, dword [esi]
mov dword [esp + 0x54], eax
add eax, 0xfffffff4
push eax
call ebp
mov eax, dword [esp + 0x28]
mov ecx, dword [0x546564]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4a6fee
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4a6fee
mov eax, dword [esp + 0x28]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
push 1
push ecx
mov ecx, dword [esp + 0x20]
push edx
mov edx, dword [ebx + 4]
push eax
push ecx
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esp + 0x18]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a7039
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4a7039
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
mov eax, dword [esp + 0x54]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a7064
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4a7064
mov edx, dword [esp + 0x54]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
lea ecx, [esp + 0x2c]
call fcn.0050fe40
lea ecx, [esp + 0x14]
call fcn.0045f6e0
jmp 0x4a707e
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [esp + 0x34]
call fcn.0050fe40
mov eax, dword [esp + 0x10]
mov edx, dword [0x546564]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a70b2
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4a70b2
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00531732
add esp, 4
lea ecx, [esp + 0x40]
call fcn.004a70d0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 0x18