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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455360
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x478990]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 1
call fcn.0041c8d4
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x41afbd
push 0x80004005
call fcn.00406820
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x20], eax
push str.AddRebootRegistry
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
mov dword [ebp - 0x1c], 0
call fcn.00406740
push 0x2d
push str.SoftwareMicrosoftWindowsCurrentVersionRun
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 3
call fcn.004065f0
mov esi, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x41b02b
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41b02b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x18]
push eax
push 6
push 0
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
or edi, 0xffffffff
test eax, eax
jne 0x41b161
lea ecx, [ebp + 8]
call fcn.004059c0
mov ecx, eax
call fcn.00405a40
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x2c]
push 0x4695c8
push eax
call fcn.00410d10
push 0x4695c8
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 4
call fcn.004057f0
add esp, 0x18
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 5
call fcn.00406090
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
mov byte [ebp - 4], 4
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41b0ae
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
mov byte [ebp - 4], 3
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41b0ce
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
je 0x41b0f5
push 1
push 0x4695cc
lea ecx, [ebp + 8]
call fcn.00405d10
mov eax, dword [ebp + 0xc]
lea ecx, [ebp + 8]
push dword [eax - 0xc]
push eax
call fcn.00405d10
push dword [ebp + 8]
push esi
push str.Write_Run_Key__s__Value__s
push dword [ebp - 0x1c]
push 8
push 0x47d0b4
call fcn.00417de0
mov eax, dword [ebp + 8]
mov edx, 1
mov ecx, dword [eax - 0xc]
sub edx, dword [eax - 4]
mov dword [ebp - 0x28], ecx
mov ecx, dword [eax - 8]
add esp, 0x18
or ecx, edx
jge 0x41b135
push 0
lea ecx, [ebp + 8]
call fcn.00406510
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
push ecx
push eax
push 1
push 0
push str.SIAStarter
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41b161
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x1c]
add edx, 0xfffffff0
mov byte [ebp - 4], 2
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41b181
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 0xfffffff0
mov byte [ebp - 4], 1
lea eax, [esi + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41b19e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x41b1be
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], edi
dec edi
test edi, edi
jg 0x41b1df
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043e7dc
mov esp, ebp
pop ebp
ret