Function at 0x40a814
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov eax, str.http:__support.weixin.qq.com_cgi_bin_mmsupport_bin_getmobileverifycode_langzh_CN
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40a856
push ebx
call fcn.00413c8e
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov ebx, dword [ebp + 0x10]
push dword [ebx]
push str.imgcode
mov ebx, dword [ebp + 0xc]
push dword [ebx]
push str.ccA86mobile
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.username
mov ecx, 6
call fcn.004015f8
add esp, 0x18
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40a89c
push ebx
call fcn.00413c8e
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x18], 0
push 0
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x24], 0
push 0
push dword [ebp - 0x24]
mov dword [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x28]
push eax
push 1
mov eax, str.Origin:_http:__support.weixin.qq.com_r_nAccept:_text_html_application_xhtmlxml_application_xml_q0.9_image_webp___q0.8_r_nContent_Type:_application_x_www_form_urlencoded_r_nAccept_Language:_zh_CN_zh_q0.8_r_nReferer:_http:__support.weixin.qq.com_cgi_bin_mmsupport_bin_readtemplate_tweixin_unlock_selfstep0langzh_CN_r_nUser_Agent:_Mozilla_5.0__Windows_NT_6.1__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_31.0.1650.48_Safari_537.36_QQBrowser_8.0.2959.400_r_n_r_n
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x30], 0
push 0
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
push eax
push 1
lea eax, [ebp - 8]
push eax
push 1
push 1
lea eax, [ebp - 4]
push eax
call fcn.0040b29a
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40a931
push ebx
call fcn.00413c8e
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40a941
push ebx
call fcn.00413c8e
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40a951
push ebx
call fcn.00413c8e
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40a961
push ebx
call fcn.00413c8e
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40a971
push ebx
call fcn.00413c8e
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40a981
push ebx
call fcn.00413c8e
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40a991
push ebx
call fcn.00413c8e
add esp, 4
mov eax, dword [ebp - 0x38]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40a9a5
push ebx
call fcn.00413c8e
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push 0x4b8a6b
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40a9da
mov eax, 0x49a343
push eax
push 4
mov ebx, 0x414410
call fcn.00413cb2
add esp, 0x34
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x40b1d8
xor ecx, ecx
inc ecx
push ecx
cmp ecx, 0xf
jg 0x40ab7f
push dword [ebp + 0xc]
call fcn.0040ce00
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40aa26
push ebx
call fcn.00413c8e
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push 0x4b8a76
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x40aa5b
mov eax, 0x49a343
push eax
push 4
mov ebx, 0x414410
call fcn.00413cb2
add esp, 0x34
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x40ab56
mov dword [ebp - 0x18], 0
push 0
push dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
mov eax, 0x4b8a7f
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
mov eax, 0x4b8a81
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.004088b0
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40aac7
push ebx
call fcn.00413c8e
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40aad7
push ebx
call fcn.00413c8e
add esp, 4
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40aaeb
push ebx
call fcn.00413c8e
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push 0x49a34c
push dword [ebp - 0x10]
push 0x4b8a83
mov ecx, 3
call fcn.004015f8
add esp, 0xc
mov dword [ebp - 0x18], eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40ab1f
mov eax, 0x49a343
push eax
push 0x10005
push 0x16011ad6
push 0x52010001
push 2
mov ebx, 0x4159d0
call fcn.00413cb2
add esp, 0x1c
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40ab51
push ebx
call fcn.00413c8e
add esp, 4
jmp 0x40ab7f
push 0x80000301
push 0
push 0x7d0
push 1
mov eax, 1
mov ebx, 0x462a00
call fcn.00413cb8
add esp, 0x10
pop ecx
jmp 0x40a9fc
add esp, 4
push dword [ebp + 0x14]
call fcn.004071b6
mov dword [ebp - 0x18], eax
push 0
push dword [ebp - 0x18]
push 0xffffffffffffffff
push 0xa
push 0x160119f5
push 0x52010001
call fcn.00413ca6
add esp, 0x18
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40abb8
push ebx
call fcn.00413c8e
add esp, 4
push 0xffffffffffffffff
push 0xa
push 0x160119f5
push 0x52010001
call fcn.00413cac
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, 0x49a344
xor ecx, ecx
test eax, eax
je 0x40abdf
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 0x18]
xor ebx, ebx
test eax, eax
je 0x40abf0
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x40ac07
dec eax
test ecx, ecx
je 0x40ac07
call fcn.004019d3
add esp, 0xc
test eax, eax
mov eax, 0
setne al
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40ac27
push ebx
call fcn.00413c8e
add esp, 4
cmp dword [ebp - 0x1c], 0
je 0x40acb1
push 0xffffffffffffffff
push 0xa
push 0x160119f5
push 0x52010001
call fcn.00413cac
add esp, 0x10
mov dword [ebp - 0x20], eax
mov eax, 0x4b85c2
xor ecx, ecx
test eax, eax
je 0x40ac58
mov ecx, dword [eax + 4]
push ecx
add eax, 8
push eax
mov eax, dword [ebp - 0x20]
xor ebx, ebx
test eax, eax
je 0x40ac69
mov ebx, dword [eax + 4]
add eax, 8
push eax
cmp ebx, ecx
mov eax, 1
jne 0x40ac80
dec eax
test ecx, ecx
je 0x40ac80
call fcn.004019d3
add esp, 0xc
test eax, eax
mov eax, 0
setne al
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40aca0
push ebx
call fcn.00413c8e
add esp, 4
cmp dword [ebp - 0x24], 0
je 0x40acb1
mov eax, 1
jmp 0x40acb3
xor eax, eax
test eax, eax
je 0x40b1c9
push 0xffffffffffffffff
push 0x12
push 0x16011a8c
push 0x52010001
call fcn.00413cac
add esp, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 1
jne 0x40ae0f
push 0xffffffffffffffff
push 0xa
push 0x160119f5
push 0x52010001
call fcn.00413cac
add esp, 0x10
mov dword [ebp - 0x18], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40ad0a
mov eax, 0x49a344
push eax
push 1
mov ebx, 0x4140f0
call fcn.00413cb2
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40ad30
push ebx
call fcn.00413c8e
add esp, 4
push 0xffffffffffffffff
push 0xa
push 0x160119f5
push 0x52010001
call fcn.00413cac
add esp, 0x10
mov dword [ebp - 0x20], eax
push 0xffffffffffffffff
push 8
push 0x16011a89
push 0x52010001
call fcn.00413cac
add esp, 0x10
mov dword [ebp - 0x24], eax
push 0xffffffffffffffff
push 8
push 0x16011a8b
push 0x52010001
call fcn.00413cac
add esp, 0x10
mov dword [ebp - 0x28], eax
mov eax, 0x4b85de
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
mov eax, str.11437
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
lea eax, [ebp - 0x20]
push eax
call fcn.0040a41b
mov ebx, eax
test ebx, ebx
je 0x40adba
push ebx
call fcn.00413c8e
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40adca
push ebx
call fcn.00413c8e
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40adda
push ebx
call fcn.00413c8e
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x40adea
push ebx
call fcn.00413c8e
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40adfa
push ebx
call fcn.00413c8e
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40ae0a
push ebx
call fcn.00413c8e
add esp, 4
jmp 0x40aec4
push 0xffffffffffffffff
push 8
push 0x160119fa
push 0x52010001
call fcn.00413cac
add esp, 0x10
mov dword [ebp - 0x18], eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x40ae3b
mov eax, 0x49a343
push eax
push 1
mov ebx, 0x4140d0
call fcn.00413cb2
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40ae61
push ebx
call fcn.00413c8e
add esp, 4
cmp dword [ebp - 0x1c], 3
jle 0x40ae93
push 0x80000301
push 0
push 0x3e8
push 1
mov eax, 1
mov ebx, 0x462a00
call fcn.00413cb8
add esp, 0x10
jmp 0x40ae0f
push 0xffffffffffffffff
push 8
push 0x160119fa
push 0x52010001
call fcn.00413cac
add esp, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40aec0
push ebx
call fcn.00413c8e
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov eax, str.http:__support.weixin.qq.com_cgi_bin_mmsupport_bin_unblock_langzh_CN
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40aeda
push ebx
call fcn.00413c8e
add esp, 4
pop eax
mov dword [ebp - 4], eax
push dword [ebp - 0x14]
push str.imgcode
push dword [ebp - 0x10]
push str.smscode
mov ecx, 4
call fcn.004015f8
add esp, 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0
push 0
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x24], 0
push 0
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], 0
push 0
push dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
push 1
mov eax, str.Origin:_http:__support.weixin.qq.com_r_nAccept:_text_html_application_xhtmlxml_application_xml_q0.9_image_webp___q0.8_r_nContent_Type:_application_x_www_form_urlencoded_r_nAccept_Language:_zh_CN_zh_q0.8_r_nReferer:_http:__support.weixin.qq.com_cgi_bin_mmsupport_bin_readtemplate_tweixin_unlock_selfstep0langzh_CN_r_nUser_Agent:_Mozilla_5.0__Windows_NT_6.1__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_31.0.1650.48_Safari_537.36_QQBrowser_8.0.2959.400_r_n_r_n
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x38], 0
push 0
lea eax, [ebp - 0x38]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
push 1
push 1
lea eax, [ebp - 4]
push eax
call fcn.0040b29a
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x40af8f
push ebx
call fcn.00413c8e
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x40af9f
push ebx
call fcn.00413c8e
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x40afaf
push ebx
call fcn.00413c8e
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x40afbf
push ebx
call fcn.00413c8e
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x40afcf
push ebx
call fcn.00413c8e
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x40afdf
push ebx
call fcn.00413c8e
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x40afef
push ebx
call fcn.00413c8e
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x40afff
push ebx
call fcn.00413c8e
add esp, 4
mov eax, dword [ebp - 0x3c]
push eax
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40b013
push ebx
call fcn.00413c8e
add esp, 4
pop eax
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x3e8
push 1
mov eax, 1
mov ebx, 0x462a00
call fcn.00413cb8
add esp, 0x10
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push 0x4b8ae5
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40b06b
mov eax, 0x49a343
push eax
push 4
mov ebx, 0x414410
call fcn.00413cb2
add esp, 0x34
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x40b09a
mov eax, 3
jmp 0x40b242
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push 0x4b8aee
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40b0cb
mov eax, 0x49a343
push eax
push 4
mov ebx, 0x414410
call fcn.00413cb2
add esp, 0x34
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x40b0fa
mov eax, 4
jmp 0x40b242
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push 0x4b8b01
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40b12b
mov eax, 0x49a343
push eax
push 4
mov ebx, 0x414410
call fcn.00413cb2
add esp, 0x34
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x40b15a
mov eax, 5
jmp 0x40b242
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push 0x4b8b06
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40b18b
mov eax, 0x49a343
push eax
push 4
mov ebx, 0x414410
call fcn.00413cb2
add esp, 0x34
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x40b1ba
mov eax, 8
jmp 0x40b242
mov eax, 6
jmp 0x40b242
mov eax, 7
jmp 0x40b242
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push 0x4b8b15
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x40b209
mov eax, 0x49a343
push eax
push 4
mov ebx, 0x414410
call fcn.00413cb2
add esp, 0x34
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x40b238
mov eax, 1
jmp 0x40b242
mov eax, 2
jmp 0x40b242
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40b253
push ebx
call fcn.00413c8e
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x40b263
push ebx
call fcn.00413c8e
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x40b273
push ebx
call fcn.00413c8e
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x40b283
push ebx
call fcn.00413c8e
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x40b293
push ebx
call fcn.00413c8e
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10