Function at 0x4ca380
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 0x560908
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 0x4ca3ec
xor al, al
jmp 0x4ca579
mov ebx, dword [edi]
mov eax, dword [ebx - 0xc]
cmp eax, 0x4f
jle 0x4ca3ff
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 0x4ca430
cmp dword [ebp - 0x1c], 0xc8
jbe 0x4ca568
call fcn.00413cd0
mov ecx, eax
test ecx, ecx
je 0x4ca59c
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 0x4ca4af
mov ecx, dword [edi]
mov edx, dword [ecx - 0xc]
test edx, edx
js 0x4ca5a6
cmp word [ecx], 0x22
je 0x4ca4af
test edx, edx
jle 0x4ca4af
push 0x20
push ecx
call fcn.00522329
add esp, 8
test eax, eax
je 0x4ca4af
sub eax, dword [edi]
sar eax, 1
cmp eax, 0xffffffff
je 0x4ca4af
push 0x22
lea ecx, [ebp - 0x10]
call fcn.00492e20
mov eax, dword [edi]
lea ecx, [ebp - 0x10]
push dword [eax - 0xc]
push eax
call fcn.00418250
push 0x22
lea ecx, [ebp - 0x10]
call fcn.00492e20
jmp 0x4ca4fd
mov edx, dword [edi]
add esi, 0xfffffff0
lea ecx, [edx - 0x10]
cmp ecx, esi
je 0x4ca4fd
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4ca4f1
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x4ca4f1
call fcn.0040be70
mov dword [ebp - 0x18], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x4ca4e9
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 0x4ca4fd
push dword [edx - 0xc]
lea ecx, [ebp - 0x10]
push edx
call fcn.004143c0
mov esi, dword [ebp - 0x20]
mov ecx, dword [esi]
mov eax, dword [ecx - 0xc]
test eax, eax
je 0x4ca521
js 0x4ca5b0
cmp word [ecx], 0x20
je 0x4ca521
push 0x20
lea ecx, [ebp - 0x10]
call fcn.00492e20
mov ecx, dword [esi]
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00418250
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 0x4ca56b
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4ca56b
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.00520c02
lea esp, [ebp + 0x194]
pop ebp
ret
push 0x80004005
call fcn.004143a0
push 0x80070057
call fcn.004143a0
push 0x80070057
call fcn.004143a0
int3