Function at 0x40ca10
Capabilities:
Contain obfuscated stackstrings
Enumerate processes
Get installed programs
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x426917
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x238
mov eax, dword [0x42f4cc]
push ebx
push esi
xor eax, ebp
push edi
xor ebx, ebx
xor edi, edi
mov dword [esp + 0x23c], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edi
mov eax, 0x428d90
mov ecx, str.safeboxTray.exe
lea esi, [esp + 0x38]
mov dword [esp + 0x24c], ebx
mov byte [esp + 0x38], 0x6a
mov dword [esp + 0x3c], 0x429adc
mov dword [esp + 0x40], str.ZhuDongFangYu.exe
mov byte [esp + 0x44], 0x6b
mov dword [esp + 0x48], str.360Desktop
mov dword [esp + 0x4c], str.360Desktop.exe
mov byte [esp + 0x50], 0x6c
mov dword [esp + 0x54], 0x429aa0
mov dword [esp + 0x58], ecx
mov byte [esp + 0x5c], 0x6d
mov dword [esp + 0x60], str.23F3F476_BE34_4f48_9C77_2806A8393EC4
mov dword [esp + 0x64], str.360se.exe
mov byte [esp + 0x68], 0x6e
mov dword [esp + 0x6c], str.360SD
mov dword [esp + 0x70], str.360sd.exe
mov byte [esp + 0x74], 0x6f
mov dword [esp + 0x78], str.QQPCMgr
mov dword [esp + 0x7c], str.QQPCRtp.exe
mov byte [esp + 0x80], 0x70
mov dword [esp + 0x84], str.Kingsoft_Internet_Security
mov dword [esp + 0x88], str.kxescore.exe
mov byte [esp + 0x8c], 0x71
mov dword [esp + 0x90], str.849B7E2B_0551_429C_B317_14B7D374D6EC_is1
mov dword [esp + 0x94], eax
mov byte [esp + 0x98], 0x72
mov dword [esp + 0x9c], 0x4299e0
mov dword [esp + 0xa0], str.ksafe.exe
mov byte [esp + 0xa4], 0x73
mov dword [esp + 0xa8], 0x4299c4
mov dword [esp + 0xac], eax
mov byte [esp + 0xb0], 0x74
mov dword [esp + 0xb4], 0x4299c0
mov dword [esp + 0xb8], eax
mov byte [esp + 0xbc], 0x75
mov dword [esp + 0xc0], 0x4299bc
mov dword [esp + 0xc4], eax
mov byte [esp + 0xc8], 0x76
mov dword [esp + 0xcc], 0x4299b8
mov dword [esp + 0xd0], eax
mov byte [esp + 0xd4], 0x77
mov dword [esp + 0xd8], str.liebao
mov dword [esp + 0xdc], str.liebao.exe
mov byte [esp + 0xe0], 0x78
mov dword [esp + 0xe4], 0x429998
mov dword [esp + 0xe8], str.BaiduSdSvc.exe
mov byte [esp + 0xec], 0x79
mov dword [esp + 0xf0], 0x42997c
mov dword [esp + 0xf4], str.BaiduAnSvc.exe
mov byte [esp + 0xf8], 0x7a
mov dword [esp + 0xfc], 0x42995c
mov dword [esp + 0x100], ecx
mov byte [esp + 0x104], 0
mov dword [esp + 0x108], ebx
mov dword [esp + 0x10c], ebx
mov dword [esp + 0x1c], esi
jmp 0x40cc30
mov edi, dword [esp + 0x20]
nop
mov eax, dword [0x430588]
mov ecx, 0x430588
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov ecx, dword [esi + 4]
push ecx
lea edx, [esp + 0x14]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
push edx
mov byte [esp + 0x258], 1
call fcn.0040c120
mov ecx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebx
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40cd36
xor eax, eax
cmp edi, ebx
je 0x40cc96
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], ecx
jne 0x40cd36
lea edx, [esp + 0x18]
push edx
push ebx
lea eax, [esp + 0x1c]
push eax
push ebx
push str.UninstallString
push ecx
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x40cd36
mov eax, dword [esp + 0x14]
cmp eax, 1
je 0x40ccd4
cmp eax, 2
jne 0x40cd36
cmp dword [esp + 0x18], ebx
jbe 0x40cd36
mov edi, dword [esp + 0x24]
mov eax, dword [edi + 0x44c]
mov ebx, dword [eax - 0xc]
mov edx, dword [eax - 4]
mov eax, dword [eax - 8]
add edi, 0x44c
lea esi, [ebx + 1]
mov ecx, 1
sub ecx, edx
sub eax, esi
or eax, ecx
jge 0x40cd0b
push esi
mov ecx, edi
call fcn.004085c0
test esi, esi
mov ecx, dword [esp + 0x1c]
mov eax, dword [edi]
mov cl, byte [ecx]
mov byte [eax + ebx], cl
jl 0x40d1be
mov eax, dword [edi]
cmp esi, dword [eax - 8]
jg 0x40d1be
mov dword [eax - 0xc], esi
mov edx, dword [edi]
mov byte [esi + edx], 0
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x10]
add esi, 0xc
add eax, 0xfffffff0
mov dword [esp + 0x1c], esi
mov byte [esp + 0x24c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40cd63
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, byte [esi]
xor ebx, ebx
test al, al
jne 0x40cc2b
lea eax, [esp + 0x10]
push eax
push 0x20019
push ebx
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x24], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x40d01e
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, ebx
je 0x40cda7
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
mov edi, dword [esp + 0x10]
mov dword [esp + 0x20], edi
jne 0x40d01e
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x34]
push ecx
push ebx
push ebx
push ebx
push edi
mov dword [esp + 0x48], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x40d01e
mov eax, dword [esp + 0x18]
test eax, eax
jbe 0x40d01e
jmp 0x40cdf0
mov edi, dword [esp + 0x10]
jmp 0x40cdf0
mov edx, dword [0x430588]
mov ecx, 0x430588
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x30], 0xff
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0x100
or eax, ecx
mov byte [esp + 0x24c], 2
jge 0x40ce3d
push 0x100
lea ecx, [esp + 0x20]
call fcn.004085c0
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x28]
push eax
push 0
push 0
push 0
lea ecx, [esp + 0x40]
push ecx
push esi
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test esi, esi
jne 0x40ce5e
xor eax, eax
jmp 0x40ce72
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40ce63
sub eax, edx
js 0x40d1be
cmp eax, dword [esi - 8]
jg 0x40d1be
mov dword [esi - 0xc], eax
mov byte [eax + esi], 0
mov eax, dword [esi - 4]
mov edi, dword [esi - 0xc]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, edi
or eax, ecx
jge 0x40cea6
push edi
lea ecx, [esp + 0x20]
call fcn.004085c0
mov esi, dword [esp + 0x1c]
push esi
call fcn.0041ae29
add esp, 4
test edi, edi
jl 0x40d1be
cmp edi, dword [esi - 8]
jg 0x40d1be
mov dword [esi - 0xc], edi
mov byte [edi + esi], 0
mov eax, dword [esi - 0xc]
test eax, eax
jl 0x40cee7
push 0x4298d4
push esi
call fcn.0041a0ed
add esp, 8
test eax, eax
je 0x40cee7
sub eax, esi
cmp eax, 0xffffffff
jne 0x40cf1b
add esi, 0xfffffff0
mov byte [esp + 0x24c], 0
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40cf09
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov eax, dword [esp + 0x18]
inc ebx
cmp ebx, eax
jb 0x40cde7
jmp 0x40d01e
xor edi, edi
mov dword [esp + 0x34], edi
mov eax, dword [0x430588]
mov ecx, 0x430588
mov byte [esp + 0x24c], 3
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
push esi
lea ecx, [esp + 0x14]
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_s
push ecx
mov byte [esp + 0x258], 4
call fcn.0040c120
mov ebx, dword [esp + 0x1c]
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0x20019
push edi
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40cfcf
mov edi, dword [esp + 0x14]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push 0
lea ecx, [esp + 0x30]
push ecx
push 0
push str.UninstallString
push edi
mov dword [esp + 0x4c], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40cfcf
mov eax, dword [esp + 0x28]
cmp eax, 1
je 0x40cfb3
cmp eax, 2
jne 0x40cfcf
mov eax, dword [esp + 0x14]
test eax, eax
jbe 0x40cfcf
mov ecx, dword [esp + 0x24]
push 0x4298d0
add ecx, 0x44c
call fcn.0040c900
lea eax, [ebx - 0x10]
mov byte [esp + 0x24c], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40cff1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test edi, edi
je 0x40cffc
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 0xfffffff0
mov byte [esp + 0x24c], 0
lea eax, [esi + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x40d01e
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
xor eax, eax
push eax
mov dword [esp + 0x114], 0
mov ecx, 0x49
lea edi, [esp + 0x118]
push 2
rep stosd dword es:[edi], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x28], esi
je 0x40d169
lea eax, [esp + 0x110]
push eax
push esi
mov dword [esp + 0x118], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40d162
xor edi, edi
mov dword [esp + 0x14], edi
jmp 0x40d080
mov ecx, dword [esp + edi + 0x40]
push ecx
lea edx, [esp + 0x138]
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
test eax, eax
je 0x40d12d
mov esi, dword [esp + 0x24]
mov eax, dword [esi + 0x44c]
mov ecx, dword [eax - 0xc]
add esi, 0x44c
test ecx, ecx
je 0x40d0dd
mov ecx, dword [eax - 0xc]
test ecx, ecx
jle 0x40d0d3
movzx ecx, byte [esp + edi + 0x38]
push ecx
push eax
call fcn.0041a681
add esp, 8
test eax, eax
je 0x40d0d3
sub eax, dword [esi]
cmp eax, 0xffffffff
jne 0x40d148
mov dl, byte [esp + edi + 0x38]
mov byte [esp + 0xc], dl
jmp 0x40d0e5
mov al, byte [esp + edi + 0x38]
mov byte [esp + 0xc], al
mov eax, dword [esi]
mov edx, dword [eax - 4]
mov ebx, dword [eax - 0xc]
mov ecx, 1
sub ecx, edx
mov edx, dword [eax - 8]
lea edi, [ebx + 1]
sub edx, edi
or ecx, edx
jge 0x40d108
mov ecx, esi
push edi
call fcn.004085c0
test edi, edi
mov cl, byte [esp + 0xc]
mov eax, dword [esi]
mov byte [ebx + eax], cl
jl 0x40d1be
mov eax, dword [esi]
cmp edi, dword [eax - 8]
jg 0x40d1be
mov dword [eax - 0xc], edi
mov edx, dword [esi]
mov byte [edi + edx], 0
mov edi, dword [esp + 0x14]
inc edi
mov dword [esp + 0x14], edi
lea edi, [edi + edi*2]
shl edi, 2
mov al, byte [esp + edi + 0x38]
test al, al
jne 0x40d080
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x110]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40d071
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 0x44c]
mov eax, dword [edx - 0xc]
add ecx, 0x44c
test eax, eax
jne 0x40d18c
push 1
push 0x4298cc
call fcn.00409640
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40d19b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x244]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004199fa
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004011d0
int3