Function at 0x4a79b0
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.004e2920
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea ecx, [esp + 0x34]
push ebp
push edx
call fcn.00510fb0
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.004d8e90
test al, al
je 0x4a7fc8
mov esi, dword [esp + 0x20]
lea ecx, [esp + 0x28]
mov dword [esp + 0x14], ebp
call fcn.00420cc0
cmp esi, ebp
je 0x4a7a44
cmp word [esi], bp
jne 0x4a7a44
mov edx, dword [0x555b44]
lea ecx, [esp + 0x14]
push edx
call fcn.00424b80
jmp 0x4a7a5b
mov eax, dword [0x555b44]
lea edx, [esp + 0x14]
push edx
push 0x543354
mov ecx, dword [eax]
push ebp
push esi
push eax
call dword [ecx + 0x14]
lea ecx, [esp + 0x28]
call fcn.00424b60
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x2c]
push eax
call fcn.00510710
mov dword [esp + 0x1c], ebp
call fcn.00519340
mov edi, eax
mov eax, dword [esp + 0x54]
cmp eax, ebp
je 0x4a7a8a
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.00509390
test al, al
je 0x4a7bab
cmp edi, 1
jne 0x4a7b14
mov edx, dword [esp + 0x1c]
push 0xffffffffffffffff
sub esp, 8
mov ecx, esp
push edx
call fcn.00510710
mov ecx, dword [ebx + 0xe4]
call fcn.004ef830
lea ecx, [esp + 0x2c]
call fcn.00510740
lea ecx, [esp + 0x14]
call fcn.0045ffc0
lea ecx, [esp + 0x34]
call fcn.00510740
mov eax, dword [esp + 0x10]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a7b78
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a7b78
jmp 0x4a7b68
mov eax, dword [esp + 0x1c]
push ebp
push 1
push ebp
sub esp, 8
mov ecx, esp
push eax
call fcn.00510710
mov ecx, ebx
call fcn.00499860
lea ecx, [esp + 0x2c]
call fcn.00510740
lea ecx, [esp + 0x14]
call fcn.0045ffc0
lea ecx, [esp + 0x34]
call fcn.00510740
mov eax, dword [esp + 0x10]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a7b78
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a7b78
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00532222
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.00509350
test al, al
je 0x4a7c9b
cmp edi, 1
jne 0x4a7c7b
push 0xffffffffffffffff
lea eax, [esp + 0x38]
sub esp, 8
mov ecx, esp
push eax
call fcn.004216a0
mov ecx, dword [ebx + 0xe4]
call fcn.004ef830
lea ecx, [esp + 0x2c]
call fcn.00510740
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4a7c10
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [esp + 0x14], ebp
lea ecx, [esp + 0x34]
call fcn.00510740
mov eax, dword [esp + 0x10]
mov ecx, dword [0x547574]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4a7c48
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4a7c48
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00532222
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.0049c290
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
jmp 0x4a7fb4
push ebp
push ecx
lea eax, [esp + 0x50]
mov ecx, esp
push eax
call fcn.00405440
lea ecx, [esp + 0x30]
push ecx
call fcn.004e1ca0
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 0x4a7d08
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4a7cdc
mov edx, dword [0x547574]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4a7ce3
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4a7cf3
mov edx, dword [eax - 8]
push eax
push edx
lea ecx, [esp + 0x50]
call fcn.00405870
jmp 0x4a7d08
lea ecx, [esp + 0x48]
call fcn.004124c0
mov esi, dword [esi]
mov dword [esp + 0x48], esi
add esi, 0xfffffff4
push esi
call ebp
mov eax, dword [esp + 0x28]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a7d3b
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4a7d41
mov edx, dword [esp + 0x28]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
jmp 0x4a7d41
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea eax, [esp + 0x48]
mov ecx, ebx
push eax
call fcn.0049ff10
lea ecx, [esp + 0x54]
push ecx
lea ecx, [ebx + 0x1d0]
call fcn.00511000
mov edx, dword [0x547570]
push 0x11
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, 0x80
je 0x4a7db7
mov eax, str.runas
test eax, eax
je 0x4a7d88
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
jmp 0x4a7d8a
xor esi, esi
push esi
lea ecx, [esp + 0x1c]
call fcn.00405660
test eax, eax
je 0x4a7db7
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 0x4a7f3e
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.004e1ca0
mov ecx, dword [esp + 0x58]
mov esi, eax
add esp, 0xc
mov eax, dword [esi]
cmp ecx, eax
je 0x4a7e33
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4a7e07
mov edx, dword [0x547574]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4a7e0e
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4a7e1e
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x54]
call fcn.00405870
jmp 0x4a7e33
lea ecx, [esp + 0x4c]
call fcn.004124c0
mov esi, dword [esi]
mov dword [esp + 0x4c], esi
add esi, 0xfffffff4
push esi
call ebp
mov eax, dword [esp + 0x28]
mov ecx, dword [0x547574]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4a7e5e
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4a7e5e
mov eax, dword [esp + 0x28]
add eax, 0xfffffff4
push eax
call fcn.00532222
add esp, 4
push 0
push str._fdir_
lea ecx, [esp + 0x54]
call fcn.00405c70
test eax, eax
jl 0x4a7f3e
mov eax, dword [esp + 0x44]
push ecx
mov esi, esp
mov ecx, dword [eax - 0xc]
test ecx, ecx
jl 0x4a7e92
mov dword [esi], eax
mov ecx, dword [esp + 0x48]
add ecx, 0xfffffff4
push ecx
call ebp
jmp 0x4a7eba
mov edx, dword [0x547570]
mov dword [esi], edx
mov eax, dword [esp + 0x48]
test eax, eax
mov edi, eax
je 0x4a7eab
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.004ba610
mov ecx, dword [esp + 0x5c]
mov esi, eax
add esp, 8
mov eax, dword [esi]
cmp ecx, eax
je 0x4a7f13
mov edx, dword [ecx - 0xc]
test edx, edx
jge 0x4a7ee7
mov edx, dword [0x547574]
add ecx, 0xfffffff4
cmp ecx, edx
jne 0x4a7eee
mov ecx, dword [eax - 0xc]
test ecx, ecx
jge 0x4a7efe
mov ecx, dword [eax - 8]
push eax
push ecx
lea ecx, [esp + 0x5c]
call fcn.00405870
jmp 0x4a7f13
lea ecx, [esp + 0x54]
call fcn.004124c0
mov eax, dword [esi]
mov dword [esp + 0x54], eax
add eax, 0xfffffff4
push eax
call ebp
mov eax, dword [esp + 0x28]
mov ecx, dword [0x547574]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4a7f3e
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4a7f3e
mov eax, dword [esp + 0x28]
add eax, 0xfffffff4
push eax
call fcn.00532222
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 [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a7f89
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4a7f89
mov edx, dword [esp + 0x18]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
mov eax, dword [esp + 0x54]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a7fb4
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4a7fb4
mov edx, dword [esp + 0x54]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
lea ecx, [esp + 0x2c]
call fcn.00510740
lea ecx, [esp + 0x14]
call fcn.0045ffc0
jmp 0x4a7fce
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [esp + 0x34]
call fcn.00510740
mov eax, dword [esp + 0x10]
mov edx, dword [0x547574]
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x4a8002
add eax, 0xfffffff4
push eax
call edi
test eax, eax
jg 0x4a8002
mov edx, dword [esp + 0x10]
add edx, 0xfffffff4
push edx
call fcn.00532222
add esp, 4
lea ecx, [esp + 0x40]
call fcn.004a8020
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 0x18