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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
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
xor ecx, ecx
lea eax, [ebp - 4]
mov ebx, eax
inc ecx
push ecx
push ebx
mov dword [ebx], ecx
cmp ecx, 6
jg 0x424a6f
push 0x10
call fcn.00424b0f
mov dword [ebp - 0x18], eax
push dword [ebp - 0x18]
push str.https:__kyfw.12306.cn_otn_passcodeNew_getPassCodeNew_moduleloginrandsjrand0.
mov ecx, 2
call fcn.0040113b
add esp, 8
mov dword [ebp - 0x1c], eax
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4245f9
push ebx
call fcn.0051fddb
add esp, 4
mov dword [ebp - 0x20], 0
push 0
push dword [ebp - 0x20]
push 1
push 0x3a98
push 1
lea eax, [ebp - 0xc]
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 - 0x24], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x28]
push eax
push 1
push dword [ebp + 8]
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x30], 0
push 0
push dword [ebp - 0x30]
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x20]
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x1c]
test ebx, ebx
je 0x42466f
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x42467f
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x42468f
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x42469f
push ebx
call fcn.0051fddb
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4246b3
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 8], eax
push reloc.WS2_32.dll_getpeername
push 0
mov eax, dword [ebp - 8]
test eax, eax
jne 0x4246ca
mov eax, 0x7a6cb2
push eax
push 1
mov ebx, 0x5204b0
call fcn.0051fded
add esp, 0x10
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x190
jle 0x424a09
lea eax, [ebp - 8]
push eax
call fcn.00424d0f
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x42470d
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
push 0x6024b4
push dword [ebp - 0x10]
call fcn.0040102b
add esp, 8
cmp eax, 0
je 0x42495a
push str.randsjrandrandCode_validate
push dword [ebp - 0x10]
push str.randCode
mov ecx, 3
call fcn.0040113b
add esp, 0xc
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], 0
push 0
push dword [ebp - 0x1c]
push 1
push 0x1f40
mov dword [ebp - 0x20], 0
push 0
lea eax, [ebp - 0x20]
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_nContent_Type:_application_x_www_form_urlencoded__charsetUTF_8_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 - 0x24], eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x28]
push eax
push 1
push dword [ebp + 8]
push 1
lea eax, [ebp - 0x18]
push eax
push 1
push 1
mov eax, str.https:__kyfw.12306.cn_otn_passcodeNew_checkRandCodeAnsyn
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0xc]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x20]
mov dword [ebp - 0x30], eax
mov ebx, dword [ebp - 0x2c]
test ebx, ebx
je 0x4247c0
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x4247d0
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x28]
test ebx, ebx
je 0x4247e0
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x24]
test ebx, ebx
je 0x4247f0
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x20]
test ebx, ebx
je 0x424800
push ebx
call fcn.0051fddb
add esp, 4
lea eax, [ebp - 0x30]
push eax
call fcn.0040d9f4
mov dword [ebp - 0x34], eax
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x42481c
push ebx
call fcn.0051fddb
add esp, 4
mov eax, dword [ebp - 0x34]
push eax
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x424830
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 0x14], eax
push reloc.OLEAUT32.dll_SysReAllocString
push 0
push 0
push 0
push 0
push 0
push reloc.WS2_32.dll_connect
push 0
push str.randCodeRight
push reloc.WS2_32.dll_connect
push 0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x424865
mov eax, 0x6024b4
push eax
push 4
mov ebx, 0x520cd0
call fcn.0051fded
add esp, 0x34
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
je 0x4248ab
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4248a1
push eax
mov ebx, eax
call fcn.004010d0
inc eax
push eax
call fcn.0051fdd5
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x424ac7
mov eax, 0x7a6cb2
test eax, eax
je 0x4248c7
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0051fdd5
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 0x4248d8
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov eax, 0x6024b4
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4248f2
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], esp
push 0x32
mov eax, 0x1c
call fcn.0051fde7
cmp dword [ebp - 0x18], esp
je 0x42491a
push 6
call fcn.0051fde1
add esp, 4
push dword [ebp + 0xc]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x28]
mov dword [ebp - 0x18], eax
push 0x1f40
push 0x1bb
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x424955
push ebx
call fcn.0051fddb
add esp, 4
jmp 0x424a04
mov eax, 0x7a6cb2
test eax, eax
je 0x424976
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0051fdd5
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 0x424987
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov eax, 0x6024b4
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x4249a1
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], esp
push 0x32
mov eax, 0x1c
call fcn.0051fde7
cmp dword [ebp - 0x18], esp
je 0x4249c9
push 6
call fcn.0051fde1
add esp, 4
push dword [ebp + 0xc]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x28]
mov dword [ebp - 0x18], eax
push 0x1f40
push 0x1bb
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x424a04
push ebx
call fcn.0051fddb
add esp, 4
jmp 0x424a68
mov dword [ebp - 0x18], esp
push 0x32
mov eax, 0x1c
call fcn.0051fde7
cmp dword [ebp - 0x18], esp
je 0x424a2d
push 6
call fcn.0051fde1
add esp, 4
push dword [ebp + 0xc]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 0x28]
mov dword [ebp - 0x18], eax
push 0x1f40
push 0x1bb
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0xc]
mov eax, dword [esp]
mov eax, dword [eax]
mov eax, dword [eax]
call dword [eax + 8]
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x424a68
push ebx
call fcn.0051fddb
add esp, 4
pop ebx
pop ecx
jmp 0x4245b6
add esp, 8
mov eax, 0x7a6cb2
test eax, eax
je 0x424a8e
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0051fdd5
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 0x424a9f
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov eax, 0x6024b4
push eax
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x424ab9
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov dword [ebp - 0x10], eax
mov eax, 0x6024b4
jmp 0x424ac7
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x424ad8
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x424ae8
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x424af8
push ebx
call fcn.0051fddb
add esp, 4
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x424b08
push ebx
call fcn.0051fddb
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8