Function at 0x401413
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xf0
push edi
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0
je 0x40142a
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
je 0x401437
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 0
je 0x401444
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x14], 0
je 0x401451
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x18], 0
je 0x40145e
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 0
je 0x40146b
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0x20], 0
je 0x401478
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0x24], 0
je 0x401485
mov dword [ebp - 0x28], 0
cmp dword [ebp - 0x28], 0
je 0x401492
mov dword [ebp - 0x2c], 0
cmp dword [ebp - 0x2c], 0
je 0x40149f
mov dword [ebp - 0x30], 0
cmp dword [ebp - 0x30], 0
je 0x4014ac
mov dword [ebp - 0x34], 0
cmp dword [ebp - 0x34], 0
je 0x4014b9
mov dword [ebp - 0x38], 0
cmp dword [ebp - 0x38], 0
je 0x4014c6
mov dword [ebp - 0x3c], 0
cmp dword [ebp - 0x3c], 0
je 0x4014d3
mov dword [ebp - 0x40], 0
cmp dword [ebp - 0x40], 0
je 0x4014e0
mov dword [ebp - 0x44], 0
cmp dword [ebp - 0x44], 0
je 0x4014ed
mov dword [ebp - 0x48], 0
cmp dword [ebp - 0x48], 0
je 0x4014fa
mov dword [ebp - 0x4c], 0
cmp dword [ebp - 0x4c], 0
je 0x401507
mov dword [ebp - 0x50], 0
cmp dword [ebp - 0x50], 0
je 0x401514
mov dword [ebp - 0x54], 0
cmp dword [ebp - 0x54], 0
je 0x401521
mov dword [ebp - 0x58], 0
cmp dword [ebp - 0x58], 0
je 0x40152e
mov dword [ebp - 0x5c], 0
cmp dword [ebp - 0x5c], 0
je 0x40153b
mov dword [ebp - 0x60], 0
cmp dword [ebp - 0x60], 0
je 0x401548
mov dword [ebp - 0x64], 0
cmp dword [ebp - 0x64], 0
je 0x401555
mov dword [ebp - 0x68], 0
cmp dword [ebp - 0x68], 0
je 0x401562
mov dword [ebp - 0x6c], 0
cmp dword [ebp - 0x6c], 0
je 0x40156f
mov dword [ebp - 0x70], 0
cmp dword [ebp - 0x70], 0
je 0x40157c
mov dword [ebp - 0x74], 0
cmp dword [ebp - 0x74], 0
je 0x401589
mov dword [ebp - 0x78], 0
cmp dword [ebp - 0x78], 0
je 0x401596
mov dword [ebp - 0x7c], 0
cmp dword [ebp - 0x7c], 0
je 0x4015a3
mov dword [ebp - 0x80], 0
cmp dword [ebp - 0x80], 0
je 0x4015b0
mov dword [ebp - 0x84], 0
cmp dword [ebp - 0x84], 0
je 0x4015c3
mov dword [ebp - 0x88], 0
cmp dword [ebp - 0x88], 0
je 0x4015d6
mov dword [ebp - 0x8c], 0
cmp dword [ebp - 0x8c], 0
je 0x4015e9
mov dword [ebp - 0x90], 0
cmp dword [ebp - 0x90], 0
je 0x4015fc
mov dword [ebp - 0x94], 0
cmp dword [ebp - 0x94], 0
je 0x40160f
mov dword [ebp - 0x98], 0
cmp dword [ebp - 0x98], 0
je 0x401622
mov dword [ebp - 0x9c], 0
cmp dword [ebp - 0x9c], 0
je 0x401635
mov dword [ebp - 0xa0], 0
cmp dword [ebp - 0xa0], 0
je 0x401648
mov dword [ebp - 0xa4], 0
cmp dword [ebp - 0xa4], 0
je 0x40165b
mov dword [ebp - 0xa8], 0
cmp dword [ebp - 0xa8], 0
je 0x40166e
mov dword [ebp - 0xac], 0
cmp dword [ebp - 0xac], 0
je 0x401681
mov dword [ebp - 0xb0], 0
cmp dword [ebp - 0xb0], 0
je 0x401694
mov dword [ebp - 0xb4], 0
cmp dword [ebp - 0xb4], 0
je 0x4016a7
mov dword [ebp - 0xb8], 0
cmp dword [ebp - 0xb8], 0
je 0x4016ba
mov dword [ebp - 0xbc], 0
cmp dword [ebp - 0xbc], 0
je 0x4016cd
mov dword [ebp - 0xc0], 0
cmp dword [ebp - 0xc0], 0
je 0x4016e0
mov dword [ebp - 0xc4], 0
cmp dword [ebp - 0xc4], 0
je 0x4016f3
mov dword [ebp - 0xc8], 0
cmp dword [ebp - 0xc8], 0
je 0x401706
mov dword [ebp - 0xcc], 0
cmp dword [ebp - 0xcc], 0
je 0x401719
mov dword [ebp - 0xd0], 0
cmp dword [ebp - 0xd0], 0
je 0x40172c
mov dword [ebp - 0xd4], 0
cmp dword [ebp - 0xd4], 0
je 0x40173f
mov dword [ebp - 0xd8], 0
cmp dword [ebp - 0xd8], 0
je 0x401752
mov dword [ebp - 0xdc], 0
cmp dword [ebp - 0xdc], 0
je 0x401765
mov dword [ebp - 0xe0], 0
cmp dword [ebp - 0xe0], 0
je 0x401778
mov dword [ebp - 0xe4], 0
cmp dword [ebp - 0xe4], 0
je 0x40178b
mov dword [ebp - 0xe8], 0
cmp dword [ebp - 0xe8], 0
je 0x40179e
mov dword [ebp - 0xec], 0
cmp dword [ebp - 0xec], 0
je 0x4017b1
lea edi, [ebp - 4]
push edi
push 0xf003f
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
mov dword [ebp - 0xf0], eax
cmp dword [ebp - 0xf0], 0
jne 0x40180d
cmp dword [ebp + 8], 0
je 0x401802
push dword [ebp + 0x10]
call sub.KERNEL32.DLL_lstrlenA
mov edi, eax
add edi, 1
push edi
push dword [ebp + 0x10]
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegSetValueExA
jmp 0x40180d
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegDeleteValueA
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
pop edi
leave
ret