Function at 0x1004be80
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010e9d7
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x1015746c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
test esi, esi
jne 0x1004bebc
xor eax, eax
jmp 0x1004c13e
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.10094f30
add esp, 0xc
call fcn.1002d990
test eax, eax
lea eax, [ebp - 0x218]
je 0x1004bf26
push str.Bin360AppCore.exe
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [ebp - 0x424]
call fcn.1004fe00
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ebx
push eax
push str.360DesktopMainProg
lea ecx, [ebp - 0x424]
call fcn.10050d50
lea ecx, [ebp - 0x424]
mov ebx, eax
call fcn.10050110
jmp 0x1004c13c
push str.Bin360Desktop.exe
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x42c]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1004c13c
lea eax, [ebp - 0x430]
mov dword [ebp - 0x430], 0x104
push eax
lea eax, [ebp - 0x420]
push eax
push 0
push 0
push str.360Desktop
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x42c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1004c13c
call fcn.10004dc0
mov ecx, eax
test ecx, ecx
je 0x1004c15c
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x428]
test eax, 0xffff0000
jne 0x1004bfde
movzx eax, ax
push eax
call fcn.100121d0
jmp 0x1004bfe4
push eax
call fcn.10020d30
mov esi, dword [ebp - 0x428]
mov dword [ebp - 4], 2
mov edi, dword [esi - 0xc]
test edi, edi
js 0x1004c166
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x1004c01f
push edi
lea ecx, [ebp - 0x428]
call fcn.10005150
mov esi, dword [ebp - 0x428]
lea eax, [edi + 1]
push eax
push esi
call fcn.100b3882
add esp, 8
cmp edi, dword [esi - 8]
jg 0x1004c166
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
call fcn.10004dc0
mov ecx, eax
test ecx, ecx
je 0x1004c170
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x424]
test eax, 0xffff0000
jne 0x1004c07d
movzx eax, ax
push eax
call fcn.100121d0
jmp 0x1004c083
push eax
call fcn.10020d30
mov edi, dword [ebp - 0x424]
mov byte [ebp - 4], 4
mov ebx, dword [edi - 0xc]
test ebx, ebx
js 0x1004c17a
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, ebx
or eax, ecx
jge 0x1004c0bb
push ebx
lea ecx, [ebp - 0x424]
call fcn.10005150
mov edi, dword [ebp - 0x424]
lea eax, [ebx + 1]
push eax
push edi
call fcn.100b3882
add esp, 8
cmp ebx, dword [edi - 8]
jg 0x1004c166
xor eax, eax
mov dword [edi - 0xc], ebx
mov word [edi + ebx*2], ax
cmp dword [esi - 0xc], eax
jge 0x1004c0e4
or ebx, 0xffffffff
jmp 0x1004c0fd
push edi
push esi
call fcn.10096439
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1004c0f9
or ebx, 0xffffffff
jmp 0x1004c0fd
sub ebx, esi
sar ebx, 1
lea edx, [edi - 0x10]
mov byte [ebp - 4], 2
not ebx
or edi, 0xffffffff
shr ebx, 0x1f
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004c120
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x1004c13c
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10068438
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.10004170
push 0x80070057
call fcn.10004170
push 0x80004005
call fcn.10004170
push 0x80070057
call fcn.10004170
int3