Function at 0x406bd0
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x443744
mov eax, dword fs:[0]
push eax
sub esp, 0x4d4
mov eax, dword [0x467060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov dword [ebp - 0x438], ecx
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor eax, eax
push eax
push 0x44acac
lea ecx, [ebp - 0x4b0]
mov dword [ebp - 0x49c], 7
mov dword [ebp - 0x4a0], 0
mov word [ebp - 0x4b0], ax
call fcn.00405570
xor eax, eax
push 0xffffffffffffffff
mov dword [ebp - 4], 0
push eax
push esi
lea ecx, [ebp - 0x468]
mov dword [ebp - 0x454], 7
mov dword [ebp - 0x458], 0
mov word [ebp - 0x468], ax
call fcn.00405a00
xor eax, eax
push 0xffffffffffffffff
mov byte [ebp - 4], 1
push eax
push edi
lea ecx, [ebp - 0x498]
mov dword [ebp - 0x484], 7
mov dword [ebp - 0x488], 0
mov word [ebp - 0x498], ax
call fcn.00405a00
mov edi, dword [ebp - 0x438]
xor eax, eax
push 0xffffffffffffffff
mov byte [ebp - 4], 2
push eax
push edi
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x43c], 7
mov dword [ebp - 0x440], 0
mov word [ebp - 0x450], ax
call fcn.00405a00
xor eax, eax
push 0xffffffffffffffff
mov byte [ebp - 4], 3
push eax
push ebx
lea ecx, [ebp - 0x480]
mov dword [ebp - 0x46c], 7
mov dword [ebp - 0x470], 0
mov word [ebp - 0x480], ax
call fcn.00405a00
push str.YAC_
lea ecx, [ebp - 0x428]
mov dword [ebp - 4], 8
call fcn.00405670
mov byte [ebp - 4], 9
cmp dword [ebp - 0x4a0], 0
je 0x406d80
lea eax, [ebp - 0x4b0]
push eax
mov edx, 0x44aca8
lea ecx, [ebp - 0x4c8]
call fcn.0040d300
add esp, 4
push 0x44aca8
mov edx, eax
lea ecx, [ebp - 0x4e0]
mov byte [ebp - 4], 0xa
call fcn.00404870
add esp, 4
lea ecx, [ebp - 0x428]
push eax
call fcn.00403d00
lea ecx, [ebp - 0x4e0]
call fcn.00401270
lea ecx, [ebp - 0x4c8]
mov byte [ebp - 4], 9
call fcn.00401270
lea eax, [ebp - 0x468]
push eax
lea eax, [ebp - 0x498]
push eax
lea eax, [ebp - 0x450]
push eax
lea edx, [ebp - 0x480]
lea ecx, [ebp - 0x428]
call fcn.0041ec10
mov esi, dword [sym.imp.MSVCR110.dll_void___cdecl_operator_delete_void__]
add esp, 0xc
cmp dword [ebp - 0x414], 8
jb 0x406dc3
push dword [ebp - 0x428]
call esi
add esp, 4
cmp dword [ebp - 0x46c], 8
jb 0x406dd7
push dword [ebp - 0x480]
call esi
add esp, 4
xor eax, eax
cmp dword [ebp - 0x43c], 8
mov dword [ebp - 0x46c], 7
mov dword [ebp - 0x470], 0
mov word [ebp - 0x480], ax
jb 0x406e08
push dword [ebp - 0x450]
call esi
add esp, 4
xor eax, eax
cmp dword [ebp - 0x484], 8
mov dword [ebp - 0x43c], 7
mov dword [ebp - 0x440], 0
mov word [ebp - 0x450], ax
jb 0x406e39
push dword [ebp - 0x498]
call esi
add esp, 4
xor eax, eax
cmp dword [ebp - 0x454], 8
mov dword [ebp - 0x484], 7
mov dword [ebp - 0x488], 0
mov word [ebp - 0x498], ax
jb 0x406e6a
push dword [ebp - 0x468]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x49c], 8
mov dword [ebp - 0x454], 7
mov dword [ebp - 0x458], 0
mov word [ebp - 0x468], ax
jb 0x406ea2
push dword [ebp - 0x4b0]
call esi
add esp, 4
mov eax, dword [0x46a99c]
test eax, eax
jne 0x406ebc
xor edx, edx
mov ecx, 0x46a99c
call fcn.004202d0
mov eax, dword [0x46a99c]
and eax, 0xff00
cmp eax, 0x1500
setae al
test al, al
je 0x407067
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push eax
call sub.MSVCR110.dll_memset
add esp, 0xc
lea eax, [ebp - 0x434]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x434], 0
mov dword [ebp - 0x430], 0
mov dword [ebp - 0x42c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406f61
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x430]
push eax
push 0
push str.Common_Programs
push dword [ebp - 0x434]
mov dword [ebp - 0x42c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x434]
test eax, eax
je 0x406f7c
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x434], 0
xor eax, eax
mov dword [ebp - 0x414], 7
mov dword [ebp - 0x418], 0
mov word [ebp - 0x428], ax
cmp word [ebp - 0x410], ax
jne 0x406fa6
xor ecx, ecx
jmp 0x406fbf
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406fb0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x428]
call fcn.00405570
push 5
push str.YAC_
lea ecx, [ebp - 0x428]
mov dword [ebp - 4], 0xb
call fcn.00404020
push 0xffffffffffffffff
push 0
push edi
lea ecx, [ebp - 0x428]
call fcn.00405470
cmp dword [ebp - 0x414], 8
mov eax, dword [ebp - 0x428]
jb 0x407012
mov ecx, eax
test eax, eax
je 0x407058
jmp 0x407018
lea ecx, [ebp - 0x428]
cmp word [ecx], 0
je 0x407058
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x407052
cmp dword [ebp - 0x414], 8
push 0
push 0
push 0
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
push eax
push str.startpin
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [ebp - 0x428]
cmp dword [ebp - 0x414], 8
jb 0x407067
push eax
call esi
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004413e6
mov esp, ebp
pop ebp
ret