Function at 0x10039a50
Capabilities:
Check if file exists
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10097d2f
mov eax, dword fs:[0]
push eax
sub esp, 0x550
mov eax, dword [0x100b0380]
xor eax, esp
mov dword [esp + 0x548], eax
push ebx
push esi
push edi
mov eax, dword [0x100b0380]
xor eax, esp
push eax
lea eax, [esp + 0x560]
mov dword fs:[0], eax
push 0
push 1
push 0x100e4938
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x10039df1
push eax
call fcn.1003a4c0
add esp, 4
test eax, eax
je 0x10039c96
call fcn.1002ec10
push 0x103
mov edi, eax
lea eax, [esp + 0x39]
push 0
push eax
mov dword [esp + 0x34], edx
mov byte [esp + 0x40], 0
call fcn.1007dcf0
add esp, 0xc
push 0x103
lea ecx, [esp + 0x141]
push 0
push ecx
mov byte [esp + 0x148], 0
call fcn.1007dcf0
add esp, 0xc
push 0x103
lea edx, [esp + 0x249]
push 0
push edx
mov byte [esp + 0x250], 0
call fcn.1007dcf0
mov esi, dword [sym.imp.SHLWAPI.dll_SHGetValueW]
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x20]
push edx
push str.ipartner
push str.SOFTWARE360SafeCoop
mov ebx, 0x104
push connect
mov dword [esp + 0x30], 1
mov dword [esp + 0x2c], ebx
call esi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x140]
push ecx
lea edx, [esp + 0x20]
push edx
push str.PartnerName
push str.SOFTWARE360SafeCoop
push connect
mov dword [esp + 0x2c], ebx
call esi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x248]
push ecx
lea edx, [esp + 0x20]
push edx
push str.360Safetray
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push connect
mov dword [esp + 0x2c], ebx
call esi
push 0
push str.Q360SafeMonClass
call dword [sym.imp.USER32.dll_FindWindowW]
push str.Q360MonMutex
push 0
push 0x1f0001
mov esi, eax
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov ebx, eax
test esi, esi
jne 0x10039c07
test ebx, ebx
jne 0x10039c07
mov eax, dword [esp + 0x28]
mov ecx, dword [0x100db91c]
push eax
push edi
push ecx
mov ecx, dword [0x100d9234]
lea edx, [esp + 0x148]
push edx
lea eax, [esp + 0x44]
push eax
push esi
push 0x3d
push ecx
push str.v_ds_dr_du_Sc_So_dw_I64d
xor ecx, ecx
call fcn.1002d3f0
add esp, 0x24
jmp 0x10039c4d
cmp dword [ebp + 8], 0x271b
je 0x10039c42
mov edx, dword [esp + 0x28]
mov eax, dword [0x100db91c]
push edx
push edi
push eax
mov eax, dword [0x100d9234]
lea ecx, [esp + 0x148]
push ecx
lea edx, [esp + 0x44]
push edx
push 0
push 0x3c
push eax
push str.v_ds_dr_du_Sc_So_dw_I64d
xor ecx, ecx
call fcn.1002d3f0
add esp, 0x24
test ebx, ebx
je 0x10039c4d
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x244]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10039c57
sub eax, edx
jne 0x10039c96
mov ecx, dword [esp + 0x28]
mov edx, dword [0x100db91c]
push ecx
push edi
push edx
mov edx, dword [0x100d9234]
lea eax, [esp + 0x148]
push eax
lea ecx, [esp + 0x44]
push ecx
push 0
push 0x3e
push edx
push str.v_ds_dr_du_Sc_So_dw_I64d
xor ecx, ecx
call fcn.1002d3f0
add esp, 0x24
push 0x208
lea eax, [esp + 0x350]
push 0
push eax
call fcn.1007dcf0
lea ecx, [esp + 0x358]
add esp, 0xc
push ecx
mov ecx, 0x208
call fcn.10039e20
add esp, 4
lea edx, [esp + 0x20]
push edx
call fcn.1001a210
mov dword [esp + 0x568], 0
lea eax, [esp + 0x34c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10039ce1
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x350]
push eax
lea eax, [esp + 0x28]
call fcn.1006d1c0
push str.entclientQhEntinfo.dll
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.10013160
add esp, 0xc
mov byte [esp + 0x568], 1
mov ebx, 1
mov dword [esp + 0x1c], ebx
mov eax, dword [eax]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
jne 0x10039d72
push str.deepscanQhEntinfo.dll
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
call fcn.10013160
add esp, 0xc
mov dword [esp + 0x568], 2
mov ebx, 3
mov dword [esp + 0x1c], ebx
mov eax, dword [eax]
push eax
call esi
mov byte [esp + 0x13], 0
test eax, eax
je 0x10039d77
mov byte [esp + 0x13], 1
mov dword [esp + 0x568], 1
test bl, 2
je 0x10039d97
and ebx, 0xfffffffd
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], ebx
call fcn.10013100
mov dword [esp + 0x568], 0
test bl, 1
je 0x10039db7
and ebx, 0xfffffffe
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], ebx
call fcn.10013100
cmp byte [esp + 0x13], 0
je 0x10039ddd
mov edx, dword [ebp + 8]
mov eax, dword [0x100d9234]
mov ecx, dword [str.v_ds_dr_dd_d]
push edx
push 0
push 0x50
push eax
push ecx
xor ecx, ecx
call fcn.1002d3f0
add esp, 0x14
mov dword [esp + 0x568], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.10013100
mov ecx, dword [esp + 0x560]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x548]
xor ecx, esp
call fcn.10079a05
mov esp, ebp
pop ebp
ret