Function at 0x409920
Capabilities:
Check if file exists
Create process on windows
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4a069e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x420
push ebx
push ebp
push esi
push edi
xor ebp, ebp
lea ecx, [esp + 0x440]
mov dword [esp + 0x438], ebp
call fcn.00406ea0
mov eax, dword [esp + 0x440]
push eax
call dword [sym.imp.USER32.dll_CharLowerW]
mov ecx, dword [esp + 0x440]
mov esi, dword [sym.imp.MSVCRT.dll_wcsstr]
mov eax, dword [ecx - 8]
cmp eax, ebp
jl 0x409cf4
push 0x4b7f74
push ecx
call esi
mov ecx, dword [esp + 0x448]
add esp, 8
cmp eax, ebp
je 0x409cf4
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x409cf4
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22]
mov word [esp + 0x20], bp
rep stosd dword es:[edi], eax
mov ebx, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea ecx, [esp + 0x18]
stosw word es:[edi], ax
lea edx, [esp + 0x20]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360sd.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], 0x204
call ebx
lea ecx, [esp + 0x20]
push str.360sd.exe
lea edx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
mov eax, dword [0x4b7080]
push ecx
mov esi, esp
lea ecx, [esp + 0x24]
test ecx, ecx
mov dword [esp + 0x14], esp
mov dword [esi], eax
je 0x409a71
lea edx, [esp + 0x24]
shr edx, 0x10
jne 0x409a32
xor eax, eax
lea ecx, [esp + 0x24]
mov ax, cx
mov ecx, esi
push eax
call fcn.004068b0
jmp 0x409a71
lea edx, [esp + 0x24]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
test ebp, ebp
je 0x409a6f
push ebp
mov ecx, esi
call fcn.00406c50
test eax, eax
je 0x409a6f
mov edi, dword [esi]
lea ecx, [ebp + ebp]
lea eax, [ebp + ebp + 2]
cmp eax, ecx
jb 0x409a6f
mov edx, ecx
lea esi, [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ebp, ebp
call fcn.00409680
add esp, 4
cmp eax, ebp
jne 0x409ede
mov eax, dword [esp + 0x444]
push eax
call fcn.00409780
add esp, 4
test eax, eax
je 0x409c8d
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22a]
mov word [esp + 0x228], bp
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
lea edx, [esp + 0x228]
stosw word es:[edi], ax
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], 1
mov dword [esp + 0x30], 0x204
call ebx
cmp eax, ebp
jne 0x409c26
mov ecx, dword [0x4b7080]
lea edx, [esp + 0x228]
test edx, edx
mov dword [esp + 0x10], ecx
je 0x409b6d
lea eax, [esp + 0x228]
shr eax, 0x10
jne 0x409b27
xor eax, eax
lea ecx, [esp + 0x228]
mov ax, cx
lea ecx, [esp + 0x10]
push eax
call fcn.004068b0
jmp 0x409b6d
lea edx, [esp + 0x228]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
cmp esi, ebp
je 0x409b6d
push esi
lea ecx, [esp + 0x14]
call fcn.00406c50
test eax, eax
je 0x409b6d
lea ecx, [esi + esi]
lea eax, [esi + esi + 2]
cmp eax, ecx
jb 0x409b6d
mov edi, dword [esp + 0x10]
mov edx, ecx
lea esi, [esp + 0x228]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x10]
mov byte [esp + 0x438], 1
push eax
call fcn.004095a0
mov edx, dword [0x4b7084]
mov esi, eax
mov eax, dword [esp + 0x14]
add esp, 4
mov byte [esp + 0x438], 0
lea ecx, [eax - 0xc]
cmp ecx, edx
je 0x409bbb
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x409bbb
mov edx, dword [esp + 0x10]
lea eax, [edx - 0xc]
push eax
call fcn.00437568
add esp, 4
cmp esi, ebp
je 0x409c26
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409ede
push ebp
push ebp
lea ecx, [esp + 0x28]
push ebp
push ecx
call fcn.004071b0
test eax, eax
je 0x409ede
push 0x50
mov ecx, 0x4c6f80
call fcn.00403450
push ebp
push ebp
lea edx, [esp + 0x28]
push ebp
push edx
call fcn.004071b0
test eax, eax
je 0x409ede
push 1
push ebp
lea eax, [esp + 0x28]
push str._autorun__fix
push eax
push str.open
push ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x409ede
lea ecx, [esp + 0x20]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409ede
push ebp
push ebp
lea edx, [esp + 0x28]
push ebp
push edx
call fcn.004071b0
test eax, eax
je 0x409ede
push 0x50
mov ecx, 0x4c6f80
call fcn.00403450
push ebp
push ebp
lea eax, [esp + 0x28]
push ebp
push eax
call fcn.004071b0
test eax, eax
je 0x409ede
push 1
push ebp
lea ecx, [esp + 0x28]
push str._autorun__fix
push ecx
push str.open
push ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x409ede
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409ede
push ebp
push ebp
lea eax, [esp + 0x28]
push ebp
push eax
call fcn.004071b0
test eax, eax
je 0x409ede
push 0x50
mov ecx, 0x4c6f80
call fcn.00403450
push ebp
push ebp
lea ecx, [esp + 0x28]
push ebp
push ecx
call fcn.004071b0
test eax, eax
je 0x409ede
push 1
push ebp
lea edx, [esp + 0x28]
push str._autorun__fix
push edx
push str.open
push ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
jmp 0x409ede
cmp dword [ecx - 8], ebp
jl 0x409ede
push str.safe
push ecx
call esi
add esp, 8
cmp eax, ebp
je 0x409ede
sub eax, dword [esp + 0x440]
sar eax, 1
cmp eax, 0xffffffff
je 0x409ede
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22]
mov word [esp + 0x20], bp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
lea edx, [esp + 0x1c]
push ecx
push edx
push str.Path
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths360safe.exe
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], 1
mov dword [esp + 0x2c], 0x204
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov eax, dword [0x4b7080]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x409ddb
lea edx, [esp + 0x20]
shr edx, 0x10
jne 0x409d9f
xor eax, eax
lea ecx, [esp + 0x20]
mov ax, cx
lea ecx, [esp + 0x10]
push eax
call fcn.004068b0
jmp 0x409ddb
lea edx, [esp + 0x20]
push edx
call ebx
mov esi, eax
cmp esi, ebp
je 0x409ddb
push esi
lea ecx, [esp + 0x14]
call fcn.00406c50
test eax, eax
je 0x409ddb
lea ecx, [esi + esi]
lea eax, [esi + esi + 2]
cmp eax, ecx
jb 0x409ddb
mov edi, dword [esp + 0x10]
mov edx, ecx
lea esi, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x20]
push str.safemon360Tray.exe
lea ecx, [esp + 0x24]
push eax
push ecx
mov byte [esp + 0x444], 2
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea edx, [esp + 0x10]
push edx
call fcn.004095a0
add esp, 4
test eax, eax
je 0x409eaf
mov eax, dword [0x4b7080]
push ecx
mov edi, esp
lea ecx, [esp + 0x24]
test ecx, ecx
mov dword [esp + 0x20], esp
mov dword [edi], eax
je 0x409e77
lea edx, [esp + 0x24]
shr edx, 0x10
jne 0x409e3f
xor eax, eax
lea ecx, [esp + 0x24]
mov ax, cx
mov ecx, edi
push eax
call fcn.004068b0
jmp 0x409e77
lea edx, [esp + 0x24]
push edx
call ebx
mov esi, eax
cmp esi, ebp
je 0x409e77
push esi
mov ecx, edi
call fcn.00406c50
test eax, eax
je 0x409e77
mov edi, dword [edi]
lea ecx, [esi + esi]
lea eax, [esi + esi + 2]
cmp eax, ecx
jb 0x409e77
mov edx, ecx
lea esi, [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004094a0
add esp, 4
cmp eax, ebp
jne 0x409eaf
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409eaf
push ebp
push ebp
lea ecx, [esp + 0x28]
push ebp
push ecx
call fcn.004071b0
test eax, eax
je 0x409eaf
push 0x4f
mov ecx, 0x4c6f80
call fcn.00403450
mov eax, dword [esp + 0x10]
mov ecx, dword [0x4b7084]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x409ede
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x409ede
mov eax, dword [esp + 0x10]
add eax, 0xfffffff4
push eax
call fcn.00437568
add esp, 4
lea ecx, [esp + 0x440]
mov dword [esp + 0x438], 0xffffffff
call fcn.0040c0e0
mov ecx, dword [esp + 0x430]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x42c
ret