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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x560bee
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5d0074]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00490ee0
mov esi, eax
mov eax, dword [0x5d6c38]
test al, 1
jne 0x4ca6f6
or eax, 1
mov dword [0x5d6c38], eax
mov dword [ebp - 4], 0
push 0x104
push 0
push 0x5d6c4c
mov dword [0x5d6c40], 6
mov dword [0x5d6c44], 0
mov dword [0x5d6c48], 0
call fcn.00523880
push 0
push 0x100
push 0x5d6c50
mov dword [0x5d6d50], 1
mov word [0x5d6d54], 0
call fcn.00498f10
add esp, 0x18
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
cmp eax, dword [0x5d6c40]
jae 0x4ca704
xor al, al
jmp 0x4ca739
ja 0x4ca737
mov eax, dword [esi + 4]
cmp eax, dword [0x5d6c44]
jae 0x4ca715
xor al, al
jmp 0x4ca739
ja 0x4ca737
mov eax, dword [esi + 0xc]
cmp eax, dword [0x5d6c4c]
jae 0x4ca726
xor al, al
jmp 0x4ca739
ja 0x4ca737
mov eax, dword [esi + 8]
cmp eax, dword [0x5d6c48]
jae 0x4ca737
xor al, al
jmp 0x4ca739
mov al, 1
test al, al
je 0x4ca7ef
call fcn.0051cfc0
mov edx, edi
lea ecx, [ebp - 0x14]
call fcn.004ca490
mov dword [ebp - 4], 1
mov esi, dword [eax]
mov dword [ebp - 0x10], 0
mov byte [ebp - 4], 3
lea eax, [ebp - 0x10]
push eax
push 0x57dc70
push 1
push 0
push 0x57dc90
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x4ca795
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4ca791
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor bl, bl
jmp 0x4ca7b5
mov eax, dword [ebp - 0x10]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
test eax, eax
setns bl
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4ca7b5
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4ca7d7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test bl, bl
je 0x4ca7ef
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x14]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4ca822
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [edi]
mov eax, dword [esi - 0xc]
cmp eax, 0x4f
jle 0x4ca835
lea esi, [esi + eax*2]
add esi, 0xffffff62
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 1
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x4ca860
cmp edi, 0xea
jne 0x4ca86c
push esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret