Function at 0x40b960
Capabilities:
Connect socket
Connect to http server
Connect udp socket
Create http request
Create thread
Create udp socket
Get file size
Initialize winsock library
Inspect load icon resource
Query or enumerate registry value
Read .ini file
Read file on windows
Resolve dns
Resolve function by parsing pe exports
Set socket configuration
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x268
push ebx
push ebp
push esi
push edi
push 0x415ee8
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x41a39c
push str.08D512D2_7D97_4E22_B7DB_82791106C086
call dword [sym.imp.ole32.dll_CLSIDFromString]
push 0x415d78
push 0
push 0
push 0x4030b0
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.alisec.taobao.com
mov dword [0x419f14], 0x50000002
call sub.WS2_32.dll_gethostbyname
push 0
test eax, eax
jne 0x40b9f5
push 0x1000
push eax
push 0x410f70
push eax
call dword [sym.imp.USER32.dll_MessageBoxExW]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [0x415d78]
push 0
push 0x113
push eax
mov dword [0x419f18], edx
mov dword [0x41a3ac], 0x28230002
call dword [sym.imp.USER32.dll_PostThreadMessageA]
push str.MessageBoxTimeoutW
push 0x410f50
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [esp + 0x58]
mov dword [0x41a044], eax
mov byte [esp + 0x60], 0
call fcn.00406160
lea ecx, [esp + 0x68]
mov byte [esp + 0x70], 0
call fcn.004068a0
lea ecx, [esp + 0x58]
push 0x419f28
mov dword [0x41a3ec], ecx
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x104
push 0x41a048
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea esi, [eax - 3]
push esi
push 0x41a048
push 0x41a14c
mov dword [esp + 0x20], esi
mov dword [esi + 0x41a048], 0x696e69
call sub.MSVCRT.dll_memcpy
push esi
push 0x41a14c
push 0x41a250
mov dword [esi + 0x41a14c], 0x676663
call sub.MSVCRT.dll_memcpy
push esi
push 0x41a250
push 0x419f40
mov dword [esi + 0x41a250], 0x746164
call sub.MSVCRT.dll_memcpy
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0x2c
push 0
push 2
mov byte [eax], 0
push 2
mov dword [0x415d84], 0x30750002
mov dword [0x415d88], 0x470c04df
call dword [sym.imp.WS2_32.dll_socket]
push 4
push 0x40f40c
push 0x1006
push 0xffff
push eax
mov dword [0x415d80], eax
call sub.WS2_32.dll_setsockopt
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push 0x41a048
push 0
push str.BindPort
push str.UserInfo
call esi
mov dword [esp + 0x14], eax
test eax, eax
je 0x40bb89
push eax
mov byte [0x41a38c], 2
call sub.WS2_32.dll_htons
mov edx, dword [0x415d80]
push 0x10
push 0x41a38c
push edx
mov word [0x41a38e], ax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x40bb89
push 0
push 0
push 0
push 0x410e84
push 0
call dword [sym.imp.USER32.dll_MessageBoxExW]
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov eax, dword [0x415d80]
push 0x10
push 0x415d84
push eax
call dword [sym.imp.WS2_32.dll_connect]
push 0x41a048
push 0
push str.UserID
push str.UserInfo
call esi
push 0x41a048
push 0
push str.options
push str.UserInfo
mov dword [0x415ea8], eax
call esi
mov byte [0x415d72], al
test al, 8
jne 0x40bbe6
push 0
push 0x402ba0
push 0
push 0x6d
push 0x400000
call dword [sym.imp.USER32.dll_DialogBoxParamA]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x41a048
push 0x20
push 0x415eac
push 0
push str.tbuser
push str.UserInfo
call ebx
push 0x41a048
push 0x20
push 0x41a3c4
push 0
push str.wwUser
push str.UserInfo
call ebx
push 0x41a048
push 0x1f4
push 0x422510
push 0x410b10
push str.UserInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
push 0
push 0x40a640
push 0
push 0x65
push 0x400000
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push 1
push esi
mov dword [0x415ea0], eax
call edi
push 0x65
push 0x400000
mov dword [0x415ea4], eax
call dword [sym.imp.USER32.dll_LoadIconA]
push eax
push 1
push 0x80
push esi
mov dword [0x422704], eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [0x415ea8]
push 0
push ecx
push 0x3e9
push esi
call dword [sym.imp.USER32.dll_SetDlgItemInt]
test byte [0x415d72], 1
mov ebp, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
je 0x40bd00
push 0x41a048
push 0x1c
push 0x415ecc
push 0x410c7c
push str.UserInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStructA]
push 0x415ecc
push 0x3ea
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0x415ed7
push 0x3ec
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0
push 1
push 0xf1
push 0x3ed
push esi
call ebp
push 0x415eac
push 0x3eb
push esi
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0
push 0xa
push 0xc5
push 0x3ea
push esi
call ebp
push 0
push 0x1f
push 0xc5
push 0x3eb
push esi
call ebp
push 0
push 0x10
push 0xc5
push 0x3ec
push esi
call ebp
push 0
push 0x4035f0
push 0
push 0x6e
push 0x400000
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov esi, eax
push 0x3ed
push esi
mov dword [0x41a36c], eax
call edi
push 0x3e9
push esi
mov dword [0x41a370], eax
call edi
push 0x3ea
push esi
mov dword [0x41a374], eax
call edi
test byte [0x415d72], 0x20
mov dword [0x41a378], eax
je 0x40bdd8
push 0x41a048
push 0x18
push 0x41a354
push 0
push str.uuUserName
push str.UserInfo
call ebx
mov esi, eax
test esi, esi
je 0x40bdd8
push 0x41a048
push 0x18
push 0x422798
push 0
push str.uuPwd
push str.UserInfo
call ebx
test eax, eax
je 0x40bdd8
push esi
call fcn.00402260
add esp, 4
push 0
push 0x80
push 4
push 0
push 0
push bind
push 0x41a14c
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
push 0
cmp ebp, 0xffffffff
je 0x40bed0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x18], eax
test eax, eax
je 0x40bec1
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
push 0
mov ebx, eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push eax
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor eax, eax
mov dword [esp + 0x14], eax
lea ebx, [ebx]
push 0x415ee8
lea ecx, [esp + 0x2c]
push ecx
lea edx, [ebx + eax]
push str._I64u__s
push edx
call dword [sym.imp.MSVCRT.dll_sscanf]
mov ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x8c], ecx
add esp, 0x10
mov dword [esp + 0x78], eax
lea edx, [esp + 0x78]
mov ecx, 0x7d
mov esi, 0x415ee8
lea edi, [esp + 0x80]
push edx
lea eax, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [0x41a3ec]
push eax
call fcn.00406ec0
mov edx, dword [esp + 0x14]
lea eax, [ebx + edx]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40bea1
sub eax, esi
lea eax, [edx + eax + 1]
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x18]
jb 0x40be40
push ebx
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.USER32.dll_MessageBoxExW]
jmp 0x40beea
mov esi, dword [sym.imp.USER32.dll_MessageBoxExW]
push 0
push 0
push 0x410e64
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
push 0x80
push 4
push 0
push 0
push bind
push 0x41a250
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x40c016
xor esi, esi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esp + 0x18], eax
cmp eax, 0x1f4
jb 0x40bfd1
push eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edx, dword [esp + 0x1c]
add esp, 4
push esi
lea ecx, [esp + 0x1c]
push ecx
push edx
push eax
push ebp
mov dword [esp + 0x34], eax
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, 0x10624dd3
mul dword [esp + 0x18]
shr edx, 5
mov dword [esp + 0x18], edx
mov dword [0x415e80], edx
mov dword [esp + 0x14], esi
push ebx
call fcn.00402c30
mov eax, dword [esp + 0x18]
mov dword [esp + 0x7c], eax
mov ecx, 0x7d
mov esi, ebx
lea edi, [esp + 0x80]
rep movsd dword es:[edi], dword [esi]
add esp, 4
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [0x41a3ec]
lea edx, [esp + 0x38]
push edx
add ecx, 0x10
call fcn.00407060
mov eax, dword [esp + 0x14]
inc eax
add ebx, 0x1f4
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x18]
jb 0x40bf67
mov eax, dword [esp + 0x20]
push eax
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.USER32.dll_MessageBoxExW]
jmp 0x40c02c
mov dword [esp + 0x78], esi
mov ecx, 0x7d
mov esi, 0x410e44
lea edi, [esp + 0x7c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x78]
push ecx
mov ecx, dword [0x41a3ec]
lea edx, [esp + 0x38]
push edx
add ecx, 0x10
mov dword [0x415e80], 1
call fcn.00407060
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.USER32.dll_MessageBoxExW]
jmp 0x40c02c
push 0
push 0
push 0
push 0x410e2c
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
push 0x410e10
push bind
mov dword [esp + 0x28], 1
mov dword [0x415d7c], 0x16f
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40c072
push 0
push 0
push 0
push 0x410d88
push 0
call esi
jmp 0x40c203
mov edx, dword [esp + 0x1c]
push 0x415d7c
push 0x415ee8
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40c0b3
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push 0
push 0x410d30
push 0
call esi
jmp 0x40c203
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [0x415d7c]
mov bl, 0x22
cmp byte [0x415ee8], bl
jne 0x40c104
lea edx, [esi - 4]
push edx
push 0x415ee8
push 0x422848
call sub.MSVCRT.dll_memcpy
push 0x41a3c4
lea eax, [esi + 0x422844]
push str._aliim:sendmsg_uidcntaobao_stouidcntaobao
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [0x415d7c]
lea edx, [ecx + eax - 4]
jmp 0x40c14a
lea eax, [esi - 4]
push eax
push 0x415ee8
push 0x422849
mov byte [0x422848], bl
call sub.MSVCRT.dll_memcpy
mov byte [esi + 0x422845], bl
mov ecx, dword [0x415d7c]
push 0x41a3c4
lea edx, [ecx + 0x422846]
push str._aliim:sendmsg_uidcntaobao_stouidcntaobao
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [0x415d7c]
lea edx, [ecx + eax - 2]
add esp, 0x18
cmp byte [0x41a3c4], 0
mov dword [0x415d7c], edx
je 0x40c203
mov esi, 0x41a3c4
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x40c168
sub esi, ecx
push esi
push 0x41a3c4
push 0x422708
call sub.MSVCRT.dll_memcpy
movq xmm0, qword [0x40f5c8]
mov eax, dword [0x40f5d0]
mov cx, word [0x40f5d4]
push esi
movq qword [esi + 0x422708], xmm0
push 0x41a3c4
mov dword [esi + 0x422710], eax
push 0x422738
mov word [esi + 0x422714], cx
call sub.MSVCRT.dll_memcpy
movq xmm0, qword [0x40f5bc]
mov edx, dword [0x40f5c4]
mov eax, dword [0x40f5b4]
movq qword [esi + 0x422738], xmm0
movq xmm0, qword [0x40f5ac]
push esi
mov dword [esi + 0x422740], edx
push 0x41a3c4
push 0x422774
movq qword [0x422768], xmm0
mov dword [0x422770], eax
call sub.MSVCRT.dll_memcpy
add esp, 0x24
push 0
push 0
push 0
push 1
push str.Mozilla_4.0__compatible__MSIE_8.0__Windows_NT_5.1__Trident_4.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, dword [sym.imp.WININET.dll_InternetConnectA]
push 0
push 0
push 3
push 0
push 0
push 0x1bb
mov esi, eax
push str.login.taobao.com
push esi
call edi
push 0
push 0
push 3
push 0
push 0
push 0x1bb
push str.pin.aliyun.com
push esi
mov dword [0x419ee8], eax
call edi
push 0
push 0
push 3
push 0
push 0
push 0x1bb
push str.aq.taobao.com
push esi
mov dword [0x4229b8], eax
call edi
push 0
push 0
push 3
push 0
push 0
push 0x1bb
push str.mai.taobao.com
push esi
mov dword [0x415dd0], eax
call edi
push 0
push 0
push 3
push 0
push 0
push 0x1bb
push str.rate.taobao.com
push esi
mov dword [0x41a384], eax
call edi
mov edx, dword [0x419ee8]
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
lea ecx, [esp + 0x14]
push ecx
push 5
push edx
mov dword [0x415e7c], eax
mov dword [esp + 0x20], 0x2710
call esi
mov ecx, dword [0x419ee8]
push 4
lea eax, [esp + 0x14]
push eax
push 6
push ecx
call esi
mov eax, dword [0x4229b8]
push 4
lea edx, [esp + 0x14]
push edx
push 5
push eax
call esi
mov edx, dword [0x4229b8]
push 4
lea ecx, [esp + 0x14]
push ecx
push 6
push edx
call esi
mov ecx, dword [0x415dd0]
push 4
lea eax, [esp + 0x14]
push eax
push 5
push ecx
call esi
mov eax, dword [0x415dd0]
push 4
lea edx, [esp + 0x14]
push edx
push 6
push eax
call esi
mov edx, dword [0x41a384]
push 4
lea ecx, [esp + 0x14]
push ecx
push 5
push edx
call esi
mov ecx, dword [0x41a384]
push 4
lea eax, [esp + 0x14]
push eax
push 6
push ecx
call esi
mov eax, dword [0x415e7c]
push 4
lea edx, [esp + 0x14]
push edx
push 5
push eax
call esi
mov edx, dword [0x415e7c]
push 4
lea ecx, [esp + 0x14]
push ecx
push 6
push edx
call esi
push 4
lea eax, [esp + 0x14]
push eax
push 0x49
push 0
mov dword [esp + 0x20], 0x80
call esi
push 4
lea ecx, [esp + 0x14]
push ecx
push 0x4a
push 0
call esi
push 0
call sub.MSVCRT.dll_time
push 0x24
push 0x4223f0
push eax
push eax
call dword [sym.imp.MSVCRT.dll__ui64toa]
mov esi, dword [sym.imp.WININET.dll_InternetSetCookieA]
add esp, 0x14
push 0x4223f0
push str._tb_token_
push str.https:__login.taobao.com
call esi
push 0x4223f0
push str._tb_token_
push str.https:__mai.taobao.com
call esi
push 0x4223f0
push str._tb_token_
push str.https:__rate.taobao.com
call esi
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
push 0
push 0
push 0
lea edx, [esp + 0x48]
push edx
call esi
cmp dword [esp + 0x40], 0x100
jne 0x40c428
cmp dword [esp + 0x44], 0x7a
jne 0x40c428
mov eax, dword [0x41a36c]
push 5
push eax
call edi
mov ecx, dword [0x41a36c]
push ecx
call ebx
jmp 0x40c3f5
lea edx, [esp + 0x3c]
push edx
call ebp
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x40c3f5