Function at 0x4040b0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 8], ecx
inc edi
call dword [sym.imp.MSVCRT.dll___p___argc]
cmp dword [eax], edi
mov ebx, dword [sym.imp.MSVCRT.dll___p___argv]
jle 0x404223
call ebx
mov eax, dword [eax]
mov esi, edi
shl esi, 2
push dword [esi + eax]
push str._console
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x40419f
call ebx
mov eax, dword [eax]
push dword [eax + esi]
push 0x40ba58
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x40419f
call ebx
mov eax, dword [eax]
push dword [esi + eax]
push str._turbo
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x404181
call ebx
mov eax, dword [eax]
push dword [eax + esi]
push 0x40ba48
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x404181
call ebx
mov eax, dword [eax]
push dword [eax + esi]
push str._server
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x404181
call ebx
mov eax, dword [eax]
push dword [esi + eax]
push 0x40ba38
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x404181
inc edi
call dword [sym.imp.MSVCRT.dll___p___argc]
cmp edi, dword [eax]
jl 0x4040d6
jmp 0x404223
mov eax, dword [ebp - 8]
and dword [eax + 0x10], 0
mov dword [eax + 0xc], 1
call ebx
mov eax, dword [eax]
mov dword [eax + edi*4], str._nosplash
jmp 0x404223
call dword [sym.imp.KERNEL32.dll_AllocConsole]
test eax, eax
je 0x404223
push 0x4000
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.MSVCRT.dll__open_osfhandle]
pop ecx
cmp eax, 0xffffffff
pop ecx
je 0x4041e6
push 0x40ba34
push eax
call dword [sym.imp.MSVCRT.dll__fdopen]
pop ecx
test eax, eax
pop ecx
je 0x4041e6
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
push 8
mov esi, eax
lea edi, [ecx + 0x20]
pop ecx
rep movsd dword es:[edi], dword [esi]
push 0x4000
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.MSVCRT.dll__open_osfhandle]
pop ecx
cmp eax, 0xffffffff
pop ecx
je 0x404223
push 0x40ba34
push eax
call dword [sym.imp.MSVCRT.dll__fdopen]
pop ecx
test eax, eax
pop ecx
je 0x404223
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
push 8
mov esi, eax
lea edi, [ecx + 0x40]
pop ecx
rep movsd dword es:[edi], dword [esi]
xor edi, edi
inc edi
mov dword [ebp - 4], edi
call dword [sym.imp.MSVCRT.dll___p___argc]
cmp dword [eax], edi
jle 0x4042f3
call ebx
mov eax, dword [eax]
mov esi, edi
shl esi, 2
push dword [esi + eax]
push str._killAll
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x4042df
call ebx
mov eax, dword [eax]
push dword [eax + esi]
push 0x40ba1c
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x4042df
call ebx
mov eax, dword [eax]
push dword [eax + esi]
push str._kill
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x4042df
call ebx
mov eax, dword [eax]
push dword [esi + eax]
push 0x40ba0c
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x4042df
call ebx
mov eax, dword [eax]
push dword [esi + eax]
push 0x40b2fc
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x4042ca
call ebx
mov eax, dword [eax]
push dword [eax + esi]
push str._silent
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x4042ce
and dword [ebp - 4], 0
inc edi
call dword [sym.imp.MSVCRT.dll___p___argc]
cmp edi, dword [eax]
jl 0x404237
jmp 0x4042e9
mov dword [0x40c164], 1
cmp dword [ebp - 4], 0
je 0x4043cc
mov eax, dword [ebp - 8]
cmp dword [eax + 0xc], 0
jne 0x4043cc
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4043cc
lea eax, [ebp - 0xc]
xor edi, edi
push eax
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x20]
push eax
push edi
push str.Mozilla_Quick_Launch
mov esi, 0x104
push dword [ebp - 4]
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, edi
jne 0x4043cc
cmp dword [ebp - 0xc], edi
jbe 0x4043cc
lea eax, [ebp - 0x228]
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x1c]
push eax
call fcn.004079c3
lea eax, [ebp - 0x124]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00407a06
xor esi, esi
lea eax, [ebp - 0x228]
inc esi
push esi
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004043d1
add esp, 0x1c
cmp eax, 0xffffffff
je 0x4043c2
push esi
lea eax, [ebp - 0x1c]
push str._turbo
push eax
call fcn.004043d1
add esp, 0xc
cmp eax, 0xffffffff
je 0x4043c2
mov eax, dword [ebp - 8]
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
lea eax, [ebp - 0x1c]
push eax
call fcn.004079e5
pop ecx
pop edi
pop esi
pop ebx
leave
ret