Function at 0x438660
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x1424
call fcn.00439c20
mov eax, dword [0x44ffe4]
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
cmp eax, ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0xc], ebx
jne 0x43868c
call fcn.004018e0
mov dword [0x44ffe4], eax
cmp dword [eax + 0x11c], ebx
je 0x4386b2
cmp eax, ebx
jne 0x4386a2
call fcn.004018e0
mov dword [0x44ffe4], eax
cmp dword [eax + 0x11c], ebx
je 0x4386b2
mov eax, dword [eax + 0xc0]
jmp 0x4386b4
xor eax, eax
cmp eax, ebx
je 0x4386cb
lea ecx, [esp + 0xc]
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call eax
jmp 0x4386e0
lea edx, [esp + 0xc]
push edx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
cmp eax, ebx
jne 0x438789
mov eax, dword [0x44ffe4]
mov esi, dword [esp + 0xc]
cmp eax, ebx
jne 0x4386ff
call fcn.004018e0
mov dword [0x44ffe4], eax
cmp dword [eax + 0x11c], ebx
je 0x438725
cmp eax, ebx
jne 0x438715
call fcn.004018e0
mov dword [0x44ffe4], eax
cmp dword [eax + 0x11c], ebx
je 0x438725
mov eax, dword [eax + 0xe8]
jmp 0x438727
xor eax, eax
cmp eax, ebx
push str.360Safetray
push esi
je 0x438735
call eax
jmp 0x43873b
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [0x44ffe4]
mov esi, dword [esp + 0xc]
cmp eax, ebx
jne 0x438752
call fcn.004018e0
mov dword [0x44ffe4], eax
cmp dword [eax + 0x11c], ebx
je 0x438778
cmp eax, ebx
jne 0x438768
call fcn.004018e0
mov dword [0x44ffe4], eax
cmp dword [eax + 0x11c], ebx
je 0x438778
mov eax, dword [eax + 0x114]
jmp 0x43877a
xor eax, eax
cmp eax, ebx
push esi
je 0x438783
call eax
jmp 0x438789
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x1434], ebx
jne 0x4387a7
push 1
mov ecx, edi
call fcn.00439210
pop edi
pop esi
pop ebx
add esp, 0x1424
ret 4
mov ax, word [0x44ffe8]
mov ecx, 0x81
mov word [esp + 0x228], ax
xor eax, eax
lea edi, [esp + 0x22a]
mov dword [esp + 0x14], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22]
mov dword [esp + 0x18], 0x208
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x228]
mov word [esp + 0x20], 0x22
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x22]
test ecx, ecx
je 0x43889d
mov edx, str.safemon360Tray.exe___start
mov word [esp + 0x22], bx
test edx, edx
je 0x43889d
mov ecx, 0x400
lea edi, [esp + 0x430]
rep stosd dword es:[edi], eax
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x438885
lea eax, [esp + 0x430]
push 0x800
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x430]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea edx, [esp + 0x430]
push str.safemon360Tray.exe___start
lea eax, [esp + 0x434]
push edx
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0x430]
push 0x104
lea edx, [esp + 0x26]
push ecx
push edx
jmp 0x438894
push 0x104
lea eax, [esp + 0x26]
push str.safemon360Tray.exe___start
push eax
call dword [sym.imp.MSVCRT.dll_wcsncpy]
add esp, 0xc
lea ecx, [esp + 0x18]
push ebp
lea edx, [esp + 0x22c]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
push str.360Safetray
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4388e7
lea ecx, [esp + 0x24]
lea edx, [esp + 0x22c]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x438a5e
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.MSVCRT.dll_wcslen]
shl eax, 1
mov dword [esp + 0x18], eax
mov eax, dword [0x44ffe4]
add esp, 4
cmp eax, ebx
mov dword [esp + 0x10], ebx
jne 0x438912
call fcn.004018e0
mov dword [0x44ffe4], eax
mov ecx, dword [eax + 0x11c]
mov ebp, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp ecx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, 2
je 0x43897e
test eax, eax
jne 0x43896c
push eax
push 1
push 0x44ffc4
call ebp
test eax, eax
jne 0x43894c
call fcn.00401ca0
mov dword [0x44ffc4], edi
jmp 0x438967
mov eax, dword [0x44ffc4]
cmp eax, edi
je 0x438962
push 1
call ebx
mov eax, dword [0x44ffc4]
cmp eax, edi
jne 0x438955
call fcn.00401ca0
mov dword [0x44ffe4], eax
mov ecx, dword [eax + 0x11c]
test ecx, ecx
je 0x43897e
mov eax, dword [eax + 0xc0]
jmp 0x438980
xor eax, eax
test eax, eax
je 0x438997
lea ecx, [esp + 0x10]
push ecx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call eax
jmp 0x4389ac
lea edx, [esp + 0x10]
push edx
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x438a5e
mov eax, dword [0x44ffe4]
mov esi, dword [esp + 0x10]
test eax, eax
jne 0x4389cb
call fcn.004018e0
mov dword [0x44ffe4], eax
mov ecx, dword [eax + 0x11c]
test ecx, ecx
je 0x438a26
test eax, eax
jne 0x438a14
push eax
push 1
push 0x44ffc4
call ebp
test eax, eax
jne 0x4389f4
call fcn.00401ca0
mov dword [0x44ffc4], edi
jmp 0x438a0f
mov eax, dword [0x44ffc4]
cmp eax, edi
je 0x438a0a
push 1
call ebx
mov eax, dword [0x44ffc4]
cmp eax, edi
jne 0x4389fd
call fcn.00401ca0
mov dword [0x44ffe4], eax
mov ecx, dword [eax + 0x11c]
test ecx, ecx
je 0x438a26
mov eax, dword [eax + 0x110]
jmp 0x438a28
xor eax, eax
test eax, eax
je 0x438a44
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
push edx
push 1
push 0
push str.360Safetray
push esi
call eax
jmp 0x438a5e
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x24]
push eax
push ecx
push 1
push 0
push str.360Safetray
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x20]
push 0
call fcn.00439210
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1424
ret 4