Function at 0x406660
Capabilities:
Make an http request with a cookie
Parse url
Read data from internet
Receive data
Resolve function by parsing pe exports
Send data
Send http request

Disassembly:
sub esp, 0x360
mov eax, dword [0x43d504]
xor eax, esp
mov dword [esp + 0x35c], eax
mov edx, dword [esp + 0x368]
push ebx
mov eax, ecx
mov ecx, dword [esp + 0x368]
xor ebx, ebx
mov dword [eax + 8], ebx
mov eax, dword [eax + 4]
cmp eax, ebx
push esi
mov esi, dword [esp + 0x37c]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x378]
mov dword [esp + 0x20], edx
mov dword [esp + 0xc], esi
jne 0x4066b3
xor al, al
jmp 0x406d7c
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push ecx
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
cmp eax, ebx
mov dword [esp + 0x28], eax
je 0x4066ac
push ebp
push edi
push eax
lea ecx, [esp + 0x1c]
call fcn.00406db0
push str.Content_Type:_application_x_www_form_urlencoded
lea ecx, [esp + 0xac]
call fcn.004014af
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x406800
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x406800
push 2
push 0x4354fc
lea ecx, [esp + 0xb0]
call fcn.00403175
push 8
push 0x4354e8
lea ecx, [esp + 0xb0]
call fcn.00403175
mov ecx, esi
xor edi, edi
call fcn.00405770
test eax, eax
jbe 0x4067ed
xor ebp, ebp
jmp 0x406756
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x406779
mov ecx, dword [esi + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jb 0x40677e
call fcn.00419676
mov eax, dword [esi + 4]
add eax, ebp
cmp dword [eax + 0x14], ebx
lea esi, [eax + 0x1c]
je 0x4067d6
cmp dword [esi + 0x14], ebx
je 0x4067d6
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xb4]
call fcn.004030cc
push 1
push 0x4354e4
lea ecx, [esp + 0xb0]
call fcn.00403175
push 0xffffffffffffffff
push ebx
push esi
lea ecx, [esp + 0xb4]
call fcn.004030cc
push 1
push 0x4354e0
lea ecx, [esp + 0xb0]
call fcn.00403175
mov ecx, dword [esp + 0x14]
add edi, 1
add ebp, 0x38
call fcn.00405770
cmp edi, eax
jb 0x406752
push 4
push str._r_n_r_n
lea ecx, [esp + 0xb0]
call fcn.00403175
cmp dword [esp + 0xc0], 8
mov dword [esp + 0x3c], 0x28
mov dword [esp + 0x40], ebx
jb 0x406823
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x44], ecx
jmp 0x40682e
lea edx, [esp + 0xac]
mov dword [esp + 0x44], edx
mov eax, dword [esp + 0xbc]
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x37c]
push ebx
push ebx
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
push ebx
lea eax, [esp + 0x48]
push eax
push ebp
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], ebx
mov dword [esp + 0x74], ebx
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
jne 0x4068a8
cmp dword [esp + 0xc0], 8
jb 0x406889
mov ecx, dword [esp + 0xac]
push ecx
call fcn.004192c0
add esp, 4
mov dword [esp + 0xc0], 7
mov dword [esp + 0xbc], ebx
mov word [esp + 0xac], bx
jmp 0x406d6f
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x34]
push edx
push esi
push eax
push ebp
mov dword [esp + 0x44], ebx
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x40686f
cmp dword [esp + 0x34], esi
jne 0x406d63
push ebx
push ebx
push ebx
push ebp
call dword [sym.imp.WININET.dll_HttpEndRequestW]
test eax, eax
je 0x406d63
mov esi, dword [esp + 0x28]
mov ecx, esi
call fcn.00401506
mov edi, dword [sym.imp.WININET.dll_InternetReadFile]
nop
lea edx, [esp + 0x24]
push edx
push 0x1ff
lea eax, [esp + 0x174]
push eax
push ebp
mov dword [esp + 0x34], ebx
call edi
test eax, eax
je 0x406d63
mov eax, dword [esp + 0x24]
cmp eax, 0x200
jae 0x406d63
push ebx
push eax
lea ecx, [esp + 0x174]
push ecx
lea edx, [esp + 0x108]
push edx
mov byte [esp + eax + 0x17c], bl
call fcn.004010db
add esp, 0x10
push 0xffffffffffffffff
push ebx
push eax
mov ecx, esi
call fcn.004030cc
cmp dword [esp + 0x114], 8
jb 0x406966
mov eax, dword [esp + 0x100]
push eax
call fcn.004192c0
add esp, 4
cmp dword [esp + 0x24], ebx
ja 0x4068f0
mov ecx, dword [esp + 0x14]
call fcn.00406130
xor ecx, ecx
mov eax, 0x201
mov edx, 2
mul edx
seto cl
mov ebp, 0x200
mov dword [esp + 0x10], ebp
neg ecx
or ecx, eax
push ecx
call fcn.00418690
add esp, 4
mov dword [esp + 0x20], ebx
mov edi, eax
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
push ecx
push edi
push 0x2b
mov word [edi], bx
mov esi, dword [esp + 0x30]
push edx
mov dword [esp + 0x24], ebp
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
setne al
cmp al, bl
jne 0x406a16
cmp dword [esp + 0x10], ebp
jbe 0x406d3e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x406d3e
mov ebp, dword [esp + 0x10]
push edi
add ebp, 1
call fcn.00419753
xor ecx, ecx
lea eax, [ebp + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00418690
add esp, 8
mov dword [esp + 0x20], esi
jmp 0x4069a0
mov eax, dword [esp + 0x10]
cmp eax, ebp
ja 0x4069a2
push edi
lea ecx, [esp + 0xc8]
mov word [edi + eax*2], bx
call fcn.004014af
cmp dword [esp + 0xd8], ebx
je 0x406d2d
mov eax, 7
push 1
mov dword [esp + 0x16c], eax
mov dword [esp + 0xfc], eax
push ebx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0xd0]
mov dword [esp + 0x170], ebx
mov word [esp + 0x160], bx
mov dword [esp + 0x100], ebx
mov word [esp + 0xf0], bx
mov dword [esp + 0x34], 0x3d
call fcn.00402758
mov esi, eax
cmp esi, 0xffffffff
je 0x406b01
push esi
push ebx
lea ecx, [esp + 0x104]
push ecx
lea ecx, [esp + 0xd0]
call fcn.00402569
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x15c]
call fcn.0040176b
lea ecx, [esp + 0xfc]
call fcn.004014f7
lea eax, [esi + 1]
cmp eax, dword [esp + 0xd8]
jae 0x406b01
push 0xffffffffffffffff
push eax
lea edx, [esp + 0x104]
push edx
lea ecx, [esp + 0xd0]
call fcn.00402569
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xd0]
call fcn.0040176b
lea ecx, [esp + 0xfc]
call fcn.004014f7
push 1
push ebx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0xd0]
mov dword [esp + 0x34], 0x3b
call fcn.00402758
cmp eax, 0xffffffff
je 0x406b56
push eax
push ebx
lea ecx, [esp + 0x104]
push ecx
lea ecx, [esp + 0xd0]
call fcn.00402569
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xec]
call fcn.0040176b
lea ecx, [esp + 0xfc]
call fcn.004014f7
jmp 0x406b6d
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xcc]
push edx
lea ecx, [esp + 0xec]
call fcn.0040176b
lea eax, [esp + 0x150]
push str.__r_t_n
push eax
call fcn.004022b4
lea ecx, [esp + 0xe8]
push str.__r_t_n
push ecx
call fcn.004022b4
add esp, 0x10
cmp dword [esp + 0x164], ebx
je 0x406d15
cmp dword [esp + 0xf4], ebx
je 0x406d15
push str.http:__www.haozip.com_
lea ecx, [esp + 0x138]
call fcn.004014af
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xe8]
push edx
lea ecx, [esp + 0x140]
call fcn.004030cc
push 0x3c
lea eax, [esp + 0x70]
push ebx
push eax
call fcn.00419b30
mov esi, dword [esp + 0x154]
add esi, 0x20
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
mov dword [esp + 0x78], 0x3c
neg ecx
or ecx, eax
push ecx
call fcn.00418690
lea ecx, [esi + esi]
push ecx
push ebx
push eax
mov dword [esp + 0xbc], eax
call fcn.00419b30
mov eax, dword [esp + 0x154]
add esi, 0xffffffff
add esp, 0x1c
cmp dword [esp + 0x14c], 8
mov dword [esp + 0xa4], esi
jae 0x406c44
lea eax, [esp + 0x138]
mov ecx, dword [esp + 0x148]
lea edx, [esp + 0x6c]
push edx
push SysReAllocString
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x406cc7
mov edx, dword [esp + 0xa0]
push edx
lea ecx, [esp + 0x100]
call fcn.004014af
cmp dword [esp + 0x110], ebx
je 0x406cbb
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x100]
call fcn.00401886
mov ecx, dword [eax + 4]
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x108]
call fcn.00405920
lea ecx, [esp + 0xfc]
push ecx
lea ecx, [esp + 0xe4]
call fcn.0040491f
lea ecx, [esp + 0xfc]
call fcn.004014f7
mov edx, dword [esp + 0xa0]
push edx
call fcn.00419753
add esp, 4
lea eax, [esp + 0xe0]
push eax
lea ecx, [esp + 0x154]
push ecx
lea ecx, [esp + 0x104]
call fcn.00405c30
mov ecx, dword [esp + 0x14]
push eax
call fcn.004065b0
lea ecx, [esp + 0xfc]
call fcn.004058d0
lea ecx, [esp + 0x134]
call fcn.004014f7
lea ecx, [esp + 0xe0]
call fcn.004014f7
lea ecx, [esp + 0x150]
call fcn.004014f7
lea ecx, [esp + 0xc4]
call fcn.004014f7
jmp 0x4069a2
push edi
mov word [edi], bx
call fcn.00419753
add esp, 4
lea ecx, [esp + 0xa8]
call fcn.004014f7
lea ecx, [esp + 0x18]
call fcn.00406de0
mov al, 1
jmp 0x406d7a
lea ecx, [esp + 0xa8]
call fcn.004014f7
lea ecx, [esp + 0x18]
call fcn.00406de0
xor al, al
pop edi
pop ebp
mov ecx, dword [esp + 0x364]
pop esi
pop ebx
xor ecx, esp
call fcn.00419b1f
add esp, 0x360
ret 0x14