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

Disassembly:
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x194
push 0xffffffffffffffff
push 0x560c28
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x5d0074]
xor eax, ebp
mov dword [ebp + 0x190], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], edx
mov edi, ecx
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4ca8fc
xor al, al
jmp 0x4caa89
mov ebx, dword [edi]
mov eax, dword [ebx - 0xc]
cmp eax, 0x4f
jle 0x4ca90f
lea ebx, [ebx + eax*2]
add ebx, 0xffffff62
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0xc8
push eax
lea eax, [ebp]
push eax
push 0
push 0
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x4ca940
cmp dword [ebp - 0x1c], 0xc8
jbe 0x4caa78
call fcn.00411fd0
mov ecx, eax
test ecx, ecx
je 0x4caaac
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
je 0x4ca9bf
mov ecx, dword [edi]
mov edx, dword [ecx - 0xc]
test edx, edx
js 0x4caab6
cmp word [ecx], 0x22
je 0x4ca9bf
test edx, edx
jle 0x4ca9bf
push 0x20
push ecx
call fcn.00522c09
add esp, 8
test eax, eax
je 0x4ca9bf
sub eax, dword [edi]
sar eax, 1
cmp eax, 0xffffffff
je 0x4ca9bf
push 0x22
lea ecx, [ebp - 0x10]
call fcn.00492b30
mov eax, dword [edi]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.00416df0
push 0x22
lea ecx, [ebp - 0x10]
call fcn.00492b30
jmp 0x4caa0d
mov edx, dword [edi]
add esi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x4caa0d
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4caa01
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x4caa01
call fcn.0040a1d0
mov dword [ebp - 0x18], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x4ca9f9
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x18]
add eax, 0x10
mov dword [ebp - 0x10], eax
jmp 0x4caa0d
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.004126c0
mov esi, dword [ebp - 0x20]
mov ecx, dword [esi]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x4caa31
js 0x4caac0
cmp word [ecx], 0x20
je 0x4caa31
push 0x20
lea ecx, [ebp - 0x10]
call fcn.00492b30
mov ecx, dword [esi]
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00416df0
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
add eax, eax
push eax
push esi
push 1
push 0
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4caa7b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4caa7b
mov edi, dword [ebp - 0x18]
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 ecx, dword [ebp + 0x190]
xor ecx, ebp
call fcn.005214e1
lea esp, [ebp + 0x194]
pop ebp
ret
push 0x80004005
call fcn.004126a0
push 0x80070057
call fcn.004126a0
push 0x80070057
call fcn.004126a0
int3