Function at 0x445b50
Capabilities:
Check if file exists
Get common file path
Get file attributes
Persist via run registry key
Set registry value
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x348]
sub esp, 0x348
push 0xffffffffffffffff
push 0x48406b
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x4a60f8]
xor eax, ebp
mov dword [ebp + 0x344], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x350]
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x1c], edi
cmp dword [edi + 0x44], ebx
je 0x4461ed
cmp esi, ebx
jne 0x445bab
mov dword [ebp - 0x18], ebx
jmp 0x445bdb
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, 0x3fffffff
jle 0x445bbf
mov dword [ebp - 0x18], ebx
jmp 0x445bdb
lea edi, [eax + eax]
mov eax, edi
call fcn.00463730
mov eax, esp
push 3
push edi
push esi
push eax
call fcn.0041aaf0
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
push 0x207
lea eax, [ebp + 0x13d]
push ebx
push eax
mov byte [ebp + 0x13c], bl
call fcn.00461950
push 0x103
lea ecx, [ebp + 0x39]
push ebx
push ecx
mov byte [ebp + 0x38], bl
call fcn.00461950
add esp, 0x18
lea edx, [ebp + 0x38]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4461ed
push str.remove360dt.bat
lea eax, [ebp + 0x38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
push ebx
push 0x80
push 2
push ebx
push 7
push 0xc01200a0
lea ecx, [ebp + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x28], esi
cmp esi, 0xffffffff
je 0x4461ed
push str._echo_off__r_n_r_n:x86_winxp_WinVista_Vin7__r_n_reg.exe_query__HKLMSOFTWAREMicrosoftWindowsCurrentVersionUninstall360Desktop___v_UninstallString__find__i__uninstall.exe___nul__r_nif_errorlevel_1__echo.__else__del__q__0__exit____r_n_r_n:64__r_nreg.exe_query__HKLMSOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionUninstall360Desktop___v_UninstallString__find__i__uninstall.exe___nul__r_nif_errorlevel_1___echo.__else__del__q__0__exit____r_n_r_n_r_n
lea ecx, [ebp]
mov dword [ebp - 0x14], ebx
call fcn.004072f0
cmp dword [ebp + 0x18], 0x10
mov eax, dword [ebp + 4]
mov dword [ebp - 4], ebx
jae 0x445c75
lea eax, [ebp + 4]
mov ecx, dword [ebp + 0x14]
push ebx
lea edx, [ebp - 0x14]
push edx
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x14], ebx
mov dword [ebp + 0x34], 0xf
mov dword [ebp + 0x30], ebx
mov byte [ebp + 0x20], 0
push 1
push 3
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 1
call fcn.00445ab0
mov esi, dword [edi + 0x54]
add edi, 0x48
mov byte [ebp - 4], 2
cmp esi, dword [edi + 0x10]
jbe 0x445cbe
call fcn.00461ea8
mov ebx, dword [edi]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], esi
mov esi, dword [ebp - 0x1c]
mov edi, dword [esi + 0x58]
add esi, 0x48
cmp dword [esi + 0xc], edi
jbe 0x445cd9
call fcn.00461ea8
mov eax, dword [esi]
test ebx, ebx
je 0x445ce3
cmp ebx, eax
je 0x445ce8
call fcn.00461ea8
cmp dword [ebp - 0x20], edi
jae 0x445f10
test ebx, ebx
jne 0x445d25
call fcn.00461ea8
xor eax, eax
mov edx, dword [ebp - 0x20]
cmp edx, dword [eax + 0x10]
jb 0x445d09
call fcn.00461ea8
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jl 0x445d29
mov edi, eax
lea ecx, [edi - 0xc]
push ecx
mov dword [ebp - 0x10], edi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x445d3e
mov eax, dword [ebx]
jmp 0x445cfc
mov edx, dword [0x4a4014]
push eax
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], edx
call fcn.0041be90
mov edi, dword [ebp - 0x10]
cmp dword [edi - 8], 0
mov byte [ebp - 4], 3
jne 0x445d56
lea eax, [edi - 0xc]
cmp eax, dword [0x4a4010]
jmp 0x445ece
test ebx, ebx
jne 0x445d89
call fcn.00461ea8
xor eax, eax
mov esi, dword [ebp - 0x20]
cmp esi, dword [eax + 0x10]
jb 0x445d6e
call fcn.00461ea8
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x445d8d
lea ecx, [edi - 0xc]
cmp ecx, dword [0x4a4010]
jmp 0x445ece
mov eax, dword [ebx]
jmp 0x445d61
push 0x208
lea edx, [ebp + 0x13c]
push 0
push edx
call fcn.00461950
add esp, 0xc
lea ecx, [ebp - 0x24]
call fcn.00443990
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x445e33
test al, 0x10
je 0x445e33
push str.___r_n
push 0
lea ecx, [ebp - 0x24]
call fcn.00443990
mov ecx, eax
call fcn.0041b800
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
call fcn.0040cb50
lea eax, [ebp - 0x48]
push eax
call fcn.004446a0
add esp, 0x20
cmp dword [eax + 0x18], 0x10
mov byte [ebp - 4], 4
jb 0x445dfc
mov eax, dword [eax + 4]
jmp 0x445dff
add eax, 4
push eax
lea ecx, [ebp - 0xc8]
push str.rd__s__q__
push ecx
call fcn.004458a0
add esp, 8
push eax
call fcn.004458a0
add esp, 8
push eax
call fcn.004458a0
add esp, 8
lea ecx, [ebp - 0x48]
call fcn.00407a40
jmp 0x445ec5
push 0
lea ecx, [ebp - 0x24]
call fcn.00443990
mov ecx, eax
call fcn.0041b800
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x2c], esp
push eax
call fcn.0040cb50
lea edx, [ebp - 0x48]
push edx
call fcn.004446a0
mov esi, 0x10
add esp, 0x20
cmp dword [eax + 0x18], esi
jb 0x445e6d
mov eax, dword [eax + 4]
jmp 0x445e70
add eax, 4
push eax
push str.del__q___s___r_n
lea eax, [ebp + 0x13c]
push 0x208
push eax
call fcn.0047e710
add esp, 0x10
cmp dword [ebp - 0x30], esi
jb 0x445e9b
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.00458da0
add esp, 4
lea eax, [ebp + 0x13c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x445ea4
mov ecx, dword [ebp - 0x28]
sub eax, edx
push 0
lea edx, [ebp - 0x14]
push edx
push eax
lea eax, [ebp + 0x13c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [edi - 0xc]
cmp edx, dword [0x4a4010]
mov byte [ebp - 4], 2
je 0x445eeb
add edi, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x445eeb
push edi
call fcn.00462471
add esp, 4
test ebx, ebx
jne 0x445f0c
call fcn.00461ea8
xor eax, eax
mov ecx, dword [ebp - 0x20]
cmp ecx, dword [eax + 0x10]
jb 0x445f03
call fcn.00461ea8
add dword [ebp - 0x20], 4
jmp 0x445cc6
mov eax, dword [ebx]
jmp 0x445ef6
mov eax, dword [ebp - 0x1c]
mov ebx, dword [eax + 0x58]
add eax, 0x48
cmp dword [eax + 0xc], ebx
jbe 0x445f23
call fcn.00461ea8
mov eax, dword [ebp - 0x1c]
mov esi, dword [eax + 0x54]
mov edi, dword [eax + 0x48]
add eax, 0x48
cmp esi, dword [eax + 0x10]
jbe 0x445f39
call fcn.00461ea8
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0x48]
push ebx
push edi
add ecx, 0x48
push esi
push eax
lea edx, [ebp - 0x24]
push edx
call fcn.00445380
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0xd0]
call fcn.00445280
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 5
call fcn.00407870
cmp dword [ebp - 0x30], 0x10
mov byte [ebp - 4], 2
jb 0x445f85
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.00458da0
add esp, 4
mov ecx, dword [ebp + 0x30]
test ecx, ecx
je 0x445fae
cmp dword [ebp + 0x34], 0x10
mov eax, dword [ebp + 0x20]
jae 0x445f98
lea eax, [ebp + 0x20]
mov edi, dword [ebp - 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [ebp - 0x14]
push edx
push ecx
push eax
push edi
call ebx
jmp 0x445fb7
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [ebp - 0x28]
cmp dword [ebp - 0x18], 0
jne 0x445fc1
xor eax, eax
jmp 0x445ff1
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
inc esi
cmp esi, 0x3fffffff
jle 0x445fda
xor eax, eax
jmp 0x445ff1
lea eax, [esi + esi]
call fcn.00463730
mov ecx, dword [ebp - 0x18]
mov eax, esp
push 3
push esi
push ecx
push eax
call fcn.0041aab0
push eax
lea ecx, [ebp - 0x10]
call fcn.0041d2c0
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push str.Bin
push str.Bin
mov byte [ebp - 4], 6
call esi
push eax
lea ecx, [ebp - 0x10]
call fcn.0041b440
cmp dword [ebp - 0x10], 0
jne 0x446023
xor eax, eax
jmp 0x44604e
mov edx, dword [ebp - 0x10]
push edx
call esi
inc eax
cmp eax, 0x3fffffff
jle 0x446035
xor eax, eax
jmp 0x44604e
lea esi, [eax + eax]
mov eax, esi
call fcn.00463730
mov ecx, dword [ebp - 0x10]
mov eax, esp
push 3
push esi
push ecx
push eax
call fcn.0041aaf0
push eax
push str.rd__q___s___r_n
lea edx, [ebp + 0x13c]
push 0x208
push edx
call fcn.0047e710
lea eax, [ebp + 0x13c]
add esp, 0x10
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x446071
push 0
sub eax, ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
lea edx, [ebp + 0x13c]
push edx
push edi
call ebx
push 0x208
lea eax, [ebp + 0x13c]
push 0
push eax
call fcn.00461950
mov ecx, dword [ebp - 0x18]
push ecx
push str.rd__q___s___r_n
lea edx, [ebp + 0x13c]
push 0x208
push edx
call fcn.0047e710
lea eax, [ebp + 0x13c]
add esp, 0x1c
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4460c4
push 0
sub eax, ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
lea edx, [ebp + 0x13c]
push edx
push edi
call ebx
push 0x208
lea eax, [ebp + 0x13c]
push 0
push eax
call fcn.00461950
lea ecx, [ebp + 0x38]
push ecx
push str.del__q___s___r_n
lea edx, [ebp + 0x13c]
push 0x208
push edx
call fcn.0047e710
lea eax, [ebp + 0x13c]
add esp, 0x1c
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x446117
push 0
sub eax, ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
lea edx, [ebp + 0x13c]
push edx
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x44], 0
lea eax, [ebp + 0x38]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x446148
sub eax, edx
push eax
lea ecx, [ebp + 0x38]
push ecx
push 1
push str.360dtuninst
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunOnce
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff4
cmp edx, dword [0x4a4010]
je 0x446195
mov esi, dword [ebp - 0x10]
add esi, 0xfffffff4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x446195
push esi
call fcn.00462471
add esp, 4
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 1
call fcn.004439f0
lea eax, [ebp - 0x7c]
push eax
mov dword [ebp - 0x7c], vtable.std::ios_base.0
call fcn.00450ed8
mov esi, 0x10
add esp, 4
cmp dword [ebp + 0x34], esi
jb 0x4461ca
mov ecx, dword [ebp + 0x20]
push ecx
call fcn.00458da0
add esp, 4
mov dword [ebp + 0x34], 0xf
mov dword [ebp + 0x30], 0
mov byte [ebp + 0x20], 0
cmp dword [ebp + 0x18], esi
jb 0x4461ed
mov edx, dword [ebp + 4]
push edx
call fcn.00458da0
add esp, 4
lea esp, [ebp - 0xe0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x344]
xor ecx, ebp
call fcn.00461932
add ebp, 0x348
mov esp, ebp
pop ebp
ret 4