Function at 0x40908a
Capabilities:
Create http request
Download and write a file
Inspect section memory permissions
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push 0x24
call fcn.004518e2
add esp, 4
mov dword [ebp - 4], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 9
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov ebx, dword [ebp - 4]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 0
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 0x14], ebx
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00457f90
add esp, 0x10
mov dword [ebp - 0x18], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.00457f90
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], esp
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
push 0
mov ebx, dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetOpenA]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x409153
push 6
call fcn.004518ee
add esp, 4
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x409166
push ebx
call fcn.004518e8
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x409176
push ebx
call fcn.004518e8
add esp, 4
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
cmp dword [ebx], 0
jne 0x4091c7
push 0x517573
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
push dword [ebp + 0x14]
push 0
push 0
push 0xffffffffffffffff
call dword [ebp + 0x10]
push 0x517573
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, 0xffffffff
jmp 0x40992c
push dword [ebp + 8]
call fcn.00409970
mov dword [ebp - 0x14], eax
push str._r_nAccept_Language:_zh_cn_r_n
push dword [ebp - 0x14]
push str.Accept:_image_gif__image_x_xbitmap__image_jpeg__image_pjpeg__application_x_shockwave_flash__application_vnd.ms_excel__application_vnd.ms_powerpoint__application_msword____r_nReferer:
mov ecx, 3
call fcn.0040117e
add esp, 0xc
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4091ff
push ebx
call fcn.004518e8
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x409213
push ebx
call fcn.004518e8
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 0x18], ebx
push dword [ebp + 8]
call fcn.00409970
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], esp
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x409256
push 6
call fcn.004518ee
add esp, 4
mov dword [ebp - 0x24], eax
push 0x80000301
push 0
push SysReAllocString
push 0x80000301
push 0
push 0x100
push 0x80000301
push 0
push 0x4000000
push 3
mov ebx, 0xc8
call fcn.00457f30
add esp, 0x28
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esp
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x24]
push dword [ebp - 8]
push dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
nop
nop
nop
nop
cmp dword [ebp - 0x2c], esp
je 0x4092c7
push 6
call fcn.004518ee
add esp, 4
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4092da
push ebx
call fcn.004518e8
add esp, 4
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
cmp dword [ebx], 0
jne 0x409358
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp - 0x14]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x409324
push 6
call fcn.004518ee
add esp, 4
push 0x517573
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
push dword [ebp + 0x14]
push 0
push 0
push 0xffffffffffffffff
call dword [ebp + 0x10]
push 0x517573
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, 0xffffffff
jmp 0x40992c
mov ebx, dword [ebp - 4]
add ebx, 0xc
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esp
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
mov ebx, dword [ebp + 0xc]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4093a3
push 6
call fcn.004518ee
add esp, 4
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
mov ebx, dword [ebp - 4]
add ebx, 0xc
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
cmp dword [ebx], 0xffffffff
jne 0x40944b
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp - 0x14]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4093ea
push 6
call fcn.004518ee
add esp, 4
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp - 0x14]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x409417
push 6
call fcn.004518ee
add esp, 4
push 0x517573
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
push dword [ebp + 0x14]
push 0
push 0
push 0xffffffffffffffff
call dword [ebp + 0x10]
push 0x517573
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, 0xffffffff
jmp 0x40992c
mov ebx, dword [ebp - 4]
add ebx, 0x10
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 0
mov ebx, dword [ebp - 4]
add ebx, 0x14
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 4
mov ebx, dword [ebp - 4]
add ebx, 0x1c
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 0
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0x14], ebx
push 0x80000301
push 0
push 0x20000000
push 0x80000301
push 0
push 5
push 2
mov ebx, 0xc8
call fcn.00457f30
add esp, 0x1c
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 4]
add ebx, 0x10
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 4]
add ebx, 0x14
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], esp
push 0
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
push dword [ebx]
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
nop
nop
nop
nop
cmp dword [ebp - 0x24], esp
je 0x4094fb
push 6
call fcn.004518ee
add esp, 4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x40951a
mov ebx, dword [ebp - 4]
add ebx, 0x10
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
mov dword [ebx], 0
push 0x80000301
push 0
push 0x4000
push 1
mov ebx, 0x1bc
call fcn.00458840
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40954f
push ebx
call fcn.004518e8
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0xc]
push eax
call fcn.0040625e
mov dword [ebp - 0x18], eax
mov ebx, dword [ebp - 4]
add ebx, 0x18
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], esp
push dword [ebp - 0x1c]
push 0x4000
push dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetReadFile]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x4095a0
push 6
call fcn.004518ee
add esp, 4
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x409668
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp - 0x14]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4095da
push 6
call fcn.004518ee
add esp, 4
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp - 0x14]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x409607
push 6
call fcn.004518ee
add esp, 4
mov ebx, dword [ebp - 4]
add ebx, 0xc
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp - 0x14]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x409634
push 6
call fcn.004518ee
add esp, 4
push 0x517573
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
push dword [ebp + 0x14]
push 0
push 0
push 0xffffffffffffffff
call dword [ebp + 0x10]
push 0x517573
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, 0xffffffff
jmp 0x40992c
mov ebx, dword [ebp - 4]
add ebx, 0x18
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 0x14]
cmp dword [ebx], 0
jne 0x409682
jmp 0x40986c
mov ebx, dword [ebp - 4]
add ebx, 0x18
mov dword [ebp - 0x14], ebx
push 0x80000301
push 0
mov ebx, dword [ebp - 0x14]
push dword [ebx]
push getsockname
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4096aa
mov eax, 0x47d3d3
push eax
push 2
mov ebx, 0x1a0
call fcn.00458870
add esp, 0x1c
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4096d4
push ebx
call fcn.004518e8
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 4]
add ebx, 0xc
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 4]
add ebx, 0x18
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 4]
add ebx, 0x20
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], esp
push 0
push dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
push dword [ebx]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x40970d
add eax, 8
push eax
mov ebx, dword [ebp - 0x14]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
nop
nop
nop
nop
cmp dword [ebp - 0x20], esp
je 0x40972f
push 6
call fcn.004518ee
add esp, 4
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x4097f7
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp - 0x14]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x409769
push 6
call fcn.004518ee
add esp, 4
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp - 0x14]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x409796
push 6
call fcn.004518ee
add esp, 4
mov ebx, dword [ebp - 4]
add ebx, 0xc
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp - 0x14]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4097c3
push 6
call fcn.004518ee
add esp, 4
push 0x517573
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
push dword [ebp + 0x14]
push 0
push 0
push 0xffffffffffffffff
call dword [ebp + 0x10]
push 0x517573
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, 0xffffffff
jmp 0x40992c
mov ebx, dword [ebp - 4]
add ebx, 0x1c
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp - 4]
add ebx, 0x1c
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 4]
add ebx, 0x18
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x18]
fild dword [ebx]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
mov ebx, dword [ebp - 0x1c]
fild dword [ebx]
fstp qword [ebp - 0x2c]
fadd qword [ebp - 0x2c]
fstp qword [ebp - 0x34]
fld qword [ebp - 0x34]
call fcn.004011da
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
push 0x517573
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
push dword [eax + 0x1c]
push dword [eax + 0x10]
push 1
call dword [ebp + 0x10]
push 0x517573
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
jmp 0x40951a
mov ebx, dword [ebp - 4]
add ebx, 0xc
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp - 0x14]
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x409899
push 6
call fcn.004518ee
add esp, 4
mov ebx, dword [ebp - 4]
add ebx, 4
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp - 0x14]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4098c6
push 6
call fcn.004518ee
add esp, 4
mov ebx, dword [ebp - 4]
add ebx, 8
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], esp
mov ebx, dword [ebp - 0x14]
push dword [ebx]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
nop
nop
nop
nop
cmp dword [ebp - 0x18], esp
je 0x4098f3
push 6
call fcn.004518ee
add esp, 4
push 0x517573
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
push dword [eax + 0x1c]
push dword [eax + 0x10]
push 0
call dword [ebp + 0x10]
push 0x517573
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, 0
jmp 0x40992c
push eax
mov ebx, dword [ebp - 4]
push ebx
call fcn.004518e8
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x409949
push ebx
call fcn.004518e8
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x409959
push ebx
call fcn.004518e8
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x409969
push ebx
call fcn.004518e8
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10