Function at 0x40f5d0
Capabilities:
Persist via run registry key
Print debug messages
Query or enumerate registry value
Set registry value

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x693186
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x648
mov eax, dword [0x75d580]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x654], 0
mov dword [ebp - 0x650], 0
mov dword [ebp - 0x64c], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x640]
push 0x2d
xorps xmm0, xmm0
mov dword [ebp - 0x630], 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
movups xmmword [ebp - 0x640], xmm0
mov dword [ebp - 0x62c], 0
call fcn.00402060
cmp dword [ebx + 0x34], 7
lea edi, [ebx + 0x20]
push 0x200
cmova edi, dword [ebx + 0x20]
lea eax, [ebp - 0x218]
cmp dword [ebx + 0x1c], 7
lea esi, [ebx + 8]
push 0
cmova esi, dword [ebx + 8]
push eax
call fcn.0053fb70
push edi
push esi
push str._autostart___s__s
lea eax, [ebp - 0x218]
push 0xff
push eax
call fcn.004111d0
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x218]
add esp, 0x20
push eax
call esi
cmp dword [ebp - 0x62c], 7
lea eax, [ebp - 0x640]
cmova eax, dword [ebp - 0x640]
sub esp, 0x14
push eax
push ecx
lea ecx, [ebp - 0x654]
call fcn.0040a640
mov edi, dword [ebp - 0x654]
test eax, eax
je 0x40f725
push 0x200
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0053fb70
push str._autostart_
lea eax, [ebp - 0x218]
push 0xff
push eax
call fcn.004111d0
add esp, 0x18
lea eax, [ebp - 0x218]
push eax
call esi
jmp 0x40f835
push 0x410
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.0053fb70
add esp, 0xc
mov dword [ebp - 0x648], 0x410
cmp dword [ebx + 0x34], 7
lea ecx, [ebp - 0x648]
lea eax, [ebx + 0x20]
cmova eax, dword [ebx + 0x20]
push ecx
lea ecx, [ebp - 0x628]
push ecx
lea ecx, [ebp - 0x644]
push ecx
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f7a9
mov eax, dword [ebp - 0x644]
cmp eax, 1
je 0x40f783
cmp eax, 2
jne 0x40f7a9
mov ecx, dword [ebp - 0x648]
test ecx, ecx
je 0x40f930
test cl, 1
jne 0x40f7a9
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x62a], 0
je 0x40f939
cmp dword [ebx + 0x1c], 7
lea edx, [ebx + 8]
lea esi, [ebx + 0x20]
cmova edx, dword [ebx + 8]
cmp dword [ebx + 0x34], 7
cmova esi, dword [ebx + 0x20]
test edx, edx
je 0x40f7fc
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x644], eax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f7d0
sub ecx, dword [ebp - 0x644]
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x40f835
push 0x200
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0053fb70
push str._autostart__SetStringValue
lea eax, [ebp - 0x218]
push 0xff
push eax
call fcn.004111d0
add esp, 0x18
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
je 0x40f844
push edi
call esi
xor edi, edi
mov ecx, dword [ebp - 0x62c]
cmp ecx, 7
jbe 0x40f884
mov edx, dword [ebp - 0x640]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40f87a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f9d2
push ecx
push edx
call fcn.0048a4f6
add esp, 8
xor eax, eax
mov dword [ebp - 0x630], 0
mov dword [ebp - 0x62c], 7
mov word [ebp - 0x640], ax
test edi, edi
je 0x40f8a8
push edi
call esi
mov ecx, dword [ebx + 0x1c]
cmp ecx, 7
jbe 0x40f8e2
mov edx, dword [ebx + 8]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40f8d8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f9d2
push ecx
push edx
call fcn.0048a4f6
add esp, 8
mov ecx, dword [ebx + 0x34]
xor eax, eax
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 7
mov word [ebx + 8], ax
cmp ecx, 7
jbe 0x40f9b4
mov edx, dword [ebx + 0x20]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x40f9aa
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40f9d2
jmp 0x40f9aa
xor eax, eax
mov word [ebp - 0x628], ax
shr ecx, 1
je 0x40f7a9
lea ecx, [ebp - 0x628]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40f950
sub ecx, edx
lea esi, [ebx + 8]
mov edx, dword [ebx + 0x18]
sar ecx, 1
cmp dword [ebx + 0x1c], 7
cmova esi, dword [ebx + 8]
cmp edx, ecx
jne 0x40f7a9
lea ecx, [ebp - 0x628]
test edx, edx
je 0x40f835
mov eax, ecx
sub esi, eax
nop word [eax + eax]
mov ax, word [esi + ecx]
cmp ax, word [ecx]
jne 0x40f7a9
add ecx, 2
sub edx, 1
jne 0x40f990
jmp 0x40f835
push ecx
push edx
call fcn.0048a4f6
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048a267
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.00543627
int3