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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0x1c
call fcn.00515ee9
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov edi, eax
xor eax, eax
mov ecx, 7
rep stosd dword es:[edi], eax
mov dword [ebx], 0xc78436
push ebx
mov eax, esp
push eax
call fcn.00411c37
pop ebx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx]
test eax, eax
je 0x4b6173
push eax
mov ebx, eax
call fcn.004010d0
inc eax
push eax
call fcn.00515ee9
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4b6184
push ebx
call fcn.00515eef
add esp, 4
pop eax
mov dword [ebp - 8], eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4b619b
mov eax, 0x65d6b8
push eax
push 1
mov ebx, 0x5165a0
call fcn.00515f01
add esp, 0x10
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 7
jge 0x4b61de
push dword [ebp + 8]
call fcn.0041a0de
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4b61da
push ebx
call fcn.00515eef
add esp, 4
pop eax
mov dword [ebp - 8], eax
push 0x1388
push 0x1bb
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x4b6211
mov eax, 0xcaeff2
jmp 0x4b6a31
mov eax, str.https:__kyfw.12306.cn_otn_login_loginAysnSuggest
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4b6227
push ebx
call fcn.00515eef
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
xor ecx, ecx
inc ecx
push ecx
cmp ecx, 3
jg 0x4b6785
mov eax, 0x65d6b8
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4b624e
push ebx
call fcn.00515eef
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push 0x10
call fcn.0041a81b
mov dword [ebp - 0x28], eax
push dword [ebp - 0x28]
push str.https:__kyfw.12306.cn_otn_passcodeNew_getPassCodeNew_moduleloginrandsjrand0.
mov ecx, 2
call fcn.0040113b
add esp, 8
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4b6287
push ebx
call fcn.00515eef
add esp, 4
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
push 1
push 0x1388
mov dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
push eax
push 1
mov eax, str.Accept:___r_nReferer:_https:__kyfw.12306.cn_otn_login_init_r_nAccept_Language:_zh_cn_r_nUser_Agent:_Mozilla_5.0__Windows_NT_6.1__WOW64__rv:34.0__Gecko_20100101_Firefox_34.0_r_nAccept_Encoding:_gzip__deflate_r_nConnection:_Keep_Alive
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x3c], 0
push 0
lea eax, [ebp - 0x3c]
push eax
push 1
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x40], 0
push 0
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x44], 0
push 0
push dword [ebp - 0x44]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x20]
mov dword [ebp - 0x48], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4b6306
push ebx
call fcn.00515eef
add esp, 4
mov ebx, dword [ebp - 0x40]
test ebx, ebx
je 0x4b6316
push ebx
call fcn.00515eef
add esp, 4
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x4b6326
push ebx
call fcn.00515eef
add esp, 4
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x4b6336
push ebx
call fcn.00515eef
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x4b6346
push ebx
call fcn.00515eef
add esp, 4
mov eax, dword [ebp - 0x48]
push eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4b635a
push ebx
call fcn.00515eef
add esp, 4
pop eax
mov dword [ebp - 0x18], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4b6371
mov eax, 0xb609c8
push eax
push 1
mov ebx, 0x5165c0
call fcn.00515f01
add esp, 0x10
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 3
jle 0x4b6741
lea eax, [ebp - 0x18]
push eax
call fcn.0040b3e1
mov dword [ebp - 0x28], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str.messages
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x4b63ce
mov eax, 0x65d6b8
push eax
push 4
mov ebx, 0x516de0
call fcn.00515f01
add esp, 0x34
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4b63f4
push ebx
call fcn.00515eef
add esp, 4
cmp dword [ebp - 0x2c], 0xffffffff
jle 0x4b6441
mov eax, 0x65d6b8
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4b6414
push ebx
call fcn.00515eef
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], esp
push 0x1f4
mov eax, 0x7a
call fcn.00515efb
cmp dword [ebp - 0x28], esp
je 0x4b643c
push 6
call fcn.00515ef5
add esp, 4
jmp 0x4b673c
mov dword [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041ad32
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4b6477
push ebx
call fcn.00515eef
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4b6487
push ebx
call fcn.00515eef
add esp, 4
mov eax, dword [ebp - 0x30]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4b649b
push ebx
call fcn.00515eef
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x4b64b2
mov eax, 0x65d6b8
push eax
push 1
mov ebx, 0x517780
call fcn.00515f01
add esp, 0x10
mov dword [ebp - 0x28], eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x4b64db
mov eax, 0x65d6b8
push eax
push 1
mov ebx, 0x516f90
call fcn.00515f01
add esp, 0x10
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4b6501
push ebx
call fcn.00515eef
add esp, 4
mov eax, dword [ebp - 0x2c]
push eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4b6515
push ebx
call fcn.00515eef
add esp, 4
pop eax
mov dword [ebp - 0x1c], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 1
mov ebx, 6
call fcn.004010c8
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push 0x65d6b8
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push 0xc280fe
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x4b655a
mov eax, 0x65d6b8
push eax
push 6
mov ebx, 0x5177c0
call fcn.00515f01
add esp, 0x4c
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4b6584
push ebx
call fcn.00515eef
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push 0xc7b1fe
push dword [ebp - 0x1c]
push str.randCode
mov ecx, 3
call fcn.0040113b
add esp, 0xc
mov dword [ebp - 0x28], eax
push 1
push 1
push 1
push 0x1388
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
push 1
mov eax, str.x_requested_with:_XMLHttpRequest_r_nAccept_Language:_zh_cn_r_nReferer:_https:__kyfw.12306.cn_otn_login_init_r_nAccept:___r_nContent_Type:_application_x_www_form_urlencoded__charsetUTF_8_r_nAccept_Encoding:_gzip__deflate_r_nUser_Agent:_Mozilla_5.0__Windows_NT_6.1__WOW64__rv:34.0__Gecko_20100101_Firefox_34.0_r_nHost:_kyfw.12306.cn_r_nConnection:_Keep_Alive_r_nCache_Control:_no_cache
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
push eax
push 1
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push 1
push 1
mov eax, str.https:__kyfw.12306.cn_otn_passcodeNew_checkRandCodeAnsyn
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x20]
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x4b661b
push ebx
call fcn.00515eef
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4b662b
push ebx
call fcn.00515eef
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x4b663b
push ebx
call fcn.00515eef
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4b664b
push ebx
call fcn.00515eef
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4b665b
push ebx
call fcn.00515eef
add esp, 4
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 0x3c]
test eax, eax
jne 0x4b666e
mov eax, 0xb609c8
push eax
push 1
mov ebx, 0x518570
call fcn.00515f01
add esp, 0x10
mov dword [ebp - 0x40], eax
mov ebx, dword [ebp - 0x3c]
test ebx, ebx
je 0x4b6694
push ebx
call fcn.00515eef
add esp, 4
mov eax, dword [ebp - 0x40]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4b66a8
push ebx
call fcn.00515eef
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4b66bf
mov eax, 0x65d6b8
push eax
push 1
mov ebx, 0x5165a0
call fcn.00515f01
add esp, 0x10
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 1
jle 0x4b673c
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str._result_:_1___msg_:_randCodeRight_
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4b6710
mov eax, 0x65d6b8
push eax
push 4
mov ebx, 0x516de0
call fcn.00515f01
add esp, 0x34
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jle 0x4b673c
mov dword [ebp - 4], 1
jmp 0x4b6785
jmp 0x4b677f
mov dword [ebp - 0x28], esp
push 0x3e8
mov eax, 0x7a
call fcn.00515efb
cmp dword [ebp - 0x28], esp
je 0x4b6765
push 6
call fcn.00515ef5
add esp, 4
mov eax, 0x65d6b8
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4b677b
push ebx
call fcn.00515eef
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
pop ecx
jmp 0x4b622d
add esp, 4
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str._result_:_1___msg_:_randCodeRight_
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4b67b9
mov eax, 0x65d6b8
push eax
push 4
mov ebx, 0x516de0
call fcn.00515f01
add esp, 0x34
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jle 0x4b67e0
mov dword [ebp - 4], 1
cmp dword [ebp - 4], 0
jne 0x4b67f4
mov eax, 0xcaf199
jmp 0x4b6a31
push 0
mov ebx, 0x519ba0
call fcn.00515f01
add esp, 4
mov dword [ebp - 0x24], eax
push dword [ebp - 0x1c]
push 0xc78861
mov ebx, dword [ebp + 0xc]
push dword [ebx]
push str.userDTO.password
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.loginUserDTO.user_name
mov ecx, 6
call fcn.0040113b
add esp, 0x18
mov dword [ebp - 0x28], eax
push 1
push 1
push 1
push 0x1b58
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
push 1
mov eax, str.User_Agent:_Mozilla_5.0__Windows_NT_6.1__WOW64__rv:34.0__Gecko_20100101_Firefox_34.0_r_nAccept:___r_nAccept_Language:_zh_cn_zh_q0.8_en_us_q0.5_en_q0.3_r_nAccept_Encoding:_gzip__deflate_r_nContent_Type:_application_x_www_form_urlencoded__charsetUTF_8_r_nX_Requested_With:_XMLHttpRequest_r_nReferer:_https:__kyfw.12306.cn_otn_login_init_r_nConnection:_keep_alive_r_nPragma:_no_cache_r_nCache_Control:_no_cache
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x34], 0
push 0
lea eax, [ebp - 0x34]
push eax
push 1
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 0x28]
push eax
push 1
push 1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x20]
mov dword [ebp - 0x38], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4b68a3
push ebx
call fcn.00515eef
add esp, 4
mov ebx, dword [ebp - 0x34]
test ebx, ebx
je 0x4b68b3
push ebx
call fcn.00515eef
add esp, 4
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x4b68c3
push ebx
call fcn.00515eef
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4b68d3
push ebx
call fcn.00515eef
add esp, 4
lea eax, [ebp - 0x38]
push eax
call fcn.0040b3e1
mov dword [ebp - 0x3c], eax
mov ebx, dword [ebp - 0x38]
test ebx, ebx
je 0x4b68ef
push ebx
call fcn.00515eef
add esp, 4
mov eax, dword [ebp - 0x3c]
push eax
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4b6903
push ebx
call fcn.00515eef
add esp, 4
pop eax
mov dword [ebp - 0x20], eax
push 0
mov ebx, 0x519ba0
call fcn.00515f01
add esp, 4
mov dword [ebp - 0x30], eax
fild dword [ebp - 0x30]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
fild dword [ebp - 0x24]
fstp qword [ebp - 0x38]
fsub qword [ebp - 0x38]
fstp qword [ebp - 0x40]
fld qword [ebp - 0x40]
call fcn.00401004
mov dword [ebp - 0x24], eax
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4b694f
mov eax, 0x65d6b8
push eax
push 1
mov ebx, 0x5165a0
call fcn.00515f01
add esp, 0x10
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 5
jge 0x4b6979
mov eax, 0xcaf1b3
jmp 0x4b6a31
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
push str._status_:true
push reloc.OLEAUT32.dll_SysReAllocStringLen
push 0
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x4b69aa
mov eax, 0x65d6b8
push eax
push 4
mov ebx, 0x516de0
call fcn.00515f01
add esp, 0x34
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0xffffffff
jle 0x4b69f0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4b69e6
push eax
mov ebx, eax
call fcn.004010d0
inc eax
push eax
call fcn.00515ee9
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4b6a31
lea eax, [ebp - 0x20]
push eax
call fcn.0041f143
mov dword [ebp - 0x28], eax
push 0xc78b4a
push dword [ebp - 0x28]
push 0xc786cb
mov ecx, 3
call fcn.0040113b
add esp, 0xc
mov dword [ebp - 0x2c], eax
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4b6a29
push ebx
call fcn.00515eef
add esp, 4
mov eax, dword [ebp - 0x2c]
jmp 0x4b6a31
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4b6a42
push ebx
call fcn.00515eef
add esp, 4
mov ebx, dword [ebp - 0xc]
push ebx
mov eax, dword [ebx]
call dword [eax]
call fcn.00515eef
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4b6a62
push ebx
call fcn.00515eef
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x4b6a72
push ebx
call fcn.00515eef
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4b6a82
push ebx
call fcn.00515eef
add esp, 4
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x4b6a92
push ebx
call fcn.00515eef
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x4b6aa2
push ebx
call fcn.00515eef
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 0x10