Function at 0x42ec20
Capabilities:
Connect to http server
Create http request
Get file size
Read and send data from client to server
Read data from internet
Read file on windows
Receive data
Resolve function by parsing pe exports
Send data
Send http request

Disassembly:
push 0xffffffffffffffff
push 0x4e459a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
push ebx
push ebp
push esi
mov ebx, ecx
push edi
xor esi, esi
mov ecx, 9
xor eax, eax
lea edi, [esp + 0xa8]
mov dword [esp + 0xa4], esi
rep stosd dword es:[edi], eax
push 0x5000
call fcn.004d456e
add esp, 4
mov dword [esp + 0x2c], eax
mov al, byte [esp + 0x13]
lea ecx, [esp + 0x7c]
push esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x94], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x90], esi
mov dword [esp + 0x48], 0x493e0
mov byte [esp + 0x80], al
call fcn.00407180
mov edi, 0x5188e8
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x80]
push ebp
call fcn.00408590
test al, al
je 0x42ecf1
mov edi, dword [esp + 0x80]
mov ecx, ebp
mov edx, ecx
mov esi, 0x5188e8
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x80]
call fcn.00408570
xor esi, esi
mov eax, dword [esp + 0xe4]
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push eax
mov dword [esp + 0xdc], esi
call fcn.004d489b
lea ecx, [esp + 0x2c]
push ecx
mov ecx, ebx
call fcn.0042eb50
mov ebx, dword [eax]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov ebp, ecx
lea ecx, [esp + 0x80]
push ebp
mov byte [esp + 0xdc], 1
call fcn.00408590
test al, al
je 0x42ed6b
mov edi, dword [esp + 0x80]
mov ecx, ebp
mov edx, ecx
mov esi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x80]
call fcn.00408570
xor esi, esi
lea ecx, [esp + 0x28]
mov byte [esp + 0xd4], 0
call fcn.004d482d
mov al, byte [esp + 0x13]
push esi
lea ecx, [esp + 0x54]
mov byte [esp + 0x54], al
call fcn.00407180
mov edi, str._____________________________40099aabb3793
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [esp + 0x54]
push ebx
call fcn.00408590
test al, al
je 0x42edd4
mov edi, dword [esp + 0x54]
mov ecx, ebx
mov edx, ecx
mov esi, str._____________________________40099aabb3793
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x54]
call fcn.00408570
xor esi, esi
mov al, byte [esp + 0x13]
push esi
lea ecx, [esp + 0x70]
mov byte [esp + 0xd8], 2
mov byte [esp + 0x70], al
call fcn.00407180
mov edi, str.Content_Type:_multipart_form_data__boundary
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Content_Type:_multipart_form_data__boundary
lea ecx, [esp + 0x74]
call fcn.00406da0
mov ecx, dword [0x4ea898]
lea edx, [esp + 0x50]
push ecx
push esi
push edx
lea ecx, [esp + 0x78]
mov byte [esp + 0xe0], 3
call fcn.00406a00
mov edi, 0x509cc8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x509cc8
lea ecx, [esp + 0x74]
call fcn.00406ae0
mov al, byte [esp + 0x13]
push esi
lea ecx, [esp + 0x18]
mov byte [esp + 0x18], al
call fcn.00407180
mov edi, 0x509cc4
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x18]
push ebp
call fcn.00408590
test al, al
je 0x42ee9e
mov edi, dword [esp + 0x18]
mov ecx, ebp
mov edx, ecx
mov esi, 0x509cc4
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00408570
mov edi, 0x509cc8
or ecx, 0xffffffff
xor eax, eax
mov ebx, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0xd4], bl
push ecx
push 0x509cc8
lea ecx, [esp + 0x1c]
call fcn.00406ae0
mov edi, 0x509cc4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x509cc4
lea ecx, [esp + 0x1c]
call fcn.00406ae0
mov eax, dword [0x4ea898]
lea ecx, [esp + 0x50]
push eax
push 0
push ecx
lea ecx, [esp + 0x20]
call fcn.00406a00
mov edi, str._r_nContent_Disposition:_form_data__name_identity_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str._r_nContent_Disposition:_form_data__name_identity_
lea ecx, [esp + 0x1c]
call fcn.00406ae0
mov edi, str._r_n_r_n
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str._r_n_r_n
lea ecx, [esp + 0x1c]
call fcn.00406ae0
push ecx
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0x518b20
call fcn.004d45a2
lea edx, [esp + 0x2c]
push edx
call fcn.004157e0
add esp, 8
mov edx, dword [eax]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0xd4], 5
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.00406ae0
lea ecx, [esp + 0x28]
mov byte [esp + 0xd4], bl
call fcn.004d482d
mov edi, str._r_n__
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str._r_n__
lea ecx, [esp + 0x1c]
call fcn.00406ae0
mov eax, dword [0x4ea898]
lea ecx, [esp + 0x50]
push eax
push 0
push ecx
lea ecx, [esp + 0x20]
call fcn.00406a00
mov edx, dword [0x509d70]
lea eax, [esp + 0x94]
push edx
push 0x509d64
push eax
call fcn.004aed8c
mov edi, str._r_nContent_Disposition:_form_data__name_PID_
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str._r_nContent_Disposition:_form_data__name_PID_
lea ecx, [esp + 0x1c]
call fcn.00406ae0
mov edi, str._r_n_r_n
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str._r_n_r_n
lea ecx, [esp + 0x1c]
call fcn.00406ae0
lea edi, [esp + 0x94]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x98]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00406ae0
mov edi, 0x509cc8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x509cc8
lea ecx, [esp + 0x1c]
call fcn.00406ae0
mov edi, 0x509cc4
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x509cc4
lea ecx, [esp + 0x1c]
call fcn.00406ae0
mov edx, dword [0x4ea898]
lea eax, [esp + 0x50]
push edx
push 0
push eax
lea ecx, [esp + 0x20]
call fcn.00406a00
mov edi, str._r_nContent_Disposition:_form_data__filename_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov edx, dword [esp + 0x1c]
dec ecx
mov esi, ecx
mov ecx, dword [0x4ea898]
sub ecx, edx
cmp ecx, esi
ja 0x42f0af
call fcn.004c09c1
test esi, esi
jbe 0x42f0f4
mov edx, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x18]
lea ebp, [edx + esi]
push ebp
call fcn.00408590
test al, al
je 0x42f0f4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push ebp
lea edi, [ecx + eax]
mov ecx, esi
mov edx, ecx
mov esi, str._r_nContent_Disposition:_form_data__filename_
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00408570
mov eax, dword [0x4ea898]
lea ecx, [esp + 0x7c]
push eax
push 0
push ecx
lea ecx, [esp + 0x20]
call fcn.00406a00
mov edi, str.____name_upload_data_
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x4ea898]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [esp + 0x1c]
sub edx, ecx
cmp edx, esi
ja 0x42f130
call fcn.004c09c1
test esi, esi
jbe 0x42f175
mov eax, dword [esp + 0x1c]
push 0
lea ecx, [esp + 0x18]
lea ebp, [eax + esi]
push ebp
call fcn.00408590
test al, al
je 0x42f175
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push ebp
lea edi, [edx + ecx]
mov ecx, esi
mov eax, ecx
mov esi, str.____name_upload_data_
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 + 0x18]
call fcn.00408570
mov edi, str.__r_nContent_Type:_text_html_r_n_r_n
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x1c]
repne scasb al, byte es:[edi]
mov eax, dword [0x4ea898]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x42f19a
call fcn.004c09c1
test esi, esi
jbe 0x42f1df
mov ecx, dword [esp + 0x1c]
push 0
lea ebp, [ecx + esi]
lea ecx, [esp + 0x18]
push ebp
call fcn.00408590
test al, al
je 0x42f1df
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, esi
mov esi, str.__r_nContent_Type:_text_html_r_n_r_n
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.00408570
mov al, byte [esp + 0x13]
push 0
lea ecx, [esp + 0x38]
mov byte [esp + 0x38], al
call fcn.00407180
mov edi, str._r_n__
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x38]
push ebp
call fcn.00408590
test al, al
je 0x42f238
mov edi, dword [esp + 0x38]
mov ecx, ebp
mov edx, ecx
mov esi, str._r_n__
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x3c], ebp
mov byte [eax + ebp], 0
mov ecx, dword [0x4ea898]
lea edx, [esp + 0x50]
push ecx
push 0
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0xe0], 6
call fcn.00406a00
mov edi, str.___r_n
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x3c]
repne scasb al, byte es:[edi]
mov eax, dword [0x4ea898]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x42f27c
call fcn.004c09c1
test esi, esi
jbe 0x42f2c1
mov ecx, dword [esp + 0x3c]
push 0
lea ebp, [ecx + esi]
lea ecx, [esp + 0x38]
push ebp
call fcn.00408590
test al, al
je 0x42f2c1
mov edx, dword [esp + 0x38]
mov eax, dword [esp + 0x3c]
mov ecx, esi
mov esi, str.___r_n
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x38]
call fcn.00408570
push 0
push 0
push 0
push 1
push str.HttpSendRequest
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esp + 0x48], eax
je 0x42f631
mov ecx, dword [esp + 0xe8]
mov edx, dword [esp + 0xdc]
push 1
push 0
push 3
push 0
push 0
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esp + 0x4c], eax
jne 0x42f31b
mov esi, dword [esp + 0x2c]
mov ebp, dword [esp + 0x90]
xor edi, edi
jmp 0x42f5ff
mov ecx, dword [esp + 0xe0]
push 0
push 0x4400000
push 0
push 0
push 0
push ecx
push 0x509be8
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebp, eax
test ebp, ebp
jne 0x42f34d
mov esi, dword [esp + 0x2c]
xor edi, edi
jmp 0x42f5ff
mov edx, dword [esp + 0xe4]
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x30], edi
jne 0x42f383
mov esi, dword [esp + 0x2c]
xor edi, edi
jmp 0x42f5ff
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
lea eax, [esp + 0x44]
push ebx
push eax
push 2
push ebp
call esi
lea ecx, [esp + 0x44]
push ebx
push ecx
push 5
push ebp
call esi
lea edx, [esp + 0x44]
push ebx
push edx
push 7
push ebp
call esi
mov eax, dword [esp + 0x70]
test eax, eax
jne 0x42f3b7
mov eax, 0x4ea894
mov ecx, dword [esp + 0x74]
push 0x20000000
push ecx
push eax
push ebp
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
jne 0x42f3de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x2c]
xor edi, edi
jmp 0x42f5ff
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
add ecx, edx
push 0
push 0
lea edx, [esp + 0xac]
push 0
add ecx, eax
push edx
push ebp
mov dword [esp + 0xb8], 0x28
mov dword [esp + 0xd4], ecx
call dword [sym.imp.WININET.dll_HttpSendRequestExA]
test eax, eax
jne 0x42f42f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x2c]
xor edi, edi
jmp 0x42f5ff
mov ebx, dword [esp + 0x8c]
mov esi, dword [esp + 0x2c]
inc ebx
cmp ebx, 1
jne 0x42f478
mov eax, dword [esp + 0x1c]
cmp eax, 0x5000
jbe 0x42f450
mov eax, 0x4fff
mov ecx, eax
mov eax, dword [esp + 0x18]
test eax, eax
mov dword [esp + 0x24], ecx
jne 0x42f463
mov eax, 0x4ea894
push ecx
push eax
push esi
call fcn.004b01f0
mov eax, dword [esp + 0x30]
add esp, 0xc
mov byte [eax + esi], 0
jmp 0x42f490
lea ecx, [esp + 0x24]
push 0
push ecx
push 0x5000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42f4d7
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x60]
push edx
push eax
push esi
push ebp
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x42f4d1
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x24]
add edx, ecx
cmp eax, 0x5000
mov dword [esp + 0x68], edx
jae 0x42f4c4
cmp ebx, 1
ja 0x42f4de
cmp ebx, 0x7d0
ja 0x42f4de
jmp 0x42f43a
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
jmp 0x42f5ff
mov ecx, dword [esp + 0x3c]
cmp ecx, 0x5000
jbe 0x42f4ef
mov ecx, 0x4fff
mov eax, dword [esp + 0x38]
mov dword [esp + 0x24], ecx
test eax, eax
jne 0x42f500
mov eax, 0x4ea894
push ecx
push eax
push esi
call fcn.004b01f0
mov edx, dword [esp + 0x30]
add esp, 0xc
lea eax, [esp + 0x60]
mov byte [edx + esi], 0
mov ecx, dword [esp + 0x24]
push eax
push ecx
push esi
push ebp
call dword [sym.imp.WININET.dll_InternetWriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
push edi
push edi
push edi
push ebp
mov dword [esp + 0x40], edi
call dword [sym.imp.WININET.dll_HttpEndRequestA]
test eax, eax
je 0x42f5ff
lea edx, [esp + 0x24]
push edx
push 0x2800
push esi
push ebp
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x42f5ff
mov eax, dword [esp + 0x24]
mov byte [eax + esi], 0
mov ecx, dword [0x513458]
mov dword [esp + 0x28], ecx
push ecx
mov byte [esp + 0xd8], 7
mov ecx, esp
mov dword [esp + 0x68], esp
push esi
call fcn.004d489b
lea edx, [esp + 0x68]
push edx
call fcn.00415af0
add esp, 8
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd8], 8
call fcn.004d4966
lea ecx, [esp + 0x64]
mov byte [esp + 0xd4], 7
call fcn.004d482d
push edi
lea ecx, [esp + 0x2c]
call fcn.004d4c5d
push eax
push 0x509d38
push esi
call fcn.004aed8c
add esp, 0xc
lea ecx, [esp + 0x28]
push 0xffffffffffffffff
call fcn.004d4cac
lea ecx, [esp + 0x28]
mov byte [esp + 0xd4], 6
call fcn.004d482d
push str.200
push esi
call fcn.004b0a20
mov edi, eax
add esp, 8
neg edi
sbb edi, edi
inc edi
mov eax, dword [esp + 0x48]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
push eax
call ebx
test ebp, ebp
je 0x42f613
push ebp
call ebx
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x42f61e
push eax
call ebx
mov eax, dword [esp + 0x30]
test eax, eax
je 0x42f639
mov ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42f639
mov edi, dword [esp + 0x4c]
mov esi, dword [esp + 0x2c]
xor ebx, ebx
cmp esi, ebx
je 0x42f648
push esi
call fcn.004d4597
add esp, 4
mov ecx, dword [esp + 0x38]
cmp ecx, ebx
je 0x42f66c
mov al, byte [ecx - 1]
test al, al
je 0x42f662
cmp al, 0xff
je 0x42f662
dec al
mov byte [ecx - 1], al
jmp 0x42f66c
dec ecx
push ecx
call fcn.004d4597
add esp, 4
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x38], ebx
cmp ecx, ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
je 0x42f69c
mov al, byte [ecx - 1]
test al, al
je 0x42f692
cmp al, 0xff
je 0x42f692
dec al
mov byte [ecx - 1], al
jmp 0x42f69c
dec ecx
push ecx
call fcn.004d4597
add esp, 4
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x18], ebx
cmp ecx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
je 0x42f6cc
mov al, byte [ecx - 1]
test al, al
je 0x42f6c2
cmp al, 0xff
je 0x42f6c2
dec al
mov byte [ecx - 1], al
jmp 0x42f6cc
dec ecx
push ecx
call fcn.004d4597
add esp, 4
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x70], ebx
cmp ecx, ebx
mov dword [esp + 0x74], ebx
mov dword [esp + 0x78], ebx
je 0x42f6fc
mov al, byte [ecx - 1]
test al, al
je 0x42f6f2
cmp al, 0xff
je 0x42f6f2
dec al
mov byte [ecx - 1], al
jmp 0x42f6fc
dec ecx
push ecx
call fcn.004d4597
add esp, 4
mov ecx, dword [esp + 0x80]
mov dword [esp + 0x54], ebx
cmp ecx, ebx
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
je 0x42f72f
mov al, byte [ecx - 1]
test al, al
je 0x42f725
cmp al, 0xff
je 0x42f725
dec al
mov byte [ecx - 1], al
jmp 0x42f72f
dec ecx
push ecx
call fcn.004d4597
add esp, 4
mov ecx, dword [esp + 0xcc]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xc8
ret 0x10