Function at 0x4037f0
Capabilities:
Persist via run registry key
Query or enumerate registry value
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x46119b
push eax
mov dword fs:[0], esp
sub esp, 0x41c
lea eax, [esp + 4]
push esi
push edi
push eax
call fcn.00408910
mov eax, dword [eax]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
add esp, 4
push eax
push 1
push str.ProtectType
push str.main
call esi
lea ecx, [esp + 0xc]
mov edi, eax
call fcn.00408010
cmp edi, 1
jne 0x403952
lea ecx, [esp + 0xc]
push ecx
call fcn.00408910
mov eax, dword [eax]
add esp, 4
push eax
push edi
push str.CheckRun
push str.main
call esi
lea ecx, [esp + 0xc]
mov esi, eax
call fcn.00408010
cmp esi, edi
jne 0x403952
mov dx, word [0x47a15c]
mov dword [esp + 0xc], edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x16]
mov word [esp + 0x14], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x21e]
mov word [esp + 0x21c], dx
rep stosd dword es:[edi], eax
push 0x46f7c8
lea edx, [esp + 0x220]
mov esi, 0x208
push 0x47a9a8
push edx
mov dword [esp + 0x1c], esi
stosw word es:[edi], ax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x47a9a8
push str.__sSafeBoxTray.exe___r
lea eax, [esp + 0x1c]
push esi
push eax
mov dword [esp + 0x1c], 1
mov dword [esp + 0x20], esi
call fcn.00401c00
add esp, 0x10
lea ecx, [esp + 0x10]
lea edx, [esp + 0x14]
lea eax, [esp + 0xc]
push ecx
push edx
push eax
push str.360Safebox
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x403936
lea ecx, [esp + 0x21c]
lea edx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
jne 0x403a5d
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x41c]
mov dword fs:[0], ecx
add esp, 0x428
ret
mov eax, dword [0x46f42c]
mov ecx, 0x47a894
test ecx, ecx
mov dword [esp + 8], eax
je 0x4039b7
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
test esi, esi
je 0x4039b7
lea edx, [esi + esi + 0xe]
push edx
call fcn.00455403
add esp, 4
test eax, eax
je 0x4039b7
mov dword [eax], 1
mov word [eax + esi*2 + 0xc], 0
mov dword [eax + 4], esi
mov dword [eax + 8], esi
add eax, 0xc
inc esi
push esi
push 0x47a894
push eax
mov dword [esp + 0x14], eax
call fcn.00408480
add esp, 0xc
lea ecx, [esp + 8]
push 0xffffffffffffffff
call fcn.00407f40
mov eax, 0x46f6f4
mov dword [esp + 0x42c], 0
test eax, eax
jne 0x4039cf
xor esi, esi
jmp 0x4039dc
push 0x46f6f4
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov eax, dword [esp + 8]
cmp dword [eax - 0xc], 1
jg 0x4039eb
cmp esi, dword [eax - 4]
jle 0x403a02
lea ecx, [esp + 8]
call fcn.004083e0
push esi
lea ecx, [esp + 0xc]
call fcn.00408040
test eax, eax
je 0x403a2e
mov edx, dword [esp + 8]
lea edi, [esi + esi]
push edi
lea ecx, [esi + esi + 2]
push 0x46f6f4
push ecx
push edx
call fcn.00407060
mov eax, dword [esp + 0x18]
add esp, 0x10
mov dword [eax - 8], esi
mov ecx, dword [esp + 8]
mov word [edi + ecx], 0
mov eax, dword [esp + 8]
mov ecx, dword [0x46f430]
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x403a5d
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x403a5d
mov eax, dword [esp + 8]
add eax, 0xfffffff4
push eax
call fcn.004535f0
add esp, 4
mov ecx, dword [esp + 0x424]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0x428
ret