Function at 0x445700
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb0d9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x688
push ebx
push esi
push edi
lea eax, [ebp - 0x294]
mov dword [ebp - 0x10], esp
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.004ab6e0
add esp, 4
lea ecx, [ebp - 0x84]
push ecx
call fcn.00401350
add esp, 4
lea edx, [ebp - 0x594]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 1
lea ecx, [ebp - 0xcc]
call fcn.004f0653
push 1
lea ecx, [ebp - 0x214]
mov byte [ebp - 4], 1
call fcn.004f0653
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 2
call fcn.004f0653
mov eax, dword [0x4fe4e8]
lea ecx, [ebp - 0xcc]
push eax
push 8
push str.c:endpcacheprocess_log.txt
mov byte [ebp - 4], 3
call fcn.004f0727
lea ecx, [ebp - 0x594]
lea edx, [ebp - 0x494]
push ecx
push str._s_system32driversetchosts
push edx
call fcn.004f175f
mov eax, dword [0x4fe4e8]
add esp, 0xc
lea ecx, [ebp - 0x494]
mov dword [ebp - 0x14], esi
push eax
push 1
push ecx
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call fcn.004f0727
mov edx, dword [ebp - 0x64]
mov ebx, dword [ebp + 0x1b4]
mov eax, dword [edx + 4]
mov eax, dword [ebp + eax - 0x60]
cmp dword [eax + 0x30], 0xffffffff
je 0x445991
mov esi, dword [ebp - 0x60]
push 0xa
lea ecx, [ebp - 0x394]
push 0x100
inc esi
push ecx
lea ecx, [ebp - 0x64]
mov dword [ebp - 0x60], esi
call fcn.004f0ae9
lea edi, [ebp - 0x394]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 2
jle 0x445980
lea edx, [ebp - 0x394]
push 0x51ea34
push edx
call fcn.004f2d80
add esp, 8
test eax, eax
jne 0x445980
mov eax, dword [ebp - 0x1c]
push str.127.0.0.1
inc eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x394]
push eax
call fcn.004f2d80
add esp, 8
test eax, eax
jne 0x44587f
lea ecx, [ebp - 0x394]
push str.localhost
push ecx
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x445882
inc dword [ebp - 0x14]
lea edx, [ebp - 0x694]
push 0x10
lea eax, [ebp - 0x394]
push edx
push eax
call fcn.004f2c80
add esp, 0xc
test eax, eax
jne 0x4458a1
inc dword [ebp - 0x18]
lea edi, [ebp - 0x394]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x694]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x14]
and ecx, 3
cmp eax, 1
rep movsb byte es:[edi], byte [esi]
jle 0x445977
lea ecx, [ebp - 0x394]
lea edx, [ebp - 0x84]
push ecx
push edx
call fcn.004fa6c0
add esp, 4
push eax
lea eax, [ebp - 0x294]
push eax
call fcn.004fa6c0
add esp, 4
lea ecx, [ebp - 0x1cc]
push eax
push 0x51e9e0
push ecx
call fcn.004f175f
mov eax, dword [0xe56db0]
add esp, 0x14
test eax, eax
jne 0x445977
mov eax, dword [0xe56dbc]
test eax, eax
jne 0x44594b
mov eax, dword [ebp + 0x1b0]
lea edx, [ebp - 0x1cc]
push edx
push ebx
push eax
mov ecx, 0x6a
sub esp, 0x1a8
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404170
jmp 0x445971
mov edx, dword [ebp + 0x1b0]
lea ecx, [ebp - 0x1cc]
push ecx
push ebx
push edx
mov ecx, 0x6a
sub esp, 0x1a8
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404560
add esp, 0x1b4
cmp dword [ebp - 0x14], 0x7d0
jg 0x445991
mov eax, dword [ebp - 0x64]
mov ecx, dword [eax + 4]
test byte [ebp + ecx - 0x5c], 1
je 0x4457f6
lea ecx, [ebp - 0x64]
call fcn.004f076e
mov eax, dword [ebp - 0x1c]
cmp eax, 2
jg 0x4459ab
cmp dword [ebp - 0x18], 5
jle 0x445a7f
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push edx
push ecx
lea edx, [ebp - 0x84]
push eax
push edx
mov byte [ebp - 0x1cc], 0
call fcn.004fa6c0
add esp, 4
push eax
lea eax, [ebp - 0x294]
push eax
call fcn.004fa6c0
add esp, 4
lea ecx, [ebp - 0x1cc]
push eax
push 0x51e960
push ecx
call fcn.004f175f
mov eax, dword [0xe56db0]
add esp, 0x1c
test eax, eax
jne 0x445a55
mov eax, dword [0xe56dbc]
test eax, eax
jne 0x445a29
mov eax, dword [ebp + 0x1b0]
lea edx, [ebp - 0x1cc]
push edx
push ebx
push eax
mov ecx, 0x6a
sub esp, 0x1a8
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404170
jmp 0x445a4f
mov edx, dword [ebp + 0x1b0]
lea ecx, [ebp - 0x1cc]
push ecx
push ebx
push edx
mov ecx, 0x6a
sub esp, 0x1a8
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404560
add esp, 0x1b4
lea eax, [ebp - 0x1cc]
lea ecx, [ebp - 0xc0]
push eax
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
mov eax, dword [ebp - 0x1c]
cmp dword [ebp - 0x14], 1
jg 0x445a8f
cmp dword [ebp - 0x18], 5
jle 0x445b1d
lea ecx, [ebp - 0x494]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
lea ecx, [ebp + 0x168]
call fcn.004f0653
mov edx, dword [0x4fe4e8]
lea eax, [ebp - 0x494]
push edx
push 2
push eax
lea ecx, [ebp + 0x168]
mov byte [ebp - 4], 4
call fcn.004f0727
push str.127.0.0.1__localhost
lea ecx, [ebp + 0x174]
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
lea ecx, [ebp + 0x168]
call fcn.004f076e
lea ecx, [ebp + 0x17c]
mov byte [ebp - 4], 3
call fcn.004f0714
lea ecx, [ebp + 0x17c]
call fcn.004f05fb
inc dword [0xe56d24]
jmp 0x445be6
lea ecx, [ebp - 0x84]
push eax
push ecx
mov byte [ebp - 0x1cc], 0
call fcn.004fa6c0
add esp, 4
lea edx, [ebp - 0x294]
push eax
push edx
call fcn.004fa6c0
add esp, 4
push eax
lea eax, [ebp - 0x1cc]
push 0x51e910
push eax
call fcn.004f175f
mov eax, dword [0xe56db0]
add esp, 0x14
test eax, eax
jne 0x445bbf
mov eax, dword [0xe56dbc]
test eax, eax
jne 0x445b93
mov edx, dword [ebp + 0x1b0]
lea ecx, [ebp - 0x1cc]
push ecx
push ebx
push edx
mov ecx, 0x6a
sub esp, 0x1a8
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404170
jmp 0x445bb9
mov ecx, dword [ebp + 0x1b0]
lea eax, [ebp - 0x1cc]
push eax
push ebx
push ecx
mov ecx, 0x6a
sub esp, 0x1a8
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404560
add esp, 0x1b4
lea edx, [ebp - 0x1cc]
lea ecx, [ebp - 0xc0]
push edx
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
lea ecx, [ebp - 0xcc]
call fcn.004f076e
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.004f0714
lea ecx, [ebp - 0x50]
call fcn.004f05fb
lea ecx, [ebp - 0x200]
mov byte [ebp - 4], 1
call fcn.004f0714
lea ecx, [ebp - 0x200]
call fcn.004f05fb
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0
call fcn.004f0714
lea ecx, [ebp - 0xb8]
call fcn.004f05fb
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret