Function at 0x408d1a
Capabilities:
Accept command line arguments
Persist via run registry key
Set registry value

Disassembly:
mov eax, 0x45f882
call fcn.0043b410
sub esp, 0xb4
push ebx
xor ebx, ebx
push esi
push edi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x18]
mov edi, 0xf003f
push eax
push edi
push ebx
mov esi, SysReAllocStringLen
push str.SoftwareMicrosoftWindowsCurrentVersion
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x408e3b
lea ecx, [ebp - 0x14]
call fcn.00409172
mov ecx, dword [ebp - 0x18]
cmp eax, ebx
mov dword [ebp - 0x14], ecx
jne 0x408e3b
mov ecx, dword [0x47d7ec]
lea eax, [ebp - 0x48]
push eax
call fcn.00403637
lea eax, [ebp - 0x1d]
push ebx
push eax
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
mov dword [ebp - 0x98], 0x467548
mov dword [ebp - 0x78], 0x467550
call fcn.00401aaf
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 2
cmp eax, ebx
jne 0x408db9
mov eax, 0x46756c
push eax
lea eax, [ebp - 0x98]
push str.__IS_PREREQ____s
push eax
call fcn.004058da
add esp, 0xc
lea ecx, [ebp - 0x70]
push 1
push dword [ebp + 8]
call fcn.0040a73e
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.0040bc49
lea ecx, [ebp - 0x98]
mov dword [ebp + 8], eax
call fcn.00401f8a
push dword [ebp + 8]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 8]
push 1
push ebx
push dword [ebp - 0x18]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 2
call fcn.0040632e
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
call fcn.00401279
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.00401279
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 0x100], bl
jne 0x408e57
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00409172
jmp 0x40914c
mov dword [ebp - 0x10], ebx
lea eax, [ebp + 8]
mov byte [ebp - 4], 4
push eax
push edi
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push esi
mov dword [ebp + 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x408e89
lea ecx, [ebp - 0x10]
call fcn.00409172
mov ecx, dword [ebp + 8]
cmp eax, ebx
mov dword [ebp - 0x10], ecx
je 0x408ec3
lea eax, [ebp - 0x18]
mov dword [ebp + 8], ebx
push eax
lea eax, [ebp + 8]
push eax
push ebx
push edi
push ebx
push ebx
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionRunOnce
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
jne 0x40912f
lea ecx, [ebp - 0x10]
call fcn.00409172
mov ecx, dword [ebp + 8]
cmp eax, ebx
mov dword [ebp - 0x10], ecx
jne 0x40912f
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x48]
push 0x12
push edx
mov ecx, dword [eax + 0xc8]
mov eax, dword [ecx]
call dword [eax + 0x1c]
cmp dword [ebp - 0x3c], ebx
mov byte [ebp - 4], 5
jne 0x408f1a
lea eax, [ebp + 0xb]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [ebp - 0xc0]
call fcn.00401721
lea eax, [ebp - 0xc0]
lea ecx, [ebp - 0x48]
push eax
mov byte [ebp - 4], 6
call fcn.004019b3
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 5
call fcn.00401279
lea eax, [ebp + 0xb]
push 1
push eax
push 0x4762c0
lea ecx, [ebp - 0xc0]
call fcn.00401bb7
lea eax, [ebp - 0xc0]
lea ecx, [ebp - 0x48]
push eax
mov byte [ebp - 4], 7
call fcn.0040a679
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 5
call fcn.00401279
mov ecx, dword [0x47d7ec]
lea eax, [ebp - 0x70]
push eax
call fcn.00403767
lea eax, [ebp - 0x98]
push ebx
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 8
call fcn.004057f5
lea eax, [ebp - 0x70]
lea ecx, [ebp - 0x6c]
neg eax
sbb eax, eax
push ebx
and eax, ecx
lea ecx, [ebp - 0x44]
push eax
mov byte [ebp - 4], 9
call fcn.0040b76b
mov dword [ebp + 8], eax
lea eax, [ebp - 0x98]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x94]
and eax, ecx
push ebx
push eax
lea ecx, [ebp - 0x44]
call fcn.0040b76b
mov esi, str..exe
mov edi, eax
push esi
mov dword [ebp - 0x1c], edi
call fcn.0043b8c2
pop ecx
push eax
push ebx
push esi
lea ecx, [ebp - 0x44]
call fcn.00402566
push ebx
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.0040cdc7
cmp word [eax], 0x22
je 0x40908a
cmp dword [ebp + 8], ebx
jne 0x408fe9
mov edi, dword [ebp - 0x64]
jmp 0x409006
mov eax, dword [0x467558]
cmp eax, edi
je 0x408ffc
mov eax, dword [ebp - 0x8c]
add edi, eax
jmp 0x409006
cmp eax, esi
lea edi, [esi + 4]
jne 0x409006
mov edi, dword [ebp - 0x3c]
mov esi, 0x476950
push esi
call fcn.0043b8c2
pop ecx
push eax
push esi
push edi
lea ecx, [ebp - 0x44]
call fcn.0040b6d7
mov eax, dword [ebp + 8]
cmp dword [0x467558], eax
jne 0x409076
cmp dword [ebp - 0x1c], ebx
jne 0x409076
mov eax, dword [ebp - 0x64]
lea ecx, [ebp - 0x70]
sub eax, dword [ebp - 0x8c]
push eax
lea eax, [ebp - 0xc0]
push ebx
push eax
call fcn.00401d91
push dword [0x467558]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 0xa
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
push ebx
lea ecx, [ebp - 0x44]
call fcn.0040c10c
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 9
call fcn.00401279
push esi
call fcn.0043b8c2
pop ecx
push eax
push esi
push ebx
lea ecx, [ebp - 0x44]
call fcn.0040b6d7
jmp 0x4090e3
mov eax, dword [ebp + 8]
cmp dword [0x467558], eax
jne 0x4090e3
cmp edi, 1
jne 0x4090e3
mov eax, dword [ebp - 0x64]
lea ecx, [ebp - 0x70]
sub eax, dword [ebp - 0x8c]
push eax
lea eax, [ebp - 0xc0]
push ebx
push eax
call fcn.00401d91
push dword [0x467558]
mov ecx, eax
add eax, 4
mov byte [ebp - 4], 0xb
neg ecx
sbb ecx, ecx
push ebx
and ecx, eax
push ecx
push edi
lea ecx, [ebp - 0x44]
call fcn.0040c10c
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 9
call fcn.00401279
lea ecx, [ebp - 0x48]
call fcn.00401f8a
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push esi
push 1
push ebx
push str.__ISSetupPrerequisistes
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 8
call fcn.00401279
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 5
call fcn.00401279
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.00401279
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x409142
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x40914c
push dword [ebp - 0x14]
call esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4