Function at 0x1004766
Capabilities:
Check if file exists
Delete file
Get file attributes
Persist via run registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x1007004]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x210], edi
mov eax, dword [section..data]
mov esi, section..data
cmp eax, esi
je 0x10047ba
test byte [eax + 0x1c], 8
je 0x10047ba
push ecx
mov ebx, 0x10013a4
push ebx
push 0x1e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.01001d09
jmp 0x10047bf
mov ebx, 0x10013a4
lea eax, [ebp - 0x214]
push eax
xor eax, eax
push eax
push 3
push eax
push eax
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionAccessibility
push 0x80000001
mov ecx, edi
call fcn.01002d8b
mov edi, eax
test edi, edi
je 0x1004825
mov eax, dword [section..data]
cmp eax, esi
je 0x1004802
test byte [eax + 0x1c], 8
je 0x1004802
push edi
push ebx
push 0x1f
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010032cd
test edi, edi
jle 0x1004812
and edi, 0xffff
or edi, 0x80070000
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100223d
leave
ret 0xc
mov ecx, dword [ebp - 0x210]
push 1
push dword [ebp - 0x218]
push str.Configuration
call fcn.01002813
mov edi, eax
xor eax, eax
cmp edi, eax
je 0x100485a
mov eax, dword [section..data]
cmp eax, esi
je 0x1004802
test byte [eax + 0x1c], 8
je 0x1004802
push edi
push ebx
push 0x20
jmp 0x10047f7
push 0x20019
push 0x10015e0
push 0x80000001
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
call fcn.010027d7
mov edi, eax
test edi, edi
je 0x10048ce
mov eax, dword [section..data]
cmp eax, esi
je 0x10048aa
test byte [eax + 0x1c], 8
je 0x10048aa
push edi
push ebx
push 0x21
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010032cd
test edi, edi
jle 0x10048ba
and edi, 0xffff
or edi, 0x80070000
mov esi, edi
lea ecx, [ebp - 0x228]
call fcn.010027b9
mov eax, esi
jmp 0x1004814
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x10015cc
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x210], 0x104
call fcn.01002e1f
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x210]
call fcn.01004373
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
call fcn.01004373
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x21c]
call fcn.01004373
push 0x100159c
lea ecx, [ebp - 0x210]
call fcn.010041f1
push 0x1001580
lea ecx, [ebp - 0x214]
call fcn.010041f1
push 0x1001560
lea ecx, [ebp - 0x21c]
call fcn.010041f1
push dword [ebp - 0x210]
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 0xffffffff
je 0x10049cf
push 0x1001554
push dword [ebp + 0xc]
push dword [ebp - 0x218]
call fcn.01003774
push dword [ebp - 0x210]
call edi
mov eax, dword [section..data]
cmp eax, esi
je 0x10049cf
test byte [eax + 0x1c], 0x10
je 0x10049cf
push 0x10013a4
push 0x22
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010032a7
push dword [ebp - 0x214]
call ebx
cmp eax, 0xffffffff
je 0x1004a18
push 0x1001540
push dword [ebp + 0xc]
push dword [ebp - 0x218]
call fcn.01003774
push dword [ebp - 0x214]
call edi
mov eax, dword [section..data]
cmp eax, esi
je 0x1004a18
test byte [eax + 0x1c], 0x10
je 0x1004a18
push 0x10013a4
push 0x23
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010032a7
push dword [ebp - 0x21c]
call ebx
cmp eax, 0xffffffff
je 0x1004a61
push 0x1001520
push dword [ebp + 0xc]
push dword [ebp - 0x218]
call fcn.01003774
push dword [ebp - 0x21c]
call edi
mov eax, dword [section..data]
cmp eax, esi
je 0x1004a61
test byte [eax + 0x1c], 0x10
je 0x1004a61
push 0x10013a4
push 0x24
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.010032a7
mov ecx, dword [ebp - 0x21c]
add ecx, 0xfffffff0
call fcn.01002ee6
mov ecx, dword [ebp - 0x214]
add ecx, 0xfffffff0
call fcn.01002ee6
mov ecx, dword [ebp - 0x210]
add ecx, 0xfffffff0
call fcn.01002ee6
xor esi, esi
jmp 0x10048bc