Function at 0x4064d0
Capabilities:
Contain obfuscated stackstrings
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52cf08
mov eax, dword fs:[0]
push eax
sub esp, 0x4ec
mov eax, dword [0x57a438]
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 edi, dword [ebp + 8]
test edi, edi
jne 0x40650c
xor eax, eax
jmp 0x406734
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.004fecc0
add esp, 0xc
call fcn.004063f0
mov dword [ebp - 0x460], 0x690057
mov dword [ebp - 0x45c], 0x4f006e
mov dword [ebp - 0x458], 0x740070
mov dword [ebp - 0x454], 0x6d0069
mov dword [ebp - 0x450], 0x7a0069
mov dword [ebp - 0x44c], 0x720065
mov dword [ebp - 0x448], 0x720054
mov dword [ebp - 0x444], 0x790061
mov dword [ebp - 0x440], 0x65002e
mov dword [ebp - 0x43c], 0x650078
test eax, eax
je 0x406752
xor eax, eax
mov word [ebp - 0x438], ax
call fcn.00407b40
push eax
push 0x14
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0x424]
call fcn.004070e0
mov esi, dword [ebp - 0x424]
lea eax, [ebp - 0x218]
push esi
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
or edi, 0xffffffff
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4065e6
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x428]
call fcn.00426ed0
sub esp, 8
mov dword [ebp - 4], 0
mov esi, dword [eax]
lea ecx, [ebp - 0x4f8]
call fcn.004093f0
lea eax, [ebp - 0x4f8]
mov byte [ebp - 4], 1
push str.app_path:
push eax
call fcn.00407550
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x4f8]
push eax
call fcn.00407550
mov eax, dword [esi]
lea ecx, [ebp - 0x4f8]
add esp, 0x10
push ecx
mov ecx, esi
call dword [eax + 0xc]
lea ecx, [ebp - 0x4f8]
call fcn.0040a3e0
mov dword [ebp - 4], 2
mov esi, dword [ebp - 0x424]
test esi, esi
je 0x40667c
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x40667c
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x40667c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov dword [ebp - method.CTaskSchdMgr.virtual_0], vtable.CTaskSchdMgr.0
mov dword [ebp - 4], 3
xor eax, eax
mov dword [ebp - 0x458], 0x690057
mov dword [ebp - 0x454], 0x4f006e
mov dword [ebp - 0x450], 0x740070
mov dword [ebp - 0x44c], 0x6d0069
mov dword [ebp - 0x448], 0x7a0069
mov dword [ebp - 0x444], 0x720065
mov dword [ebp - 0x440], 0x720054
mov dword [ebp - 0x43c], 0x790061
mov word [ebp - 0x438], ax
call fcn.00407b40
push eax
push 0x10
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x434]
call fcn.004070e0
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 4
mov esi, dword [ebp - 0x434]
push eax
push esi
call fcn.0040a680
mov ebx, eax
mov byte [ebp - 4], 3
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
jg 0x406732
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.004ac694
mov esp, ebp
pop ebp
ret 4
xor eax, eax
mov word [ebp - 0x438], ax
call fcn.00407b40
push eax
push 0x14
lea eax, [ebp - 0x460]
push eax
lea ecx, [ebp - 0x424]
call fcn.004070e0
mov esi, dword [ebp - 0x424]
lea eax, [ebp - 0x218]
push esi
push edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
or edi, 0xffffffff
add esi, 0xfffffff0
mov eax, edi
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4067a4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x434]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406732
mov dword [ebp - 0x430], 0x104
mov dword [ebp - 0x458], 0x690057
mov dword [ebp - 0x454], 0x4f006e
mov dword [ebp - 0x450], 0x740070
mov dword [ebp - 0x44c], 0x6d0069
mov dword [ebp - 0x448], 0x7a0069
mov dword [ebp - 0x444], 0x720065
mov dword [ebp - 0x440], 0x720054
mov dword [ebp - 0x43c], 0x790061
mov word [ebp - 0x438], ax
call fcn.00407b40
push eax
push 0x10
lea eax, [ebp - 0x458]
push eax
lea ecx, [ebp - 0x424]
call fcn.004070e0
mov esi, dword [ebp - 0x424]
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x420]
push eax
push 0
push 0
push esi
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x424], eax
add esi, 0xfffffff0
mov ecx, edi
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x406887
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x424], ebx
jne 0x406732
call fcn.00407b40
mov ecx, eax
test ecx, ecx
je 0x406a67
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x420]
mov dword [ebp - 4], 5
push eax
lea ecx, [ebp - 0x42c]
call fcn.00406e80
test al, al
jne 0x406904
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4068e2
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x42c]
call fcn.00406d90
mov dword [ebp - 4], 6
mov esi, dword [ebp - 0x42c]
mov edi, dword [esi - 0xc]
test edi, edi
js 0x406a71
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edi
or eax, ecx
jge 0x40693f
push edi
lea ecx, [ebp - 0x42c]
call fcn.00407170
mov esi, dword [ebp - 0x42c]
lea eax, [edi + 1]
push eax
push esi
call fcn.005029b0
add esp, 8
cmp edi, dword [esi - 8]
jg 0x406a71
xor eax, eax
mov dword [esi - 0xc], edi
mov word [esi + edi*2], ax
call fcn.00407b40
mov ecx, eax
test ecx, ecx
je 0x406a7b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 7
push eax
lea ecx, [ebp - 0x424]
call fcn.00406e80
test al, al
jne 0x4069c2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4069a0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x424]
call fcn.00406d90
mov byte [ebp - 4], 8
mov edi, dword [ebp - 0x424]
mov ebx, dword [edi - 0xc]
test ebx, ebx
js 0x406a85
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, ebx
or eax, ecx
jge 0x4069fa
push ebx
lea ecx, [ebp - 0x424]
call fcn.00407170
mov edi, dword [ebp - 0x424]
lea eax, [ebx + 1]
push eax
push edi
call fcn.005029b0
add esp, 8
cmp ebx, dword [edi - 8]
jg 0x406a71
xor eax, eax
mov dword [edi - 0xc], ebx
mov word [edi + ebx*2], ax
cmp dword [esi - 0xc], eax
jge 0x406a1f
or ebx, 0xffffffff
jmp 0x406a38
push edi
push esi
call fcn.004fe3da
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x406a34
or ebx, 0xffffffff
jmp 0x406a38
sub ebx, esi
sar ebx, 1
lea edx, [edi - 0x10]
mov byte [ebp - 4], 6
not ebx
or edi, 0xffffffff
shr ebx, 0x1f
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x406a5b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
jmp 0x40671d
push 0x80004005
call fcn.00407c80
push 0x80070057
call fcn.00407c80
push 0x80004005
call fcn.00407c80
push 0x80070057
call fcn.00407c80
int3