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

Disassembly:
mov eax, 0x49939a
call fcn.0047d43c
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 0x4176b8
lea ecx, [ebp - 0x14]
call fcn.00410d42
mov ecx, dword [ebp - 0x18]
cmp eax, ebx
mov dword [ebp - 0x14], ecx
jne 0x4176b8
mov ecx, dword [0x4c6f1c]
lea eax, [ebp - 0x48]
push eax
call fcn.0040f2ac
lea eax, [ebp - 0x1d]
push ebx
push eax
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
mov dword [ebp - 0x98], 0x4a36b8
mov dword [ebp - 0x78], 0x4a36b0
call fcn.00403cd9
mov eax, dword [ebp - 0x40]
mov byte [ebp - 4], 2
cmp eax, ebx
jne 0x417636
mov eax, 0x4a36e0
push eax
lea eax, [ebp - 0x98]
push str.__IS_PREREQ____s
push eax
call fcn.0040f4b6
add esp, 0xc
lea ecx, [ebp - 0x70]
push 1
push dword [ebp + 8]
call fcn.00418f3f
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 3
call fcn.00401a14
lea ecx, [ebp - 0x98]
mov dword [ebp + 8], eax
call fcn.004042dd
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.00401093
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
call fcn.00402438
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call fcn.00402438
mov eax, dword [ebp - 0x1c]
cmp byte [eax + 0x100], bl
jne 0x4176d4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00410d42
jmp 0x4179c9
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 0x417706
lea ecx, [ebp - 0x10]
call fcn.00410d42
mov ecx, dword [ebp + 8]
cmp eax, ebx
mov dword [ebp - 0x10], ecx
je 0x417740
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 0x4179ac
lea ecx, [ebp - 0x10]
call fcn.00410d42
mov ecx, dword [ebp + 8]
cmp eax, ebx
mov dword [ebp - 0x10], ecx
jne 0x4179ac
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 0x417797
lea eax, [ebp + 0xb]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
lea ecx, [ebp - 0xc0]
call fcn.00402e7f
lea eax, [ebp - 0xc0]
lea ecx, [ebp - 0x48]
push eax
mov byte [ebp - 4], 6
call fcn.004024b2
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 5
call fcn.00402438
lea eax, [ebp + 0xb]
push 1
push eax
push 0x4bb2c8
lea ecx, [ebp - 0xc0]
call fcn.00404d89
lea eax, [ebp - 0xc0]
lea ecx, [ebp - 0x48]
push eax
mov byte [ebp - 4], 7
call fcn.0040a843
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 5
call fcn.00402438
mov ecx, dword [0x4c6f1c]
lea eax, [ebp - 0x70]
push eax
call fcn.004179ef
lea eax, [ebp - 0x98]
push ebx
push eax
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 8
call fcn.00402f2e
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.00419611
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.00419611
mov esi, str..exe
mov edi, eax
push esi
mov dword [ebp - 0x1c], edi
call fcn.0047d464
pop ecx
push eax
push ebx
push esi
lea ecx, [ebp - 0x44]
call fcn.00404eb8
push ebx
lea ecx, [ebp - 0x44]
mov esi, eax
call fcn.004199f5
cmp word [eax], 0x22
je 0x417907
cmp dword [ebp + 8], ebx
jne 0x417866
mov edi, dword [ebp - 0x64]
jmp 0x417883
mov eax, dword [0x4a36c0]
cmp eax, edi
je 0x417879
mov eax, dword [ebp - 0x8c]
add edi, eax
jmp 0x417883
cmp eax, esi
lea edi, [esi + 4]
jne 0x417883
mov edi, dword [ebp - 0x3c]
mov esi, 0x4bc288
push esi
call fcn.0047d464
pop ecx
push eax
push esi
push edi
lea ecx, [ebp - 0x44]
call fcn.0041957d
mov eax, dword [ebp + 8]
cmp dword [0x4a36c0], eax
jne 0x4178f3
cmp dword [ebp - 0x1c], ebx
jne 0x4178f3
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.00403fb0
push dword [0x4a36c0]
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.00419773
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 9
call fcn.00402438
push esi
call fcn.0047d464
pop ecx
push eax
push esi
push ebx
lea ecx, [ebp - 0x44]
call fcn.0041957d
jmp 0x417960
mov eax, dword [ebp + 8]
cmp dword [0x4a36c0], eax
jne 0x417960
cmp edi, 1
jne 0x417960
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.00403fb0
push dword [0x4a36c0]
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.00419773
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 9
call fcn.00402438
lea ecx, [ebp - 0x48]
call fcn.004042dd
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.00402438
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 5
call fcn.00402438
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.00402438
cmp dword [ebp - 0x10], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4179bf
push dword [ebp - 0x10]
call esi
mov dword [ebp - 0x10], ebx
cmp dword [ebp - 0x14], ebx
je 0x4179c9
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