Function at 0x42ab70
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a0590
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x4c448c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
push eax
call fcn.00402ba0
mov dword [ebp - 4], 0
mov edx, dword [0x4c41fc]
mov eax, dword [edx + 0xc]
mov ecx, 0x4c41fc
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
push ecx
push 0x4b1a3c
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.004020e0
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx - 0xc]
add esp, 8
test eax, eax
js 0x42ac2f
push 0x4ae8fc
push ecx
call fcn.00474087
mov ecx, dword [ebp - 0x10]
add esp, 8
test eax, eax
je 0x42ac2f
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
je 0x42ac2f
lea ecx, [ecx]
mov edx, dword [ecx - 0xc]
mov esi, eax
inc eax
js 0x42ac32
cmp eax, edx
jg 0x42ac32
lea edx, [ecx + eax*2]
push 0x4ae8fc
push edx
call fcn.00474087
mov ecx, dword [ebp - 0x10]
add esp, 8
test eax, eax
je 0x42ac32
sub eax, ecx
sar eax, 1
cmp eax, 0xffffffff
jne 0x42ac00
jmp 0x42ac32
mov esi, dword [ebp - 0x18]
cmp esi, 0xffffffff
je 0x42ac47
mov eax, dword [ecx - 0xc]
lea ecx, [ebp - 0x10]
push ecx
sub eax, esi
mov ecx, esi
call fcn.004153f0
lea edx, [ebp - 0x1c]
push edx
xor eax, eax
cmp byte [ebp + 0xc], al
lea ecx, [ebp - 0x18]
push ecx
push 0
push 0x20006
push 0
setne al
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
add eax, 0x80000001
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x42acd5
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42ac9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42acc2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x14]
cmp dword [esi - 4], 1
mov edi, dword [esi - 0xc]
jle 0x42acee
push edi
lea edx, [ebp - 0x14]
push edx
call fcn.00401ff0
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
lea eax, [edi + edi]
push eax
push esi
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi - 0x10]
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ad2f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42ad55
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret