Function at 0x404f81
Capabilities:
Create process on windows
Log keystrokes
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5d4
push edi
mov dword [ebp - 0x36c], 0x44
mov dword [ebp - 0x368], 0
mov ecx, 0xf
xor eax, eax
lea edi, [ebp - 0x364]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
push 0x413574
push 0x41357c
call dword [sym.imp.USER32.dll_FindWindowA]
mov dword [ebp - 4], eax
push 0x104
push 0
lea ecx, [ebp - 0x324]
push ecx
call fcn.00408390
add esp, 0xc
mov edx, dword [ebp + 8]
add edx, 1
push edx
push 0x41358c
push 0x4135ac
lea eax, [ebp - 0x470]
push eax
call fcn.0040811b
add esp, 0x10
lea ecx, [ebp - 0x474]
push ecx
push 0x20019
push 0
lea edx, [ebp - 0x470]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
neg eax
sbb eax, eax
inc eax
mov dword [ebp - 0x328], eax
mov dword [ebp - 0x18], 0x104
cmp dword [ebp - 0x328], 0
je 0x405075
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x11c]
push ecx
push 0
push 0
push 0x4135b4
mov edx, dword [ebp - 0x474]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405075
mov dword [ebp - 0x5cc], 1
jmp 0x40507f
mov dword [ebp - 0x5cc], 0
mov eax, dword [ebp - 0x5cc]
mov dword [ebp - 0x328], eax
mov dword [ebp - 0x18], 0x104
cmp dword [ebp - 0x328], 0
je 0x4050cc
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x324]
push edx
push 0
push 0
push 0x4135bc
mov eax, dword [ebp - 0x474]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4050cc
mov dword [ebp - 0x5d0], 1
jmp 0x4050d6
mov dword [ebp - 0x5d0], 0
mov ecx, dword [ebp - 0x5d0]
mov dword [ebp - 0x328], ecx
mov edx, dword [ebp - 0x474]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x328], 0
jne 0x405189
mov dword [ebp - 0x5b4], 0
mov ecx, 0x4f
xor eax, eax
lea edi, [ebp - 0x5b0]
rep stosd dword es:[edi], eax
push 0x104
lea eax, [ebp - 0x11c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [ebp + 8]
add ecx, 1
push ecx
push 0x4135c8
push 0x5c
lea edx, [ebp - 0x11c]
push edx
call fcn.004082e0
add esp, 8
push eax
call fcn.0040811b
add esp, 0xc
lea eax, [ebp - 0x5b4]
push eax
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x5b8], eax
cmp dword [ebp - 0x5b8], 0xffffffff
je 0x405189
mov edx, dword [ebp - 0x5b8]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 0x328], 1
cmp dword [ebp - 0x328], 0
jne 0x405199
xor eax, eax
jmp 0x40531d
movsx eax, byte [ebp - 0x324]
test eax, eax
je 0x4051c8
lea ecx, [ebp - 0x324]
push ecx
lea edx, [ebp - 0x11c]
push edx
push 0x4135d8
lea eax, [ebp - 0x220]
push eax
call fcn.0040811b
add esp, 0x10
jmp 0x4051de
lea ecx, [ebp - 0x11c]
push ecx
lea edx, [ebp - 0x220]
push edx
call fcn.00408170
add esp, 8
call fcn.00404ef0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp dword [ebp - 4], eax
je 0x4052a9
call dword [sym.imp.USER32.dll_GetActiveWindow]
test eax, eax
je 0x405283
lea eax, [ebp - 0x5bc]
push eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [ebp - 0x5c8], eax
lea ecx, [ebp - 0x5c0]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [ebp - 0x5c4], eax
mov eax, dword [ebp - 0x5bc]
cmp eax, dword [ebp - 0x5c0]
jne 0x40524b
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
jmp 0x405281
push 1
mov edx, dword [ebp - 0x5c8]
push edx
mov eax, dword [ebp - 0x5c4]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
mov edx, dword [ebp - 0x5c8]
push edx
mov eax, dword [ebp - 0x5c4]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
jmp 0x4052a9
push 0
push 0
push 0
push 0x10
call dword [sym.imp.USER32.dll_keybd_event]
push 0
push 2
push 0
push 0x10
call dword [sym.imp.USER32.dll_keybd_event]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp dword [ebp - 0x328], 0
je 0x4052ed
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 0x36c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4052ed
mov dword [ebp - 0x5d4], 1
jmp 0x4052f7
mov dword [ebp - 0x5d4], 0
mov eax, dword [ebp - 0x5d4]
mov dword [ebp - 0x328], eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x328]
pop edi
mov esp, ebp
pop ebp
ret