Function at 0x411406
Capabilities:
Accept command line arguments
Check if file exists
Create thread
Get common file path
Query or enumerate registry value
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1d88
call fcn.00420e10
and dword [ebp - 0x18], 0
push ebx
push esi
push edi
mov esi, ecx
call section..text
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
test eax, eax
mov dword [ebp - 0x14], eax
mov ebx, 0x81
je 0x411596
and word [ebp - 0x2a0], 0
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x29e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x2a0]
push 0x103
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x2a0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
and word [ebp - 0x98], 0
push 0x1f
mov dword [ebp - 8], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x96]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0x98]
push 0x3f
push eax
push str._cid:
push edi
call fcn.00402ad1
add esp, 0x10
test eax, eax
je 0x4114b3
cmp word [ebp - 0x98], 0
jne 0x4114d4
lea eax, [ebp - 0x98]
push 0x3f
push eax
mov ecx, esi
push dword [ebp - 8]
call fcn.00413192
test eax, eax
je 0x4114f3
cmp word [ebp - 0x98], 0
je 0x4114f3
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x98]
push eax
lea ecx, [esi + 0x38]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str._lnk:
push edi
call fcn.00402b7f
add esp, 0xc
test eax, eax
jne 0x411521
lea eax, [ebp - 4]
mov ecx, esi
push eax
push 1
push dword [ebp - 8]
call fcn.004132e9
test eax, eax
je 0x41152c
xor eax, eax
cmp dword [ebp - 4], eax
setne al
mov dword [esi + 0x24], eax
lea eax, [ebp - 4]
push eax
push str._def:
push edi
call fcn.00402b7f
add esp, 0xc
test eax, eax
jne 0x411556
lea eax, [ebp - 4]
mov ecx, esi
push eax
push 2
push dword [ebp - 8]
call fcn.004132e9
test eax, eax
je 0x411561
xor eax, eax
cmp dword [ebp - 4], eax
setne al
mov dword [esi + 0x28], eax
lea eax, [ebp - 4]
push eax
push str._run:
push edi
call fcn.00402b7f
add esp, 0xc
test eax, eax
jne 0x41158b
lea eax, [ebp - 4]
mov ecx, esi
push eax
push 3
push dword [ebp - 8]
call fcn.004132e9
test eax, eax
je 0x411596
xor eax, eax
cmp dword [ebp - 4], eax
setne al
mov dword [esi + 0x2c], eax
and word [ebp - 0x320], 0
push 0x1f
pop ecx
xor eax, eax
lea edi, [ebp - 0x31e]
and word [ebp - 0x1b80], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x1b7e]
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x1b80]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x320]
push 0x40
push eax
lea eax, [ebp - 0x1b80]
push eax
call fcn.00401120
add esp, 0xc
test eax, eax
je 0x411c66
lea eax, [ebp - 0x320]
lea edi, [esi + 0x48]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x320]
push eax
mov ecx, edi
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
xor edx, edx
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0xb3e]
mov word [ebp - 0xb40], dx
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xb40]
push 2
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x411c66
lea eax, [ebp - 0xb40]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0xb40]
push eax
lea ecx, [esi + 0xf8]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
and word [ebp - 0x1770], 0
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x176e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xb40]
push 0x42b81c
push eax
lea eax, [ebp - 0x1770]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x1770]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x1770]
push eax
lea ecx, [esi + 0x108]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
xor edx, edx
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x936]
mov word [ebp - 0x938], dx
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x938]
push 0x17
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x411c66
lea eax, [ebp - 0x938]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x938]
push eax
lea ecx, [esi + 0x138]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
and word [ebp - 0x1568], 0
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x1566]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x938]
push 0x42b81c
push eax
lea eax, [ebp - 0x1568]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x1568]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x1568]
push eax
lea ecx, [esi + 0x148]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
xor edx, edx
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x1156]
mov word [ebp - 0x1158], dx
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x1158]
push 0xb
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x411c66
lea eax, [ebp - 0x1158]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x1158]
push eax
lea ecx, [esi + 0x118]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
xor edx, edx
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x1976]
mov word [ebp - 0x1978], dx
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x1978]
push 0x16
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x411c66
lea eax, [ebp - 0x1978]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x1978]
push eax
lea ecx, [esi + 0x158]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
xor edx, edx
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x135e]
mov word [ebp - 0x1360], dx
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x1360]
push 0x10
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x411c66
lea eax, [ebp - 0x1360]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0x1360]
push eax
lea ecx, [esi + 0x128]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
xor edx, edx
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0xd46]
mov word [ebp - 0xd48], dx
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xd48]
push 0x19
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x411c66
lea eax, [ebp - 0xd48]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0xd48]
push eax
lea ecx, [esi + 0x168]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
xor edx, edx
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x1d86]
mov word [ebp - 0x1d88], dx
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x1d88]
push 0x1a
push eax
push edx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x411c66
and word [ebp - 0xf50], 0
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0xf4e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x1d88]
push str.MicrosoftInternet_ExplorerQuick_Launch
push eax
lea eax, [ebp - 0xf50]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0xf50]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
pop ecx
push eax
lea eax, [ebp - 0xf50]
push eax
lea ecx, [esi + 0xe8]
call dword [sym.imp.MSVCP60.dll_public:_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int______thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::assign_unsigned_short_int_const___unsigned_int_]
and word [ebp - 0x528], 0
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x526]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xc]
mov edi, str.SoftwareMicrosoftWindowsCurrentVersionApp_Pathshao123JuziBrowser.exe
push eax
lea eax, [ebp - 0x528]
push eax
lea eax, [ebp - 0x10]
push eax
push str.Path
push edi
push SysReAllocString
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 0x206
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x411985
lea eax, [ebp - 0x528]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4119cf
cmp dword [esi + 0x14], 8
jge 0x4119cf
push 0x208
lea eax, [ebp - 0x528]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 0x206
push eax
lea eax, [ebp - 0x528]
push eax
lea eax, [ebp - 0x10]
push eax
push str.Path
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea eax, [ebp - 0x528]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x411a8e
and word [ebp - 0x2a0], 0
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x29e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x528]
push str.hao123Juzi.exe
push eax
lea eax, [ebp - 0x2a0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
and word [ebp - 0x98], 0
push 0x1f
pop ecx
xor eax, eax
lea edi, [ebp - 0x96]
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x2a0]
push eax
call fcn.00401120
add esp, 0xc
cmp word [ebp - 0x98], 0
je 0x411a76
mov eax, dword [esi + 0x4c]
test eax, eax
jne 0x411a58
mov eax, dword [sym.imp.MSVCP60.dll_unsigned_short_int_const__private:_static_unsigned_short_int_const____cdecl_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::_Nullstr_void_::_2::_C]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.00401202
pop ecx
test eax, eax
pop ecx
jge 0x411a74
mov dword [esi + 0x18], 1
jmp 0x411a86
jne 0x411a7f
mov dword [esi + 0x18], 2
jmp 0x411a86
mov dword [esi + 0x18], 3
lea eax, [ebp - 0x528]
jmp 0x411af8
and word [ebp - 0x2a0], 0
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x29e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 8]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x2a0]
push eax
lea eax, [ebp - 4]
push eax
push str.lastinstpath
push str.Softwarehao123JuziBrowser
push SysReAllocString
mov dword [ebp - 8], 0x206
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x411b00
lea eax, [ebp - 0x2a0]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x411b00
mov dword [esi + 0x18], 4
lea eax, [ebp - 0x2a0]
push eax
mov ecx, esi
call fcn.00412eb9
xor eax, eax
cmp dword [esi + 0x80], eax
jne 0x411c0f
cmp dword [ebp - 0x14], eax
mov dword [esi + 0x18], eax
je 0x411b9f
mov ecx, ebx
lea edi, [ebp - 0x29e]
mov word [ebp - 0x2a0], ax
push 0x103
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x2a0]
push eax
push str._inpath:
push dword [ebp - 0x14]
call fcn.00402ad1
add esp, 0x10
test eax, eax
je 0x411b9f
cmp word [ebp - 0x2a0], 0
je 0x411b9f
and word [ebp - 0x730], 0
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x72e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x730]
push 0x103
push eax
lea eax, [ebp - 0x2a0]
push eax
mov ecx, esi
call fcn.004130b5
test eax, eax
je 0x411b9f
lea eax, [ebp - 0x730]
push 0
push eax
mov ecx, esi
call fcn.00412e1d
test eax, eax
je 0x411c0f
and word [ebp - 0x2a0], 0
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x29e]
cmp dword [esi + 0x14], 8
push 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
jge 0x411bc1
push 0x26
jmp 0x411bc3
push 0x1a
lea eax, [ebp - 0x2a0]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
and word [ebp - 0x730], 0
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x72e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x2a0]
push str.hao123JuziBrowser
push eax
lea eax, [ebp - 0x730]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x730]
mov ecx, esi
push eax
call fcn.00412eb9
lea eax, [esi + 4]
xor edi, edi
push eax
push 4
push esi
push 0x411c6e
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp ebx, edi
je 0x411c66
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
mov dword [esi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x3e8
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
and dword [esi + 0xc], 0
push ebx
call edi
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret